donut-decomp/asm/MSL_C.PPCEABI.bare.H/e_log10_80011410.s

84 lines
4 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global __ieee754_log10
__ieee754_log10:
/* 80011410 0000D250 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80011414 0000D254 7C 08 02 A6 */ mflr r0
/* 80011418 0000D258 90 01 00 24 */ stw r0, 0x24(r1)
/* 8001141C 0000D25C DB E1 00 18 */ stfd f31, 0x18(r1)
/* 80011420 0000D260 D8 21 00 08 */ stfd f1, 0x8(r1)
/* 80011424 0000D264 3C 00 00 10 */ lis r0, 0x10
/* 80011428 0000D268 38 80 00 00 */ li r4, 0x0
/* 8001142C 0000D26C 80 A1 00 08 */ lwz r5, 0x8(r1)
/* 80011430 0000D270 80 61 00 0C */ lwz r3, 0xc(r1)
/* 80011434 0000D274 7C 05 00 00 */ cmpw r5, r0
/* 80011438 0000D278 40 80 00 5C */ bge lbl_80011494
/* 8001143C 0000D27C 54 A0 00 7E */ clrlwi r0, r5, 1
/* 80011440 0000D280 7C 00 1B 79 */ or. r0, r0, r3
/* 80011444 0000D284 40 82 00 1C */ bne lbl_80011460
/* 80011448 0000D288 C8 22 82 18 */ lfd f1, "@478_8055E198"@sda21(r2)
/* 8001144C 0000D28C 38 00 00 21 */ li r0, 0x21
/* 80011450 0000D290 C8 0D E2 F8 */ lfd f0, zero_8055C718@sda21(r13)
/* 80011454 0000D294 90 0D E2 D0 */ stw r0, errno@sda21(r13)
/* 80011458 0000D298 FC 21 00 24 */ fdiv f1, f1, f0
/* 8001145C 0000D29C 48 00 00 B4 */ b lbl_80011510
.global lbl_80011460
lbl_80011460:
/* 80011460 0000D2A0 2C 05 00 00 */ cmpwi r5, 0x0
/* 80011464 0000D2A4 40 80 00 1C */ bge lbl_80011480
/* 80011468 0000D2A8 FC 21 08 28 */ fsub f1, f1, f1
/* 8001146C 0000D2AC C8 0D E2 F8 */ lfd f0, zero_8055C718@sda21(r13)
/* 80011470 0000D2B0 38 00 00 21 */ li r0, 0x21
/* 80011474 0000D2B4 90 0D E2 D0 */ stw r0, errno@sda21(r13)
/* 80011478 0000D2B8 FC 21 00 24 */ fdiv f1, f1, f0
/* 8001147C 0000D2BC 48 00 00 94 */ b lbl_80011510
.global lbl_80011480
lbl_80011480:
/* 80011480 0000D2C0 C8 02 82 20 */ lfd f0, "@479_8055E1A0"@sda21(r2)
/* 80011484 0000D2C4 38 80 FF CA */ li r4, -0x36
/* 80011488 0000D2C8 FC 21 00 32 */ fmul f1, f1, f0
/* 8001148C 0000D2CC D8 21 00 08 */ stfd f1, 0x8(r1)
/* 80011490 0000D2D0 80 A1 00 08 */ lwz r5, 0x8(r1)
.global lbl_80011494
lbl_80011494:
/* 80011494 0000D2D4 3C 00 7F F0 */ lis r0, 0x7ff0
/* 80011498 0000D2D8 7C 05 00 00 */ cmpw r5, r0
/* 8001149C 0000D2DC 41 80 00 0C */ blt lbl_800114A8
/* 800114A0 0000D2E0 FC 21 08 2A */ fadd f1, f1, f1
/* 800114A4 0000D2E4 48 00 00 6C */ b lbl_80011510
.global lbl_800114A8
lbl_800114A8:
/* 800114A8 0000D2E8 7C A3 A6 70 */ srawi r3, r5, 20
/* 800114AC 0000D2EC 3C 00 43 30 */ lis r0, 0x4330
/* 800114B0 0000D2F0 7C 64 1A 14 */ add r3, r4, r3
/* 800114B4 0000D2F4 90 01 00 10 */ stw r0, 0x10(r1)
/* 800114B8 0000D2F8 38 83 FC 01 */ addi r4, r3, -0x3ff
/* 800114BC 0000D2FC C8 22 82 40 */ lfd f1, "@484_8055E1C0"@sda21(r2)
/* 800114C0 0000D300 54 83 0F FE */ srwi r3, r4, 31
/* 800114C4 0000D304 7C 04 1A 14 */ add r0, r4, r3
/* 800114C8 0000D308 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 800114CC 0000D30C 90 01 00 14 */ stw r0, 0x14(r1)
/* 800114D0 0000D310 20 03 03 FF */ subfic r0, r3, 0x3ff
/* 800114D4 0000D314 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 800114D8 0000D318 54 00 A0 16 */ slwi r0, r0, 20
/* 800114DC 0000D31C 50 A0 03 3E */ rlwimi r0, r5, 0, 12, 31
/* 800114E0 0000D320 90 01 00 08 */ stw r0, 0x8(r1)
/* 800114E4 0000D324 FF E0 08 28 */ fsub f31, f0, f1
/* 800114E8 0000D328 C8 21 00 08 */ lfd f1, 0x8(r1)
/* 800114EC 0000D32C 4B FF FC 71 */ bl __ieee754_log
/* 800114F0 0000D330 C8 02 82 30 */ lfd f0, "@481_8055E1B0"@sda21(r2)
/* 800114F4 0000D334 C8 42 82 28 */ lfd f2, "@480_8055E1A8"@sda21(r2)
/* 800114F8 0000D338 FC 60 00 72 */ fmul f3, f0, f1
/* 800114FC 0000D33C C8 02 82 38 */ lfd f0, "@482_8055E1B8"@sda21(r2)
/* 80011500 0000D340 FC 22 07 F2 */ fmul f1, f2, f31
/* 80011504 0000D344 FC 00 07 F2 */ fmul f0, f0, f31
/* 80011508 0000D348 FC 21 18 2A */ fadd f1, f1, f3
/* 8001150C 0000D34C FC 21 00 2A */ fadd f1, f1, f0
.global lbl_80011510
lbl_80011510:
/* 80011510 0000D350 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80011514 0000D354 CB E1 00 18 */ lfd f31, 0x18(r1)
/* 80011518 0000D358 7C 08 03 A6 */ mtlr r0
/* 8001151C 0000D35C 38 21 00 20 */ addi r1, r1, 0x20
/* 80011520 0000D360 4E 80 00 20 */ blr