donut-decomp/asm/wpad/WUD_80065740.s

6757 lines
316 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global WUDIsLinkedWBC
WUDIsLinkedWBC:
/* 80065740 00061580 80 6D EA 20 */ lwz r3, _linkedWBC@sda21(r13)
/* 80065744 00061584 4E 80 00 20 */ blr
/* 80065748 00061588 00 00 00 00 */ .4byte 0x00000000
/* 8006574C 0006158C 00 00 00 00 */ .4byte 0x00000000
.global App_MEMalloc
App_MEMalloc:
/* 80065750 00061590 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065754 00061594 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065758 00061598 81 84 06 F4 */ lwz r12, 0x6f4(r4)
/* 8006575C 0006159C 7D 89 03 A6 */ mtctr r12
/* 80065760 000615A0 4E 80 04 20 */ bctr
/* 80065764 000615A4 00 00 00 00 */ .4byte 0x00000000
/* 80065768 000615A8 00 00 00 00 */ .4byte 0x00000000
/* 8006576C 000615AC 00 00 00 00 */ .4byte 0x00000000
.global App_MEMfree
App_MEMfree:
/* 80065770 000615B0 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065774 000615B4 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065778 000615B8 81 84 06 F8 */ lwz r12, 0x6f8(r4)
/* 8006577C 000615BC 7D 89 03 A6 */ mtctr r12
/* 80065780 000615C0 4E 80 04 20 */ bctr
/* 80065784 000615C4 00 00 00 00 */ .4byte 0x00000000
/* 80065788 000615C8 00 00 00 00 */ .4byte 0x00000000
/* 8006578C 000615CC 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncFlushCallback
__wudSyncFlushCallback:
/* 80065790 000615D0 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065794 000615D4 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065798 000615D8 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8006579C 000615DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800657A0 000615E0 4D 82 00 20 */ beqlr
/* 800657A4 000615E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800657A8 000615E8 40 82 00 10 */ bne lbl_800657B8
/* 800657AC 000615EC 38 00 00 17 */ li r0, 0x17
/* 800657B0 000615F0 98 04 00 0C */ stb r0, 0xc(r4)
/* 800657B4 000615F4 4E 80 00 20 */ blr
.global lbl_800657B8
lbl_800657B8:
/* 800657B8 000615F8 38 00 00 FF */ li r0, 0xff
/* 800657BC 000615FC 98 04 00 0C */ stb r0, 0xc(r4)
/* 800657C0 00061600 4E 80 00 20 */ blr
/* 800657C4 00061604 00 00 00 00 */ .4byte 0x00000000
/* 800657C8 00061608 00 00 00 00 */ .4byte 0x00000000
/* 800657CC 0006160C 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncPrepareSearch
__wudSyncPrepareSearch:
/* 800657D0 00061610 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800657D4 00061614 7C 08 02 A6 */ mflr r0
/* 800657D8 00061618 90 01 00 34 */ stw r0, 0x34(r1)
/* 800657DC 0006161C 39 61 00 30 */ addi r11, r1, 0x30
/* 800657E0 00061620 4B FA 1B 5D */ bl lbl_8000733C
/* 800657E4 00061624 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 800657E8 00061628 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 800657EC 0006162C 4B FB C0 35 */ bl OSDisableInterrupts
/* 800657F0 00061630 38 00 00 00 */ li r0, 0x0
/* 800657F4 00061634 98 1F 06 EB */ stb r0, 0x6eb(r31)
/* 800657F8 00061638 98 1F 06 EA */ stb r0, 0x6ea(r31)
/* 800657FC 0006163C 4B FB C0 65 */ bl OSRestoreInterrupts
/* 80065800 00061640 38 60 00 00 */ li r3, 0x0
/* 80065804 00061644 38 80 00 00 */ li r4, 0x0
/* 80065808 00061648 48 01 53 39 */ bl BTA_DmSetVisibility
/* 8006580C 0006164C 88 1F 06 E8 */ lbz r0, 0x6e8(r31)
/* 80065810 00061650 7C 00 07 75 */ extsb. r0, r0
/* 80065814 00061654 40 82 00 0C */ bne lbl_80065820
/* 80065818 00061658 38 60 00 0E */ li r3, 0xe
/* 8006581C 0006165C 48 00 00 F4 */ b lbl_80065910
.global lbl_80065820
lbl_80065820:
/* 80065820 00061660 4B FB C0 01 */ bl OSDisableInterrupts
/* 80065824 00061664 8B DF 06 E5 */ lbz r30, 0x6e5(r31)
/* 80065828 00061668 4B FB C0 39 */ bl OSRestoreInterrupts
/* 8006582C 0006166C 28 1E 00 04 */ cmplwi r30, 0x4
/* 80065830 00061670 40 82 00 20 */ bne lbl_80065850
/* 80065834 00061674 4B FB BF ED */ bl OSDisableInterrupts
/* 80065838 00061678 8B DF 06 E4 */ lbz r30, 0x6e4(r31)
/* 8006583C 0006167C 4B FB C0 25 */ bl OSRestoreInterrupts
/* 80065840 00061680 28 1E 00 04 */ cmplwi r30, 0x4
/* 80065844 00061684 40 82 00 0C */ bne lbl_80065850
/* 80065848 00061688 38 60 00 0E */ li r3, 0xe
/* 8006584C 0006168C 48 00 00 C4 */ b lbl_80065910
.global lbl_80065850
lbl_80065850:
/* 80065850 00061690 88 1F 06 E7 */ lbz r0, 0x6e7(r31)
/* 80065854 00061694 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065858 00061698 41 82 00 98 */ beq lbl_800658F0
/* 8006585C 0006169C 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80065860 000616A0 3B 60 00 00 */ li r27, 0x0
/* 80065864 000616A4 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80065868 000616A8 3B 80 00 00 */ li r28, 0x0
.global lbl_8006586C
lbl_8006586C:
/* 8006586C 000616AC 4B FB BF B5 */ bl OSDisableInterrupts
/* 80065870 000616B0 28 1B 00 09 */ cmplwi r27, 0x9
/* 80065874 000616B4 41 81 00 10 */ bgt lbl_80065884
/* 80065878 000616B8 7C 9D E2 14 */ add r4, r29, r28
/* 8006587C 000616BC 3B C4 00 E4 */ addi r30, r4, 0xe4
/* 80065880 000616C0 48 00 00 14 */ b lbl_80065894
.global lbl_80065884
lbl_80065884:
/* 80065884 000616C4 38 1B FF F6 */ addi r0, r27, -0xa
/* 80065888 000616C8 1C 00 00 60 */ mulli r0, r0, 0x60
/* 8006588C 000616CC 7C 9D 02 14 */ add r4, r29, r0
/* 80065890 000616D0 3B C4 04 A4 */ addi r30, r4, 0x4a4
.global lbl_80065894
lbl_80065894:
/* 80065894 000616D4 4B FB BF CD */ bl OSRestoreInterrupts
/* 80065898 000616D8 88 1E 00 59 */ lbz r0, 0x59(r30)
/* 8006589C 000616DC 28 00 00 09 */ cmplwi r0, 0x9
/* 800658A0 000616E0 40 82 00 40 */ bne lbl_800658E0
/* 800658A4 000616E4 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 800658A8 000616E8 38 C0 00 00 */ li r6, 0x0
/* 800658AC 000616EC 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 800658B0 000616F0 38 00 00 01 */ li r0, 0x1
/* 800658B4 000616F4 98 C1 00 10 */ stb r6, 0x10(r1)
/* 800658B8 000616F8 38 9E 00 40 */ addi r4, r30, 0x40
/* 800658BC 000616FC 88 63 07 0A */ lbz r3, 0x70a(r3)
/* 800658C0 00061700 38 A1 00 08 */ addi r5, r1, 0x8
/* 800658C4 00061704 B0 C1 00 08 */ sth r6, 0x8(r1)
/* 800658C8 00061708 B0 C1 00 0A */ sth r6, 0xa(r1)
/* 800658CC 0006170C B0 01 00 0C */ sth r0, 0xc(r1)
/* 800658D0 00061710 B0 C1 00 0E */ sth r6, 0xe(r1)
/* 800658D4 00061714 48 01 DF 85 */ bl BTM_SetPowerMode
/* 800658D8 00061718 38 60 00 01 */ li r3, 0x1
/* 800658DC 0006171C 48 00 00 34 */ b lbl_80065910
.global lbl_800658E0
lbl_800658E0:
/* 800658E0 00061720 3B 7B 00 01 */ addi r27, r27, 0x1
/* 800658E4 00061724 3B 9C 00 60 */ addi r28, r28, 0x60
/* 800658E8 00061728 2C 1B 00 10 */ cmpwi r27, 0x10
/* 800658EC 0006172C 41 80 FF 80 */ blt lbl_8006586C
.global lbl_800658F0
lbl_800658F0:
/* 800658F0 00061730 88 7F 06 E8 */ lbz r3, 0x6e8(r31)
/* 800658F4 00061734 7C 60 07 75 */ extsb. r0, r3
/* 800658F8 00061738 40 81 00 0C */ ble lbl_80065904
/* 800658FC 0006173C 38 03 FF FF */ addi r0, r3, -0x1
/* 80065900 00061740 98 1F 06 E8 */ stb r0, 0x6e8(r31)
.global lbl_80065904
lbl_80065904:
/* 80065904 00061744 38 00 00 32 */ li r0, 0x32
/* 80065908 00061748 98 1F 07 49 */ stb r0, 0x749(r31)
/* 8006590C 0006174C 38 60 00 1D */ li r3, 0x1d
.global lbl_80065910
lbl_80065910:
/* 80065910 00061750 39 61 00 30 */ addi r11, r1, 0x30
/* 80065914 00061754 4B FA 1A 75 */ bl lbl_80007388
/* 80065918 00061758 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8006591C 0006175C 7C 08 03 A6 */ mtlr r0
/* 80065920 00061760 38 21 00 30 */ addi r1, r1, 0x30
/* 80065924 00061764 4E 80 00 20 */ blr
/* 80065928 00061768 00 00 00 00 */ .4byte 0x00000000
/* 8006592C 0006176C 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncTryConnect
__wudSyncTryConnect:
/* 80065930 00061770 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80065934 00061774 7C 08 02 A6 */ mflr r0
/* 80065938 00061778 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006593C 0006177C 39 61 00 30 */ addi r11, r1, 0x30
/* 80065940 00061780 4B FA 19 F5 */ bl lbl_80007334
/* 80065944 00061784 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80065948 00061788 3C 80 80 44 */ lis r4, "@6246"@ha
/* 8006594C 0006178C 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80065950 00061790 3B 20 00 FF */ li r25, 0xff
/* 80065954 00061794 38 7E 07 50 */ addi r3, r30, 0x750
/* 80065958 00061798 38 84 9D 94 */ addi r4, r4, "@6246"@l
/* 8006595C 0006179C 38 63 00 06 */ addi r3, r3, 0x6
/* 80065960 000617A0 38 A0 00 10 */ li r5, 0x10
/* 80065964 000617A4 4B FA 55 0D */ bl memcmp
/* 80065968 000617A8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006596C 000617AC 40 82 00 24 */ bne lbl_80065990
/* 80065970 000617B0 38 7E 08 58 */ addi r3, r30, 0x858
/* 80065974 000617B4 38 00 00 02 */ li r0, 0x2
/* 80065978 000617B8 98 03 00 59 */ stb r0, 0x59(r3)
/* 8006597C 000617BC 38 63 00 40 */ addi r3, r3, 0x40
/* 80065980 000617C0 38 80 00 00 */ li r4, 0x0
/* 80065984 000617C4 38 A0 00 12 */ li r5, 0x12
/* 80065988 000617C8 48 01 78 B1 */ bl BTA_HhOpen
/* 8006598C 000617CC 3B 20 00 06 */ li r25, 0x6
.global lbl_80065990
lbl_80065990:
/* 80065990 000617D0 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80065994 000617D4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065998 000617D8 41 82 00 D4 */ beq lbl_80065A6C
/* 8006599C 000617DC 38 7E 07 50 */ addi r3, r30, 0x750
/* 800659A0 000617E0 3F E0 80 44 */ lis r31, "@6247"@ha
/* 800659A4 000617E4 38 63 00 06 */ addi r3, r3, 0x6
/* 800659A8 000617E8 38 A0 00 10 */ li r5, 0x10
/* 800659AC 000617EC 38 9F 9D A8 */ addi r4, r31, "@6247"@l
/* 800659B0 000617F0 4B FA 54 C1 */ bl memcmp
/* 800659B4 000617F4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800659B8 000617F8 40 82 00 B4 */ bne lbl_80065A6C
/* 800659BC 000617FC 3B 60 00 00 */ li r27, 0x0
/* 800659C0 00061800 4B FB BE 61 */ bl OSDisableInterrupts
/* 800659C4 00061804 38 9E 00 00 */ addi r4, r30, 0x0
/* 800659C8 00061808 7C 7D 1B 78 */ mr r29, r3
/* 800659CC 0006180C 83 84 00 64 */ lwz r28, 0x64(r4)
/* 800659D0 00061810 48 00 00 28 */ b lbl_800659F8
.global lbl_800659D4
lbl_800659D4:
/* 800659D4 00061814 83 5C 00 00 */ lwz r26, 0x0(r28)
/* 800659D8 00061818 38 9F 9D A8 */ addi r4, r31, -0x6258
/* 800659DC 0006181C 38 A0 00 10 */ li r5, 0x10
/* 800659E0 00061820 7F 43 D3 78 */ mr r3, r26
/* 800659E4 00061824 4B FA 54 8D */ bl memcmp
/* 800659E8 00061828 2C 03 00 00 */ cmpwi r3, 0x0
/* 800659EC 0006182C 40 82 00 08 */ bne lbl_800659F4
/* 800659F0 00061830 7F 5B D3 78 */ mr r27, r26
.global lbl_800659F4
lbl_800659F4:
/* 800659F4 00061834 83 9C 00 08 */ lwz r28, 0x8(r28)
.global lbl_800659F8
lbl_800659F8:
/* 800659F8 00061838 2C 1C 00 00 */ cmpwi r28, 0x0
/* 800659FC 0006183C 40 82 FF D8 */ bne lbl_800659D4
/* 80065A00 00061840 7F A3 EB 78 */ mr r3, r29
/* 80065A04 00061844 4B FB BE 5D */ bl OSRestoreInterrupts
/* 80065A08 00061848 2C 1B 00 00 */ cmpwi r27, 0x0
/* 80065A0C 0006184C 41 82 00 40 */ beq lbl_80065A4C
/* 80065A10 00061850 88 1B 00 59 */ lbz r0, 0x59(r27)
/* 80065A14 00061854 28 00 00 01 */ cmplwi r0, 0x1
/* 80065A18 00061858 40 81 00 0C */ ble lbl_80065A24
/* 80065A1C 0006185C 7F 23 CB 78 */ mr r3, r25
/* 80065A20 00061860 48 00 00 50 */ b lbl_80065A70
.global lbl_80065A24
lbl_80065A24:
/* 80065A24 00061864 38 7E 07 50 */ addi r3, r30, 0x750
/* 80065A28 00061868 38 9B 00 40 */ addi r4, r27, 0x40
/* 80065A2C 0006186C 38 A0 00 06 */ li r5, 0x6
/* 80065A30 00061870 4B FA 54 41 */ bl memcmp
/* 80065A34 00061874 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065A38 00061878 41 82 00 14 */ beq lbl_80065A4C
/* 80065A3C 0006187C 7F 63 DB 78 */ mr r3, r27
/* 80065A40 00061880 48 00 41 F1 */ bl WUDiMoveBottomStdDevInfoPtr
/* 80065A44 00061884 38 7B 00 40 */ addi r3, r27, 0x40
/* 80065A48 00061888 48 00 3B 29 */ bl WUDiRemoveDevice
.global lbl_80065A4C
lbl_80065A4C:
/* 80065A4C 0006188C 38 7E 08 58 */ addi r3, r30, 0x858
/* 80065A50 00061890 38 00 00 02 */ li r0, 0x2
/* 80065A54 00061894 98 03 00 59 */ stb r0, 0x59(r3)
/* 80065A58 00061898 38 63 00 40 */ addi r3, r3, 0x40
/* 80065A5C 0006189C 38 80 00 00 */ li r4, 0x0
/* 80065A60 000618A0 38 A0 00 12 */ li r5, 0x12
/* 80065A64 000618A4 48 01 77 D5 */ bl BTA_HhOpen
/* 80065A68 000618A8 3B 20 00 06 */ li r25, 0x6
.global lbl_80065A6C
lbl_80065A6C:
/* 80065A6C 000618AC 7F 23 CB 78 */ mr r3, r25
.global lbl_80065A70
lbl_80065A70:
/* 80065A70 000618B0 39 61 00 30 */ addi r11, r1, 0x30
/* 80065A74 000618B4 4B FA 19 0D */ bl lbl_80007380
/* 80065A78 000618B8 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80065A7C 000618BC 7C 08 03 A6 */ mtlr r0
/* 80065A80 000618C0 38 21 00 30 */ addi r1, r1, 0x30
/* 80065A84 000618C4 4E 80 00 20 */ blr
/* 80065A88 000618C8 00 00 00 00 */ .4byte 0x00000000
/* 80065A8C 000618CC 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncVirginStandard
__wudSyncVirginStandard:
/* 80065A90 000618D0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80065A94 000618D4 7C 08 02 A6 */ mflr r0
/* 80065A98 000618D8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80065A9C 000618DC 39 61 00 30 */ addi r11, r1, 0x30
/* 80065AA0 000618E0 4B FA 18 99 */ bl lbl_80007338
/* 80065AA4 000618E4 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80065AA8 000618E8 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80065AAC 000618EC 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80065AB0 000618F0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065AB4 000618F4 3B 5F 00 00 */ addi r26, r31, 0x0
/* 80065AB8 000618F8 41 82 00 A4 */ beq lbl_80065B5C
/* 80065ABC 000618FC 3C 80 80 44 */ lis r4, "@6246"@ha
/* 80065AC0 00061900 38 7F 08 58 */ addi r3, r31, 0x858
/* 80065AC4 00061904 38 84 9D 94 */ addi r4, r4, "@6246"@l
/* 80065AC8 00061908 38 A0 00 10 */ li r5, 0x10
/* 80065ACC 0006190C 4B FA 53 A5 */ bl memcmp
/* 80065AD0 00061910 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065AD4 00061914 40 82 00 88 */ bne lbl_80065B5C
/* 80065AD8 00061918 3B 60 00 00 */ li r27, 0x0
/* 80065ADC 0006191C 4B FB BD 45 */ bl OSDisableInterrupts
/* 80065AE0 00061920 83 9A 00 64 */ lwz r28, 0x64(r26)
/* 80065AE4 00061924 7C 7E 1B 78 */ mr r30, r3
/* 80065AE8 00061928 3F A0 80 44 */ lis r29, "@6247"@ha
/* 80065AEC 0006192C 48 00 00 24 */ b lbl_80065B10
.global lbl_80065AF0
lbl_80065AF0:
/* 80065AF0 00061930 80 7C 00 00 */ lwz r3, 0x0(r28)
/* 80065AF4 00061934 38 9D 9D A8 */ addi r4, r29, "@6247"@l
/* 80065AF8 00061938 38 A0 00 10 */ li r5, 0x10
/* 80065AFC 0006193C 4B FA 53 75 */ bl memcmp
/* 80065B00 00061940 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065B04 00061944 40 82 00 08 */ bne lbl_80065B0C
/* 80065B08 00061948 83 7C 00 00 */ lwz r27, 0x0(r28)
.global lbl_80065B0C
lbl_80065B0C:
/* 80065B0C 0006194C 83 9C 00 08 */ lwz r28, 0x8(r28)
.global lbl_80065B10
lbl_80065B10:
/* 80065B10 00061950 2C 1C 00 00 */ cmpwi r28, 0x0
/* 80065B14 00061954 40 82 FF DC */ bne lbl_80065AF0
/* 80065B18 00061958 7F C3 F3 78 */ mr r3, r30
/* 80065B1C 0006195C 4B FB BD 45 */ bl OSRestoreInterrupts
/* 80065B20 00061960 2C 1B 00 00 */ cmpwi r27, 0x0
/* 80065B24 00061964 41 82 00 38 */ beq lbl_80065B5C
/* 80065B28 00061968 3B 7F 00 00 */ addi r27, r31, 0x0
/* 80065B2C 0006196C 4B FB BC F5 */ bl OSDisableInterrupts
/* 80065B30 00061970 8B 7B 00 12 */ lbz r27, 0x12(r27)
/* 80065B34 00061974 4B FB BD 2D */ bl OSRestoreInterrupts
/* 80065B38 00061978 28 1B 00 0A */ cmplwi r27, 0xa
/* 80065B3C 0006197C 40 82 00 20 */ bne lbl_80065B5C
/* 80065B40 00061980 80 7A 00 68 */ lwz r3, 0x68(r26)
/* 80065B44 00061984 80 63 00 04 */ lwz r3, 0x4(r3)
/* 80065B48 00061988 83 C3 00 00 */ lwz r30, 0x0(r3)
/* 80065B4C 0006198C 7F C3 F3 78 */ mr r3, r30
/* 80065B50 00061990 48 00 40 E1 */ bl WUDiMoveBottomStdDevInfoPtr
/* 80065B54 00061994 38 7E 00 40 */ addi r3, r30, 0x40
/* 80065B58 00061998 48 00 3A 19 */ bl WUDiRemoveDevice
.global lbl_80065B5C
lbl_80065B5C:
/* 80065B5C 0006199C 3B 9F 00 00 */ addi r28, r31, 0x0
/* 80065B60 000619A0 4B FB BC C1 */ bl OSDisableInterrupts
/* 80065B64 000619A4 8B 7C 00 12 */ lbz r27, 0x12(r28)
/* 80065B68 000619A8 4B FB BC F9 */ bl OSRestoreInterrupts
/* 80065B6C 000619AC 28 1B 00 0A */ cmplwi r27, 0xa
/* 80065B70 000619B0 40 82 00 14 */ bne lbl_80065B84
/* 80065B74 000619B4 80 7C 00 68 */ lwz r3, 0x68(r28)
/* 80065B78 000619B8 80 63 00 00 */ lwz r3, 0x0(r3)
/* 80065B7C 000619BC 38 63 00 40 */ addi r3, r3, 0x40
/* 80065B80 000619C0 48 00 39 F1 */ bl WUDiRemoveDevice
.global lbl_80065B84
lbl_80065B84:
/* 80065B84 000619C4 3B 7F 00 00 */ addi r27, r31, 0x0
/* 80065B88 000619C8 4B FB BC 99 */ bl OSDisableInterrupts
/* 80065B8C 000619CC 88 1B 06 E9 */ lbz r0, 0x6e9(r27)
/* 80065B90 000619D0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065B94 000619D4 40 82 00 D0 */ bne lbl_80065C64
/* 80065B98 000619D8 88 1B 01 3D */ lbz r0, 0x13d(r27)
/* 80065B9C 000619DC 3B C0 00 00 */ li r30, 0x0
/* 80065BA0 000619E0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065BA4 000619E4 40 82 00 0C */ bne lbl_80065BB0
/* 80065BA8 000619E8 3B DB 00 E4 */ addi r30, r27, 0xe4
/* 80065BAC 000619EC 48 00 00 C0 */ b lbl_80065C6C
.global lbl_80065BB0
lbl_80065BB0:
/* 80065BB0 000619F0 88 1B 01 9D */ lbz r0, 0x19d(r27)
/* 80065BB4 000619F4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065BB8 000619F8 40 82 00 0C */ bne lbl_80065BC4
/* 80065BBC 000619FC 3B DB 01 44 */ addi r30, r27, 0x144
/* 80065BC0 00061A00 48 00 00 AC */ b lbl_80065C6C
.global lbl_80065BC4
lbl_80065BC4:
/* 80065BC4 00061A04 88 1B 01 FD */ lbz r0, 0x1fd(r27)
/* 80065BC8 00061A08 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065BCC 00061A0C 40 82 00 0C */ bne lbl_80065BD8
/* 80065BD0 00061A10 3B DB 01 A4 */ addi r30, r27, 0x1a4
/* 80065BD4 00061A14 48 00 00 98 */ b lbl_80065C6C
.global lbl_80065BD8
lbl_80065BD8:
/* 80065BD8 00061A18 88 1B 02 5D */ lbz r0, 0x25d(r27)
/* 80065BDC 00061A1C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065BE0 00061A20 40 82 00 0C */ bne lbl_80065BEC
/* 80065BE4 00061A24 3B DB 02 04 */ addi r30, r27, 0x204
/* 80065BE8 00061A28 48 00 00 84 */ b lbl_80065C6C
.global lbl_80065BEC
lbl_80065BEC:
/* 80065BEC 00061A2C 88 1B 02 BD */ lbz r0, 0x2bd(r27)
/* 80065BF0 00061A30 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065BF4 00061A34 40 82 00 0C */ bne lbl_80065C00
/* 80065BF8 00061A38 3B DB 02 64 */ addi r30, r27, 0x264
/* 80065BFC 00061A3C 48 00 00 70 */ b lbl_80065C6C
.global lbl_80065C00
lbl_80065C00:
/* 80065C00 00061A40 88 1B 03 1D */ lbz r0, 0x31d(r27)
/* 80065C04 00061A44 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C08 00061A48 40 82 00 0C */ bne lbl_80065C14
/* 80065C0C 00061A4C 3B DB 02 C4 */ addi r30, r27, 0x2c4
/* 80065C10 00061A50 48 00 00 5C */ b lbl_80065C6C
.global lbl_80065C14
lbl_80065C14:
/* 80065C14 00061A54 88 1B 03 7D */ lbz r0, 0x37d(r27)
/* 80065C18 00061A58 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C1C 00061A5C 40 82 00 0C */ bne lbl_80065C28
/* 80065C20 00061A60 3B DB 03 24 */ addi r30, r27, 0x324
/* 80065C24 00061A64 48 00 00 48 */ b lbl_80065C6C
.global lbl_80065C28
lbl_80065C28:
/* 80065C28 00061A68 88 1B 03 DD */ lbz r0, 0x3dd(r27)
/* 80065C2C 00061A6C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C30 00061A70 40 82 00 0C */ bne lbl_80065C3C
/* 80065C34 00061A74 3B DB 03 84 */ addi r30, r27, 0x384
/* 80065C38 00061A78 48 00 00 34 */ b lbl_80065C6C
.global lbl_80065C3C
lbl_80065C3C:
/* 80065C3C 00061A7C 88 1B 04 3D */ lbz r0, 0x43d(r27)
/* 80065C40 00061A80 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C44 00061A84 40 82 00 0C */ bne lbl_80065C50
/* 80065C48 00061A88 3B DB 03 E4 */ addi r30, r27, 0x3e4
/* 80065C4C 00061A8C 48 00 00 20 */ b lbl_80065C6C
.global lbl_80065C50
lbl_80065C50:
/* 80065C50 00061A90 88 1B 04 9D */ lbz r0, 0x49d(r27)
/* 80065C54 00061A94 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C58 00061A98 40 82 00 14 */ bne lbl_80065C6C
/* 80065C5C 00061A9C 3B DB 04 44 */ addi r30, r27, 0x444
/* 80065C60 00061AA0 48 00 00 0C */ b lbl_80065C6C
.global lbl_80065C64
lbl_80065C64:
/* 80065C64 00061AA4 80 9B 00 18 */ lwz r4, 0x18(r27)
/* 80065C68 00061AA8 83 C4 00 00 */ lwz r30, 0x0(r4)
.global lbl_80065C6C
lbl_80065C6C:
/* 80065C6C 00061AAC 4B FB BB F5 */ bl OSRestoreInterrupts
/* 80065C70 00061AB0 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80065C74 00061AB4 40 82 00 0C */ bne lbl_80065C80
/* 80065C78 00061AB8 38 60 00 FF */ li r3, 0xff
/* 80065C7C 00061ABC 48 00 01 E8 */ b lbl_80065E64
.global lbl_80065C80
lbl_80065C80:
/* 80065C80 00061AC0 88 1E 00 59 */ lbz r0, 0x59(r30)
/* 80065C84 00061AC4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065C88 00061AC8 41 82 00 0C */ beq lbl_80065C94
/* 80065C8C 00061ACC 38 60 00 FF */ li r3, 0xff
/* 80065C90 00061AD0 48 00 01 D4 */ b lbl_80065E64
.global lbl_80065C94
lbl_80065C94:
/* 80065C94 00061AD4 7F C3 F3 78 */ mr r3, r30
/* 80065C98 00061AD8 38 9F 08 58 */ addi r4, r31, 0x858
/* 80065C9C 00061ADC 38 A0 00 60 */ li r5, 0x60
/* 80065CA0 00061AE0 4B F9 E3 61 */ bl memcpy
/* 80065CA4 00061AE4 38 7E 00 40 */ addi r3, r30, 0x40
/* 80065CA8 00061AE8 48 00 37 99 */ bl WUDiRegisterDevice
/* 80065CAC 00061AEC 7F C3 F3 78 */ mr r3, r30
/* 80065CB0 00061AF0 48 00 3E 61 */ bl WUDiMoveTopStdDevInfoPtr
/* 80065CB4 00061AF4 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80065CB8 00061AF8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065CBC 00061AFC 41 82 01 90 */ beq lbl_80065E4C
/* 80065CC0 00061B00 3C 80 80 44 */ lis r4, "@6247"@ha
/* 80065CC4 00061B04 7F C3 F3 78 */ mr r3, r30
/* 80065CC8 00061B08 38 84 9D A8 */ addi r4, r4, "@6247"@l
/* 80065CCC 00061B0C 38 A0 00 10 */ li r5, 0x10
/* 80065CD0 00061B10 4B FA 51 A1 */ bl memcmp
/* 80065CD4 00061B14 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065CD8 00061B18 40 82 01 74 */ bne lbl_80065E4C
/* 80065CDC 00061B1C 7F C3 F3 78 */ mr r3, r30
/* 80065CE0 00061B20 48 00 42 01 */ bl WUDiMoveTopOfUnusedStdDevice
/* 80065CE4 00061B24 3B BF 08 B8 */ addi r29, r31, 0x8b8
/* 80065CE8 00061B28 38 80 00 00 */ li r4, 0x0
/* 80065CEC 00061B2C 38 7D 03 D5 */ addi r3, r29, 0x3d5
/* 80065CF0 00061B30 38 A0 00 46 */ li r5, 0x46
/* 80065CF4 00061B34 4B F9 E6 5D */ bl memset
/* 80065CF8 00061B38 38 7D 03 D5 */ addi r3, r29, 0x3d5
/* 80065CFC 00061B3C 38 9E 00 40 */ addi r4, r30, 0x40
/* 80065D00 00061B40 38 A0 00 06 */ li r5, 0x6
/* 80065D04 00061B44 4B F9 E2 FD */ bl memcpy
/* 80065D08 00061B48 7F C4 F3 78 */ mr r4, r30
/* 80065D0C 00061B4C 38 7D 03 DB */ addi r3, r29, 0x3db
/* 80065D10 00061B50 38 A0 00 40 */ li r5, 0x40
/* 80065D14 00061B54 4B F9 E2 ED */ bl memcpy
/* 80065D18 00061B58 38 7D 03 EF */ addi r3, r29, 0x3ef
/* 80065D1C 00061B5C 38 9E 00 46 */ addi r4, r30, 0x46
/* 80065D20 00061B60 38 A0 00 10 */ li r5, 0x10
/* 80065D24 00061B64 4B F9 E2 DD */ bl memcpy
/* 80065D28 00061B68 34 9E 00 40 */ addic. r4, r30, 0x40
/* 80065D2C 00061B6C 41 82 00 10 */ beq lbl_80065D3C
/* 80065D30 00061B70 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80065D34 00061B74 38 A0 00 06 */ li r5, 0x6
/* 80065D38 00061B78 4B F9 E2 C9 */ bl memcpy
.global lbl_80065D3C
lbl_80065D3C:
/* 80065D3C 00061B7C 34 9E 00 46 */ addic. r4, r30, 0x46
/* 80065D40 00061B80 41 82 00 14 */ beq lbl_80065D54
/* 80065D44 00061B84 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80065D48 00061B88 38 A0 00 10 */ li r5, 0x10
/* 80065D4C 00061B8C 38 63 00 06 */ addi r3, r3, 0x6
/* 80065D50 00061B90 4B F9 E2 B1 */ bl memcpy
.global lbl_80065D54
lbl_80065D54:
/* 80065D54 00061B94 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80065D58 00061B98 41 82 00 18 */ beq lbl_80065D70
/* 80065D5C 00061B9C 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80065D60 00061BA0 7F C4 F3 78 */ mr r4, r30
/* 80065D64 00061BA4 38 63 00 16 */ addi r3, r3, 0x16
/* 80065D68 00061BA8 38 A0 00 40 */ li r5, 0x40
/* 80065D6C 00061BAC 4B F9 E2 95 */ bl memcpy
.global lbl_80065D70
lbl_80065D70:
/* 80065D70 00061BB0 80 6D EA 24 */ lwz r3, _wudNandWbcCrc@sda21(r13)
/* 80065D74 00061BB4 38 00 00 08 */ li r0, 0x8
/* 80065D78 00061BB8 38 9F 0D 20 */ addi r4, r31, 0xd20
/* 80065D7C 00061BBC 54 65 84 3E */ srwi r5, r3, 16
/* 80065D80 00061BC0 54 66 04 3E */ clrlwi r6, r3, 16
/* 80065D84 00061BC4 7C 09 03 A6 */ mtctr r0
.global lbl_80065D88
lbl_80065D88:
/* 80065D88 00061BC8 A0 64 00 00 */ lhz r3, 0x0(r4)
/* 80065D8C 00061BCC 7C 60 18 F8 */ nor r0, r3, r3
/* 80065D90 00061BD0 7C A5 1A 14 */ add r5, r5, r3
/* 80065D94 00061BD4 A0 64 00 02 */ lhz r3, 0x2(r4)
/* 80065D98 00061BD8 7C 06 02 14 */ add r0, r6, r0
/* 80065D9C 00061BDC 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065DA0 00061BE0 7C 60 18 F8 */ nor r0, r3, r3
/* 80065DA4 00061BE4 7C A5 1A 14 */ add r5, r5, r3
/* 80065DA8 00061BE8 A0 64 00 04 */ lhz r3, 0x4(r4)
/* 80065DAC 00061BEC 7C 06 02 14 */ add r0, r6, r0
/* 80065DB0 00061BF0 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065DB4 00061BF4 7C 60 18 F8 */ nor r0, r3, r3
/* 80065DB8 00061BF8 7C A5 1A 14 */ add r5, r5, r3
/* 80065DBC 00061BFC A0 64 00 06 */ lhz r3, 0x6(r4)
/* 80065DC0 00061C00 7C 06 02 14 */ add r0, r6, r0
/* 80065DC4 00061C04 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065DC8 00061C08 7C 60 18 F8 */ nor r0, r3, r3
/* 80065DCC 00061C0C 7C A5 1A 14 */ add r5, r5, r3
/* 80065DD0 00061C10 A0 64 00 08 */ lhz r3, 0x8(r4)
/* 80065DD4 00061C14 7C 06 02 14 */ add r0, r6, r0
/* 80065DD8 00061C18 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065DDC 00061C1C 7C 60 18 F8 */ nor r0, r3, r3
/* 80065DE0 00061C20 7C A5 1A 14 */ add r5, r5, r3
/* 80065DE4 00061C24 A0 64 00 0A */ lhz r3, 0xa(r4)
/* 80065DE8 00061C28 7C 06 02 14 */ add r0, r6, r0
/* 80065DEC 00061C2C 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065DF0 00061C30 7C 60 18 F8 */ nor r0, r3, r3
/* 80065DF4 00061C34 7C A5 1A 14 */ add r5, r5, r3
/* 80065DF8 00061C38 A0 64 00 0C */ lhz r3, 0xc(r4)
/* 80065DFC 00061C3C 7C 06 02 14 */ add r0, r6, r0
/* 80065E00 00061C40 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065E04 00061C44 7C 60 18 F8 */ nor r0, r3, r3
/* 80065E08 00061C48 7C A5 1A 14 */ add r5, r5, r3
/* 80065E0C 00061C4C A0 64 00 0E */ lhz r3, 0xe(r4)
/* 80065E10 00061C50 7C 06 02 14 */ add r0, r6, r0
/* 80065E14 00061C54 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065E18 00061C58 38 84 00 10 */ addi r4, r4, 0x10
/* 80065E1C 00061C5C 7C 60 18 F8 */ nor r0, r3, r3
/* 80065E20 00061C60 7C A5 1A 14 */ add r5, r5, r3
/* 80065E24 00061C64 7C 06 02 14 */ add r0, r6, r0
/* 80065E28 00061C68 54 06 04 3E */ clrlwi r6, r0, 16
/* 80065E2C 00061C6C 42 00 FF 5C */ bdnz lbl_80065D88
/* 80065E30 00061C70 50 A6 80 1E */ rlwimi r6, r5, 16, 0, 15
/* 80065E34 00061C74 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80065E38 00061C78 90 C1 00 08 */ stw r6, 0x8(r1)
/* 80065E3C 00061C7C 38 63 00 80 */ addi r3, r3, 0x80
/* 80065E40 00061C80 38 81 00 08 */ addi r4, r1, 0x8
/* 80065E44 00061C84 38 A0 00 04 */ li r5, 0x4
/* 80065E48 00061C88 4B F9 E1 B9 */ bl memcpy
.global lbl_80065E4C
lbl_80065E4C:
/* 80065E4C 00061C8C 88 1E 00 56 */ lbz r0, 0x56(r30)
/* 80065E50 00061C90 38 9F 0D C0 */ addi r4, r31, 0xdc0
/* 80065E54 00061C94 38 BE 00 40 */ addi r5, r30, 0x40
/* 80065E58 00061C98 38 60 00 07 */ li r3, 0x7
/* 80065E5C 00061C9C 54 00 10 3A */ slwi r0, r0, 2
/* 80065E60 00061CA0 7C A4 01 2E */ stwx r5, r4, r0
.global lbl_80065E64
lbl_80065E64:
/* 80065E64 00061CA4 39 61 00 30 */ addi r11, r1, 0x30
/* 80065E68 00061CA8 4B FA 15 1D */ bl lbl_80007384
/* 80065E6C 00061CAC 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80065E70 00061CB0 7C 08 03 A6 */ mtlr r0
/* 80065E74 00061CB4 38 21 00 30 */ addi r1, r1, 0x30
/* 80065E78 00061CB8 4E 80 00 20 */ blr
/* 80065E7C 00061CBC 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncStoredDevInfoToNand
__wudSyncStoredDevInfoToNand:
/* 80065E80 00061CC0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80065E84 00061CC4 7C 08 02 A6 */ mflr r0
/* 80065E88 00061CC8 90 01 00 24 */ stw r0, 0x24(r1)
/* 80065E8C 00061CCC 39 61 00 20 */ addi r11, r1, 0x20
/* 80065E90 00061CD0 4B FA 14 AD */ bl lbl_8000733C
/* 80065E94 00061CD4 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80065E98 00061CD8 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80065E9C 00061CDC 4B FE 56 35 */ bl SCCheckStatus
/* 80065EA0 00061CE0 38 03 FF FF */ addi r0, r3, -0x1
/* 80065EA4 00061CE4 7C 00 00 34 */ cntlzw r0, r0
/* 80065EA8 00061CE8 54 00 D9 7F */ srwi. r0, r0, 5
/* 80065EAC 00061CEC 41 82 00 0C */ beq lbl_80065EB8
/* 80065EB0 00061CF0 38 60 00 16 */ li r3, 0x16
/* 80065EB4 00061CF4 48 00 00 D4 */ b lbl_80065F88
.global lbl_80065EB8
lbl_80065EB8:
/* 80065EB8 00061CF8 3B DD 08 B8 */ addi r30, r29, 0x8b8
/* 80065EBC 00061CFC 38 80 00 00 */ li r4, 0x0
/* 80065EC0 00061D00 38 7E 00 01 */ addi r3, r30, 0x1
/* 80065EC4 00061D04 38 A0 02 BC */ li r5, 0x2bc
/* 80065EC8 00061D08 4B F9 E4 89 */ bl memset
/* 80065ECC 00061D0C 4B FB B9 55 */ bl OSDisableInterrupts
/* 80065ED0 00061D10 3B FD 00 00 */ addi r31, r29, 0x0
/* 80065ED4 00061D14 8B 9F 00 12 */ lbz r28, 0x12(r31)
/* 80065ED8 00061D18 4B FB B9 89 */ bl OSRestoreInterrupts
/* 80065EDC 00061D1C 9B 9D 08 B8 */ stb r28, 0x8b8(r29)
/* 80065EE0 00061D20 3B 60 00 00 */ li r27, 0x0
/* 80065EE4 00061D24 83 FF 00 64 */ lwz r31, 0x64(r31)
/* 80065EE8 00061D28 48 00 00 40 */ b lbl_80065F28
.global lbl_80065EEC
lbl_80065EEC:
/* 80065EEC 00061D2C 57 60 06 3E */ clrlwi r0, r27, 24
/* 80065EF0 00061D30 80 7F 00 00 */ lwz r3, 0x0(r31)
/* 80065EF4 00061D34 1F 80 00 46 */ mulli r28, r0, 0x46
/* 80065EF8 00061D38 38 A0 00 06 */ li r5, 0x6
/* 80065EFC 00061D3C 38 83 00 40 */ addi r4, r3, 0x40
/* 80065F00 00061D40 7C 7E E2 14 */ add r3, r30, r28
/* 80065F04 00061D44 38 63 00 01 */ addi r3, r3, 0x1
/* 80065F08 00061D48 4B F9 E0 F9 */ bl memcpy
/* 80065F0C 00061D4C 7C 7E E2 14 */ add r3, r30, r28
/* 80065F10 00061D50 80 9F 00 00 */ lwz r4, 0x0(r31)
/* 80065F14 00061D54 38 63 00 07 */ addi r3, r3, 0x7
/* 80065F18 00061D58 38 A0 00 40 */ li r5, 0x40
/* 80065F1C 00061D5C 4B F9 E0 E5 */ bl memcpy
/* 80065F20 00061D60 83 FF 00 08 */ lwz r31, 0x8(r31)
/* 80065F24 00061D64 3B 7B 00 01 */ addi r27, r27, 0x1
.global lbl_80065F28
lbl_80065F28:
/* 80065F28 00061D68 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80065F2C 00061D6C 40 82 FF C0 */ bne lbl_80065EEC
/* 80065F30 00061D70 38 7D 08 B8 */ addi r3, r29, 0x8b8
/* 80065F34 00061D74 4B FE 70 DD */ bl SCSetBtDeviceInfoArray
/* 80065F38 00061D78 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065F3C 00061D7C 40 82 00 0C */ bne lbl_80065F48
/* 80065F40 00061D80 38 60 00 16 */ li r3, 0x16
/* 80065F44 00061D84 48 00 00 44 */ b lbl_80065F88
.global lbl_80065F48
lbl_80065F48:
/* 80065F48 00061D88 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80065F4C 00061D8C 3B 80 00 19 */ li r28, 0x19
/* 80065F50 00061D90 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065F54 00061D94 41 82 00 30 */ beq lbl_80065F84
/* 80065F58 00061D98 3C 80 80 44 */ lis r4, "@6247"@ha
/* 80065F5C 00061D9C 38 7D 08 58 */ addi r3, r29, 0x858
/* 80065F60 00061DA0 38 84 9D A8 */ addi r4, r4, "@6247"@l
/* 80065F64 00061DA4 38 A0 00 10 */ li r5, 0x10
/* 80065F68 00061DA8 4B FA 4F 09 */ bl memcmp
/* 80065F6C 00061DAC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065F70 00061DB0 40 82 00 14 */ bne lbl_80065F84
/* 80065F74 00061DB4 4B FE 74 7D */ bl SCGetProductGameRegion
/* 80065F78 00061DB8 7C 60 07 75 */ extsb. r0, r3
/* 80065F7C 00061DBC 40 82 00 08 */ bne lbl_80065F84
/* 80065F80 00061DC0 3B 80 00 64 */ li r28, 0x64
.global lbl_80065F84
lbl_80065F84:
/* 80065F84 00061DC4 7F 83 E3 78 */ mr r3, r28
.global lbl_80065F88
lbl_80065F88:
/* 80065F88 00061DC8 39 61 00 20 */ addi r11, r1, 0x20
/* 80065F8C 00061DCC 4B FA 13 FD */ bl lbl_80007388
/* 80065F90 00061DD0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80065F94 00061DD4 7C 08 03 A6 */ mtlr r0
/* 80065F98 00061DD8 38 21 00 20 */ addi r1, r1, 0x20
/* 80065F9C 00061DDC 4E 80 00 20 */ blr
.global __wudOpenWiiFitCallback
__wudOpenWiiFitCallback:
/* 80065FA0 00061DE0 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065FA4 00061DE4 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065FA8 00061DE8 88 04 00 0C */ lbz r0, 0xc(r4)
/* 80065FAC 00061DEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065FB0 00061DF0 41 82 00 20 */ beq lbl_80065FD0
/* 80065FB4 00061DF4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065FB8 00061DF8 38 00 00 19 */ li r0, 0x19
/* 80065FBC 00061DFC 40 82 00 08 */ bne lbl_80065FC4
/* 80065FC0 00061E00 38 00 00 65 */ li r0, 0x65
.global lbl_80065FC4
lbl_80065FC4:
/* 80065FC4 00061E04 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065FC8 00061E08 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065FCC 00061E0C 98 04 00 0C */ stb r0, 0xc(r4)
.global lbl_80065FD0
lbl_80065FD0:
/* 80065FD0 00061E10 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80065FD4 00061E14 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80065FD8 00061E18 88 04 00 0D */ lbz r0, 0xd(r4)
/* 80065FDC 00061E1C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80065FE0 00061E20 41 82 00 20 */ beq lbl_80066000
/* 80065FE4 00061E24 2C 03 00 00 */ cmpwi r3, 0x0
/* 80065FE8 00061E28 38 00 00 05 */ li r0, 0x5
/* 80065FEC 00061E2C 40 82 00 08 */ bne lbl_80065FF4
/* 80065FF0 00061E30 38 00 00 65 */ li r0, 0x65
.global lbl_80065FF4
lbl_80065FF4:
/* 80065FF4 00061E34 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80065FF8 00061E38 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 80065FFC 00061E3C 98 03 00 0D */ stb r0, 0xd(r3)
.global lbl_80066000
lbl_80066000:
/* 80066000 00061E40 38 00 00 00 */ li r0, 0x0
/* 80066004 00061E44 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066008 00061E48 4E 80 00 20 */ blr
/* 8006600C 00061E4C 00 00 00 00 */ .4byte 0x00000000
.global __wudSeekWiiFitCallback
__wudSeekWiiFitCallback:
/* 80066010 00061E50 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80066014 00061E54 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80066018 00061E58 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8006601C 00061E5C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066020 00061E60 41 82 00 24 */ beq lbl_80066044
/* 80066024 00061E64 3C 03 FF FC */ addis r0, r3, 0xfffc
/* 80066028 00061E68 38 A0 00 19 */ li r5, 0x19
/* 8006602C 00061E6C 28 00 AF 18 */ cmplwi r0, 0xaf18
/* 80066030 00061E70 40 82 00 08 */ bne lbl_80066038
/* 80066034 00061E74 38 A0 00 66 */ li r5, 0x66
.global lbl_80066038
lbl_80066038:
/* 80066038 00061E78 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 8006603C 00061E7C 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80066040 00061E80 98 A4 00 0C */ stb r5, 0xc(r4)
.global lbl_80066044
lbl_80066044:
/* 80066044 00061E84 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80066048 00061E88 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 8006604C 00061E8C 88 04 00 0D */ lbz r0, 0xd(r4)
/* 80066050 00061E90 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066054 00061E94 41 82 00 24 */ beq lbl_80066078
/* 80066058 00061E98 3C 03 FF FC */ addis r0, r3, 0xfffc
/* 8006605C 00061E9C 38 80 00 05 */ li r4, 0x5
/* 80066060 00061EA0 28 00 AF 18 */ cmplwi r0, 0xaf18
/* 80066064 00061EA4 40 82 00 08 */ bne lbl_8006606C
/* 80066068 00061EA8 38 80 00 66 */ li r4, 0x66
.global lbl_8006606C
lbl_8006606C:
/* 8006606C 00061EAC 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80066070 00061EB0 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 80066074 00061EB4 98 83 00 0D */ stb r4, 0xd(r3)
.global lbl_80066078
lbl_80066078:
/* 80066078 00061EB8 38 00 00 00 */ li r0, 0x0
/* 8006607C 00061EBC 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066080 00061EC0 4E 80 00 20 */ blr
/* 80066084 00061EC4 00 00 00 00 */ .4byte 0x00000000
/* 80066088 00061EC8 00 00 00 00 */ .4byte 0x00000000
/* 8006608C 00061ECC 00 00 00 00 */ .4byte 0x00000000
.global __wudUpdateWiiFitCallback
__wudUpdateWiiFitCallback:
/* 80066090 00061ED0 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80066094 00061ED4 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80066098 00061ED8 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8006609C 00061EDC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800660A0 00061EE0 41 82 00 20 */ beq lbl_800660C0
/* 800660A4 00061EE4 2C 03 00 84 */ cmpwi r3, 0x84
/* 800660A8 00061EE8 38 00 00 19 */ li r0, 0x19
/* 800660AC 00061EEC 40 82 00 08 */ bne lbl_800660B4
/* 800660B0 00061EF0 38 00 00 67 */ li r0, 0x67
.global lbl_800660B4
lbl_800660B4:
/* 800660B4 00061EF4 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 800660B8 00061EF8 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 800660BC 00061EFC 98 04 00 0C */ stb r0, 0xc(r4)
.global lbl_800660C0
lbl_800660C0:
/* 800660C0 00061F00 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 800660C4 00061F04 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 800660C8 00061F08 88 04 00 0D */ lbz r0, 0xd(r4)
/* 800660CC 00061F0C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800660D0 00061F10 41 82 00 20 */ beq lbl_800660F0
/* 800660D4 00061F14 2C 03 00 84 */ cmpwi r3, 0x84
/* 800660D8 00061F18 38 00 00 05 */ li r0, 0x5
/* 800660DC 00061F1C 40 82 00 08 */ bne lbl_800660E4
/* 800660E0 00061F20 38 00 00 67 */ li r0, 0x67
.global lbl_800660E4
lbl_800660E4:
/* 800660E4 00061F24 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 800660E8 00061F28 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 800660EC 00061F2C 98 03 00 0D */ stb r0, 0xd(r3)
.global lbl_800660F0
lbl_800660F0:
/* 800660F0 00061F30 38 00 00 00 */ li r0, 0x0
/* 800660F4 00061F34 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 800660F8 00061F38 4E 80 00 20 */ blr
/* 800660FC 00061F3C 00 00 00 00 */ .4byte 0x00000000
.global __wudCloseWiiFitCallback
__wudCloseWiiFitCallback:
/* 80066100 00061F40 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80066104 00061F44 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 80066108 00061F48 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8006610C 00061F4C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066110 00061F50 41 82 00 0C */ beq lbl_8006611C
/* 80066114 00061F54 38 00 00 19 */ li r0, 0x19
/* 80066118 00061F58 98 03 00 0C */ stb r0, 0xc(r3)
.global lbl_8006611C
lbl_8006611C:
/* 8006611C 00061F5C 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80066120 00061F60 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 80066124 00061F64 88 03 00 0D */ lbz r0, 0xd(r3)
/* 80066128 00061F68 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006612C 00061F6C 41 82 00 0C */ beq lbl_80066138
/* 80066130 00061F70 38 00 00 05 */ li r0, 0x5
/* 80066134 00061F74 98 03 00 0D */ stb r0, 0xd(r3)
.global lbl_80066138
lbl_80066138:
/* 80066138 00061F78 38 00 00 00 */ li r0, 0x0
/* 8006613C 00061F7C 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066140 00061F80 4E 80 00 20 */ blr
/* 80066144 00061F84 00 00 00 00 */ .4byte 0x00000000
/* 80066148 00061F88 00 00 00 00 */ .4byte 0x00000000
/* 8006614C 00061F8C 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncDone
__wudSyncDone:
/* 80066150 00061F90 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80066154 00061F94 7C 08 02 A6 */ mflr r0
/* 80066158 00061F98 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 8006615C 00061F9C 90 01 00 34 */ stw r0, 0x34(r1)
/* 80066160 00061FA0 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80066164 00061FA4 93 C1 00 28 */ stw r30, 0x28(r1)
/* 80066168 00061FA8 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8006616C 00061FAC 3B A3 5A 60 */ addi r29, r3, __rvl_wudcb@l
/* 80066170 00061FB0 93 81 00 20 */ stw r28, 0x20(r1)
/* 80066174 00061FB4 88 1D 06 E7 */ lbz r0, 0x6e7(r29)
/* 80066178 00061FB8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006617C 00061FBC 41 82 00 98 */ beq lbl_80066214
/* 80066180 00061FC0 3B 80 00 00 */ li r28, 0x0
/* 80066184 00061FC4 3B C0 00 00 */ li r30, 0x0
.global lbl_80066188
lbl_80066188:
/* 80066188 00061FC8 4B FB B6 99 */ bl OSDisableInterrupts
/* 8006618C 00061FCC 28 1C 00 09 */ cmplwi r28, 0x9
/* 80066190 00061FD0 41 81 00 10 */ bgt lbl_800661A0
/* 80066194 00061FD4 7C 9D F2 14 */ add r4, r29, r30
/* 80066198 00061FD8 3B E4 00 E4 */ addi r31, r4, 0xe4
/* 8006619C 00061FDC 48 00 00 14 */ b lbl_800661B0
.global lbl_800661A0
lbl_800661A0:
/* 800661A0 00061FE0 38 1C FF F6 */ addi r0, r28, -0xa
/* 800661A4 00061FE4 1C 00 00 60 */ mulli r0, r0, 0x60
/* 800661A8 00061FE8 7C 9D 02 14 */ add r4, r29, r0
/* 800661AC 00061FEC 3B E4 04 A4 */ addi r31, r4, 0x4a4
.global lbl_800661B0
lbl_800661B0:
/* 800661B0 00061FF0 4B FB B6 B1 */ bl OSRestoreInterrupts
/* 800661B4 00061FF4 88 1F 00 59 */ lbz r0, 0x59(r31)
/* 800661B8 00061FF8 28 00 00 08 */ cmplwi r0, 0x8
/* 800661BC 00061FFC 40 82 00 48 */ bne lbl_80066204
/* 800661C0 00062000 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 800661C4 00062004 38 E0 00 08 */ li r7, 0x8
/* 800661C8 00062008 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 800661CC 0006200C 38 80 00 02 */ li r4, 0x2
/* 800661D0 00062010 38 C0 00 01 */ li r6, 0x1
/* 800661D4 00062014 38 00 00 00 */ li r0, 0x0
/* 800661D8 00062018 98 81 00 10 */ stb r4, 0x10(r1)
/* 800661DC 0006201C 38 9F 00 40 */ addi r4, r31, 0x40
/* 800661E0 00062020 88 63 07 0A */ lbz r3, 0x70a(r3)
/* 800661E4 00062024 38 A1 00 08 */ addi r5, r1, 0x8
/* 800661E8 00062028 B0 E1 00 08 */ sth r7, 0x8(r1)
/* 800661EC 0006202C B0 E1 00 0A */ sth r7, 0xa(r1)
/* 800661F0 00062030 B0 C1 00 0C */ sth r6, 0xc(r1)
/* 800661F4 00062034 B0 01 00 0E */ sth r0, 0xe(r1)
/* 800661F8 00062038 48 01 D6 61 */ bl BTM_SetPowerMode
/* 800661FC 0006203C 38 60 00 0E */ li r3, 0xe
/* 80066200 00062040 48 00 00 88 */ b lbl_80066288
.global lbl_80066204
lbl_80066204:
/* 80066204 00062044 3B 9C 00 01 */ addi r28, r28, 0x1
/* 80066208 00062048 3B DE 00 60 */ addi r30, r30, 0x60
/* 8006620C 0006204C 2C 1C 00 10 */ cmpwi r28, 0x10
/* 80066210 00062050 41 80 FF 78 */ blt lbl_80066188
.global lbl_80066214
lbl_80066214:
/* 80066214 00062054 38 7D 07 10 */ addi r3, r29, 0x710
/* 80066218 00062058 4B FB 59 49 */ bl OSCancelAlarm
/* 8006621C 0006205C 80 0D EA 10 */ lwz r0, _wudAbortSync@sda21(r13)
/* 80066220 00062060 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066224 00062064 40 82 00 30 */ bne lbl_80066254
/* 80066228 00062068 4B FB B5 F9 */ bl OSDisableInterrupts
/* 8006622C 0006206C 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80066230 00062070 38 A0 00 00 */ li r5, 0x0
/* 80066234 00062074 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80066238 00062078 38 00 00 01 */ li r0, 0x1
/* 8006623C 0006207C 98 A4 06 EB */ stb r5, 0x6eb(r4)
/* 80066240 00062080 98 04 06 EA */ stb r0, 0x6ea(r4)
/* 80066244 00062084 4B FB B6 1D */ bl OSRestoreInterrupts
/* 80066248 00062088 38 60 00 00 */ li r3, 0x0
/* 8006624C 0006208C 38 80 00 01 */ li r4, 0x1
/* 80066250 00062090 48 01 48 F1 */ bl BTA_DmSetVisibility
.global lbl_80066254
lbl_80066254:
/* 80066254 00062094 88 1D 06 E9 */ lbz r0, 0x6e9(r29)
/* 80066258 00062098 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006625C 0006209C 40 82 00 0C */ bne lbl_80066268
/* 80066260 000620A0 81 9D 00 00 */ lwz r12, 0x0(r29)
/* 80066264 000620A4 48 00 00 08 */ b lbl_8006626C
.global lbl_80066268
lbl_80066268:
/* 80066268 000620A8 81 9D 00 04 */ lwz r12, 0x4(r29)
.global lbl_8006626C
lbl_8006626C:
/* 8006626C 000620AC 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80066270 000620B0 41 82 00 14 */ beq lbl_80066284
/* 80066274 000620B4 88 9D 06 E6 */ lbz r4, 0x6e6(r29)
/* 80066278 000620B8 38 60 00 01 */ li r3, 0x1
/* 8006627C 000620BC 7D 89 03 A6 */ mtctr r12
/* 80066280 000620C0 4E 80 04 21 */ bctrl
.global lbl_80066284
lbl_80066284:
/* 80066284 000620C4 38 60 00 00 */ li r3, 0x0
.global lbl_80066288
lbl_80066288:
/* 80066288 000620C8 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8006628C 000620CC 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80066290 000620D0 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 80066294 000620D4 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80066298 000620D8 83 81 00 20 */ lwz r28, 0x20(r1)
/* 8006629C 000620DC 7C 08 03 A6 */ mtlr r0
/* 800662A0 000620E0 38 21 00 30 */ addi r1, r1, 0x30
/* 800662A4 000620E4 4E 80 00 20 */ blr
/* 800662A8 000620E8 00 00 00 00 */ .4byte 0x00000000
/* 800662AC 000620EC 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncHandler
__wudSyncHandler:
/* 800662B0 000620F0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800662B4 000620F4 7C 08 02 A6 */ mflr r0
/* 800662B8 000620F8 90 01 00 34 */ stw r0, 0x34(r1)
/* 800662BC 000620FC 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 800662C0 00062100 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 800662C4 00062104 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 800662C8 00062108 93 C1 00 28 */ stw r30, 0x28(r1)
/* 800662CC 0006210C 93 A1 00 24 */ stw r29, 0x24(r1)
/* 800662D0 00062110 3B BF 00 00 */ addi r29, r31, 0x0
/* 800662D4 00062114 93 81 00 20 */ stw r28, 0x20(r1)
/* 800662D8 00062118 3F 80 80 44 */ lis r28, _wudWiiRemoteDescriptor@ha
/* 800662DC 0006211C 3B 9C 9B 78 */ addi r28, r28, _wudWiiRemoteDescriptor@l
/* 800662E0 00062120 88 1D 00 0C */ lbz r0, 0xc(r29)
/* 800662E4 00062124 2C 00 00 13 */ cmpwi r0, 0x13
/* 800662E8 00062128 41 82 04 D4 */ beq lbl_800667BC
/* 800662EC 0006212C 40 80 00 80 */ bge lbl_8006636C
/* 800662F0 00062130 2C 00 00 09 */ cmpwi r0, 0x9
/* 800662F4 00062134 41 82 09 68 */ beq lbl_80066C5C
/* 800662F8 00062138 40 80 00 40 */ bge lbl_80066338
/* 800662FC 0006213C 2C 00 00 04 */ cmpwi r0, 0x4
/* 80066300 00062140 41 82 02 18 */ beq lbl_80066518
/* 80066304 00062144 40 80 00 1C */ bge lbl_80066320
/* 80066308 00062148 2C 00 00 02 */ cmpwi r0, 0x2
/* 8006630C 0006214C 41 82 01 48 */ beq lbl_80066454
/* 80066310 00062150 40 80 07 F0 */ bge lbl_80066B00
/* 80066314 00062154 2C 00 00 01 */ cmpwi r0, 0x1
/* 80066318 00062158 40 80 00 C4 */ bge lbl_800663DC
/* 8006631C 0006215C 48 00 09 40 */ b lbl_80066C5C
.global lbl_80066320
lbl_80066320:
/* 80066320 00062160 2C 00 00 07 */ cmpwi r0, 0x7
/* 80066324 00062164 41 82 06 3C */ beq lbl_80066960
/* 80066328 00062168 40 80 06 C4 */ bge lbl_800669EC
/* 8006632C 0006216C 2C 00 00 06 */ cmpwi r0, 0x6
/* 80066330 00062170 40 80 09 2C */ bge lbl_80066C5C
/* 80066334 00062174 48 00 02 D0 */ b lbl_80066604
.global lbl_80066338
lbl_80066338:
/* 80066338 00062178 2C 00 00 0F */ cmpwi r0, 0xf
/* 8006633C 0006217C 41 82 04 04 */ beq lbl_80066740
/* 80066340 00062180 40 80 00 1C */ bge lbl_8006635C
/* 80066344 00062184 2C 00 00 0D */ cmpwi r0, 0xd
/* 80066348 00062188 41 82 09 14 */ beq lbl_80066C5C
/* 8006634C 0006218C 40 80 07 A8 */ bge lbl_80066AF4
/* 80066350 00062190 2C 00 00 0B */ cmpwi r0, 0xb
/* 80066354 00062194 40 80 09 08 */ bge lbl_80066C5C
/* 80066358 00062198 48 00 06 F4 */ b lbl_80066A4C
.global lbl_8006635C
lbl_8006635C:
/* 8006635C 0006219C 2C 00 00 11 */ cmpwi r0, 0x11
/* 80066360 000621A0 41 82 03 78 */ beq lbl_800666D8
/* 80066364 000621A4 40 80 03 E8 */ bge lbl_8006674C
/* 80066368 000621A8 48 00 02 CC */ b lbl_80066634
.global lbl_8006636C
lbl_8006636C:
/* 8006636C 000621AC 2C 00 00 1D */ cmpwi r0, 0x1d
/* 80066370 000621B0 41 82 00 78 */ beq lbl_800663E8
/* 80066374 000621B4 40 80 00 38 */ bge lbl_800663AC
/* 80066378 000621B8 2C 00 00 18 */ cmpwi r0, 0x18
/* 8006637C 000621BC 41 82 07 C4 */ beq lbl_80066B40
/* 80066380 000621C0 40 80 00 1C */ bge lbl_8006639C
/* 80066384 000621C4 2C 00 00 16 */ cmpwi r0, 0x16
/* 80066388 000621C8 41 82 06 98 */ beq lbl_80066A20
/* 8006638C 000621CC 40 80 06 FC */ bge lbl_80066A88
/* 80066390 000621D0 2C 00 00 15 */ cmpwi r0, 0x15
/* 80066394 000621D4 40 80 05 A8 */ bge lbl_8006693C
/* 80066398 000621D8 48 00 05 98 */ b lbl_80066930
.global lbl_8006639C
lbl_8006639C:
/* 8006639C 000621DC 2C 00 00 1A */ cmpwi r0, 0x1a
/* 800663A0 000621E0 41 82 08 BC */ beq lbl_80066C5C
/* 800663A4 000621E4 40 80 08 B8 */ bge lbl_80066C5C
/* 800663A8 000621E8 48 00 06 84 */ b lbl_80066A2C
.global lbl_800663AC
lbl_800663AC:
/* 800663AC 000621EC 2C 00 00 67 */ cmpwi r0, 0x67
/* 800663B0 000621F0 41 82 08 84 */ beq lbl_80066C34
/* 800663B4 000621F4 40 80 00 1C */ bge lbl_800663D0
/* 800663B8 000621F8 2C 00 00 65 */ cmpwi r0, 0x65
/* 800663BC 000621FC 41 82 08 0C */ beq lbl_80066BC8
/* 800663C0 00062200 40 80 08 40 */ bge lbl_80066C00
/* 800663C4 00062204 2C 00 00 64 */ cmpwi r0, 0x64
/* 800663C8 00062208 40 80 07 CC */ bge lbl_80066B94
/* 800663CC 0006220C 48 00 08 90 */ b lbl_80066C5C
.global lbl_800663D0
lbl_800663D0:
/* 800663D0 00062210 2C 00 00 FF */ cmpwi r0, 0xff
/* 800663D4 00062214 41 82 06 F0 */ beq lbl_80066AC4
/* 800663D8 00062218 48 00 08 84 */ b lbl_80066C5C
.global lbl_800663DC
lbl_800663DC:
/* 800663DC 0006221C 4B FF F3 F5 */ bl __wudSyncPrepareSearch
/* 800663E0 00062220 98 7D 00 0C */ stb r3, 0xc(r29)
/* 800663E4 00062224 48 00 08 78 */ b lbl_80066C5C
.global lbl_800663E8
lbl_800663E8:
/* 800663E8 00062228 88 1D 06 E8 */ lbz r0, 0x6e8(r29)
/* 800663EC 0006222C 7C 00 07 75 */ extsb. r0, r0
/* 800663F0 00062230 40 82 00 0C */ bne lbl_800663FC
/* 800663F4 00062234 38 00 00 0E */ li r0, 0xe
/* 800663F8 00062238 48 00 00 54 */ b lbl_8006644C
.global lbl_800663FC
lbl_800663FC:
/* 800663FC 0006223C 4B FB B4 25 */ bl OSDisableInterrupts
/* 80066400 00062240 8B 9D 06 E5 */ lbz r28, 0x6e5(r29)
/* 80066404 00062244 4B FB B4 5D */ bl OSRestoreInterrupts
/* 80066408 00062248 28 1C 00 04 */ cmplwi r28, 0x4
/* 8006640C 0006224C 40 82 00 20 */ bne lbl_8006642C
/* 80066410 00062250 4B FB B4 11 */ bl OSDisableInterrupts
/* 80066414 00062254 8B 9D 06 E4 */ lbz r28, 0x6e4(r29)
/* 80066418 00062258 4B FB B4 49 */ bl OSRestoreInterrupts
/* 8006641C 0006225C 28 1C 00 04 */ cmplwi r28, 0x4
/* 80066420 00062260 40 82 00 0C */ bne lbl_8006642C
/* 80066424 00062264 38 00 00 0E */ li r0, 0xe
/* 80066428 00062268 48 00 00 24 */ b lbl_8006644C
.global lbl_8006642C
lbl_8006642C:
/* 8006642C 0006226C 88 7D 07 49 */ lbz r3, 0x749(r29)
/* 80066430 00062270 38 03 FF FF */ addi r0, r3, -0x1
/* 80066434 00062274 98 1D 07 49 */ stb r0, 0x749(r29)
/* 80066438 00062278 7C 00 07 75 */ extsb. r0, r0
/* 8006643C 0006227C 40 80 00 0C */ bge lbl_80066448
/* 80066440 00062280 38 00 00 02 */ li r0, 0x2
/* 80066444 00062284 48 00 00 08 */ b lbl_8006644C
.global lbl_80066448
lbl_80066448:
/* 80066448 00062288 38 00 00 1D */ li r0, 0x1d
.global lbl_8006644C
lbl_8006644C:
/* 8006644C 0006228C 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066450 00062290 48 00 08 0C */ b lbl_80066C5C
.global lbl_80066454
lbl_80066454:
/* 80066454 00062294 88 1D 06 E7 */ lbz r0, 0x6e7(r29)
/* 80066458 00062298 38 80 00 01 */ li r4, 0x1
/* 8006645C 0006229C 38 60 00 00 */ li r3, 0x0
/* 80066460 000622A0 98 81 00 08 */ stb r4, 0x8(r1)
/* 80066464 000622A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066468 000622A8 98 81 00 0A */ stb r4, 0xa(r1)
/* 8006646C 000622AC 98 61 00 0B */ stb r3, 0xb(r1)
/* 80066470 000622B0 41 82 00 10 */ beq lbl_80066480
/* 80066474 000622B4 38 00 00 03 */ li r0, 0x3
/* 80066478 000622B8 98 01 00 09 */ stb r0, 0x9(r1)
/* 8006647C 000622BC 48 00 00 64 */ b lbl_800664E0
.global lbl_80066480
lbl_80066480:
/* 80066480 000622C0 88 1D 06 E9 */ lbz r0, 0x6e9(r29)
/* 80066484 000622C4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066488 000622C8 40 82 00 34 */ bne lbl_800664BC
/* 8006648C 000622CC 4B FB B3 95 */ bl OSDisableInterrupts
/* 80066490 000622D0 8B 9D 06 E5 */ lbz r28, 0x6e5(r29)
/* 80066494 000622D4 4B FB B3 CD */ bl OSRestoreInterrupts
/* 80066498 000622D8 28 1C 00 03 */ cmplwi r28, 0x3
/* 8006649C 000622DC 40 82 00 0C */ bne lbl_800664A8
/* 800664A0 000622E0 38 60 00 0A */ li r3, 0xa
/* 800664A4 000622E4 48 00 00 08 */ b lbl_800664AC
.global lbl_800664A8
lbl_800664A8:
/* 800664A8 000622E8 38 60 00 05 */ li r3, 0x5
.global lbl_800664AC
lbl_800664AC:
/* 800664AC 000622EC 88 1D 06 E8 */ lbz r0, 0x6e8(r29)
/* 800664B0 000622F0 7C 00 18 50 */ subf r0, r0, r3
/* 800664B4 000622F4 98 01 00 09 */ stb r0, 0x9(r1)
/* 800664B8 000622F8 48 00 00 28 */ b lbl_800664E0
.global lbl_800664BC
lbl_800664BC:
/* 800664BC 000622FC 4B FB B3 65 */ bl OSDisableInterrupts
/* 800664C0 00062300 8B 9D 06 E5 */ lbz r28, 0x6e5(r29)
/* 800664C4 00062304 4B FB B3 9D */ bl OSRestoreInterrupts
/* 800664C8 00062308 28 1C 00 03 */ cmplwi r28, 0x3
/* 800664CC 0006230C 40 82 00 0C */ bne lbl_800664D8
/* 800664D0 00062310 38 00 00 08 */ li r0, 0x8
/* 800664D4 00062314 48 00 00 08 */ b lbl_800664DC
.global lbl_800664D8
lbl_800664D8:
/* 800664D8 00062318 38 00 00 03 */ li r0, 0x3
.global lbl_800664DC
lbl_800664DC:
/* 800664DC 0006231C 98 01 00 09 */ stb r0, 0x9(r1)
.global lbl_800664E0
lbl_800664E0:
/* 800664E0 00062320 38 00 00 00 */ li r0, 0x0
/* 800664E4 00062324 98 0D EA 3F */ stb r0, _wudDiscNumResps@sda21(r13)
/* 800664E8 00062328 38 7F 07 50 */ addi r3, r31, 0x750
/* 800664EC 0006232C 38 80 00 00 */ li r4, 0x0
/* 800664F0 00062330 38 A0 01 08 */ li r5, 0x108
/* 800664F4 00062334 4B F9 DE 5D */ bl memset
/* 800664F8 00062338 3C A0 80 07 */ lis r5, __wudSearchEventStackCallback@ha
/* 800664FC 0006233C 38 61 00 08 */ addi r3, r1, 0x8
/* 80066500 00062340 38 A5 A4 A0 */ addi r5, r5, __wudSearchEventStackCallback@l
/* 80066504 00062344 38 80 00 00 */ li r4, 0x0
/* 80066508 00062348 48 01 46 91 */ bl BTA_DmSearch
/* 8006650C 0006234C 38 00 00 03 */ li r0, 0x3
/* 80066510 00062350 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066514 00062354 48 00 07 48 */ b lbl_80066C5C
.global lbl_80066518
lbl_80066518:
/* 80066518 00062358 88 0D EA 3F */ lbz r0, _wudDiscNumResps@sda21(r13)
/* 8006651C 0006235C 3B C0 00 01 */ li r30, 0x1
/* 80066520 00062360 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066524 00062364 41 82 00 70 */ beq lbl_80066594
/* 80066528 00062368 38 7F 07 50 */ addi r3, r31, 0x750
/* 8006652C 0006236C 38 9C 02 1C */ addi r4, r28, 0x21c
/* 80066530 00062370 38 63 00 06 */ addi r3, r3, 0x6
/* 80066534 00062374 38 A0 00 10 */ li r5, 0x10
/* 80066538 00062378 4B FA 49 39 */ bl memcmp
/* 8006653C 0006237C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80066540 00062380 40 82 00 08 */ bne lbl_80066548
/* 80066544 00062384 3B C0 00 05 */ li r30, 0x5
.global lbl_80066548
lbl_80066548:
/* 80066548 00062388 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 8006654C 0006238C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066550 00062390 41 82 00 24 */ beq lbl_80066574
/* 80066554 00062394 38 7F 07 50 */ addi r3, r31, 0x750
/* 80066558 00062398 38 9C 02 30 */ addi r4, r28, 0x230
/* 8006655C 0006239C 38 63 00 06 */ addi r3, r3, 0x6
/* 80066560 000623A0 38 A0 00 10 */ li r5, 0x10
/* 80066564 000623A4 4B FA 49 0D */ bl memcmp
/* 80066568 000623A8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006656C 000623AC 40 82 00 08 */ bne lbl_80066574
/* 80066570 000623B0 3B C0 00 05 */ li r30, 0x5
.global lbl_80066574
lbl_80066574:
/* 80066574 000623B4 38 7F 00 00 */ addi r3, r31, 0x0
/* 80066578 000623B8 88 8D EA 3E */ lbz r4, _wudDiscRssi@sda21(r13)
/* 8006657C 000623BC 88 03 07 0B */ lbz r0, 0x70b(r3)
/* 80066580 000623C0 7C 83 07 74 */ extsb r3, r4
/* 80066584 000623C4 7C 00 07 74 */ extsb r0, r0
/* 80066588 000623C8 7C 03 00 00 */ cmpw r3, r0
/* 8006658C 000623CC 40 80 00 08 */ bge lbl_80066594
/* 80066590 000623D0 3B C0 00 01 */ li r30, 0x1
.global lbl_80066594
lbl_80066594:
/* 80066594 000623D4 3B 9F 00 00 */ addi r28, r31, 0x0
/* 80066598 000623D8 88 1C 06 E9 */ lbz r0, 0x6e9(r28)
/* 8006659C 000623DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800665A0 000623E0 40 82 00 5C */ bne lbl_800665FC
/* 800665A4 000623E4 28 1E 00 01 */ cmplwi r30, 0x1
/* 800665A8 000623E8 40 82 00 54 */ bne lbl_800665FC
/* 800665AC 000623EC 3B C0 00 18 */ li r30, 0x18
/* 800665B0 000623F0 4B FB B2 71 */ bl OSDisableInterrupts
/* 800665B4 000623F4 8B 9C 06 E5 */ lbz r28, 0x6e5(r28)
/* 800665B8 000623F8 4B FB B2 A9 */ bl OSRestoreInterrupts
/* 800665BC 000623FC 28 1C 00 03 */ cmplwi r28, 0x3
/* 800665C0 00062400 40 82 00 0C */ bne lbl_800665CC
/* 800665C4 00062404 38 00 00 C8 */ li r0, 0xc8
/* 800665C8 00062408 48 00 00 08 */ b lbl_800665D0
.global lbl_800665CC
lbl_800665CC:
/* 800665CC 0006240C 38 00 00 64 */ li r0, 0x64
.global lbl_800665D0
lbl_800665D0:
/* 800665D0 00062410 3B FF 00 00 */ addi r31, r31, 0x0
/* 800665D4 00062414 B0 1F 07 4A */ sth r0, 0x74a(r31)
/* 800665D8 00062418 4B FB B2 49 */ bl OSDisableInterrupts
/* 800665DC 0006241C 38 80 00 00 */ li r4, 0x0
/* 800665E0 00062420 38 00 00 01 */ li r0, 0x1
/* 800665E4 00062424 98 9F 06 EB */ stb r4, 0x6eb(r31)
/* 800665E8 00062428 98 1F 06 EA */ stb r0, 0x6ea(r31)
/* 800665EC 0006242C 4B FB B2 75 */ bl OSRestoreInterrupts
/* 800665F0 00062430 38 60 00 00 */ li r3, 0x0
/* 800665F4 00062434 38 80 00 01 */ li r4, 0x1
/* 800665F8 00062438 48 01 45 49 */ bl BTA_DmSetVisibility
.global lbl_800665FC
lbl_800665FC:
/* 800665FC 0006243C 9B DD 00 0C */ stb r30, 0xc(r29)
/* 80066600 00062440 48 00 06 5C */ b lbl_80066C5C
.global lbl_80066604
lbl_80066604:
/* 80066604 00062444 38 7F 07 50 */ addi r3, r31, 0x750
/* 80066608 00062448 3B 80 00 11 */ li r28, 0x11
/* 8006660C 0006244C 48 00 30 75 */ bl WUDiGetDevInfo
/* 80066610 00062450 2C 03 00 00 */ cmpwi r3, 0x0
/* 80066614 00062454 41 82 00 18 */ beq lbl_8006662C
/* 80066618 00062458 7C 64 1B 78 */ mr r4, r3
/* 8006661C 0006245C 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066620 00062460 38 A0 00 60 */ li r5, 0x60
/* 80066624 00062464 4B F9 D9 DD */ bl memcpy
/* 80066628 00062468 3B 80 00 10 */ li r28, 0x10
.global lbl_8006662C
lbl_8006662C:
/* 8006662C 0006246C 9B 9D 00 0C */ stb r28, 0xc(r29)
/* 80066630 00062470 48 00 06 2C */ b lbl_80066C5C
.global lbl_80066634
lbl_80066634:
/* 80066634 00062474 3B 9F 08 58 */ addi r28, r31, 0x858
/* 80066638 00062478 38 60 00 01 */ li r3, 0x1
/* 8006663C 0006247C 88 1C 00 5B */ lbz r0, 0x5b(r28)
/* 80066640 00062480 98 7C 00 59 */ stb r3, 0x59(r28)
/* 80066644 00062484 2C 00 00 02 */ cmpwi r0, 0x2
/* 80066648 00062488 41 82 00 2C */ beq lbl_80066674
/* 8006664C 0006248C 40 80 00 14 */ bge lbl_80066660
/* 80066650 00062490 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066654 00062494 41 82 00 20 */ beq lbl_80066674
/* 80066658 00062498 40 80 00 50 */ bge lbl_800666A8
/* 8006665C 0006249C 48 00 00 70 */ b lbl_800666CC
.global lbl_80066660
lbl_80066660:
/* 80066660 000624A0 2C 00 00 06 */ cmpwi r0, 0x6
/* 80066664 000624A4 40 80 00 68 */ bge lbl_800666CC
/* 80066668 000624A8 2C 00 00 04 */ cmpwi r0, 0x4
/* 8006666C 000624AC 40 80 00 08 */ bge lbl_80066674
/* 80066670 000624B0 48 00 00 38 */ b lbl_800666A8
.global lbl_80066674
lbl_80066674:
/* 80066674 000624B4 38 7F 00 00 */ addi r3, r31, 0x0
/* 80066678 000624B8 88 03 06 E9 */ lbz r0, 0x6e9(r3)
/* 8006667C 000624BC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066680 000624C0 40 82 00 1C */ bne lbl_8006669C
/* 80066684 000624C4 7F 83 E3 78 */ mr r3, r28
/* 80066688 000624C8 48 00 35 A9 */ bl WUDiMoveBottomStdDevInfoPtr
/* 8006668C 000624CC 38 7C 00 40 */ addi r3, r28, 0x40
/* 80066690 000624D0 48 00 2E E1 */ bl WUDiRemoveDevice
/* 80066694 000624D4 38 00 00 11 */ li r0, 0x11
/* 80066698 000624D8 48 00 00 38 */ b lbl_800666D0
.global lbl_8006669C
lbl_8006669C:
/* 8006669C 000624DC 38 00 00 04 */ li r0, 0x4
/* 800666A0 000624E0 98 1C 00 5B */ stb r0, 0x5b(r28)
/* 800666A4 000624E4 48 00 00 28 */ b lbl_800666CC
.global lbl_800666A8
lbl_800666A8:
/* 800666A8 000624E8 7F 83 E3 78 */ mr r3, r28
/* 800666AC 000624EC 48 00 31 D5 */ bl WUDiMoveBottomSmpDevInfoPtr
/* 800666B0 000624F0 38 7F 00 00 */ addi r3, r31, 0x0
/* 800666B4 000624F4 80 63 00 18 */ lwz r3, 0x18(r3)
/* 800666B8 000624F8 80 63 00 00 */ lwz r3, 0x0(r3)
/* 800666BC 000624FC 38 63 00 40 */ addi r3, r3, 0x40
/* 800666C0 00062500 48 00 2E B1 */ bl WUDiRemoveDevice
/* 800666C4 00062504 38 00 00 11 */ li r0, 0x11
/* 800666C8 00062508 48 00 00 08 */ b lbl_800666D0
.global lbl_800666CC
lbl_800666CC:
/* 800666CC 0006250C 38 00 00 0F */ li r0, 0xf
.global lbl_800666D0
lbl_800666D0:
/* 800666D0 00062510 98 1D 00 0C */ stb r0, 0xc(r29)
/* 800666D4 00062514 48 00 05 88 */ b lbl_80066C5C
.global lbl_800666D8
lbl_800666D8:
/* 800666D8 00062518 88 1D 06 E9 */ lbz r0, 0x6e9(r29)
/* 800666DC 0006251C 3B 9F 08 58 */ addi r28, r31, 0x858
/* 800666E0 00062520 38 60 00 01 */ li r3, 0x1
/* 800666E4 00062524 98 7C 00 59 */ stb r3, 0x59(r28)
/* 800666E8 00062528 2C 00 00 00 */ cmpwi r0, 0x0
/* 800666EC 0006252C 40 82 00 0C */ bne lbl_800666F8
/* 800666F0 00062530 38 00 00 00 */ li r0, 0x0
/* 800666F4 00062534 48 00 00 08 */ b lbl_800666FC
.global lbl_800666F8
lbl_800666F8:
/* 800666F8 00062538 38 00 00 01 */ li r0, 0x1
.global lbl_800666FC
lbl_800666FC:
/* 800666FC 0006253C 98 1C 00 5B */ stb r0, 0x5b(r28)
/* 80066700 00062540 38 7C 00 40 */ addi r3, r28, 0x40
/* 80066704 00062544 38 9F 07 50 */ addi r4, r31, 0x750
/* 80066708 00062548 38 A0 00 06 */ li r5, 0x6
/* 8006670C 0006254C 4B F9 D8 F5 */ bl memcpy
/* 80066710 00062550 38 9F 07 50 */ addi r4, r31, 0x750
/* 80066714 00062554 7F 83 E3 78 */ mr r3, r28
/* 80066718 00062558 38 84 00 06 */ addi r4, r4, 0x6
/* 8006671C 0006255C 38 A0 00 40 */ li r5, 0x40
/* 80066720 00062560 4B F9 D8 E1 */ bl memcpy
/* 80066724 00062564 38 7C 00 46 */ addi r3, r28, 0x46
/* 80066728 00062568 38 80 00 00 */ li r4, 0x0
/* 8006672C 0006256C 38 A0 00 10 */ li r5, 0x10
/* 80066730 00062570 4B F9 DC 21 */ bl memset
/* 80066734 00062574 38 00 00 0F */ li r0, 0xf
/* 80066738 00062578 98 1D 00 0C */ stb r0, 0xc(r29)
/* 8006673C 0006257C 48 00 05 20 */ b lbl_80066C5C
.global lbl_80066740
lbl_80066740:
/* 80066740 00062580 4B FF F1 F1 */ bl __wudSyncTryConnect
/* 80066744 00062584 98 7D 00 0C */ stb r3, 0xc(r29)
/* 80066748 00062588 48 00 05 14 */ b lbl_80066C5C
.global lbl_8006674C
lbl_8006674C:
/* 8006674C 0006258C 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066750 00062590 88 03 00 5B */ lbz r0, 0x5b(r3)
/* 80066754 00062594 2C 00 00 03 */ cmpwi r0, 0x3
/* 80066758 00062598 41 82 00 48 */ beq lbl_800667A0
/* 8006675C 0006259C 40 80 00 1C */ bge lbl_80066778
/* 80066760 000625A0 2C 00 00 01 */ cmpwi r0, 0x1
/* 80066764 000625A4 41 82 00 24 */ beq lbl_80066788
/* 80066768 000625A8 40 80 00 48 */ bge lbl_800667B0
/* 8006676C 000625AC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066770 000625B0 40 80 00 20 */ bge lbl_80066790
/* 80066774 000625B4 48 00 00 40 */ b lbl_800667B4
.global lbl_80066778
lbl_80066778:
/* 80066778 000625B8 2C 00 00 05 */ cmpwi r0, 0x5
/* 8006677C 000625BC 41 82 00 1C */ beq lbl_80066798
/* 80066780 000625C0 40 80 00 34 */ bge lbl_800667B4
/* 80066784 000625C4 48 00 00 24 */ b lbl_800667A8
.global lbl_80066788
lbl_80066788:
/* 80066788 000625C8 38 00 00 13 */ li r0, 0x13
/* 8006678C 000625CC 48 00 00 28 */ b lbl_800667B4
.global lbl_80066790
lbl_80066790:
/* 80066790 000625D0 38 00 00 14 */ li r0, 0x14
/* 80066794 000625D4 48 00 00 20 */ b lbl_800667B4
.global lbl_80066798
lbl_80066798:
/* 80066798 000625D8 38 00 00 15 */ li r0, 0x15
/* 8006679C 000625DC 48 00 00 18 */ b lbl_800667B4
.global lbl_800667A0
lbl_800667A0:
/* 800667A0 000625E0 38 00 00 17 */ li r0, 0x17
/* 800667A4 000625E4 48 00 00 10 */ b lbl_800667B4
.global lbl_800667A8
lbl_800667A8:
/* 800667A8 000625E8 38 00 00 07 */ li r0, 0x7
/* 800667AC 000625EC 48 00 00 08 */ b lbl_800667B4
.global lbl_800667B0
lbl_800667B0:
/* 800667B0 000625F0 38 00 00 07 */ li r0, 0x7
.global lbl_800667B4
lbl_800667B4:
/* 800667B4 000625F4 98 1D 00 0C */ stb r0, 0xc(r29)
/* 800667B8 000625F8 48 00 04 A4 */ b lbl_80066C5C
.global lbl_800667BC
lbl_800667BC:
/* 800667BC 000625FC 4B FB B0 65 */ bl OSDisableInterrupts
/* 800667C0 00062600 8B 9D 00 13 */ lbz r28, 0x13(r29)
/* 800667C4 00062604 4B FB B0 9D */ bl OSRestoreInterrupts
/* 800667C8 00062608 28 1C 00 06 */ cmplwi r28, 0x6
/* 800667CC 0006260C 40 82 00 14 */ bne lbl_800667E0
/* 800667D0 00062610 80 7D 00 18 */ lwz r3, 0x18(r29)
/* 800667D4 00062614 80 63 00 00 */ lwz r3, 0x0(r3)
/* 800667D8 00062618 38 63 00 40 */ addi r3, r3, 0x40
/* 800667DC 0006261C 48 00 2D 95 */ bl WUDiRemoveDevice
.global lbl_800667E0
lbl_800667E0:
/* 800667E0 00062620 3B 9F 00 00 */ addi r28, r31, 0x0
/* 800667E4 00062624 4B FB B0 3D */ bl OSDisableInterrupts
/* 800667E8 00062628 88 1C 06 E9 */ lbz r0, 0x6e9(r28)
/* 800667EC 0006262C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800667F0 00062630 40 82 00 D0 */ bne lbl_800668C0
/* 800667F4 00062634 88 1C 01 3D */ lbz r0, 0x13d(r28)
/* 800667F8 00062638 3B C0 00 00 */ li r30, 0x0
/* 800667FC 0006263C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066800 00062640 40 82 00 0C */ bne lbl_8006680C
/* 80066804 00062644 3B DC 00 E4 */ addi r30, r28, 0xe4
/* 80066808 00062648 48 00 00 C0 */ b lbl_800668C8
.global lbl_8006680C
lbl_8006680C:
/* 8006680C 0006264C 88 1C 01 9D */ lbz r0, 0x19d(r28)
/* 80066810 00062650 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066814 00062654 40 82 00 0C */ bne lbl_80066820
/* 80066818 00062658 3B DC 01 44 */ addi r30, r28, 0x144
/* 8006681C 0006265C 48 00 00 AC */ b lbl_800668C8
.global lbl_80066820
lbl_80066820:
/* 80066820 00062660 88 1C 01 FD */ lbz r0, 0x1fd(r28)
/* 80066824 00062664 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066828 00062668 40 82 00 0C */ bne lbl_80066834
/* 8006682C 0006266C 3B DC 01 A4 */ addi r30, r28, 0x1a4
/* 80066830 00062670 48 00 00 98 */ b lbl_800668C8
.global lbl_80066834
lbl_80066834:
/* 80066834 00062674 88 1C 02 5D */ lbz r0, 0x25d(r28)
/* 80066838 00062678 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006683C 0006267C 40 82 00 0C */ bne lbl_80066848
/* 80066840 00062680 3B DC 02 04 */ addi r30, r28, 0x204
/* 80066844 00062684 48 00 00 84 */ b lbl_800668C8
.global lbl_80066848
lbl_80066848:
/* 80066848 00062688 88 1C 02 BD */ lbz r0, 0x2bd(r28)
/* 8006684C 0006268C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066850 00062690 40 82 00 0C */ bne lbl_8006685C
/* 80066854 00062694 3B DC 02 64 */ addi r30, r28, 0x264
/* 80066858 00062698 48 00 00 70 */ b lbl_800668C8
.global lbl_8006685C
lbl_8006685C:
/* 8006685C 0006269C 88 1C 03 1D */ lbz r0, 0x31d(r28)
/* 80066860 000626A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066864 000626A4 40 82 00 0C */ bne lbl_80066870
/* 80066868 000626A8 3B DC 02 C4 */ addi r30, r28, 0x2c4
/* 8006686C 000626AC 48 00 00 5C */ b lbl_800668C8
.global lbl_80066870
lbl_80066870:
/* 80066870 000626B0 88 1C 03 7D */ lbz r0, 0x37d(r28)
/* 80066874 000626B4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066878 000626B8 40 82 00 0C */ bne lbl_80066884
/* 8006687C 000626BC 3B DC 03 24 */ addi r30, r28, 0x324
/* 80066880 000626C0 48 00 00 48 */ b lbl_800668C8
.global lbl_80066884
lbl_80066884:
/* 80066884 000626C4 88 1C 03 DD */ lbz r0, 0x3dd(r28)
/* 80066888 000626C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006688C 000626CC 40 82 00 0C */ bne lbl_80066898
/* 80066890 000626D0 3B DC 03 84 */ addi r30, r28, 0x384
/* 80066894 000626D4 48 00 00 34 */ b lbl_800668C8
.global lbl_80066898
lbl_80066898:
/* 80066898 000626D8 88 1C 04 3D */ lbz r0, 0x43d(r28)
/* 8006689C 000626DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 800668A0 000626E0 40 82 00 0C */ bne lbl_800668AC
/* 800668A4 000626E4 3B DC 03 E4 */ addi r30, r28, 0x3e4
/* 800668A8 000626E8 48 00 00 20 */ b lbl_800668C8
.global lbl_800668AC
lbl_800668AC:
/* 800668AC 000626EC 88 1C 04 9D */ lbz r0, 0x49d(r28)
/* 800668B0 000626F0 2C 00 00 00 */ cmpwi r0, 0x0
/* 800668B4 000626F4 40 82 00 14 */ bne lbl_800668C8
/* 800668B8 000626F8 3B DC 04 44 */ addi r30, r28, 0x444
/* 800668BC 000626FC 48 00 00 0C */ b lbl_800668C8
.global lbl_800668C0
lbl_800668C0:
/* 800668C0 00062700 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 800668C4 00062704 83 C4 00 00 */ lwz r30, 0x0(r4)
.global lbl_800668C8
lbl_800668C8:
/* 800668C8 00062708 4B FB AF 99 */ bl OSRestoreInterrupts
/* 800668CC 0006270C 2C 1E 00 00 */ cmpwi r30, 0x0
/* 800668D0 00062710 40 82 00 0C */ bne lbl_800668DC
/* 800668D4 00062714 38 A0 00 FF */ li r5, 0xff
/* 800668D8 00062718 48 00 00 50 */ b lbl_80066928
.global lbl_800668DC
lbl_800668DC:
/* 800668DC 0006271C 88 1E 00 59 */ lbz r0, 0x59(r30)
/* 800668E0 00062720 2C 00 00 00 */ cmpwi r0, 0x0
/* 800668E4 00062724 41 82 00 0C */ beq lbl_800668F0
/* 800668E8 00062728 38 A0 00 FF */ li r5, 0xff
/* 800668EC 0006272C 48 00 00 3C */ b lbl_80066928
.global lbl_800668F0
lbl_800668F0:
/* 800668F0 00062730 7F C3 F3 78 */ mr r3, r30
/* 800668F4 00062734 38 9F 08 58 */ addi r4, r31, 0x858
/* 800668F8 00062738 38 A0 00 60 */ li r5, 0x60
/* 800668FC 0006273C 4B F9 D7 05 */ bl memcpy
/* 80066900 00062740 38 7E 00 40 */ addi r3, r30, 0x40
/* 80066904 00062744 48 00 2B 3D */ bl WUDiRegisterDevice
/* 80066908 00062748 7F C3 F3 78 */ mr r3, r30
/* 8006690C 0006274C 48 00 2E 55 */ bl WUDiMoveTopSmpDevInfoPtr
/* 80066910 00062750 88 1E 00 56 */ lbz r0, 0x56(r30)
/* 80066914 00062754 38 7F 0D C0 */ addi r3, r31, 0xdc0
/* 80066918 00062758 38 9E 00 40 */ addi r4, r30, 0x40
/* 8006691C 0006275C 38 A0 00 17 */ li r5, 0x17
/* 80066920 00062760 54 00 10 3A */ slwi r0, r0, 2
/* 80066924 00062764 7C 83 01 2E */ stwx r4, r3, r0
.global lbl_80066928
lbl_80066928:
/* 80066928 00062768 98 BD 00 0C */ stb r5, 0xc(r29)
/* 8006692C 0006276C 48 00 03 30 */ b lbl_80066C5C
.global lbl_80066930
lbl_80066930:
/* 80066930 00062770 4B FF F1 61 */ bl __wudSyncVirginStandard
/* 80066934 00062774 98 7D 00 0C */ stb r3, 0xc(r29)
/* 80066938 00062778 48 00 03 24 */ b lbl_80066C5C
.global lbl_8006693C
lbl_8006693C:
/* 8006693C 0006277C 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066940 00062780 48 00 2F 41 */ bl WUDiMoveBottomSmpDevInfoPtr
/* 80066944 00062784 80 7D 00 18 */ lwz r3, 0x18(r29)
/* 80066948 00062788 80 63 00 00 */ lwz r3, 0x0(r3)
/* 8006694C 0006278C 38 63 00 40 */ addi r3, r3, 0x40
/* 80066950 00062790 48 00 2C 21 */ bl WUDiRemoveDevice
/* 80066954 00062794 4B FF F1 3D */ bl __wudSyncVirginStandard
/* 80066958 00062798 98 7D 00 0C */ stb r3, 0xc(r29)
/* 8006695C 0006279C 48 00 03 00 */ b lbl_80066C5C
.global lbl_80066960
lbl_80066960:
/* 80066960 000627A0 88 1D 00 0E */ lbz r0, 0xe(r29)
/* 80066964 000627A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066968 000627A8 41 82 00 0C */ beq lbl_80066974
/* 8006696C 000627AC 38 00 00 01 */ li r0, 0x1
/* 80066970 000627B0 48 00 00 08 */ b lbl_80066978
.global lbl_80066974
lbl_80066974:
/* 80066974 000627B4 38 00 00 00 */ li r0, 0x0
.global lbl_80066978
lbl_80066978:
/* 80066978 000627B8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006697C 000627BC 41 82 00 0C */ beq lbl_80066988
/* 80066980 000627C0 38 00 00 07 */ li r0, 0x7
/* 80066984 000627C4 48 00 00 60 */ b lbl_800669E4
.global lbl_80066988
lbl_80066988:
/* 80066988 000627C8 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 8006698C 000627CC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066990 000627D0 41 82 00 24 */ beq lbl_800669B4
/* 80066994 000627D4 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066998 000627D8 38 9C 02 30 */ addi r4, r28, 0x230
/* 8006699C 000627DC 38 A0 00 10 */ li r5, 0x10
/* 800669A0 000627E0 4B FA 44 D1 */ bl memcmp
/* 800669A4 000627E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800669A8 000627E8 40 82 00 0C */ bne lbl_800669B4
/* 800669AC 000627EC 38 00 00 16 */ li r0, 0x16
/* 800669B0 000627F0 48 00 00 34 */ b lbl_800669E4
.global lbl_800669B4
lbl_800669B4:
/* 800669B4 000627F4 38 7F 08 58 */ addi r3, r31, 0x858
/* 800669B8 000627F8 38 63 00 40 */ addi r3, r3, 0x40
/* 800669BC 000627FC 48 00 2C C5 */ bl WUDiGetDevInfo
/* 800669C0 00062800 38 00 00 02 */ li r0, 0x2
/* 800669C4 00062804 3C C0 80 07 */ lis r6, __wudLinkKeyEventStackCallback@ha
/* 800669C8 00062808 98 1D 00 0E */ stb r0, 0xe(r29)
/* 800669CC 0006280C 38 83 00 40 */ addi r4, r3, 0x40
/* 800669D0 00062810 38 A3 00 46 */ addi r5, r3, 0x46
/* 800669D4 00062814 38 C6 A8 90 */ addi r6, r6, __wudLinkKeyEventStackCallback@l
/* 800669D8 00062818 38 60 00 01 */ li r3, 0x1
/* 800669DC 0006281C 48 01 AD 15 */ bl BTM_WriteStoredLinkKey
/* 800669E0 00062820 38 00 00 08 */ li r0, 0x8
.global lbl_800669E4
lbl_800669E4:
/* 800669E4 00062824 98 1D 00 0C */ stb r0, 0xc(r29)
/* 800669E8 00062828 48 00 02 74 */ b lbl_80066C5C
.global lbl_800669EC
lbl_800669EC:
/* 800669EC 0006282C 88 1D 00 0E */ lbz r0, 0xe(r29)
/* 800669F0 00062830 2C 00 00 00 */ cmpwi r0, 0x0
/* 800669F4 00062834 41 82 00 0C */ beq lbl_80066A00
/* 800669F8 00062838 38 00 00 01 */ li r0, 0x1
/* 800669FC 0006283C 48 00 00 08 */ b lbl_80066A04
.global lbl_80066A00
lbl_80066A00:
/* 80066A00 00062840 38 00 00 00 */ li r0, 0x0
.global lbl_80066A04
lbl_80066A04:
/* 80066A04 00062844 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066A08 00062848 40 82 00 0C */ bne lbl_80066A14
/* 80066A0C 0006284C 38 00 00 16 */ li r0, 0x16
/* 80066A10 00062850 48 00 00 08 */ b lbl_80066A18
.global lbl_80066A14
lbl_80066A14:
/* 80066A14 00062854 38 00 00 08 */ li r0, 0x8
.global lbl_80066A18
lbl_80066A18:
/* 80066A18 00062858 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066A1C 0006285C 48 00 02 40 */ b lbl_80066C5C
.global lbl_80066A20
lbl_80066A20:
/* 80066A20 00062860 4B FF F4 61 */ bl __wudSyncStoredDevInfoToNand
/* 80066A24 00062864 98 7D 00 0C */ stb r3, 0xc(r29)
/* 80066A28 00062868 48 00 02 34 */ b lbl_80066C5C
.global lbl_80066A2C
lbl_80066A2C:
/* 80066A2C 0006286C 4B FB AD F5 */ bl OSDisableInterrupts
/* 80066A30 00062870 38 00 00 0D */ li r0, 0xd
/* 80066A34 00062874 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066A38 00062878 4B FB AE 29 */ bl OSRestoreInterrupts
/* 80066A3C 0006287C 3C 60 80 06 */ lis r3, __wudSyncFlushCallback@ha
/* 80066A40 00062880 38 63 57 90 */ addi r3, r3, __wudSyncFlushCallback@l
/* 80066A44 00062884 4B FE 5D 3D */ bl SCFlushAsync
/* 80066A48 00062888 48 00 02 14 */ b lbl_80066C5C
.global lbl_80066A4C
lbl_80066A4C:
/* 80066A4C 0006288C 88 1D 00 0E */ lbz r0, 0xe(r29)
/* 80066A50 00062890 3B 80 00 0A */ li r28, 0xa
/* 80066A54 00062894 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066A58 00062898 41 82 00 0C */ beq lbl_80066A64
/* 80066A5C 0006289C 38 00 00 01 */ li r0, 0x1
/* 80066A60 000628A0 48 00 00 08 */ b lbl_80066A68
.global lbl_80066A64
lbl_80066A64:
/* 80066A64 000628A4 38 00 00 00 */ li r0, 0x0
.global lbl_80066A68
lbl_80066A68:
/* 80066A68 000628A8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066A6C 000628AC 40 82 00 14 */ bne lbl_80066A80
/* 80066A70 000628B0 38 7F 00 00 */ addi r3, r31, 0x0
/* 80066A74 000628B4 3B 80 00 14 */ li r28, 0x14
/* 80066A78 000628B8 38 63 06 FC */ addi r3, r3, 0x6fc
/* 80066A7C 000628BC 48 00 2A F5 */ bl WUDiRemoveDevice
.global lbl_80066A80
lbl_80066A80:
/* 80066A80 000628C0 9B 9D 00 0C */ stb r28, 0xc(r29)
/* 80066A84 000628C4 48 00 01 D8 */ b lbl_80066C5C
.global lbl_80066A88
lbl_80066A88:
/* 80066A88 000628C8 88 DD 06 E6 */ lbz r6, 0x6e6(r29)
/* 80066A8C 000628CC 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066A90 000628D0 38 80 00 00 */ li r4, 0x0
/* 80066A94 000628D4 38 A0 00 60 */ li r5, 0x60
/* 80066A98 000628D8 38 06 00 01 */ addi r0, r6, 0x1
/* 80066A9C 000628DC 98 1D 06 E6 */ stb r0, 0x6e6(r29)
/* 80066AA0 000628E0 4B F9 D8 B1 */ bl memset
/* 80066AA4 000628E4 88 1D 06 E9 */ lbz r0, 0x6e9(r29)
/* 80066AA8 000628E8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066AAC 000628EC 40 82 00 0C */ bne lbl_80066AB8
/* 80066AB0 000628F0 38 00 00 0E */ li r0, 0xe
/* 80066AB4 000628F4 48 00 00 08 */ b lbl_80066ABC
.global lbl_80066AB8
lbl_80066AB8:
/* 80066AB8 000628F8 38 00 00 01 */ li r0, 0x1
.global lbl_80066ABC
lbl_80066ABC:
/* 80066ABC 000628FC 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066AC0 00062900 48 00 01 9C */ b lbl_80066C5C
.global lbl_80066AC4
lbl_80066AC4:
/* 80066AC4 00062904 38 7F 08 58 */ addi r3, r31, 0x858
/* 80066AC8 00062908 38 80 00 00 */ li r4, 0x0
/* 80066ACC 0006290C 38 A0 00 60 */ li r5, 0x60
/* 80066AD0 00062910 4B F9 D8 81 */ bl memset
/* 80066AD4 00062914 88 1D 06 E9 */ lbz r0, 0x6e9(r29)
/* 80066AD8 00062918 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066ADC 0006291C 40 82 00 0C */ bne lbl_80066AE8
/* 80066AE0 00062920 38 00 00 0E */ li r0, 0xe
/* 80066AE4 00062924 48 00 00 08 */ b lbl_80066AEC
.global lbl_80066AE8
lbl_80066AE8:
/* 80066AE8 00062928 38 00 00 01 */ li r0, 0x1
.global lbl_80066AEC
lbl_80066AEC:
/* 80066AEC 0006292C 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066AF0 00062930 48 00 01 6C */ b lbl_80066C5C
.global lbl_80066AF4
lbl_80066AF4:
/* 80066AF4 00062934 4B FF F6 5D */ bl __wudSyncDone
/* 80066AF8 00062938 98 7D 00 0C */ stb r3, 0xc(r29)
/* 80066AFC 0006293C 48 00 01 60 */ b lbl_80066C5C
.global lbl_80066B00
lbl_80066B00:
/* 80066B00 00062940 4B FB AD 21 */ bl OSDisableInterrupts
/* 80066B04 00062944 8B 9D 06 E5 */ lbz r28, 0x6e5(r29)
/* 80066B08 00062948 4B FB AD 59 */ bl OSRestoreInterrupts
/* 80066B0C 0006294C 28 1C 00 04 */ cmplwi r28, 0x4
/* 80066B10 00062950 40 82 00 24 */ bne lbl_80066B34
/* 80066B14 00062954 4B FB AD 0D */ bl OSDisableInterrupts
/* 80066B18 00062958 8B 9D 06 E4 */ lbz r28, 0x6e4(r29)
/* 80066B1C 0006295C 4B FB AD 45 */ bl OSRestoreInterrupts
/* 80066B20 00062960 28 1C 00 04 */ cmplwi r28, 0x4
/* 80066B24 00062964 40 82 00 10 */ bne lbl_80066B34
/* 80066B28 00062968 48 01 40 F5 */ bl BTA_DmSearchCancel
/* 80066B2C 0006296C 38 00 00 1A */ li r0, 0x1a
/* 80066B30 00062970 48 00 00 08 */ b lbl_80066B38
.global lbl_80066B34
lbl_80066B34:
/* 80066B34 00062974 38 00 00 03 */ li r0, 0x3
.global lbl_80066B38
lbl_80066B38:
/* 80066B38 00062978 98 1D 00 0C */ stb r0, 0xc(r29)
/* 80066B3C 0006297C 48 00 01 20 */ b lbl_80066C5C
.global lbl_80066B40
lbl_80066B40:
/* 80066B40 00062980 3B C0 00 18 */ li r30, 0x18
/* 80066B44 00062984 4B FB AC DD */ bl OSDisableInterrupts
/* 80066B48 00062988 8B 9D 06 E5 */ lbz r28, 0x6e5(r29)
/* 80066B4C 0006298C 4B FB AD 15 */ bl OSRestoreInterrupts
/* 80066B50 00062990 28 1C 00 04 */ cmplwi r28, 0x4
/* 80066B54 00062994 40 82 00 1C */ bne lbl_80066B70
/* 80066B58 00062998 4B FB AC C9 */ bl OSDisableInterrupts
/* 80066B5C 0006299C 8B 9D 06 E4 */ lbz r28, 0x6e4(r29)
/* 80066B60 000629A0 4B FB AD 01 */ bl OSRestoreInterrupts
/* 80066B64 000629A4 28 1C 00 04 */ cmplwi r28, 0x4
/* 80066B68 000629A8 40 82 00 08 */ bne lbl_80066B70
/* 80066B6C 000629AC 3B C0 00 0E */ li r30, 0xe
.global lbl_80066B70
lbl_80066B70:
/* 80066B70 000629B0 38 9F 00 00 */ addi r4, r31, 0x0
/* 80066B74 000629B4 A8 64 07 4A */ lha r3, 0x74a(r4)
/* 80066B78 000629B8 38 03 FF FF */ addi r0, r3, -0x1
/* 80066B7C 000629BC B0 04 07 4A */ sth r0, 0x74a(r4)
/* 80066B80 000629C0 7C 00 07 35 */ extsh. r0, r0
/* 80066B84 000629C4 40 80 00 08 */ bge lbl_80066B8C
/* 80066B88 000629C8 3B C0 00 01 */ li r30, 0x1
.global lbl_80066B8C
lbl_80066B8C:
/* 80066B8C 000629CC 9B DD 00 0C */ stb r30, 0xc(r29)
/* 80066B90 000629D0 48 00 00 CC */ b lbl_80066C5C
.global lbl_80066B94
lbl_80066B94:
/* 80066B94 000629D4 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80066B98 000629D8 38 7C 02 44 */ addi r3, r28, 0x244
/* 80066B9C 000629DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066BA0 000629E0 40 82 00 BC */ bne lbl_80066C5C
/* 80066BA4 000629E4 38 00 00 01 */ li r0, 0x1
/* 80066BA8 000629E8 3C C0 80 06 */ lis r6, __wudOpenWiiFitCallback@ha
/* 80066BAC 000629EC 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066BB0 000629F0 38 9F 0E 00 */ addi r4, r31, 0xe00
/* 80066BB4 000629F4 38 C6 5F A0 */ addi r6, r6, __wudOpenWiiFitCallback@l
/* 80066BB8 000629F8 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80066BBC 000629FC 38 A0 00 02 */ li r5, 0x2
/* 80066BC0 00062A00 4B FE 29 11 */ bl NANDOpenAsync
/* 80066BC4 00062A04 48 00 00 98 */ b lbl_80066C5C
.global lbl_80066BC8
lbl_80066BC8:
/* 80066BC8 00062A08 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80066BCC 00062A0C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066BD0 00062A10 40 82 00 8C */ bne lbl_80066C5C
/* 80066BD4 00062A14 38 00 00 01 */ li r0, 0x1
/* 80066BD8 00062A18 3C 80 00 05 */ lis r4, 0x5
/* 80066BDC 00062A1C 3C C0 80 06 */ lis r6, __wudSeekWiiFitCallback@ha
/* 80066BE0 00062A20 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066BE4 00062A24 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80066BE8 00062A28 38 84 AF 18 */ addi r4, r4, -0x50e8
/* 80066BEC 00062A2C 38 C6 60 10 */ addi r6, r6, __wudSeekWiiFitCallback@l
/* 80066BF0 00062A30 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80066BF4 00062A34 38 A0 00 00 */ li r5, 0x0
/* 80066BF8 00062A38 4B FE 19 99 */ bl NANDSeekAsync
/* 80066BFC 00062A3C 48 00 00 60 */ b lbl_80066C5C
.global lbl_80066C00
lbl_80066C00:
/* 80066C00 00062A40 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80066C04 00062A44 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066C08 00062A48 40 82 00 54 */ bne lbl_80066C5C
/* 80066C0C 00062A4C 38 00 00 01 */ li r0, 0x1
/* 80066C10 00062A50 3C C0 80 06 */ lis r6, __wudUpdateWiiFitCallback@ha
/* 80066C14 00062A54 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066C18 00062A58 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80066C1C 00062A5C 38 9F 0D 20 */ addi r4, r31, 0xd20
/* 80066C20 00062A60 38 C6 60 90 */ addi r6, r6, __wudUpdateWiiFitCallback@l
/* 80066C24 00062A64 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80066C28 00062A68 38 A0 00 84 */ li r5, 0x84
/* 80066C2C 00062A6C 4B FE 18 45 */ bl NANDWriteAsync
/* 80066C30 00062A70 48 00 00 2C */ b lbl_80066C5C
.global lbl_80066C34
lbl_80066C34:
/* 80066C34 00062A74 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80066C38 00062A78 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066C3C 00062A7C 40 82 00 20 */ bne lbl_80066C5C
/* 80066C40 00062A80 38 00 00 01 */ li r0, 0x1
/* 80066C44 00062A84 3C 80 80 06 */ lis r4, __wudCloseWiiFitCallback@ha
/* 80066C48 00062A88 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80066C4C 00062A8C 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80066C50 00062A90 38 84 61 00 */ addi r4, r4, __wudCloseWiiFitCallback@l
/* 80066C54 00062A94 38 BF 0E 8C */ addi r5, r31, 0xe8c
/* 80066C58 00062A98 4B FE 2A 69 */ bl NANDCloseAsync
.global lbl_80066C5C
lbl_80066C5C:
/* 80066C5C 00062A9C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80066C60 00062AA0 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80066C64 00062AA4 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 80066C68 00062AA8 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80066C6C 00062AAC 83 81 00 20 */ lwz r28, 0x20(r1)
/* 80066C70 00062AB0 7C 08 03 A6 */ mtlr r0
/* 80066C74 00062AB4 38 21 00 30 */ addi r1, r1, 0x30
/* 80066C78 00062AB8 4E 80 00 20 */ blr
/* 80066C7C 00062ABC 00 00 00 00 */ .4byte 0x00000000
.global __wudSyncHandler0
__wudSyncHandler0:
/* 80066C80 00062AC0 3D 00 80 4C */ lis r8, _wudHandlerStack@ha
/* 80066C84 00062AC4 3C E0 80 06 */ lis r7, __wudSyncHandler@ha
/* 80066C88 00062AC8 39 08 69 C0 */ addi r8, r8, _wudHandlerStack@l
/* 80066C8C 00062ACC 38 A0 00 00 */ li r5, 0x0
/* 80066C90 00062AD0 38 E7 62 B0 */ addi r7, r7, __wudSyncHandler@l
/* 80066C94 00062AD4 38 C0 00 00 */ li r6, 0x0
/* 80066C98 00062AD8 39 08 10 00 */ addi r8, r8, 0x1000
/* 80066C9C 00062ADC 4B FB 67 74 */ b OSSwitchFiberEx
.global __wudDeleteFlushCallback
__wudDeleteFlushCallback:
/* 80066CA0 00062AE0 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80066CA4 00062AE4 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 80066CA8 00062AE8 88 03 00 0D */ lbz r0, 0xd(r3)
/* 80066CAC 00062AEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066CB0 00062AF0 4D 82 00 20 */ beqlr
/* 80066CB4 00062AF4 38 00 00 08 */ li r0, 0x8
/* 80066CB8 00062AF8 98 03 00 0D */ stb r0, 0xd(r3)
/* 80066CBC 00062AFC 4E 80 00 20 */ blr
.global __wudDeleteDisconnectAll
__wudDeleteDisconnectAll:
/* 80066CC0 00062B00 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80066CC4 00062B04 7C 08 02 A6 */ mflr r0
/* 80066CC8 00062B08 90 01 00 24 */ stw r0, 0x24(r1)
/* 80066CCC 00062B0C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80066CD0 00062B10 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80066CD4 00062B14 3B C0 00 00 */ li r30, 0x0
/* 80066CD8 00062B18 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80066CDC 00062B1C 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80066CE0 00062B20 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80066CE4 00062B24 3B FD 00 E4 */ addi r31, r29, 0xe4
.global lbl_80066CE8
lbl_80066CE8:
/* 80066CE8 00062B28 88 1F 00 59 */ lbz r0, 0x59(r31)
/* 80066CEC 00062B2C 28 00 00 01 */ cmplwi r0, 0x1
/* 80066CF0 00062B30 40 81 00 0C */ ble lbl_80066CFC
/* 80066CF4 00062B34 38 7F 00 40 */ addi r3, r31, 0x40
/* 80066CF8 00062B38 48 01 8B 55 */ bl btm_remove_acl
.global lbl_80066CFC
lbl_80066CFC:
/* 80066CFC 00062B3C 3B DE 00 01 */ addi r30, r30, 0x1
/* 80066D00 00062B40 3B FF 00 60 */ addi r31, r31, 0x60
/* 80066D04 00062B44 2C 1E 00 0A */ cmpwi r30, 0xa
/* 80066D08 00062B48 41 80 FF E0 */ blt lbl_80066CE8
/* 80066D0C 00062B4C 3B FD 04 A4 */ addi r31, r29, 0x4a4
/* 80066D10 00062B50 3B C0 00 00 */ li r30, 0x0
.global lbl_80066D14
lbl_80066D14:
/* 80066D14 00062B54 88 1F 00 59 */ lbz r0, 0x59(r31)
/* 80066D18 00062B58 28 00 00 01 */ cmplwi r0, 0x1
/* 80066D1C 00062B5C 40 81 00 0C */ ble lbl_80066D28
/* 80066D20 00062B60 38 7F 00 40 */ addi r3, r31, 0x40
/* 80066D24 00062B64 48 01 8B 29 */ bl btm_remove_acl
.global lbl_80066D28
lbl_80066D28:
/* 80066D28 00062B68 3B DE 00 01 */ addi r30, r30, 0x1
/* 80066D2C 00062B6C 3B FF 00 60 */ addi r31, r31, 0x60
/* 80066D30 00062B70 2C 1E 00 06 */ cmpwi r30, 0x6
/* 80066D34 00062B74 41 80 FF E0 */ blt lbl_80066D14
/* 80066D38 00062B78 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80066D3C 00062B7C 38 60 00 03 */ li r3, 0x3
/* 80066D40 00062B80 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80066D44 00062B84 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80066D48 00062B88 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80066D4C 00062B8C 7C 08 03 A6 */ mtlr r0
/* 80066D50 00062B90 38 21 00 20 */ addi r1, r1, 0x20
/* 80066D54 00062B94 4E 80 00 20 */ blr
/* 80066D58 00062B98 00 00 00 00 */ .4byte 0x00000000
/* 80066D5C 00062B9C 00 00 00 00 */ .4byte 0x00000000
.global __wudDeleteCleanupDatabase
__wudDeleteCleanupDatabase:
/* 80066D60 00062BA0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80066D64 00062BA4 7C 08 02 A6 */ mflr r0
/* 80066D68 00062BA8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80066D6C 00062BAC 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80066D70 00062BB0 93 C1 00 28 */ stw r30, 0x28(r1)
/* 80066D74 00062BB4 93 A1 00 24 */ stw r29, 0x24(r1)
/* 80066D78 00062BB8 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80066D7C 00062BBC 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80066D80 00062BC0 4B FB AA A1 */ bl OSDisableInterrupts
/* 80066D84 00062BC4 8B FD 06 E5 */ lbz r31, 0x6e5(r29)
/* 80066D88 00062BC8 4B FB AA D9 */ bl OSRestoreInterrupts
/* 80066D8C 00062BCC 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80066D90 00062BD0 41 82 00 0C */ beq lbl_80066D9C
/* 80066D94 00062BD4 38 60 00 03 */ li r3, 0x3
/* 80066D98 00062BD8 48 00 01 B0 */ b lbl_80066F48
.global lbl_80066D9C
lbl_80066D9C:
/* 80066D9C 00062BDC 3B C0 00 00 */ li r30, 0x0
/* 80066DA0 00062BE0 3B E0 00 00 */ li r31, 0x0
.global lbl_80066DA4
lbl_80066DA4:
/* 80066DA4 00062BE4 7C 7D FA 14 */ add r3, r29, r31
/* 80066DA8 00062BE8 88 03 01 3D */ lbz r0, 0x13d(r3)
/* 80066DAC 00062BEC 28 00 00 01 */ cmplwi r0, 0x1
/* 80066DB0 00062BF0 40 82 00 0C */ bne lbl_80066DBC
/* 80066DB4 00062BF4 38 63 01 24 */ addi r3, r3, 0x124
/* 80066DB8 00062BF8 48 00 27 B9 */ bl WUDiRemoveDevice
.global lbl_80066DBC
lbl_80066DBC:
/* 80066DBC 00062BFC 3B DE 00 01 */ addi r30, r30, 0x1
/* 80066DC0 00062C00 3B FF 00 60 */ addi r31, r31, 0x60
/* 80066DC4 00062C04 2C 1E 00 0A */ cmpwi r30, 0xa
/* 80066DC8 00062C08 41 80 FF DC */ blt lbl_80066DA4
/* 80066DCC 00062C0C 3B C0 00 00 */ li r30, 0x0
/* 80066DD0 00062C10 3B E0 00 00 */ li r31, 0x0
.global lbl_80066DD4
lbl_80066DD4:
/* 80066DD4 00062C14 7C 7D FA 14 */ add r3, r29, r31
/* 80066DD8 00062C18 88 03 04 FD */ lbz r0, 0x4fd(r3)
/* 80066DDC 00062C1C 28 00 00 01 */ cmplwi r0, 0x1
/* 80066DE0 00062C20 40 82 00 0C */ bne lbl_80066DEC
/* 80066DE4 00062C24 38 63 04 E4 */ addi r3, r3, 0x4e4
/* 80066DE8 00062C28 48 00 27 89 */ bl WUDiRemoveDevice
.global lbl_80066DEC
lbl_80066DEC:
/* 80066DEC 00062C2C 3B DE 00 01 */ addi r30, r30, 0x1
/* 80066DF0 00062C30 3B FF 00 60 */ addi r31, r31, 0x60
/* 80066DF4 00062C34 2C 1E 00 06 */ cmpwi r30, 0x6
/* 80066DF8 00062C38 41 80 FF DC */ blt lbl_80066DD4
/* 80066DFC 00062C3C 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80066E00 00062C40 2C 00 00 00 */ cmpwi r0, 0x0
/* 80066E04 00062C44 41 82 01 40 */ beq lbl_80066F44
/* 80066E08 00062C48 4B FE 65 E9 */ bl SCGetProductGameRegion
/* 80066E0C 00062C4C 7C 60 07 75 */ extsb. r0, r3
/* 80066E10 00062C50 40 82 01 2C */ bne lbl_80066F3C
/* 80066E14 00062C54 38 00 00 00 */ li r0, 0x0
/* 80066E18 00062C58 90 01 00 10 */ stw r0, 0x10(r1)
/* 80066E1C 00062C5C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80066E20 00062C60 90 01 00 18 */ stw r0, 0x18(r1)
/* 80066E24 00062C64 90 01 00 1C */ stw r0, 0x1c(r1)
/* 80066E28 00062C68 48 00 00 08 */ b lbl_80066E30
/* 80066E2C 00062C6C 4B F9 D1 D5 */ bl memcpy
.global lbl_80066E30
lbl_80066E30:
/* 80066E30 00062C70 3C 60 80 4C */ lis r3, _wudNandWbcInfo@ha
/* 80066E34 00062C74 38 81 00 10 */ addi r4, r1, 0x10
/* 80066E38 00062C78 38 63 67 80 */ addi r3, r3, _wudNandWbcInfo@l
/* 80066E3C 00062C7C 38 A0 00 10 */ li r5, 0x10
/* 80066E40 00062C80 38 63 00 06 */ addi r3, r3, 0x6
/* 80066E44 00062C84 4B F9 D1 BD */ bl memcpy
/* 80066E48 00062C88 48 00 00 08 */ b lbl_80066E50
/* 80066E4C 00062C8C 4B F9 D1 B5 */ bl memcpy
.global lbl_80066E50
lbl_80066E50:
/* 80066E50 00062C90 80 6D EA 24 */ lwz r3, _wudNandWbcCrc@sda21(r13)
/* 80066E54 00062C94 3C 80 80 4C */ lis r4, _wudNandWbcInfo@ha
/* 80066E58 00062C98 38 00 00 08 */ li r0, 0x8
/* 80066E5C 00062C9C 38 84 67 80 */ addi r4, r4, _wudNandWbcInfo@l
/* 80066E60 00062CA0 54 65 84 3E */ srwi r5, r3, 16
/* 80066E64 00062CA4 54 66 04 3E */ clrlwi r6, r3, 16
/* 80066E68 00062CA8 7C 09 03 A6 */ mtctr r0
.global lbl_80066E6C
lbl_80066E6C:
/* 80066E6C 00062CAC A0 64 00 00 */ lhz r3, 0x0(r4)
/* 80066E70 00062CB0 7C 60 18 F8 */ nor r0, r3, r3
/* 80066E74 00062CB4 7C A5 1A 14 */ add r5, r5, r3
/* 80066E78 00062CB8 A0 64 00 02 */ lhz r3, 0x2(r4)
/* 80066E7C 00062CBC 7C 06 02 14 */ add r0, r6, r0
/* 80066E80 00062CC0 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066E84 00062CC4 7C 60 18 F8 */ nor r0, r3, r3
/* 80066E88 00062CC8 7C A5 1A 14 */ add r5, r5, r3
/* 80066E8C 00062CCC A0 64 00 04 */ lhz r3, 0x4(r4)
/* 80066E90 00062CD0 7C 06 02 14 */ add r0, r6, r0
/* 80066E94 00062CD4 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066E98 00062CD8 7C 60 18 F8 */ nor r0, r3, r3
/* 80066E9C 00062CDC 7C A5 1A 14 */ add r5, r5, r3
/* 80066EA0 00062CE0 A0 64 00 06 */ lhz r3, 0x6(r4)
/* 80066EA4 00062CE4 7C 06 02 14 */ add r0, r6, r0
/* 80066EA8 00062CE8 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066EAC 00062CEC 7C 60 18 F8 */ nor r0, r3, r3
/* 80066EB0 00062CF0 7C A5 1A 14 */ add r5, r5, r3
/* 80066EB4 00062CF4 A0 64 00 08 */ lhz r3, 0x8(r4)
/* 80066EB8 00062CF8 7C 06 02 14 */ add r0, r6, r0
/* 80066EBC 00062CFC 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066EC0 00062D00 7C 60 18 F8 */ nor r0, r3, r3
/* 80066EC4 00062D04 7C A5 1A 14 */ add r5, r5, r3
/* 80066EC8 00062D08 A0 64 00 0A */ lhz r3, 0xa(r4)
/* 80066ECC 00062D0C 7C 06 02 14 */ add r0, r6, r0
/* 80066ED0 00062D10 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066ED4 00062D14 7C 60 18 F8 */ nor r0, r3, r3
/* 80066ED8 00062D18 7C A5 1A 14 */ add r5, r5, r3
/* 80066EDC 00062D1C A0 64 00 0C */ lhz r3, 0xc(r4)
/* 80066EE0 00062D20 7C 06 02 14 */ add r0, r6, r0
/* 80066EE4 00062D24 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066EE8 00062D28 7C 60 18 F8 */ nor r0, r3, r3
/* 80066EEC 00062D2C 7C A5 1A 14 */ add r5, r5, r3
/* 80066EF0 00062D30 A0 64 00 0E */ lhz r3, 0xe(r4)
/* 80066EF4 00062D34 7C 06 02 14 */ add r0, r6, r0
/* 80066EF8 00062D38 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066EFC 00062D3C 38 84 00 10 */ addi r4, r4, 0x10
/* 80066F00 00062D40 7C 60 18 F8 */ nor r0, r3, r3
/* 80066F04 00062D44 7C A5 1A 14 */ add r5, r5, r3
/* 80066F08 00062D48 7C 06 02 14 */ add r0, r6, r0
/* 80066F0C 00062D4C 54 06 04 3E */ clrlwi r6, r0, 16
/* 80066F10 00062D50 42 00 FF 5C */ bdnz lbl_80066E6C
/* 80066F14 00062D54 3C 60 80 4C */ lis r3, _wudNandWbcInfo@ha
/* 80066F18 00062D58 50 A6 80 1E */ rlwimi r6, r5, 16, 0, 15
/* 80066F1C 00062D5C 38 63 67 80 */ addi r3, r3, _wudNandWbcInfo@l
/* 80066F20 00062D60 90 C1 00 08 */ stw r6, 0x8(r1)
/* 80066F24 00062D64 38 81 00 08 */ addi r4, r1, 0x8
/* 80066F28 00062D68 38 A0 00 04 */ li r5, 0x4
/* 80066F2C 00062D6C 38 63 00 80 */ addi r3, r3, 0x80
/* 80066F30 00062D70 4B F9 D0 D1 */ bl memcpy
/* 80066F34 00062D74 38 60 00 64 */ li r3, 0x64
/* 80066F38 00062D78 48 00 00 10 */ b lbl_80066F48
.global lbl_80066F3C
lbl_80066F3C:
/* 80066F3C 00062D7C 38 60 00 05 */ li r3, 0x5
/* 80066F40 00062D80 48 00 00 08 */ b lbl_80066F48
.global lbl_80066F44
lbl_80066F44:
/* 80066F44 00062D84 38 60 00 05 */ li r3, 0x5
.global lbl_80066F48
lbl_80066F48:
/* 80066F48 00062D88 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80066F4C 00062D8C 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80066F50 00062D90 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 80066F54 00062D94 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80066F58 00062D98 7C 08 03 A6 */ mtlr r0
/* 80066F5C 00062D9C 38 21 00 30 */ addi r1, r1, 0x30
/* 80066F60 00062DA0 4E 80 00 20 */ blr
/* 80066F64 00062DA4 00 00 00 00 */ .4byte 0x00000000
/* 80066F68 00062DA8 00 00 00 00 */ .4byte 0x00000000
/* 80066F6C 00062DAC 00 00 00 00 */ .4byte 0x00000000
.global __wudDeleteHandler
__wudDeleteHandler:
/* 80066F70 00062DB0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80066F74 00062DB4 7C 08 02 A6 */ mflr r0
/* 80066F78 00062DB8 90 01 00 24 */ stw r0, 0x24(r1)
/* 80066F7C 00062DBC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80066F80 00062DC0 3B E0 00 00 */ li r31, 0x0
/* 80066F84 00062DC4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80066F88 00062DC8 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80066F8C 00062DCC 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80066F90 00062DD0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80066F94 00062DD4 3B BE 00 00 */ addi r29, r30, 0x0
/* 80066F98 00062DD8 88 1D 00 0D */ lbz r0, 0xd(r29)
/* 80066F9C 00062DDC 9B FD 00 0C */ stb r31, 0xc(r29)
/* 80066FA0 00062DE0 2C 00 00 07 */ cmpwi r0, 0x7
/* 80066FA4 00062DE4 41 82 02 20 */ beq lbl_800671C4
/* 80066FA8 00062DE8 40 80 00 2C */ bge lbl_80066FD4
/* 80066FAC 00062DEC 2C 00 00 03 */ cmpwi r0, 0x3
/* 80066FB0 00062DF0 41 82 00 78 */ beq lbl_80067028
/* 80066FB4 00062DF4 40 80 00 14 */ bge lbl_80066FC8
/* 80066FB8 00062DF8 2C 00 00 01 */ cmpwi r0, 0x1
/* 80066FBC 00062DFC 41 82 00 48 */ beq lbl_80067004
/* 80066FC0 00062E00 40 80 00 5C */ bge lbl_8006701C
/* 80066FC4 00062E04 48 00 02 00 */ b lbl_800671C4
.global lbl_80066FC8
lbl_80066FC8:
/* 80066FC8 00062E08 2C 00 00 05 */ cmpwi r0, 0x5
/* 80066FCC 00062E0C 41 82 00 68 */ beq lbl_80067034
/* 80066FD0 00062E10 48 00 01 F4 */ b lbl_800671C4
.global lbl_80066FD4
lbl_80066FD4:
/* 80066FD4 00062E14 2C 00 00 65 */ cmpwi r0, 0x65
/* 80066FD8 00062E18 41 82 01 58 */ beq lbl_80067130
/* 80066FDC 00062E1C 40 80 00 18 */ bge lbl_80066FF4
/* 80066FE0 00062E20 2C 00 00 64 */ cmpwi r0, 0x64
/* 80066FE4 00062E24 40 80 01 14 */ bge lbl_800670F8
/* 80066FE8 00062E28 2C 00 00 09 */ cmpwi r0, 0x9
/* 80066FEC 00062E2C 40 80 01 D8 */ bge lbl_800671C4
/* 80066FF0 00062E30 48 00 00 B0 */ b lbl_800670A0
.global lbl_80066FF4
lbl_80066FF4:
/* 80066FF4 00062E34 2C 00 00 67 */ cmpwi r0, 0x67
/* 80066FF8 00062E38 41 82 01 A4 */ beq lbl_8006719C
/* 80066FFC 00062E3C 40 80 01 C8 */ bge lbl_800671C4
/* 80067000 00062E40 48 00 01 68 */ b lbl_80067168
.global lbl_80067004
lbl_80067004:
/* 80067004 00062E44 38 60 00 00 */ li r3, 0x0
/* 80067008 00062E48 38 80 00 00 */ li r4, 0x0
/* 8006700C 00062E4C 48 01 3B 35 */ bl BTA_DmSetVisibility
/* 80067010 00062E50 38 00 00 02 */ li r0, 0x2
/* 80067014 00062E54 98 1D 00 0D */ stb r0, 0xd(r29)
/* 80067018 00062E58 48 00 01 AC */ b lbl_800671C4
.global lbl_8006701C
lbl_8006701C:
/* 8006701C 00062E5C 4B FF FC A5 */ bl __wudDeleteDisconnectAll
/* 80067020 00062E60 98 7D 00 0D */ stb r3, 0xd(r29)
/* 80067024 00062E64 48 00 01 A0 */ b lbl_800671C4
.global lbl_80067028
lbl_80067028:
/* 80067028 00062E68 4B FF FD 39 */ bl __wudDeleteCleanupDatabase
/* 8006702C 00062E6C 98 7D 00 0D */ stb r3, 0xd(r29)
/* 80067030 00062E70 48 00 01 94 */ b lbl_800671C4
.global lbl_80067034
lbl_80067034:
/* 80067034 00062E74 4B FE 44 9D */ bl SCCheckStatus
/* 80067038 00062E78 28 03 00 01 */ cmplwi r3, 0x1
/* 8006703C 00062E7C 41 82 01 88 */ beq lbl_800671C4
/* 80067040 00062E80 38 7E 08 B8 */ addi r3, r30, 0x8b8
/* 80067044 00062E84 38 80 00 00 */ li r4, 0x0
/* 80067048 00062E88 38 A0 04 61 */ li r5, 0x461
/* 8006704C 00062E8C 4B F9 D3 05 */ bl memset
/* 80067050 00062E90 38 7E 1F 60 */ addi r3, r30, 0x1f60
/* 80067054 00062E94 38 80 00 00 */ li r4, 0x0
/* 80067058 00062E98 38 A0 02 05 */ li r5, 0x205
/* 8006705C 00062E9C 4B F9 D2 F5 */ bl memset
/* 80067060 00062EA0 38 7E 08 B8 */ addi r3, r30, 0x8b8
/* 80067064 00062EA4 4B FE 5F AD */ bl SCSetBtDeviceInfoArray
/* 80067068 00062EA8 7C 7F 1B 78 */ mr r31, r3
/* 8006706C 00062EAC 38 7E 1F 60 */ addi r3, r30, 0x1f60
/* 80067070 00062EB0 4B FE 5F C1 */ bl SCSetBtCmpDevInfoArray
/* 80067074 00062EB4 7F E0 1B 79 */ or. r0, r31, r3
/* 80067078 00062EB8 41 82 00 1C */ beq lbl_80067094
/* 8006707C 00062EBC 38 00 00 06 */ li r0, 0x6
/* 80067080 00062EC0 3C 60 80 06 */ lis r3, __wudDeleteFlushCallback@ha
/* 80067084 00062EC4 98 1D 00 0D */ stb r0, 0xd(r29)
/* 80067088 00062EC8 38 63 6C A0 */ addi r3, r3, __wudDeleteFlushCallback@l
/* 8006708C 00062ECC 4B FE 56 F5 */ bl SCFlushAsync
/* 80067090 00062ED0 48 00 01 34 */ b lbl_800671C4
.global lbl_80067094
lbl_80067094:
/* 80067094 00062ED4 38 00 00 08 */ li r0, 0x8
/* 80067098 00062ED8 98 1D 00 0D */ stb r0, 0xd(r29)
/* 8006709C 00062EDC 48 00 01 28 */ b lbl_800671C4
.global lbl_800670A0
lbl_800670A0:
/* 800670A0 00062EE0 4B FB A7 81 */ bl OSDisableInterrupts
/* 800670A4 00062EE4 8B DD 06 EA */ lbz r30, 0x6ea(r29)
/* 800670A8 00062EE8 4B FB A7 B9 */ bl OSRestoreInterrupts
/* 800670AC 00062EEC 4B FB A7 75 */ bl OSDisableInterrupts
/* 800670B0 00062EF0 9B FD 06 EB */ stb r31, 0x6eb(r29)
/* 800670B4 00062EF4 9B DD 06 EA */ stb r30, 0x6ea(r29)
/* 800670B8 00062EF8 4B FB A7 A9 */ bl OSRestoreInterrupts
/* 800670BC 00062EFC 7F C4 F3 78 */ mr r4, r30
/* 800670C0 00062F00 38 60 00 00 */ li r3, 0x0
/* 800670C4 00062F04 48 01 3A 7D */ bl BTA_DmSetVisibility
/* 800670C8 00062F08 38 7D 07 10 */ addi r3, r29, 0x710
/* 800670CC 00062F0C 4B FB 4A 95 */ bl OSCancelAlarm
/* 800670D0 00062F10 81 9D 00 08 */ lwz r12, 0x8(r29)
/* 800670D4 00062F14 9B FD 00 0D */ stb r31, 0xd(r29)
/* 800670D8 00062F18 2C 0C 00 00 */ cmpwi r12, 0x0
/* 800670DC 00062F1C 41 82 00 10 */ beq lbl_800670EC
/* 800670E0 00062F20 38 60 00 01 */ li r3, 0x1
/* 800670E4 00062F24 7D 89 03 A6 */ mtctr r12
/* 800670E8 00062F28 4E 80 04 21 */ bctrl
.global lbl_800670EC
lbl_800670EC:
/* 800670EC 00062F2C 38 00 00 00 */ li r0, 0x0
/* 800670F0 00062F30 98 1D 00 0D */ stb r0, 0xd(r29)
/* 800670F4 00062F34 48 00 00 D0 */ b lbl_800671C4
.global lbl_800670F8
lbl_800670F8:
/* 800670F8 00062F38 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 800670FC 00062F3C 3C 60 80 44 */ lis r3, "@6546"@ha
/* 80067100 00062F40 38 63 9D BC */ addi r3, r3, "@6546"@l
/* 80067104 00062F44 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067108 00062F48 40 82 00 BC */ bne lbl_800671C4
/* 8006710C 00062F4C 38 00 00 01 */ li r0, 0x1
/* 80067110 00062F50 3C C0 80 06 */ lis r6, __wudOpenWiiFitCallback@ha
/* 80067114 00062F54 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067118 00062F58 38 9E 0E 00 */ addi r4, r30, 0xe00
/* 8006711C 00062F5C 38 C6 5F A0 */ addi r6, r6, __wudOpenWiiFitCallback@l
/* 80067120 00062F60 38 FE 0E 8C */ addi r7, r30, 0xe8c
/* 80067124 00062F64 38 A0 00 02 */ li r5, 0x2
/* 80067128 00062F68 4B FE 23 A9 */ bl NANDOpenAsync
/* 8006712C 00062F6C 48 00 00 98 */ b lbl_800671C4
.global lbl_80067130
lbl_80067130:
/* 80067130 00062F70 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80067134 00062F74 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067138 00062F78 40 82 00 8C */ bne lbl_800671C4
/* 8006713C 00062F7C 38 00 00 01 */ li r0, 0x1
/* 80067140 00062F80 3C 80 00 05 */ lis r4, 0x5
/* 80067144 00062F84 3C C0 80 06 */ lis r6, __wudSeekWiiFitCallback@ha
/* 80067148 00062F88 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 8006714C 00062F8C 38 7E 0E 00 */ addi r3, r30, 0xe00
/* 80067150 00062F90 38 84 AF 18 */ addi r4, r4, -0x50e8
/* 80067154 00062F94 38 C6 60 10 */ addi r6, r6, __wudSeekWiiFitCallback@l
/* 80067158 00062F98 38 FE 0E 8C */ addi r7, r30, 0xe8c
/* 8006715C 00062F9C 38 A0 00 00 */ li r5, 0x0
/* 80067160 00062FA0 4B FE 14 31 */ bl NANDSeekAsync
/* 80067164 00062FA4 48 00 00 60 */ b lbl_800671C4
.global lbl_80067168
lbl_80067168:
/* 80067168 00062FA8 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 8006716C 00062FAC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067170 00062FB0 40 82 00 54 */ bne lbl_800671C4
/* 80067174 00062FB4 38 00 00 01 */ li r0, 0x1
/* 80067178 00062FB8 3C C0 80 06 */ lis r6, __wudUpdateWiiFitCallback@ha
/* 8006717C 00062FBC 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067180 00062FC0 38 7E 0E 00 */ addi r3, r30, 0xe00
/* 80067184 00062FC4 38 9E 0D 20 */ addi r4, r30, 0xd20
/* 80067188 00062FC8 38 C6 60 90 */ addi r6, r6, __wudUpdateWiiFitCallback@l
/* 8006718C 00062FCC 38 FE 0E 8C */ addi r7, r30, 0xe8c
/* 80067190 00062FD0 38 A0 00 84 */ li r5, 0x84
/* 80067194 00062FD4 4B FE 12 DD */ bl NANDWriteAsync
/* 80067198 00062FD8 48 00 00 2C */ b lbl_800671C4
.global lbl_8006719C
lbl_8006719C:
/* 8006719C 00062FDC 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 800671A0 00062FE0 2C 00 00 00 */ cmpwi r0, 0x0
/* 800671A4 00062FE4 40 82 00 20 */ bne lbl_800671C4
/* 800671A8 00062FE8 38 00 00 01 */ li r0, 0x1
/* 800671AC 00062FEC 3C 80 80 06 */ lis r4, __wudCloseWiiFitCallback@ha
/* 800671B0 00062FF0 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 800671B4 00062FF4 38 7E 0E 00 */ addi r3, r30, 0xe00
/* 800671B8 00062FF8 38 84 61 00 */ addi r4, r4, __wudCloseWiiFitCallback@l
/* 800671BC 00062FFC 38 BE 0E 8C */ addi r5, r30, 0xe8c
/* 800671C0 00063000 4B FE 25 01 */ bl NANDCloseAsync
.global lbl_800671C4
lbl_800671C4:
/* 800671C4 00063004 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800671C8 00063008 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800671CC 0006300C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800671D0 00063010 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 800671D4 00063014 7C 08 03 A6 */ mtlr r0
/* 800671D8 00063018 38 21 00 20 */ addi r1, r1, 0x20
/* 800671DC 0006301C 4E 80 00 20 */ blr
.global __wudDeleteHandler0
__wudDeleteHandler0:
/* 800671E0 00063020 3D 00 80 4C */ lis r8, _wudHandlerStack@ha
/* 800671E4 00063024 3C E0 80 06 */ lis r7, __wudDeleteHandler@ha
/* 800671E8 00063028 39 08 69 C0 */ addi r8, r8, _wudHandlerStack@l
/* 800671EC 0006302C 38 A0 00 00 */ li r5, 0x0
/* 800671F0 00063030 38 E7 6F 70 */ addi r7, r7, __wudDeleteHandler@l
/* 800671F4 00063034 38 C0 00 00 */ li r6, 0x0
/* 800671F8 00063038 39 08 10 00 */ addi r8, r8, 0x1000
/* 800671FC 0006303C 4B FB 62 14 */ b OSSwitchFiberEx
.global __wudStackCheckDeviceInfo
__wudStackCheckDeviceInfo:
/* 80067200 00063040 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80067204 00063044 7C 08 02 A6 */ mflr r0
/* 80067208 00063048 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006720C 0006304C 39 61 00 20 */ addi r11, r1, 0x20
/* 80067210 00063050 4B FA 01 2D */ bl lbl_8000733C
/* 80067214 00063054 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80067218 00063058 3B 83 5A 60 */ addi r28, r3, __rvl_wudcb@l
/* 8006721C 0006305C 88 1C 00 0E */ lbz r0, 0xe(r28)
/* 80067220 00063060 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067224 00063064 40 82 00 CC */ bne lbl_800672F0
/* 80067228 00063068 3B 60 00 00 */ li r27, 0x0
/* 8006722C 0006306C 3B A0 00 00 */ li r29, 0x0
.global lbl_80067230
lbl_80067230:
/* 80067230 00063070 4B FB A5 F1 */ bl OSDisableInterrupts
/* 80067234 00063074 28 1B 00 09 */ cmplwi r27, 0x9
/* 80067238 00063078 41 81 00 10 */ bgt lbl_80067248
/* 8006723C 0006307C 7C 9C EA 14 */ add r4, r28, r29
/* 80067240 00063080 3B E4 00 E4 */ addi r31, r4, 0xe4
/* 80067244 00063084 48 00 00 14 */ b lbl_80067258
.global lbl_80067248
lbl_80067248:
/* 80067248 00063088 38 1B FF F6 */ addi r0, r27, -0xa
/* 8006724C 0006308C 1C 00 00 60 */ mulli r0, r0, 0x60
/* 80067250 00063090 7C 9C 02 14 */ add r4, r28, r0
/* 80067254 00063094 3B E4 04 A4 */ addi r31, r4, 0x4a4
.global lbl_80067258
lbl_80067258:
/* 80067258 00063098 4B FB A6 09 */ bl OSRestoreInterrupts
/* 8006725C 0006309C 88 1F 00 59 */ lbz r0, 0x59(r31)
/* 80067260 000630A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067264 000630A4 41 82 00 74 */ beq lbl_800672D8
/* 80067268 000630A8 88 1F 00 5C */ lbz r0, 0x5c(r31)
/* 8006726C 000630AC 28 00 00 01 */ cmplwi r0, 0x1
/* 80067270 000630B0 40 82 00 2C */ bne lbl_8006729C
/* 80067274 000630B4 38 00 00 03 */ li r0, 0x3
/* 80067278 000630B8 3C 80 80 07 */ lis r4, __wudLinkKeyEventStackCallback@ha
/* 8006727C 000630BC 98 1C 00 0E */ stb r0, 0xe(r28)
/* 80067280 000630C0 38 7F 00 40 */ addi r3, r31, 0x40
/* 80067284 000630C4 38 84 A8 90 */ addi r4, r4, __wudLinkKeyEventStackCallback@l
/* 80067288 000630C8 48 01 A5 39 */ bl BTM_DeleteStoredLinkKey
/* 8006728C 000630CC 38 00 00 00 */ li r0, 0x0
/* 80067290 000630D0 98 1F 00 5C */ stb r0, 0x5c(r31)
/* 80067294 000630D4 38 60 00 02 */ li r3, 0x2
/* 80067298 000630D8 48 00 00 5C */ b lbl_800672F4
.global lbl_8006729C
lbl_8006729C:
/* 8006729C 000630DC 28 00 00 03 */ cmplwi r0, 0x3
/* 800672A0 000630E0 41 82 00 38 */ beq lbl_800672D8
/* 800672A4 000630E4 38 7F 00 40 */ addi r3, r31, 0x40
/* 800672A8 000630E8 48 00 23 D9 */ bl WUDiGetDevInfo
/* 800672AC 000630EC 2C 03 00 00 */ cmpwi r3, 0x0
/* 800672B0 000630F0 7C 7E 1B 78 */ mr r30, r3
/* 800672B4 000630F4 41 82 00 24 */ beq lbl_800672D8
/* 800672B8 000630F8 4B FB A5 69 */ bl OSDisableInterrupts
/* 800672BC 000630FC 7C 7F 1B 78 */ mr r31, r3
/* 800672C0 00063100 7F C3 F3 78 */ mr r3, r30
/* 800672C4 00063104 38 80 00 00 */ li r4, 0x0
/* 800672C8 00063108 38 A0 00 60 */ li r5, 0x60
/* 800672CC 0006310C 4B F9 D0 85 */ bl memset
/* 800672D0 00063110 7F E3 FB 78 */ mr r3, r31
/* 800672D4 00063114 4B FB A5 8D */ bl OSRestoreInterrupts
.global lbl_800672D8
lbl_800672D8:
/* 800672D8 00063118 3B 7B 00 01 */ addi r27, r27, 0x1
/* 800672DC 0006311C 3B BD 00 60 */ addi r29, r29, 0x60
/* 800672E0 00063120 2C 1B 00 10 */ cmpwi r27, 0x10
/* 800672E4 00063124 41 80 FF 4C */ blt lbl_80067230
/* 800672E8 00063128 38 60 00 03 */ li r3, 0x3
/* 800672EC 0006312C 48 00 00 08 */ b lbl_800672F4
.global lbl_800672F0
lbl_800672F0:
/* 800672F0 00063130 38 60 00 02 */ li r3, 0x2
.global lbl_800672F4
lbl_800672F4:
/* 800672F4 00063134 39 61 00 20 */ addi r11, r1, 0x20
/* 800672F8 00063138 4B FA 00 91 */ bl lbl_80007388
/* 800672FC 0006313C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80067300 00063140 7C 08 03 A6 */ mtlr r0
/* 80067304 00063144 38 21 00 20 */ addi r1, r1, 0x20
/* 80067308 00063148 4E 80 00 20 */ blr
/* 8006730C 0006314C 00 00 00 00 */ .4byte 0x00000000
.global __wudStackHandler
__wudStackHandler:
/* 80067310 00063150 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80067314 00063154 7C 08 02 A6 */ mflr r0
/* 80067318 00063158 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006731C 0006315C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80067320 00063160 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80067324 00063164 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80067328 00063168 88 1F 00 0F */ lbz r0, 0xf(r31)
/* 8006732C 0006316C 2C 00 00 01 */ cmpwi r0, 0x1
/* 80067330 00063170 41 82 00 18 */ beq lbl_80067348
/* 80067334 00063174 2C 00 00 02 */ cmpwi r0, 0x2
/* 80067338 00063178 41 82 00 40 */ beq lbl_80067378
/* 8006733C 0006317C 2C 00 00 03 */ cmpwi r0, 0x3
/* 80067340 00063180 41 82 00 44 */ beq lbl_80067384
/* 80067344 00063184 48 00 01 38 */ b lbl_8006747C
.global lbl_80067348
lbl_80067348:
/* 80067348 00063188 80 1F 07 40 */ lwz r0, 0x740(r31)
/* 8006734C 0006318C 28 00 00 01 */ cmplwi r0, 0x1
/* 80067350 00063190 40 82 00 1C */ bne lbl_8006736C
/* 80067354 00063194 38 00 00 01 */ li r0, 0x1
/* 80067358 00063198 3C 80 80 07 */ lis r4, __wudLinkKeyEventStackCallback@ha
/* 8006735C 0006319C 98 1F 00 0E */ stb r0, 0xe(r31)
/* 80067360 000631A0 38 84 A8 90 */ addi r4, r4, __wudLinkKeyEventStackCallback@l
/* 80067364 000631A4 38 60 00 00 */ li r3, 0x0
/* 80067368 000631A8 48 01 A2 B1 */ bl BTM_ReadStoredLinkKey
.global lbl_8006736C
lbl_8006736C:
/* 8006736C 000631AC 38 00 00 02 */ li r0, 0x2
/* 80067370 000631B0 98 1F 00 0F */ stb r0, 0xf(r31)
/* 80067374 000631B4 48 00 01 08 */ b lbl_8006747C
.global lbl_80067378
lbl_80067378:
/* 80067378 000631B8 4B FF FE 89 */ bl __wudStackCheckDeviceInfo
/* 8006737C 000631BC 98 7F 00 0F */ stb r3, 0xf(r31)
/* 80067380 000631C0 48 00 00 FC */ b lbl_8006747C
.global lbl_80067384
lbl_80067384:
/* 80067384 000631C4 88 1F 00 0E */ lbz r0, 0xe(r31)
/* 80067388 000631C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006738C 000631CC 40 82 00 E8 */ bne lbl_80067474
/* 80067390 000631D0 38 7F 07 10 */ addi r3, r31, 0x710
/* 80067394 000631D4 4B FB 47 CD */ bl OSCancelAlarm
/* 80067398 000631D8 38 61 00 08 */ addi r3, r1, 0x8
/* 8006739C 000631DC 48 01 9E A1 */ bl BTM_ReadLocalVersion
/* 800673A0 000631E0 A0 01 00 0A */ lhz r0, 0xa(r1)
/* 800673A4 000631E4 54 00 05 3E */ clrlwi r0, r0, 20
/* 800673A8 000631E8 2C 00 00 A7 */ cmpwi r0, 0xa7
/* 800673AC 000631EC 40 82 00 BC */ bne lbl_80067468
/* 800673B0 000631F0 3C 60 80 44 */ lis r3, _wudPatchData@ha
/* 800673B4 000631F4 80 0D E3 58 */ lwz r0, __OSInIPL@sda21(r13)
/* 800673B8 000631F8 39 03 9C 60 */ addi r8, r3, _wudPatchData@l
/* 800673BC 000631FC 88 83 9C 60 */ lbz r4, -0x63a0(r3)
/* 800673C0 00063200 88 C8 00 03 */ lbz r6, 0x3(r8)
/* 800673C4 00063204 2C 00 00 00 */ cmpwi r0, 0x0
/* 800673C8 00063208 88 68 00 07 */ lbz r3, 0x7(r8)
/* 800673CC 0006320C 88 A8 00 02 */ lbz r5, 0x2(r8)
/* 800673D0 00063210 54 C6 40 2E */ slwi r6, r6, 8
/* 800673D4 00063214 88 08 00 06 */ lbz r0, 0x6(r8)
/* 800673D8 00063218 54 63 40 2E */ slwi r3, r3, 8
/* 800673DC 0006321C 7C E6 2A 14 */ add r7, r6, r5
/* 800673E0 00063220 88 C8 00 01 */ lbz r6, 0x1(r8)
/* 800673E4 00063224 7C A3 02 14 */ add r5, r3, r0
/* 800673E8 00063228 88 68 00 05 */ lbz r3, 0x5(r8)
/* 800673EC 0006322C 54 E7 40 2E */ slwi r7, r7, 8
/* 800673F0 00063230 88 08 00 04 */ lbz r0, 0x4(r8)
/* 800673F4 00063234 54 A5 40 2E */ slwi r5, r5, 8
/* 800673F8 00063238 7C 65 1A 14 */ add r3, r5, r3
/* 800673FC 0006323C 7C C7 32 14 */ add r6, r7, r6
/* 80067400 00063240 54 C5 40 2E */ slwi r5, r6, 8
/* 80067404 00063244 54 63 40 2E */ slwi r3, r3, 8
/* 80067408 00063248 7C 85 22 14 */ add r4, r5, r4
/* 8006740C 0006324C 90 8D EA 30 */ stw r4, _wudPatchAddress@sda21(r13)
/* 80067410 00063250 7C 03 02 14 */ add r0, r3, r0
/* 80067414 00063254 90 0D EA 38 */ stw r0, _wudPatchSize@sda21(r13)
/* 80067418 00063258 41 82 00 2C */ beq lbl_80067444
/* 8006741C 0006325C 3C 60 00 01 */ lis r3, 0x1
/* 80067420 00063260 3C A0 80 44 */ lis r5, _wudSuperPeekPokeCmd@ha
/* 80067424 00063264 38 03 FC 0A */ addi r0, r3, -0x3f6
/* 80067428 00063268 3C C0 80 07 */ lis r6, __wudSuperPeekPokeCallback@ha
/* 8006742C 0006326C 54 03 04 3E */ clrlwi r3, r0, 16
/* 80067430 00063270 38 A5 9C 54 */ addi r5, r5, _wudSuperPeekPokeCmd@l
/* 80067434 00063274 38 C6 92 C0 */ addi r6, r6, __wudSuperPeekPokeCallback@l
/* 80067438 00063278 38 80 00 09 */ li r4, 0x9
/* 8006743C 0006327C 48 01 9F 05 */ bl BTM_VendorSpecificCommand
/* 80067440 00063280 48 00 00 2C */ b lbl_8006746C
.global lbl_80067444
lbl_80067444:
/* 80067444 00063284 3C 60 00 01 */ lis r3, 0x1
/* 80067448 00063288 3C C0 80 07 */ lis r6, __wudRemovePatchCallback@ha
/* 8006744C 0006328C 38 03 FC 4F */ addi r0, r3, -0x3b1
/* 80067450 00063290 38 80 00 01 */ li r4, 0x1
/* 80067454 00063294 54 03 04 3E */ clrlwi r3, r0, 16
/* 80067458 00063298 38 C6 91 40 */ addi r6, r6, __wudRemovePatchCallback@l
/* 8006745C 0006329C 38 AD EA 14 */ addi r5, r13, _wudPatchRemoveCmd@sda21
/* 80067460 000632A0 48 01 9E E1 */ bl BTM_VendorSpecificCommand
/* 80067464 000632A4 48 00 00 08 */ b lbl_8006746C
.global lbl_80067468
lbl_80067468:
/* 80067468 000632A8 48 00 1E 79 */ bl __wudInitSub
.global lbl_8006746C
lbl_8006746C:
/* 8006746C 000632AC 38 00 00 04 */ li r0, 0x4
/* 80067470 000632B0 48 00 00 08 */ b lbl_80067478
.global lbl_80067474
lbl_80067474:
/* 80067474 000632B4 38 00 00 02 */ li r0, 0x2
.global lbl_80067478
lbl_80067478:
/* 80067478 000632B8 98 1F 00 0F */ stb r0, 0xf(r31)
.global lbl_8006747C
lbl_8006747C:
/* 8006747C 000632BC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80067480 000632C0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80067484 000632C4 7C 08 03 A6 */ mtlr r0
/* 80067488 000632C8 38 21 00 20 */ addi r1, r1, 0x20
/* 8006748C 000632CC 4E 80 00 20 */ blr
.global __wudStackHandler0
__wudStackHandler0:
/* 80067490 000632D0 3D 00 80 4C */ lis r8, _wudHandlerStack@ha
/* 80067494 000632D4 3C E0 80 06 */ lis r7, __wudStackHandler@ha
/* 80067498 000632D8 39 08 69 C0 */ addi r8, r8, _wudHandlerStack@l
/* 8006749C 000632DC 38 A0 00 00 */ li r5, 0x0
/* 800674A0 000632E0 38 E7 73 10 */ addi r7, r7, __wudStackHandler@l
/* 800674A4 000632E4 38 C0 00 00 */ li r6, 0x0
/* 800674A8 000632E8 39 08 10 00 */ addi r8, r8, 0x1000
/* 800674AC 000632EC 4B FB 5F 64 */ b OSSwitchFiberEx
.global __wudInitFlushCallback
__wudInitFlushCallback:
/* 800674B0 000632F0 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 800674B4 000632F4 38 00 00 06 */ li r0, 0x6
/* 800674B8 000632F8 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 800674BC 000632FC 98 03 00 10 */ stb r0, 0x10(r3)
/* 800674C0 00063300 4E 80 00 20 */ blr
/* 800674C4 00063304 00 00 00 00 */ .4byte 0x00000000
/* 800674C8 00063308 00 00 00 00 */ .4byte 0x00000000
/* 800674CC 0006330C 00 00 00 00 */ .4byte 0x00000000
.global __wudInitDevInfo
__wudInitDevInfo:
/* 800674D0 00063310 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 800674D4 00063314 7C 08 02 A6 */ mflr r0
/* 800674D8 00063318 90 01 00 64 */ stw r0, 0x64(r1)
/* 800674DC 0006331C 39 61 00 60 */ addi r11, r1, 0x60
/* 800674E0 00063320 4B F9 FE 29 */ bl __save_gpr
/* 800674E4 00063324 3F 00 80 4C */ lis r24, __rvl_wudcb@ha
/* 800674E8 00063328 3E E0 80 44 */ lis r23, _wudWiiRemoteDescriptor@ha
/* 800674EC 0006332C 3B 18 5A 60 */ addi r24, r24, __rvl_wudcb@l
/* 800674F0 00063330 38 80 00 00 */ li r4, 0x0
/* 800674F4 00063334 3A F7 9B 78 */ addi r23, r23, _wudWiiRemoteDescriptor@l
/* 800674F8 00063338 38 A0 04 61 */ li r5, 0x461
/* 800674FC 0006333C 38 78 08 B8 */ addi r3, r24, 0x8b8
/* 80067500 00063340 4B F9 CE 51 */ bl memset
/* 80067504 00063344 38 78 1F 60 */ addi r3, r24, 0x1f60
/* 80067508 00063348 38 80 00 00 */ li r4, 0x0
/* 8006750C 0006334C 38 A0 02 05 */ li r5, 0x205
/* 80067510 00063350 4B F9 CE 41 */ bl memset
/* 80067514 00063354 38 61 00 08 */ addi r3, r1, 0x8
/* 80067518 00063358 38 80 00 00 */ li r4, 0x0
/* 8006751C 0006335C 38 A0 00 06 */ li r5, 0x6
/* 80067520 00063360 4B F9 CE 31 */ bl memset
/* 80067524 00063364 38 78 08 B8 */ addi r3, r24, 0x8b8
/* 80067528 00063368 4B FE 5A D9 */ bl SCGetBtDeviceInfoArray
/* 8006752C 0006336C 38 78 1F 60 */ addi r3, r24, 0x1f60
/* 80067530 00063370 4B FE 5A F1 */ bl SCGetBtCmpDevInfoArray
/* 80067534 00063374 3B 78 08 B8 */ addi r27, r24, 0x8b8
/* 80067538 00063378 3B 58 00 00 */ addi r26, r24, 0x0
/* 8006753C 0006337C 3A 7B 00 01 */ addi r19, r27, 0x1
/* 80067540 00063380 3B 20 00 00 */ li r25, 0x0
/* 80067544 00063384 9B 3A 06 E9 */ stb r25, 0x6e9(r26)
/* 80067548 00063388 7E 75 9B 78 */ mr r21, r19
/* 8006754C 0006338C 8A 18 08 B8 */ lbz r16, 0x8b8(r24)
/* 80067550 00063390 3A DB 00 07 */ addi r22, r27, 0x7
/* 80067554 00063394 3A 40 00 00 */ li r18, 0x0
/* 80067558 00063398 39 E0 00 00 */ li r15, 0x0
/* 8006755C 0006339C 3B 80 00 01 */ li r28, 0x1
/* 80067560 000633A0 3B A0 00 02 */ li r29, 0x2
/* 80067564 000633A4 3F C0 00 01 */ lis r30, 0x1
/* 80067568 000633A8 3B E0 00 03 */ li r31, 0x3
/* 8006756C 000633AC 39 C0 00 0A */ li r14, 0xa
.global lbl_80067570
lbl_80067570:
/* 80067570 000633B0 2C 10 00 00 */ cmpwi r16, 0x0
/* 80067574 000633B4 41 82 01 74 */ beq lbl_800676E8
/* 80067578 000633B8 7E C3 B3 78 */ mr r3, r22
/* 8006757C 000633BC 38 97 02 1C */ addi r4, r23, 0x21c
/* 80067580 000633C0 38 A0 00 10 */ li r5, 0x10
/* 80067584 000633C4 4B FA 38 ED */ bl memcmp
/* 80067588 000633C8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006758C 000633CC 41 82 00 14 */ beq lbl_800675A0
/* 80067590 000633D0 7E A3 AB 78 */ mr r3, r21
/* 80067594 000633D4 38 80 00 00 */ li r4, 0x0
/* 80067598 000633D8 38 A0 00 46 */ li r5, 0x46
/* 8006759C 000633DC 4B F9 CD B5 */ bl memset
.global lbl_800675A0
lbl_800675A0:
/* 800675A0 000633E0 7E A3 AB 78 */ mr r3, r21
/* 800675A4 000633E4 38 81 00 08 */ addi r4, r1, 0x8
/* 800675A8 000633E8 38 A0 00 06 */ li r5, 0x6
/* 800675AC 000633EC 4B FA 38 C5 */ bl memcmp
/* 800675B0 000633F0 2C 03 00 00 */ cmpwi r3, 0x0
/* 800675B4 000633F4 40 82 00 7C */ bne lbl_80067630
/* 800675B8 000633F8 2C 12 00 09 */ cmpwi r18, 0x9
/* 800675BC 000633FC 40 80 01 18 */ bge lbl_800676D4
/* 800675C0 00063400 3A 32 00 01 */ addi r17, r18, 0x1
/* 800675C4 00063404 1C 11 00 46 */ mulli r0, r17, 0x46
/* 800675C8 00063408 7C 7B 02 14 */ add r3, r27, r0
/* 800675CC 0006340C 3A 83 00 07 */ addi r20, r3, 0x7
/* 800675D0 00063410 48 00 00 54 */ b lbl_80067624
.global lbl_800675D4
lbl_800675D4:
/* 800675D4 00063414 7E 83 A3 78 */ mr r3, r20
/* 800675D8 00063418 38 97 02 1C */ addi r4, r23, 0x21c
/* 800675DC 0006341C 38 A0 00 10 */ li r5, 0x10
/* 800675E0 00063420 4B FA 38 91 */ bl memcmp
/* 800675E4 00063424 2C 03 00 00 */ cmpwi r3, 0x0
/* 800675E8 00063428 40 82 00 34 */ bne lbl_8006761C
/* 800675EC 0006342C 1C 11 00 46 */ mulli r0, r17, 0x46
/* 800675F0 00063430 7E A3 AB 78 */ mr r3, r21
/* 800675F4 00063434 38 A0 00 46 */ li r5, 0x46
/* 800675F8 00063438 7C 9B 02 14 */ add r4, r27, r0
/* 800675FC 0006343C 3A 24 00 01 */ addi r17, r4, 0x1
/* 80067600 00063440 7E 24 8B 78 */ mr r4, r17
/* 80067604 00063444 4B F9 C9 FD */ bl memcpy
/* 80067608 00063448 7E 23 8B 78 */ mr r3, r17
/* 8006760C 0006344C 38 80 00 00 */ li r4, 0x0
/* 80067610 00063450 38 A0 00 46 */ li r5, 0x46
/* 80067614 00063454 4B F9 CD 3D */ bl memset
/* 80067618 00063458 48 00 00 18 */ b lbl_80067630
.global lbl_8006761C
lbl_8006761C:
/* 8006761C 0006345C 3A 94 00 46 */ addi r20, r20, 0x46
/* 80067620 00063460 3A 31 00 01 */ addi r17, r17, 0x1
.global lbl_80067624
lbl_80067624:
/* 80067624 00063464 2C 11 00 0A */ cmpwi r17, 0xa
/* 80067628 00063468 41 80 FF AC */ blt lbl_800675D4
/* 8006762C 0006346C 48 00 00 A8 */ b lbl_800676D4
.global lbl_80067630
lbl_80067630:
/* 80067630 00063470 4B FB A1 F1 */ bl OSDisableInterrupts
/* 80067634 00063474 88 1A 06 E9 */ lbz r0, 0x6e9(r26)
/* 80067638 00063478 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006763C 0006347C 40 82 00 40 */ bne lbl_8006767C
/* 80067640 00063480 7F 45 D3 78 */ mr r5, r26
/* 80067644 00063484 3A 20 00 00 */ li r17, 0x0
/* 80067648 00063488 38 80 00 00 */ li r4, 0x0
/* 8006764C 0006348C 7D C9 03 A6 */ mtctr r14
.global lbl_80067650
lbl_80067650:
/* 80067650 00063490 88 05 01 3D */ lbz r0, 0x13d(r5)
/* 80067654 00063494 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067658 00063498 40 82 00 14 */ bne lbl_8006766C
/* 8006765C 0006349C 1C 04 00 60 */ mulli r0, r4, 0x60
/* 80067660 000634A0 7C 9A 02 14 */ add r4, r26, r0
/* 80067664 000634A4 3A 24 00 E4 */ addi r17, r4, 0xe4
/* 80067668 000634A8 48 00 00 1C */ b lbl_80067684
.global lbl_8006766C
lbl_8006766C:
/* 8006766C 000634AC 38 A5 00 60 */ addi r5, r5, 0x60
/* 80067670 000634B0 38 84 00 01 */ addi r4, r4, 0x1
/* 80067674 000634B4 42 00 FF DC */ bdnz lbl_80067650
/* 80067678 000634B8 48 00 00 0C */ b lbl_80067684
.global lbl_8006767C
lbl_8006767C:
/* 8006767C 000634BC 80 9A 00 18 */ lwz r4, 0x18(r26)
/* 80067680 000634C0 82 24 00 00 */ lwz r17, 0x0(r4)
.global lbl_80067684
lbl_80067684:
/* 80067684 000634C4 4B FB A1 DD */ bl OSRestoreInterrupts
/* 80067688 000634C8 2C 11 00 00 */ cmpwi r17, 0x0
/* 8006768C 000634CC 41 82 00 48 */ beq lbl_800676D4
/* 80067690 000634D0 7E A4 AB 78 */ mr r4, r21
/* 80067694 000634D4 38 71 00 40 */ addi r3, r17, 0x40
/* 80067698 000634D8 38 A0 00 06 */ li r5, 0x6
/* 8006769C 000634DC 4B F9 C9 65 */ bl memcpy
/* 800676A0 000634E0 7E 23 8B 78 */ mr r3, r17
/* 800676A4 000634E4 7E C4 B3 78 */ mr r4, r22
/* 800676A8 000634E8 38 A0 00 40 */ li r5, 0x40
/* 800676AC 000634EC 4B F9 C9 55 */ bl memcpy
/* 800676B0 000634F0 9B 91 00 59 */ stb r28, 0x59(r17)
/* 800676B4 000634F4 38 1E 80 74 */ addi r0, r30, -0x7f8c
/* 800676B8 000634F8 39 EF 00 01 */ addi r15, r15, 0x1
/* 800676BC 000634FC 3A 10 FF FF */ addi r16, r16, -0x1
/* 800676C0 00063500 9B 31 00 5B */ stb r25, 0x5b(r17)
/* 800676C4 00063504 9B B1 00 5C */ stb r29, 0x5c(r17)
/* 800676C8 00063508 9B B1 00 57 */ stb r29, 0x57(r17)
/* 800676CC 0006350C B0 11 00 5E */ sth r0, 0x5e(r17)
/* 800676D0 00063510 9B F1 00 58 */ stb r31, 0x58(r17)
.global lbl_800676D4
lbl_800676D4:
/* 800676D4 00063514 3A 52 00 01 */ addi r18, r18, 0x1
/* 800676D8 00063518 3A B5 00 46 */ addi r21, r21, 0x46
/* 800676DC 0006351C 2C 12 00 0A */ cmpwi r18, 0xa
/* 800676E0 00063520 3A D6 00 46 */ addi r22, r22, 0x46
/* 800676E4 00063524 41 80 FE 8C */ blt lbl_80067570
.global lbl_800676E8
lbl_800676E8:
/* 800676E8 00063528 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 800676EC 0006352C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800676F0 00063530 41 82 01 48 */ beq lbl_80067838
/* 800676F4 00063534 38 78 08 B8 */ addi r3, r24, 0x8b8
/* 800676F8 00063538 38 97 02 30 */ addi r4, r23, 0x230
/* 800676FC 0006353C 38 63 03 DB */ addi r3, r3, 0x3db
/* 80067700 00063540 38 A0 00 10 */ li r5, 0x10
/* 80067704 00063544 4B FA 37 6D */ bl memcmp
/* 80067708 00063548 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006770C 0006354C 40 82 01 2C */ bne lbl_80067838
/* 80067710 00063550 4B FB A1 11 */ bl OSDisableInterrupts
/* 80067714 00063554 38 98 00 00 */ addi r4, r24, 0x0
/* 80067718 00063558 88 04 06 E9 */ lbz r0, 0x6e9(r4)
/* 8006771C 0006355C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067720 00063560 40 82 00 44 */ bne lbl_80067764
/* 80067724 00063564 38 00 00 0A */ li r0, 0xa
/* 80067728 00063568 7C 86 23 78 */ mr r6, r4
/* 8006772C 0006356C 39 C0 00 00 */ li r14, 0x0
/* 80067730 00063570 38 A0 00 00 */ li r5, 0x0
/* 80067734 00063574 7C 09 03 A6 */ mtctr r0
.global lbl_80067738
lbl_80067738:
/* 80067738 00063578 88 06 01 3D */ lbz r0, 0x13d(r6)
/* 8006773C 0006357C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067740 00063580 40 82 00 14 */ bne lbl_80067754
/* 80067744 00063584 1C 05 00 60 */ mulli r0, r5, 0x60
/* 80067748 00063588 7C 84 02 14 */ add r4, r4, r0
/* 8006774C 0006358C 39 C4 00 E4 */ addi r14, r4, 0xe4
/* 80067750 00063590 48 00 00 1C */ b lbl_8006776C
.global lbl_80067754
lbl_80067754:
/* 80067754 00063594 38 C6 00 60 */ addi r6, r6, 0x60
/* 80067758 00063598 38 A5 00 01 */ addi r5, r5, 0x1
/* 8006775C 0006359C 42 00 FF DC */ bdnz lbl_80067738
/* 80067760 000635A0 48 00 00 0C */ b lbl_8006776C
.global lbl_80067764
lbl_80067764:
/* 80067764 000635A4 80 84 00 18 */ lwz r4, 0x18(r4)
/* 80067768 000635A8 81 C4 00 00 */ lwz r14, 0x0(r4)
.global lbl_8006776C
lbl_8006776C:
/* 8006776C 000635AC 4B FB A0 F5 */ bl OSRestoreInterrupts
/* 80067770 000635B0 2C 0E 00 00 */ cmpwi r14, 0x0
/* 80067774 000635B4 40 82 00 18 */ bne lbl_8006778C
/* 80067778 000635B8 4B FB A0 A9 */ bl OSDisableInterrupts
/* 8006777C 000635BC 4B FB A0 E5 */ bl OSRestoreInterrupts
/* 80067780 000635C0 38 78 00 00 */ addi r3, r24, 0x0
/* 80067784 000635C4 39 EF FF FF */ addi r15, r15, -0x1
/* 80067788 000635C8 39 C3 04 44 */ addi r14, r3, 0x444
.global lbl_8006778C
lbl_8006778C:
/* 8006778C 000635CC 3A 18 08 B8 */ addi r16, r24, 0x8b8
/* 80067790 000635D0 38 6E 00 40 */ addi r3, r14, 0x40
/* 80067794 000635D4 38 90 03 D5 */ addi r4, r16, 0x3d5
/* 80067798 000635D8 38 A0 00 06 */ li r5, 0x6
/* 8006779C 000635DC 4B F9 C8 65 */ bl memcpy
/* 800677A0 000635E0 7D C3 73 78 */ mr r3, r14
/* 800677A4 000635E4 38 90 03 DB */ addi r4, r16, 0x3db
/* 800677A8 000635E8 38 A0 00 13 */ li r5, 0x13
/* 800677AC 000635EC 4B F9 C8 55 */ bl memcpy
/* 800677B0 000635F0 38 6E 00 46 */ addi r3, r14, 0x46
/* 800677B4 000635F4 38 90 03 EF */ addi r4, r16, 0x3ef
/* 800677B8 000635F8 38 A0 00 10 */ li r5, 0x10
/* 800677BC 000635FC 4B F9 C8 45 */ bl memcpy
/* 800677C0 00063600 38 00 00 01 */ li r0, 0x1
/* 800677C4 00063604 98 0E 00 59 */ stb r0, 0x59(r14)
/* 800677C8 00063608 38 60 00 00 */ li r3, 0x0
/* 800677CC 0006360C 38 80 00 02 */ li r4, 0x2
/* 800677D0 00063610 98 6E 00 5B */ stb r3, 0x5b(r14)
/* 800677D4 00063614 55 E0 06 3E */ clrlwi r0, r15, 24
/* 800677D8 00063618 1E 20 00 46 */ mulli r17, r0, 0x46
/* 800677DC 0006361C 3C 60 00 01 */ lis r3, 0x1
/* 800677E0 00063620 98 8E 00 57 */ stb r4, 0x57(r14)
/* 800677E4 00063624 38 00 00 03 */ li r0, 0x3
/* 800677E8 00063628 38 63 80 74 */ addi r3, r3, -0x7f8c
/* 800677EC 0006362C B0 6E 00 5E */ sth r3, 0x5e(r14)
/* 800677F0 00063630 7C 70 8A 14 */ add r3, r16, r17
/* 800677F4 00063634 38 80 00 00 */ li r4, 0x0
/* 800677F8 00063638 98 0E 00 58 */ stb r0, 0x58(r14)
/* 800677FC 0006363C 3A 43 00 01 */ addi r18, r3, 0x1
/* 80067800 00063640 7E 43 93 78 */ mr r3, r18
/* 80067804 00063644 38 A0 00 46 */ li r5, 0x46
/* 80067808 00063648 98 0E 00 5C */ stb r0, 0x5c(r14)
/* 8006780C 0006364C 4B F9 CB 45 */ bl memset
/* 80067810 00063650 7E 43 93 78 */ mr r3, r18
/* 80067814 00063654 38 90 03 D5 */ addi r4, r16, 0x3d5
/* 80067818 00063658 38 A0 00 06 */ li r5, 0x6
/* 8006781C 0006365C 4B F9 C7 E5 */ bl memcpy
/* 80067820 00063660 7C 70 8A 14 */ add r3, r16, r17
/* 80067824 00063664 38 90 03 DB */ addi r4, r16, 0x3db
/* 80067828 00063668 38 63 00 07 */ addi r3, r3, 0x7
/* 8006782C 0006366C 38 A0 00 13 */ li r5, 0x13
/* 80067830 00063670 4B F9 C7 D1 */ bl memcpy
/* 80067834 00063674 39 EF 00 01 */ addi r15, r15, 0x1
.global lbl_80067838
lbl_80067838:
/* 80067838 00063678 39 D8 00 00 */ addi r14, r24, 0x0
/* 8006783C 0006367C 38 78 1F 60 */ addi r3, r24, 0x1f60
/* 80067840 00063680 3A 00 00 01 */ li r16, 0x1
/* 80067844 00063684 99 F8 08 B8 */ stb r15, 0x8b8(r24)
/* 80067848 00063688 8A D8 1F 60 */ lbz r22, 0x1f60(r24)
/* 8006784C 0006368C 3A 23 01 AF */ addi r17, r3, 0x1af
/* 80067850 00063690 9A 0E 06 E9 */ stb r16, 0x6e9(r14)
/* 80067854 00063694 3A 43 01 B5 */ addi r18, r3, 0x1b5
/* 80067858 00063698 3A 83 01 F5 */ addi r20, r3, 0x1f5
/* 8006785C 0006369C 3A A0 00 05 */ li r21, 0x5
/* 80067860 000636A0 3B 80 00 03 */ li r28, 0x3
/* 80067864 000636A4 3B 60 00 02 */ li r27, 0x2
/* 80067868 000636A8 3F 40 00 01 */ lis r26, 0x1
/* 8006786C 000636AC 3B 20 00 0A */ li r25, 0xa
.global lbl_80067870
lbl_80067870:
/* 80067870 000636B0 2C 16 00 00 */ cmpwi r22, 0x0
/* 80067874 000636B4 41 82 01 50 */ beq lbl_800679C4
/* 80067878 000636B8 7E 23 8B 78 */ mr r3, r17
/* 8006787C 000636BC 38 81 00 08 */ addi r4, r1, 0x8
/* 80067880 000636C0 38 A0 00 06 */ li r5, 0x6
/* 80067884 000636C4 4B FA 35 ED */ bl memcmp
/* 80067888 000636C8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006788C 000636CC 41 82 01 24 */ beq lbl_800679B0
/* 80067890 000636D0 8B D8 08 B8 */ lbz r30, 0x8b8(r24)
/* 80067894 000636D4 7E 7D 9B 78 */ mr r29, r19
/* 80067898 000636D8 39 E0 00 00 */ li r15, 0x0
/* 8006789C 000636DC 48 00 00 2C */ b lbl_800678C8
.global lbl_800678A0
lbl_800678A0:
/* 800678A0 000636E0 7F A3 EB 78 */ mr r3, r29
/* 800678A4 000636E4 7E 24 8B 78 */ mr r4, r17
/* 800678A8 000636E8 38 A0 00 06 */ li r5, 0x6
/* 800678AC 000636EC 4B FA 35 C5 */ bl memcmp
/* 800678B0 000636F0 2C 03 00 00 */ cmpwi r3, 0x0
/* 800678B4 000636F4 40 82 00 0C */ bne lbl_800678C0
/* 800678B8 000636F8 38 00 00 01 */ li r0, 0x1
/* 800678BC 000636FC 48 00 00 18 */ b lbl_800678D4
.global lbl_800678C0
lbl_800678C0:
/* 800678C0 00063700 3B BD 00 46 */ addi r29, r29, 0x46
/* 800678C4 00063704 39 EF 00 01 */ addi r15, r15, 0x1
.global lbl_800678C8
lbl_800678C8:
/* 800678C8 00063708 7C 0F F0 00 */ cmpw r15, r30
/* 800678CC 0006370C 41 80 FF D4 */ blt lbl_800678A0
/* 800678D0 00063710 38 00 00 00 */ li r0, 0x0
.global lbl_800678D4
lbl_800678D4:
/* 800678D4 00063714 2C 00 00 00 */ cmpwi r0, 0x0
/* 800678D8 00063718 40 82 00 D8 */ bne lbl_800679B0
/* 800678DC 0006371C 4B FB 9F 45 */ bl OSDisableInterrupts
/* 800678E0 00063720 88 0E 06 E9 */ lbz r0, 0x6e9(r14)
/* 800678E4 00063724 2C 00 00 00 */ cmpwi r0, 0x0
/* 800678E8 00063728 40 82 00 44 */ bne lbl_8006792C
/* 800678EC 0006372C 7D C5 73 78 */ mr r5, r14
/* 800678F0 00063730 39 E0 00 00 */ li r15, 0x0
/* 800678F4 00063734 38 80 00 00 */ li r4, 0x0
/* 800678F8 00063738 7F 29 03 A6 */ mtctr r25
/* 800678FC 0006373C 60 00 00 00 */ nop
.global lbl_80067900
lbl_80067900:
/* 80067900 00063740 88 05 01 3D */ lbz r0, 0x13d(r5)
/* 80067904 00063744 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067908 00063748 40 82 00 14 */ bne lbl_8006791C
/* 8006790C 0006374C 1C 04 00 60 */ mulli r0, r4, 0x60
/* 80067910 00063750 7C 8E 02 14 */ add r4, r14, r0
/* 80067914 00063754 39 E4 00 E4 */ addi r15, r4, 0xe4
/* 80067918 00063758 48 00 00 1C */ b lbl_80067934
.global lbl_8006791C
lbl_8006791C:
/* 8006791C 0006375C 38 A5 00 60 */ addi r5, r5, 0x60
/* 80067920 00063760 38 84 00 01 */ addi r4, r4, 0x1
/* 80067924 00063764 42 00 FF DC */ bdnz lbl_80067900
/* 80067928 00063768 48 00 00 0C */ b lbl_80067934
.global lbl_8006792C
lbl_8006792C:
/* 8006792C 0006376C 80 8E 00 18 */ lwz r4, 0x18(r14)
/* 80067930 00063770 81 E4 00 00 */ lwz r15, 0x0(r4)
.global lbl_80067934
lbl_80067934:
/* 80067934 00063774 4B FB 9F 2D */ bl OSRestoreInterrupts
/* 80067938 00063778 2C 0F 00 00 */ cmpwi r15, 0x0
/* 8006793C 0006377C 41 82 00 74 */ beq lbl_800679B0
/* 80067940 00063780 7E 24 8B 78 */ mr r4, r17
/* 80067944 00063784 38 6F 00 40 */ addi r3, r15, 0x40
/* 80067948 00063788 38 A0 00 06 */ li r5, 0x6
/* 8006794C 0006378C 4B F9 C6 B5 */ bl memcpy
/* 80067950 00063790 7D E3 7B 78 */ mr r3, r15
/* 80067954 00063794 7E 44 93 78 */ mr r4, r18
/* 80067958 00063798 38 A0 00 40 */ li r5, 0x40
/* 8006795C 0006379C 4B F9 C6 A5 */ bl memcpy
/* 80067960 000637A0 7E 84 A3 78 */ mr r4, r20
/* 80067964 000637A4 38 6F 00 46 */ addi r3, r15, 0x46
/* 80067968 000637A8 38 A0 00 10 */ li r5, 0x10
/* 8006796C 000637AC 4B F9 C6 95 */ bl memcpy
/* 80067970 000637B0 9A 0F 00 59 */ stb r16, 0x59(r15)
/* 80067974 000637B4 7D E3 7B 78 */ mr r3, r15
/* 80067978 000637B8 38 97 02 70 */ addi r4, r23, 0x270
/* 8006797C 000637BC 38 A0 00 13 */ li r5, 0x13
/* 80067980 000637C0 9A 0F 00 5B */ stb r16, 0x5b(r15)
/* 80067984 000637C4 9B 8F 00 5C */ stb r28, 0x5c(r15)
/* 80067988 000637C8 4B FA 34 E9 */ bl memcmp
/* 8006798C 000637CC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067990 000637D0 40 82 00 14 */ bne lbl_800679A4
/* 80067994 000637D4 9B 6F 00 57 */ stb r27, 0x57(r15)
/* 80067998 000637D8 38 1A 80 74 */ addi r0, r26, -0x7f8c
/* 8006799C 000637DC B0 0F 00 5E */ sth r0, 0x5e(r15)
/* 800679A0 000637E0 9B 8F 00 58 */ stb r28, 0x58(r15)
.global lbl_800679A4
lbl_800679A4:
/* 800679A4 000637E4 7D E3 7B 78 */ mr r3, r15
/* 800679A8 000637E8 48 00 1D B9 */ bl WUDiMoveTopSmpDevInfoPtr
/* 800679AC 000637EC 3A D6 FF FF */ addi r22, r22, -0x1
.global lbl_800679B0
lbl_800679B0:
/* 800679B0 000637F0 36 B5 FF FF */ addic. r21, r21, -0x1
/* 800679B4 000637F4 3A 52 FF AA */ addi r18, r18, -0x56
/* 800679B8 000637F8 3A 94 FF AA */ addi r20, r20, -0x56
/* 800679BC 000637FC 3A 31 FF AA */ addi r17, r17, -0x56
/* 800679C0 00063800 40 80 FE B0 */ bge lbl_80067870
.global lbl_800679C4
lbl_800679C4:
/* 800679C4 00063804 38 B8 00 00 */ addi r5, r24, 0x0
/* 800679C8 00063808 38 60 00 00 */ li r3, 0x0
/* 800679CC 0006380C 38 00 00 05 */ li r0, 0x5
/* 800679D0 00063810 98 65 06 E9 */ stb r3, 0x6e9(r5)
/* 800679D4 00063814 38 78 1F 60 */ addi r3, r24, 0x1f60
/* 800679D8 00063818 38 80 00 00 */ li r4, 0x0
/* 800679DC 0006381C 98 05 00 10 */ stb r0, 0x10(r5)
/* 800679E0 00063820 38 A0 02 05 */ li r5, 0x205
/* 800679E4 00063824 4B F9 C9 6D */ bl memset
/* 800679E8 00063828 38 78 08 B8 */ addi r3, r24, 0x8b8
/* 800679EC 0006382C 4B FE 56 25 */ bl SCSetBtDeviceInfoArray
/* 800679F0 00063830 38 78 1F 60 */ addi r3, r24, 0x1f60
/* 800679F4 00063834 4B FE 56 3D */ bl SCSetBtCmpDevInfoArray
/* 800679F8 00063838 3C 60 80 06 */ lis r3, __wudInitFlushCallback@ha
/* 800679FC 0006383C 38 63 74 B0 */ addi r3, r3, __wudInitFlushCallback@l
/* 80067A00 00063840 4B FE 4D 81 */ bl SCFlushAsync
/* 80067A04 00063844 39 61 00 60 */ addi r11, r1, 0x60
/* 80067A08 00063848 38 60 00 06 */ li r3, 0x6
/* 80067A0C 0006384C 4B F9 F9 49 */ bl __restore_gpr
/* 80067A10 00063850 80 01 00 64 */ lwz r0, 0x64(r1)
/* 80067A14 00063854 7C 08 03 A6 */ mtlr r0
/* 80067A18 00063858 38 21 00 60 */ addi r1, r1, 0x60
/* 80067A1C 0006385C 4E 80 00 20 */ blr
.global __wudNandResultCallback
__wudNandResultCallback:
/* 80067A20 00063860 80 8D EA 28 */ lwz r4, _wudNandPhase@sda21(r13)
/* 80067A24 00063864 38 00 00 00 */ li r0, 0x0
/* 80067A28 00063868 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067A2C 0006386C 2C 04 00 01 */ cmpwi r4, 0x1
/* 80067A30 00063870 41 82 00 18 */ beq lbl_80067A48
/* 80067A34 00063874 2C 04 00 02 */ cmpwi r4, 0x2
/* 80067A38 00063878 41 82 00 28 */ beq lbl_80067A60
/* 80067A3C 0006387C 2C 04 00 03 */ cmpwi r4, 0x3
/* 80067A40 00063880 41 82 00 38 */ beq lbl_80067A78
/* 80067A44 00063884 48 00 00 50 */ b lbl_80067A94
.global lbl_80067A48
lbl_80067A48:
/* 80067A48 00063888 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067A4C 0006388C 38 00 00 FF */ li r0, 0xff
/* 80067A50 00063890 40 82 00 08 */ bne lbl_80067A58
/* 80067A54 00063894 38 04 00 01 */ addi r0, r4, 0x1
.global lbl_80067A58
lbl_80067A58:
/* 80067A58 00063898 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067A5C 0006389C 4E 80 00 20 */ blr
.global lbl_80067A60
lbl_80067A60:
/* 80067A60 000638A0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067A64 000638A4 38 00 00 05 */ li r0, 0x5
/* 80067A68 000638A8 40 82 00 08 */ bne lbl_80067A70
/* 80067A6C 000638AC 38 04 00 01 */ addi r0, r4, 0x1
.global lbl_80067A70
lbl_80067A70:
/* 80067A70 000638B0 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067A74 000638B4 4E 80 00 20 */ blr
.global lbl_80067A78
lbl_80067A78:
/* 80067A78 000638B8 3C 03 FF FC */ addis r0, r3, 0xfffc
/* 80067A7C 000638BC 38 60 00 05 */ li r3, 0x5
/* 80067A80 000638C0 28 00 B0 00 */ cmplwi r0, 0xb000
/* 80067A84 000638C4 40 82 00 08 */ bne lbl_80067A8C
/* 80067A88 000638C8 38 64 00 01 */ addi r3, r4, 0x1
.global lbl_80067A8C
lbl_80067A8C:
/* 80067A8C 000638CC 90 6D EA 28 */ stw r3, _wudNandPhase@sda21(r13)
/* 80067A90 000638D0 4E 80 00 20 */ blr
.global lbl_80067A94
lbl_80067A94:
/* 80067A94 000638D4 38 00 00 06 */ li r0, 0x6
/* 80067A98 000638D8 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067A9C 000638DC 4E 80 00 20 */ blr
.global __wudNandFlushCallback
__wudNandFlushCallback:
/* 80067AA0 000638E0 80 6D EA 28 */ lwz r3, _wudNandPhase@sda21(r13)
/* 80067AA4 000638E4 38 00 00 00 */ li r0, 0x0
/* 80067AA8 000638E8 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067AAC 000638EC 38 03 00 01 */ addi r0, r3, 0x1
/* 80067AB0 000638F0 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067AB4 000638F4 4E 80 00 20 */ blr
/* 80067AB8 000638F8 00 00 00 00 */ .4byte 0x00000000
/* 80067ABC 000638FC 00 00 00 00 */ .4byte 0x00000000
.global __wudGetDevInfoFromWiiFit
__wudGetDevInfoFromWiiFit:
/* 80067AC0 00063900 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80067AC4 00063904 7C 08 02 A6 */ mflr r0
/* 80067AC8 00063908 38 60 00 00 */ li r3, 0x0
/* 80067ACC 0006390C 90 01 00 34 */ stw r0, 0x34(r1)
/* 80067AD0 00063910 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80067AD4 00063914 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80067AD8 00063918 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80067ADC 0006391C 93 C1 00 28 */ stw r30, 0x28(r1)
/* 80067AE0 00063920 3B CD 83 D8 */ addi r30, r13, "@6790_805567F8"@sda21
/* 80067AE4 00063924 93 A1 00 24 */ stw r29, 0x24(r1)
/* 80067AE8 00063928 3B A0 00 03 */ li r29, 0x3
/* 80067AEC 0006392C 93 81 00 20 */ stw r28, 0x20(r1)
/* 80067AF0 00063930 3F 80 80 44 */ lis r28, "@6546"@ha
/* 80067AF4 00063934 3B 9C 9D BC */ addi r28, r28, "@6546"@l
/* 80067AF8 00063938 88 0D EA 2C */ lbz r0, _wudNandLocked@sda21(r13)
/* 80067AFC 0006393C 90 61 00 10 */ stw r3, 0x10(r1)
/* 80067B00 00063940 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067B04 00063944 90 61 00 14 */ stw r3, 0x14(r1)
/* 80067B08 00063948 90 61 00 18 */ stw r3, 0x18(r1)
/* 80067B0C 0006394C 90 61 00 1C */ stw r3, 0x1c(r1)
/* 80067B10 00063950 41 82 00 0C */ beq lbl_80067B1C
/* 80067B14 00063954 38 60 00 03 */ li r3, 0x3
/* 80067B18 00063958 48 00 03 BC */ b lbl_80067ED4
.global lbl_80067B1C
lbl_80067B1C:
/* 80067B1C 0006395C 80 0D EA 18 */ lwz r0, _wudNandBufPtr@sda21(r13)
/* 80067B20 00063960 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067B24 00063964 41 82 00 0C */ beq lbl_80067B30
/* 80067B28 00063968 54 00 06 FF */ clrlwi. r0, r0, 27
/* 80067B2C 0006396C 41 82 00 1C */ beq lbl_80067B48
.global lbl_80067B30
lbl_80067B30:
/* 80067B30 00063970 3C A0 80 44 */ lis r5, "@6792_80439DFC"@ha
/* 80067B34 00063974 38 6D 83 E0 */ addi r3, r13, "@6791_80556800"@sda21
/* 80067B38 00063978 38 A5 9D FC */ addi r5, r5, "@6792_80439DFC"@l
/* 80067B3C 0006397C 38 80 0A B9 */ li r4, 0xab9
/* 80067B40 00063980 4C C6 31 82 */ crclr 4*cr1+eq
/* 80067B44 00063984 48 12 2C AD */ bl OSPanic
.global lbl_80067B48
lbl_80067B48:
/* 80067B48 00063988 80 0D EA 28 */ lwz r0, _wudNandPhase@sda21(r13)
/* 80067B4C 0006398C 2C 00 00 03 */ cmpwi r0, 0x3
/* 80067B50 00063990 41 82 00 C0 */ beq lbl_80067C10
/* 80067B54 00063994 40 80 00 1C */ bge lbl_80067B70
/* 80067B58 00063998 2C 00 00 01 */ cmpwi r0, 0x1
/* 80067B5C 0006399C 41 82 00 44 */ beq lbl_80067BA0
/* 80067B60 000639A0 40 80 00 88 */ bge lbl_80067BE8
/* 80067B64 000639A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067B68 000639A8 40 80 00 18 */ bge lbl_80067B80
/* 80067B6C 000639AC 48 00 03 60 */ b lbl_80067ECC
.global lbl_80067B70
lbl_80067B70:
/* 80067B70 000639B0 2C 00 00 05 */ cmpwi r0, 0x5
/* 80067B74 000639B4 41 82 03 38 */ beq lbl_80067EAC
/* 80067B78 000639B8 40 80 03 54 */ bge lbl_80067ECC
/* 80067B7C 000639BC 48 00 00 C0 */ b lbl_80067C3C
.global lbl_80067B80
lbl_80067B80:
/* 80067B80 000639C0 4B FE 23 51 */ bl NANDInit
/* 80067B84 000639C4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067B88 000639C8 40 82 00 0C */ bne lbl_80067B94
/* 80067B8C 000639CC 38 00 00 01 */ li r0, 0x1
/* 80067B90 000639D0 48 00 00 08 */ b lbl_80067B98
.global lbl_80067B94
lbl_80067B94:
/* 80067B94 000639D4 38 00 00 FF */ li r0, 0xff
.global lbl_80067B98
lbl_80067B98:
/* 80067B98 000639D8 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067B9C 000639DC 48 00 03 34 */ b lbl_80067ED0
.global lbl_80067BA0
lbl_80067BA0:
/* 80067BA0 000639E0 4B FE 58 51 */ bl SCGetProductGameRegion
/* 80067BA4 000639E4 7C 60 07 75 */ extsb. r0, r3
/* 80067BA8 000639E8 40 82 00 34 */ bne lbl_80067BDC
/* 80067BAC 000639EC 38 60 00 01 */ li r3, 0x1
/* 80067BB0 000639F0 38 00 00 00 */ li r0, 0x0
/* 80067BB4 000639F4 3C C0 80 06 */ lis r6, __wudNandResultCallback@ha
/* 80067BB8 000639F8 98 6D EA 2C */ stb r3, _wudNandLocked@sda21(r13)
/* 80067BBC 000639FC 7F 83 E3 78 */ mr r3, r28
/* 80067BC0 00063A00 38 9F 0E 00 */ addi r4, r31, 0xe00
/* 80067BC4 00063A04 90 0D EA 24 */ stw r0, _wudNandWbcCrc@sda21(r13)
/* 80067BC8 00063A08 38 C6 7A 20 */ addi r6, r6, __wudNandResultCallback@l
/* 80067BCC 00063A0C 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80067BD0 00063A10 38 A0 00 01 */ li r5, 0x1
/* 80067BD4 00063A14 4B FE 18 FD */ bl NANDOpenAsync
/* 80067BD8 00063A18 48 00 02 F8 */ b lbl_80067ED0
.global lbl_80067BDC
lbl_80067BDC:
/* 80067BDC 00063A1C 38 00 00 06 */ li r0, 0x6
/* 80067BE0 00063A20 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067BE4 00063A24 48 00 02 EC */ b lbl_80067ED0
.global lbl_80067BE8
lbl_80067BE8:
/* 80067BE8 00063A28 38 00 00 01 */ li r0, 0x1
/* 80067BEC 00063A2C 3C C0 80 06 */ lis r6, __wudNandResultCallback@ha
/* 80067BF0 00063A30 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067BF4 00063A34 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80067BF8 00063A38 38 C6 7A 20 */ addi r6, r6, __wudNandResultCallback@l
/* 80067BFC 00063A3C 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80067C00 00063A40 38 80 00 00 */ li r4, 0x0
/* 80067C04 00063A44 38 A0 00 00 */ li r5, 0x0
/* 80067C08 00063A48 4B FE 09 89 */ bl NANDSeekAsync
/* 80067C0C 00063A4C 48 00 02 C4 */ b lbl_80067ED0
.global lbl_80067C10
lbl_80067C10:
/* 80067C10 00063A50 38 00 00 01 */ li r0, 0x1
/* 80067C14 00063A54 3C A0 00 05 */ lis r5, 0x5
/* 80067C18 00063A58 3C C0 80 06 */ lis r6, __wudNandResultCallback@ha
/* 80067C1C 00063A5C 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067C20 00063A60 80 8D EA 18 */ lwz r4, _wudNandBufPtr@sda21(r13)
/* 80067C24 00063A64 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80067C28 00063A68 38 A5 B0 00 */ addi r5, r5, -0x5000
/* 80067C2C 00063A6C 38 C6 7A 20 */ addi r6, r6, __wudNandResultCallback@l
/* 80067C30 00063A70 38 FF 0E 8C */ addi r7, r31, 0xe8c
/* 80067C34 00063A74 4B FE 07 4D */ bl NANDReadAsync
/* 80067C38 00063A78 48 00 02 98 */ b lbl_80067ED0
.global lbl_80067C3C
lbl_80067C3C:
/* 80067C3C 00063A7C 80 8D EA 18 */ lwz r4, _wudNandBufPtr@sda21(r13)
/* 80067C40 00063A80 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80067C44 00063A84 38 A0 00 80 */ li r5, 0x80
/* 80067C48 00063A88 3C 84 00 05 */ addis r4, r4, 0x5
/* 80067C4C 00063A8C 38 84 AF 18 */ addi r4, r4, -0x50e8
/* 80067C50 00063A90 4B F9 C3 B1 */ bl memcpy
/* 80067C54 00063A94 80 8D EA 18 */ lwz r4, _wudNandBufPtr@sda21(r13)
/* 80067C58 00063A98 38 61 00 08 */ addi r3, r1, 0x8
/* 80067C5C 00063A9C 38 A0 00 04 */ li r5, 0x4
/* 80067C60 00063AA0 3C 84 00 05 */ addis r4, r4, 0x5
/* 80067C64 00063AA4 38 84 AF 98 */ addi r4, r4, -0x5068
/* 80067C68 00063AA8 4B F9 C3 99 */ bl memcpy
/* 80067C6C 00063AAC 3C 60 00 01 */ lis r3, 0x1
/* 80067C70 00063AB0 80 CD EA 18 */ lwz r6, _wudNandBufPtr@sda21(r13)
/* 80067C74 00063AB4 38 03 95 E3 */ addi r0, r3, -0x6a1d
/* 80067C78 00063AB8 38 A0 00 00 */ li r5, 0x0
/* 80067C7C 00063ABC 38 80 00 00 */ li r4, 0x0
/* 80067C80 00063AC0 7C 09 03 A6 */ mtctr r0
.global lbl_80067C84
lbl_80067C84:
/* 80067C84 00063AC4 A0 66 00 00 */ lhz r3, 0x0(r6)
/* 80067C88 00063AC8 7C 60 18 F8 */ nor r0, r3, r3
/* 80067C8C 00063ACC 7C A5 1A 14 */ add r5, r5, r3
/* 80067C90 00063AD0 A0 66 00 02 */ lhz r3, 0x2(r6)
/* 80067C94 00063AD4 7C 04 02 14 */ add r0, r4, r0
/* 80067C98 00063AD8 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067C9C 00063ADC 7C 60 18 F8 */ nor r0, r3, r3
/* 80067CA0 00063AE0 7C A5 1A 14 */ add r5, r5, r3
/* 80067CA4 00063AE4 A0 66 00 04 */ lhz r3, 0x4(r6)
/* 80067CA8 00063AE8 7C 04 02 14 */ add r0, r4, r0
/* 80067CAC 00063AEC 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067CB0 00063AF0 7C 60 18 F8 */ nor r0, r3, r3
/* 80067CB4 00063AF4 7C A5 1A 14 */ add r5, r5, r3
/* 80067CB8 00063AF8 A0 66 00 06 */ lhz r3, 0x6(r6)
/* 80067CBC 00063AFC 7C 04 02 14 */ add r0, r4, r0
/* 80067CC0 00063B00 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067CC4 00063B04 38 C6 00 08 */ addi r6, r6, 0x8
/* 80067CC8 00063B08 7C 60 18 F8 */ nor r0, r3, r3
/* 80067CCC 00063B0C 7C A5 1A 14 */ add r5, r5, r3
/* 80067CD0 00063B10 7C 04 02 14 */ add r0, r4, r0
/* 80067CD4 00063B14 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067CD8 00063B18 42 00 FF AC */ bdnz lbl_80067C84
/* 80067CDC 00063B1C 80 6D EA 18 */ lwz r3, _wudNandBufPtr@sda21(r13)
/* 80067CE0 00063B20 50 A4 80 1E */ rlwimi r4, r5, 16, 0, 15
/* 80067CE4 00063B24 38 00 00 08 */ li r0, 0x8
/* 80067CE8 00063B28 90 8D EA 24 */ stw r4, _wudNandWbcCrc@sda21(r13)
/* 80067CEC 00063B2C 3C 63 00 05 */ addis r3, r3, 0x5
/* 80067CF0 00063B30 54 85 84 3E */ srwi r5, r4, 16
/* 80067CF4 00063B34 38 C3 AF 18 */ addi r6, r3, -0x50e8
/* 80067CF8 00063B38 54 84 04 3E */ clrlwi r4, r4, 16
/* 80067CFC 00063B3C 7C 09 03 A6 */ mtctr r0
.global lbl_80067D00
lbl_80067D00:
/* 80067D00 00063B40 A0 66 00 00 */ lhz r3, 0x0(r6)
/* 80067D04 00063B44 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D08 00063B48 7C A5 1A 14 */ add r5, r5, r3
/* 80067D0C 00063B4C A0 66 00 02 */ lhz r3, 0x2(r6)
/* 80067D10 00063B50 7C 04 02 14 */ add r0, r4, r0
/* 80067D14 00063B54 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D18 00063B58 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D1C 00063B5C 7C A5 1A 14 */ add r5, r5, r3
/* 80067D20 00063B60 A0 66 00 04 */ lhz r3, 0x4(r6)
/* 80067D24 00063B64 7C 04 02 14 */ add r0, r4, r0
/* 80067D28 00063B68 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D2C 00063B6C 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D30 00063B70 7C A5 1A 14 */ add r5, r5, r3
/* 80067D34 00063B74 A0 66 00 06 */ lhz r3, 0x6(r6)
/* 80067D38 00063B78 7C 04 02 14 */ add r0, r4, r0
/* 80067D3C 00063B7C 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D40 00063B80 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D44 00063B84 7C A5 1A 14 */ add r5, r5, r3
/* 80067D48 00063B88 A0 66 00 08 */ lhz r3, 0x8(r6)
/* 80067D4C 00063B8C 7C 04 02 14 */ add r0, r4, r0
/* 80067D50 00063B90 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D54 00063B94 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D58 00063B98 7C A5 1A 14 */ add r5, r5, r3
/* 80067D5C 00063B9C A0 66 00 0A */ lhz r3, 0xa(r6)
/* 80067D60 00063BA0 7C 04 02 14 */ add r0, r4, r0
/* 80067D64 00063BA4 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D68 00063BA8 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D6C 00063BAC 7C A5 1A 14 */ add r5, r5, r3
/* 80067D70 00063BB0 A0 66 00 0C */ lhz r3, 0xc(r6)
/* 80067D74 00063BB4 7C 04 02 14 */ add r0, r4, r0
/* 80067D78 00063BB8 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D7C 00063BBC 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D80 00063BC0 7C A5 1A 14 */ add r5, r5, r3
/* 80067D84 00063BC4 A0 66 00 0E */ lhz r3, 0xe(r6)
/* 80067D88 00063BC8 7C 04 02 14 */ add r0, r4, r0
/* 80067D8C 00063BCC 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067D90 00063BD0 38 C6 00 10 */ addi r6, r6, 0x10
/* 80067D94 00063BD4 7C 60 18 F8 */ nor r0, r3, r3
/* 80067D98 00063BD8 7C A5 1A 14 */ add r5, r5, r3
/* 80067D9C 00063BDC 7C 04 02 14 */ add r0, r4, r0
/* 80067DA0 00063BE0 54 04 04 3E */ clrlwi r4, r0, 16
/* 80067DA4 00063BE4 42 00 FF 5C */ bdnz lbl_80067D00
/* 80067DA8 00063BE8 80 01 00 08 */ lwz r0, 0x8(r1)
/* 80067DAC 00063BEC 50 A4 80 1E */ rlwimi r4, r5, 16, 0, 15
/* 80067DB0 00063BF0 7C 00 20 40 */ cmplw r0, r4
/* 80067DB4 00063BF4 41 82 00 10 */ beq lbl_80067DC4
/* 80067DB8 00063BF8 38 00 00 05 */ li r0, 0x5
/* 80067DBC 00063BFC 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067DC0 00063C00 48 00 01 10 */ b lbl_80067ED0
.global lbl_80067DC4
lbl_80067DC4:
/* 80067DC4 00063C04 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80067DC8 00063C08 38 81 00 10 */ addi r4, r1, 0x10
/* 80067DCC 00063C0C 38 A0 00 06 */ li r5, 0x6
/* 80067DD0 00063C10 4B FA 30 A1 */ bl memcmp
/* 80067DD4 00063C14 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067DD8 00063C18 40 82 00 10 */ bne lbl_80067DE8
/* 80067DDC 00063C1C 38 00 00 05 */ li r0, 0x5
/* 80067DE0 00063C20 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067DE4 00063C24 48 00 00 EC */ b lbl_80067ED0
.global lbl_80067DE8
lbl_80067DE8:
/* 80067DE8 00063C28 4B FB 39 09 */ bl OSGetAppGamename
/* 80067DEC 00063C2C 7F C4 F3 78 */ mr r4, r30
/* 80067DF0 00063C30 38 A0 00 04 */ li r5, 0x4
/* 80067DF4 00063C34 4B FA 30 7D */ bl memcmp
/* 80067DF8 00063C38 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067DFC 00063C3C 41 82 00 2C */ beq lbl_80067E28
/* 80067E00 00063C40 38 7F 0D 20 */ addi r3, r31, 0xd20
/* 80067E04 00063C44 38 81 00 10 */ addi r4, r1, 0x10
/* 80067E08 00063C48 38 63 00 06 */ addi r3, r3, 0x6
/* 80067E0C 00063C4C 38 A0 00 10 */ li r5, 0x10
/* 80067E10 00063C50 4B FA 30 61 */ bl memcmp
/* 80067E14 00063C54 2C 03 00 00 */ cmpwi r3, 0x0
/* 80067E18 00063C58 40 82 00 10 */ bne lbl_80067E28
/* 80067E1C 00063C5C 38 00 00 05 */ li r0, 0x5
/* 80067E20 00063C60 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
/* 80067E24 00063C64 48 00 00 AC */ b lbl_80067ED0
.global lbl_80067E28
lbl_80067E28:
/* 80067E28 00063C68 3C 80 00 05 */ lis r4, 0x5
/* 80067E2C 00063C6C 80 6D EA 18 */ lwz r3, _wudNandBufPtr@sda21(r13)
/* 80067E30 00063C70 38 A4 B0 00 */ addi r5, r4, -0x5000
/* 80067E34 00063C74 38 80 00 00 */ li r4, 0x0
/* 80067E38 00063C78 4B F9 C5 19 */ bl memset
/* 80067E3C 00063C7C 38 7F 08 B8 */ addi r3, r31, 0x8b8
/* 80067E40 00063C80 38 80 00 00 */ li r4, 0x0
/* 80067E44 00063C84 38 A0 04 61 */ li r5, 0x461
/* 80067E48 00063C88 4B F9 C5 09 */ bl memset
/* 80067E4C 00063C8C 38 7F 08 B8 */ addi r3, r31, 0x8b8
/* 80067E50 00063C90 4B FE 51 B1 */ bl SCGetBtDeviceInfoArray
/* 80067E54 00063C94 3B 9F 08 B8 */ addi r28, r31, 0x8b8
/* 80067E58 00063C98 38 9F 0D 20 */ addi r4, r31, 0xd20
/* 80067E5C 00063C9C 38 7C 03 D5 */ addi r3, r28, 0x3d5
/* 80067E60 00063CA0 38 A0 00 06 */ li r5, 0x6
/* 80067E64 00063CA4 4B F9 C1 9D */ bl memcpy
/* 80067E68 00063CA8 3B DF 0D 20 */ addi r30, r31, 0xd20
/* 80067E6C 00063CAC 38 7C 03 DB */ addi r3, r28, 0x3db
/* 80067E70 00063CB0 38 9E 00 16 */ addi r4, r30, 0x16
/* 80067E74 00063CB4 38 A0 00 40 */ li r5, 0x40
/* 80067E78 00063CB8 4B F9 C1 89 */ bl memcpy
/* 80067E7C 00063CBC 38 7C 03 EF */ addi r3, r28, 0x3ef
/* 80067E80 00063CC0 38 9E 00 06 */ addi r4, r30, 0x6
/* 80067E84 00063CC4 38 A0 00 10 */ li r5, 0x10
/* 80067E88 00063CC8 4B F9 C1 79 */ bl memcpy
/* 80067E8C 00063CCC 7F 83 E3 78 */ mr r3, r28
/* 80067E90 00063CD0 4B FE 51 81 */ bl SCSetBtDeviceInfoArray
/* 80067E94 00063CD4 38 00 00 01 */ li r0, 0x1
/* 80067E98 00063CD8 3C 60 80 06 */ lis r3, __wudNandFlushCallback@ha
/* 80067E9C 00063CDC 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067EA0 00063CE0 38 63 7A A0 */ addi r3, r3, __wudNandFlushCallback@l
/* 80067EA4 00063CE4 4B FE 48 DD */ bl SCFlushAsync
/* 80067EA8 00063CE8 48 00 00 28 */ b lbl_80067ED0
.global lbl_80067EAC
lbl_80067EAC:
/* 80067EAC 00063CEC 38 00 00 01 */ li r0, 0x1
/* 80067EB0 00063CF0 3C 80 80 06 */ lis r4, __wudNandResultCallback@ha
/* 80067EB4 00063CF4 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067EB8 00063CF8 38 7F 0E 00 */ addi r3, r31, 0xe00
/* 80067EBC 00063CFC 38 84 7A 20 */ addi r4, r4, __wudNandResultCallback@l
/* 80067EC0 00063D00 38 BF 0E 8C */ addi r5, r31, 0xe8c
/* 80067EC4 00063D04 4B FE 17 FD */ bl NANDCloseAsync
/* 80067EC8 00063D08 48 00 00 08 */ b lbl_80067ED0
.global lbl_80067ECC
lbl_80067ECC:
/* 80067ECC 00063D0C 3B A0 00 04 */ li r29, 0x4
.global lbl_80067ED0
lbl_80067ED0:
/* 80067ED0 00063D10 7F A3 EB 78 */ mr r3, r29
.global lbl_80067ED4
lbl_80067ED4:
/* 80067ED4 00063D14 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80067ED8 00063D18 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80067EDC 00063D1C 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 80067EE0 00063D20 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80067EE4 00063D24 83 81 00 20 */ lwz r28, 0x20(r1)
/* 80067EE8 00063D28 7C 08 03 A6 */ mtlr r0
/* 80067EEC 00063D2C 38 21 00 30 */ addi r1, r1, 0x30
/* 80067EF0 00063D30 4E 80 00 20 */ blr
/* 80067EF4 00063D34 00 00 00 00 */ .4byte 0x00000000
/* 80067EF8 00063D38 00 00 00 00 */ .4byte 0x00000000
/* 80067EFC 00063D3C 00 00 00 00 */ .4byte 0x00000000
.global __wudInitHandler
__wudInitHandler:
/* 80067F00 00063D40 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80067F04 00063D44 7C 08 02 A6 */ mflr r0
/* 80067F08 00063D48 90 01 00 14 */ stw r0, 0x14(r1)
/* 80067F0C 00063D4C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80067F10 00063D50 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80067F14 00063D54 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80067F18 00063D58 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80067F1C 00063D5C 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 80067F20 00063D60 2C 00 00 01 */ cmpwi r0, 0x1
/* 80067F24 00063D64 41 82 00 28 */ beq lbl_80067F4C
/* 80067F28 00063D68 2C 00 00 02 */ cmpwi r0, 0x2
/* 80067F2C 00063D6C 41 82 00 48 */ beq lbl_80067F74
/* 80067F30 00063D70 2C 00 00 04 */ cmpwi r0, 0x4
/* 80067F34 00063D74 41 82 00 C0 */ beq lbl_80067FF4
/* 80067F38 00063D78 2C 00 00 06 */ cmpwi r0, 0x6
/* 80067F3C 00063D7C 41 82 00 C0 */ beq lbl_80067FFC
/* 80067F40 00063D80 2C 00 00 03 */ cmpwi r0, 0x3
/* 80067F44 00063D84 41 82 00 E0 */ beq lbl_80068024
/* 80067F48 00063D88 48 00 00 E4 */ b lbl_8006802C
.global lbl_80067F4C
lbl_80067F4C:
/* 80067F4C 00063D8C 88 7F 07 48 */ lbz r3, 0x748(r31)
/* 80067F50 00063D90 3B C0 00 01 */ li r30, 0x1
/* 80067F54 00063D94 38 03 FF FF */ addi r0, r3, -0x1
/* 80067F58 00063D98 98 1F 07 48 */ stb r0, 0x748(r31)
/* 80067F5C 00063D9C 48 01 2B 49 */ bl BTA_DmIsDeviceUp
/* 80067F60 00063DA0 54 60 06 3F */ clrlwi. r0, r3, 24
/* 80067F64 00063DA4 41 82 00 08 */ beq lbl_80067F6C
/* 80067F68 00063DA8 3B C0 00 02 */ li r30, 0x2
.global lbl_80067F6C
lbl_80067F6C:
/* 80067F6C 00063DAC 9B DF 00 10 */ stb r30, 0x10(r31)
/* 80067F70 00063DB0 48 00 00 BC */ b lbl_8006802C
.global lbl_80067F74
lbl_80067F74:
/* 80067F74 00063DB4 3B C0 00 02 */ li r30, 0x2
/* 80067F78 00063DB8 4B FB DB F9 */ bl __OSGetSystemTime
/* 80067F7C 00063DBC 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 80067F80 00063DC0 3C 60 10 62 */ lis r3, 0x1062
/* 80067F84 00063DC4 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 80067F88 00063DC8 38 63 4D D3 */ addi r3, r3, 0x4dd3
/* 80067F8C 00063DCC 80 AD E3 9C */ lwz r5, lbl_8055C7BC@sda21(r13)
/* 80067F90 00063DD0 54 00 F0 BE */ srwi r0, r0, 2
/* 80067F94 00063DD4 7C 03 00 16 */ mulhwu r0, r3, r0
/* 80067F98 00063DD8 7C 65 20 50 */ subf r3, r5, r4
/* 80067F9C 00063DDC 54 00 D1 BE */ srwi r0, r0, 6
/* 80067FA0 00063DE0 7C 03 03 96 */ divwu r0, r3, r0
/* 80067FA4 00063DE4 20 00 01 F4 */ subfic r0, r0, 0x1f4
/* 80067FA8 00063DE8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067FAC 00063DEC 40 80 00 40 */ bge lbl_80067FEC
/* 80067FB0 00063DF0 4B FE 35 21 */ bl SCCheckStatus
/* 80067FB4 00063DF4 28 03 00 01 */ cmplwi r3, 0x1
/* 80067FB8 00063DF8 41 82 00 34 */ beq lbl_80067FEC
/* 80067FBC 00063DFC 48 00 01 B5 */ bl __wudClearControlBlock
/* 80067FC0 00063E00 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80067FC4 00063E04 3B C0 00 04 */ li r30, 0x4
/* 80067FC8 00063E08 2C 00 00 00 */ cmpwi r0, 0x0
/* 80067FCC 00063E0C 41 82 00 20 */ beq lbl_80067FEC
/* 80067FD0 00063E10 4B FE 54 21 */ bl SCGetProductGameRegion
/* 80067FD4 00063E14 7C 60 07 75 */ extsb. r0, r3
/* 80067FD8 00063E18 40 82 00 14 */ bne lbl_80067FEC
/* 80067FDC 00063E1C 38 00 00 00 */ li r0, 0x0
/* 80067FE0 00063E20 98 0D EA 2C */ stb r0, _wudNandLocked@sda21(r13)
/* 80067FE4 00063E24 3B C0 00 03 */ li r30, 0x3
/* 80067FE8 00063E28 90 0D EA 28 */ stw r0, _wudNandPhase@sda21(r13)
.global lbl_80067FEC
lbl_80067FEC:
/* 80067FEC 00063E2C 9B DF 00 10 */ stb r30, 0x10(r31)
/* 80067FF0 00063E30 48 00 00 3C */ b lbl_8006802C
.global lbl_80067FF4
lbl_80067FF4:
/* 80067FF4 00063E34 4B FF F4 DD */ bl __wudInitDevInfo
/* 80067FF8 00063E38 48 00 00 34 */ b lbl_8006802C
.global lbl_80067FFC
lbl_80067FFC:
/* 80067FFC 00063E3C 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068000 00063E40 4B FB 3B 61 */ bl OSCancelAlarm
/* 80068004 00063E44 38 00 00 01 */ li r0, 0x1
/* 80068008 00063E48 3C 60 80 07 */ lis r3, __wudSecurityEventStackCallback@ha
/* 8006800C 00063E4C 98 1F 07 08 */ stb r0, 0x708(r31)
/* 80068010 00063E50 38 63 A1 20 */ addi r3, r3, __wudSecurityEventStackCallback@l
/* 80068014 00063E54 48 01 29 D1 */ bl BTA_EnableBluetooth
/* 80068018 00063E58 38 00 00 07 */ li r0, 0x7
/* 8006801C 00063E5C 98 1F 00 10 */ stb r0, 0x10(r31)
/* 80068020 00063E60 48 00 00 0C */ b lbl_8006802C
.global lbl_80068024
lbl_80068024:
/* 80068024 00063E64 4B FF FA 9D */ bl __wudGetDevInfoFromWiiFit
/* 80068028 00063E68 98 7F 00 10 */ stb r3, 0x10(r31)
.global lbl_8006802C
lbl_8006802C:
/* 8006802C 00063E6C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80068030 00063E70 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80068034 00063E74 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80068038 00063E78 7C 08 03 A6 */ mtlr r0
/* 8006803C 00063E7C 38 21 00 10 */ addi r1, r1, 0x10
/* 80068040 00063E80 4E 80 00 20 */ blr
/* 80068044 00063E84 00 00 00 00 */ .4byte 0x00000000
/* 80068048 00063E88 00 00 00 00 */ .4byte 0x00000000
/* 8006804C 00063E8C 00 00 00 00 */ .4byte 0x00000000
.global __wudInitHandler0
__wudInitHandler0:
/* 80068050 00063E90 3D 00 80 4C */ lis r8, _wudHandlerStack@ha
/* 80068054 00063E94 3C E0 80 06 */ lis r7, __wudInitHandler@ha
/* 80068058 00063E98 39 08 69 C0 */ addi r8, r8, _wudHandlerStack@l
/* 8006805C 00063E9C 38 A0 00 00 */ li r5, 0x0
/* 80068060 00063EA0 38 E7 7F 00 */ addi r7, r7, __wudInitHandler@l
/* 80068064 00063EA4 38 C0 00 00 */ li r6, 0x0
/* 80068068 00063EA8 39 08 10 00 */ addi r8, r8, 0x1000
/* 8006806C 00063EAC 4B FB 53 A4 */ b OSSwitchFiberEx
.global __wudShutdownFlushCallback
__wudShutdownFlushCallback:
/* 80068070 00063EB0 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 80068074 00063EB4 38 00 00 03 */ li r0, 0x3
/* 80068078 00063EB8 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 8006807C 00063EBC 98 03 00 11 */ stb r0, 0x11(r3)
/* 80068080 00063EC0 4E 80 00 20 */ blr
/* 80068084 00063EC4 00 00 00 00 */ .4byte 0x00000000
/* 80068088 00063EC8 00 00 00 00 */ .4byte 0x00000000
/* 8006808C 00063ECC 00 00 00 00 */ .4byte 0x00000000
.global __wudShutdownHandler
__wudShutdownHandler:
/* 80068090 00063ED0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80068094 00063ED4 7C 08 02 A6 */ mflr r0
/* 80068098 00063ED8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006809C 00063EDC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800680A0 00063EE0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800680A4 00063EE4 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 800680A8 00063EE8 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 800680AC 00063EEC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800680B0 00063EF0 3B FE 00 00 */ addi r31, r30, 0x0
/* 800680B4 00063EF4 88 1F 00 11 */ lbz r0, 0x11(r31)
/* 800680B8 00063EF8 2C 00 00 01 */ cmpwi r0, 0x1
/* 800680BC 00063EFC 41 82 00 10 */ beq lbl_800680CC
/* 800680C0 00063F00 2C 00 00 03 */ cmpwi r0, 0x3
/* 800680C4 00063F04 41 82 00 58 */ beq lbl_8006811C
/* 800680C8 00063F08 48 00 00 60 */ b lbl_80068128
.global lbl_800680CC
lbl_800680CC:
/* 800680CC 00063F0C 83 AD EA 0C */ lwz r29, _wudReadNand@sda21(r13)
/* 800680D0 00063F10 4B FE 34 01 */ bl SCCheckStatus
/* 800680D4 00063F14 28 03 00 01 */ cmplwi r3, 0x1
/* 800680D8 00063F18 41 82 00 50 */ beq lbl_80068128
/* 800680DC 00063F1C 38 7E 08 B8 */ addi r3, r30, 0x8b8
/* 800680E0 00063F20 4B FE 4F 31 */ bl SCSetBtDeviceInfoArray
/* 800680E4 00063F24 7F BD 18 38 */ and r29, r29, r3
/* 800680E8 00063F28 38 7E 1F 60 */ addi r3, r30, 0x1f60
/* 800680EC 00063F2C 4B FE 4F 45 */ bl SCSetBtCmpDevInfoArray
/* 800680F0 00063F30 7F BD 18 39 */ and. r29, r29, r3
/* 800680F4 00063F34 41 82 00 1C */ beq lbl_80068110
/* 800680F8 00063F38 38 00 00 02 */ li r0, 0x2
/* 800680FC 00063F3C 3C 60 80 07 */ lis r3, __wudShutdownFlushCallback@ha
/* 80068100 00063F40 98 1F 00 11 */ stb r0, 0x11(r31)
/* 80068104 00063F44 38 63 80 70 */ addi r3, r3, __wudShutdownFlushCallback@l
/* 80068108 00063F48 4B FE 46 79 */ bl SCFlushAsync
/* 8006810C 00063F4C 48 00 00 1C */ b lbl_80068128
.global lbl_80068110
lbl_80068110:
/* 80068110 00063F50 38 00 00 03 */ li r0, 0x3
/* 80068114 00063F54 98 1F 00 11 */ stb r0, 0x11(r31)
/* 80068118 00063F58 48 00 00 10 */ b lbl_80068128
.global lbl_8006811C
lbl_8006811C:
/* 8006811C 00063F5C 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068120 00063F60 4B FB 3A 41 */ bl OSCancelAlarm
/* 80068124 00063F64 48 01 29 49 */ bl BTA_DisableBluetooth
.global lbl_80068128
lbl_80068128:
/* 80068128 00063F68 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006812C 00063F6C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80068130 00063F70 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80068134 00063F74 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80068138 00063F78 7C 08 03 A6 */ mtlr r0
/* 8006813C 00063F7C 38 21 00 20 */ addi r1, r1, 0x20
/* 80068140 00063F80 4E 80 00 20 */ blr
/* 80068144 00063F84 00 00 00 00 */ .4byte 0x00000000
/* 80068148 00063F88 00 00 00 00 */ .4byte 0x00000000
/* 8006814C 00063F8C 00 00 00 00 */ .4byte 0x00000000
.global __wudShutdownHandler0
__wudShutdownHandler0:
/* 80068150 00063F90 3D 00 80 4C */ lis r8, _wudHandlerStack@ha
/* 80068154 00063F94 3C E0 80 07 */ lis r7, __wudShutdownHandler@ha
/* 80068158 00063F98 39 08 69 C0 */ addi r8, r8, _wudHandlerStack@l
/* 8006815C 00063F9C 38 A0 00 00 */ li r5, 0x0
/* 80068160 00063FA0 38 E7 80 90 */ addi r7, r7, __wudShutdownHandler@l
/* 80068164 00063FA4 38 C0 00 00 */ li r6, 0x0
/* 80068168 00063FA8 39 08 10 00 */ addi r8, r8, 0x1000
/* 8006816C 00063FAC 4B FB 52 A4 */ b OSSwitchFiberEx
.global __wudClearControlBlock
__wudClearControlBlock:
/* 80068170 00063FB0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80068174 00063FB4 7C 08 02 A6 */ mflr r0
/* 80068178 00063FB8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006817C 00063FBC 39 61 00 30 */ addi r11, r1, 0x30
/* 80068180 00063FC0 4B F9 F1 B1 */ bl lbl_80007330
/* 80068184 00063FC4 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80068188 00063FC8 38 00 00 02 */ li r0, 0x2
/* 8006818C 00063FCC 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80068190 00063FD0 38 60 00 00 */ li r3, 0x0
/* 80068194 00063FD4 3B DF 00 00 */ addi r30, r31, 0x0
/* 80068198 00063FD8 3B 80 00 00 */ li r28, 0x0
/* 8006819C 00063FDC 3B BF 0D C0 */ addi r29, r31, 0xdc0
/* 800681A0 00063FE0 39 9F 21 68 */ addi r12, r31, 0x2168
/* 800681A4 00063FE4 39 7F 21 88 */ addi r11, r31, 0x2188
/* 800681A8 00063FE8 7C 09 03 A6 */ mtctr r0
.global lbl_800681AC
lbl_800681AC:
/* 800681AC 00063FEC 54 69 0D FC */ rlwinm r9, r3, 1, 23, 30
/* 800681B0 00063FF0 38 83 00 01 */ addi r4, r3, 0x1
/* 800681B4 00063FF4 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 800681B8 00063FF8 39 03 00 02 */ addi r8, r3, 0x2
/* 800681BC 00063FFC 7F 9D 01 2E */ stwx r28, r29, r0
/* 800681C0 00064000 54 8A 15 BA */ rlwinm r10, r4, 2, 22, 29
/* 800681C4 00064004 54 9B 0D FC */ rlwinm r27, r4, 1, 23, 30
/* 800681C8 00064008 38 C3 00 04 */ addi r6, r3, 0x4
/* 800681CC 0006400C 7F 8C 4B 2E */ sthx r28, r12, r9
/* 800681D0 00064010 38 A3 00 05 */ addi r5, r3, 0x5
/* 800681D4 00064014 38 E3 00 03 */ addi r7, r3, 0x3
/* 800681D8 00064018 55 1A 0D FC */ rlwinm r26, r8, 1, 23, 30
/* 800681DC 0006401C 7F 8B 4B 2E */ sthx r28, r11, r9
/* 800681E0 00064020 55 09 15 BA */ rlwinm r9, r8, 2, 22, 29
/* 800681E4 00064024 54 E8 15 BA */ rlwinm r8, r7, 2, 22, 29
/* 800681E8 00064028 54 D9 0D FC */ rlwinm r25, r6, 1, 23, 30
/* 800681EC 0006402C 7F 9D 51 2E */ stwx r28, r29, r10
/* 800681F0 00064030 54 EA 0D FC */ rlwinm r10, r7, 1, 23, 30
/* 800681F4 00064034 54 C7 15 BA */ rlwinm r7, r6, 2, 22, 29
/* 800681F8 00064038 38 03 00 06 */ addi r0, r3, 0x6
/* 800681FC 0006403C 7F 8C DB 2E */ sthx r28, r12, r27
/* 80068200 00064040 38 83 00 07 */ addi r4, r3, 0x7
/* 80068204 00064044 54 A6 15 BA */ rlwinm r6, r5, 2, 22, 29
/* 80068208 00064048 54 B8 0D FC */ rlwinm r24, r5, 1, 23, 30
/* 8006820C 0006404C 7F 8B DB 2E */ sthx r28, r11, r27
/* 80068210 00064050 54 05 15 BA */ rlwinm r5, r0, 2, 22, 29
/* 80068214 00064054 54 1B 0D FC */ rlwinm r27, r0, 1, 23, 30
/* 80068218 00064058 54 80 15 BA */ rlwinm r0, r4, 2, 22, 29
/* 8006821C 0006405C 7F 9D 49 2E */ stwx r28, r29, r9
/* 80068220 00064060 54 84 0D FC */ rlwinm r4, r4, 1, 23, 30
/* 80068224 00064064 38 63 00 08 */ addi r3, r3, 0x8
/* 80068228 00064068 7F 8C D3 2E */ sthx r28, r12, r26
/* 8006822C 0006406C 7F 8B D3 2E */ sthx r28, r11, r26
/* 80068230 00064070 7F 9D 41 2E */ stwx r28, r29, r8
/* 80068234 00064074 7F 8C 53 2E */ sthx r28, r12, r10
/* 80068238 00064078 7F 8B 53 2E */ sthx r28, r11, r10
/* 8006823C 0006407C 7F 9D 39 2E */ stwx r28, r29, r7
/* 80068240 00064080 7F 8C CB 2E */ sthx r28, r12, r25
/* 80068244 00064084 7F 8B CB 2E */ sthx r28, r11, r25
/* 80068248 00064088 7F 9D 31 2E */ stwx r28, r29, r6
/* 8006824C 0006408C 7F 8C C3 2E */ sthx r28, r12, r24
/* 80068250 00064090 7F 8B C3 2E */ sthx r28, r11, r24
/* 80068254 00064094 7F 9D 29 2E */ stwx r28, r29, r5
/* 80068258 00064098 7F 8C DB 2E */ sthx r28, r12, r27
/* 8006825C 0006409C 7F 8B DB 2E */ sthx r28, r11, r27
/* 80068260 000640A0 7F 9D 01 2E */ stwx r28, r29, r0
/* 80068264 000640A4 7F 8C 23 2E */ sthx r28, r12, r4
/* 80068268 000640A8 7F 8B 23 2E */ sthx r28, r11, r4
/* 8006826C 000640AC 42 00 FF 40 */ bdnz lbl_800681AC
/* 80068270 000640B0 38 00 00 03 */ li r0, 0x3
/* 80068274 000640B4 38 9E 00 58 */ addi r4, r30, 0x58
/* 80068278 000640B8 38 7E 00 1C */ addi r3, r30, 0x1c
/* 8006827C 000640BC 90 9E 00 18 */ stw r4, 0x18(r30)
/* 80068280 000640C0 7F C5 F3 78 */ mr r5, r30
/* 80068284 000640C4 38 80 00 00 */ li r4, 0x0
/* 80068288 000640C8 90 7E 00 14 */ stw r3, 0x14(r30)
/* 8006828C 000640CC 7C 09 03 A6 */ mtctr r0
.global lbl_80068290
lbl_80068290:
/* 80068290 000640D0 20 04 00 05 */ subfic r0, r4, 0x5
/* 80068294 000640D4 2C 04 00 00 */ cmpwi r4, 0x0
/* 80068298 000640D8 1C 00 00 60 */ mulli r0, r0, 0x60
/* 8006829C 000640DC 7C 7E 02 14 */ add r3, r30, r0
/* 800682A0 000640E0 38 03 04 A4 */ addi r0, r3, 0x4a4
/* 800682A4 000640E4 90 05 00 1C */ stw r0, 0x1c(r5)
/* 800682A8 000640E8 40 82 00 0C */ bne lbl_800682B4
/* 800682AC 000640EC 38 00 00 00 */ li r0, 0x0
/* 800682B0 000640F0 48 00 00 14 */ b lbl_800682C4
.global lbl_800682B4
lbl_800682B4:
/* 800682B4 000640F4 38 04 FF FF */ addi r0, r4, -0x1
/* 800682B8 000640F8 1C 00 00 0C */ mulli r0, r0, 0xc
/* 800682BC 000640FC 7C 7E 02 14 */ add r3, r30, r0
/* 800682C0 00064100 38 03 00 1C */ addi r0, r3, 0x1c
.global lbl_800682C4
lbl_800682C4:
/* 800682C4 00064104 2C 04 00 05 */ cmpwi r4, 0x5
/* 800682C8 00064108 90 05 00 20 */ stw r0, 0x20(r5)
/* 800682CC 0006410C 40 82 00 0C */ bne lbl_800682D8
/* 800682D0 00064110 38 00 00 00 */ li r0, 0x0
/* 800682D4 00064114 48 00 00 14 */ b lbl_800682E8
.global lbl_800682D8
lbl_800682D8:
/* 800682D8 00064118 38 04 00 01 */ addi r0, r4, 0x1
/* 800682DC 0006411C 1C 00 00 0C */ mulli r0, r0, 0xc
/* 800682E0 00064120 7C 7E 02 14 */ add r3, r30, r0
/* 800682E4 00064124 38 03 00 1C */ addi r0, r3, 0x1c
.global lbl_800682E8
lbl_800682E8:
/* 800682E8 00064128 34 84 00 01 */ addic. r4, r4, 0x1
/* 800682EC 0006412C 90 05 00 24 */ stw r0, 0x24(r5)
/* 800682F0 00064130 20 04 00 05 */ subfic r0, r4, 0x5
/* 800682F4 00064134 1C 00 00 60 */ mulli r0, r0, 0x60
/* 800682F8 00064138 7C 7E 02 14 */ add r3, r30, r0
/* 800682FC 0006413C 38 03 04 A4 */ addi r0, r3, 0x4a4
/* 80068300 00064140 90 05 00 28 */ stw r0, 0x28(r5)
/* 80068304 00064144 40 82 00 0C */ bne lbl_80068310
/* 80068308 00064148 38 00 00 00 */ li r0, 0x0
/* 8006830C 0006414C 48 00 00 14 */ b lbl_80068320
.global lbl_80068310
lbl_80068310:
/* 80068310 00064150 38 04 FF FF */ addi r0, r4, -0x1
/* 80068314 00064154 1C 00 00 0C */ mulli r0, r0, 0xc
/* 80068318 00064158 7C 7E 02 14 */ add r3, r30, r0
/* 8006831C 0006415C 38 03 00 1C */ addi r0, r3, 0x1c
.global lbl_80068320
lbl_80068320:
/* 80068320 00064160 2C 04 00 05 */ cmpwi r4, 0x5
/* 80068324 00064164 90 05 00 2C */ stw r0, 0x2c(r5)
/* 80068328 00064168 40 82 00 0C */ bne lbl_80068334
/* 8006832C 0006416C 38 00 00 00 */ li r0, 0x0
/* 80068330 00064170 48 00 00 14 */ b lbl_80068344
.global lbl_80068334
lbl_80068334:
/* 80068334 00064174 38 04 00 01 */ addi r0, r4, 0x1
/* 80068338 00064178 1C 00 00 0C */ mulli r0, r0, 0xc
/* 8006833C 0006417C 7C 7E 02 14 */ add r3, r30, r0
/* 80068340 00064180 38 03 00 1C */ addi r0, r3, 0x1c
.global lbl_80068344
lbl_80068344:
/* 80068344 00064184 90 05 00 30 */ stw r0, 0x30(r5)
/* 80068348 00064188 38 A5 00 18 */ addi r5, r5, 0x18
/* 8006834C 0006418C 38 84 00 01 */ addi r4, r4, 0x1
/* 80068350 00064190 42 00 FF 40 */ bdnz lbl_80068290
/* 80068354 00064194 38 00 00 05 */ li r0, 0x5
/* 80068358 00064198 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 8006835C 0006419C 38 7E 00 6C */ addi r3, r30, 0x6c
/* 80068360 000641A0 90 9E 00 68 */ stw r4, 0x68(r30)
/* 80068364 000641A4 7F C5 F3 78 */ mr r5, r30
/* 80068368 000641A8 38 9E 00 E4 */ addi r4, r30, 0xe4
/* 8006836C 000641AC 38 C0 00 00 */ li r6, 0x0
/* 80068370 000641B0 90 7E 00 64 */ stw r3, 0x64(r30)
/* 80068374 000641B4 7C 09 03 A6 */ mtctr r0
.global lbl_80068378
lbl_80068378:
/* 80068378 000641B8 2C 06 00 00 */ cmpwi r6, 0x0
/* 8006837C 000641BC 90 85 00 6C */ stw r4, 0x6c(r5)
/* 80068380 000641C0 40 82 00 0C */ bne lbl_8006838C
/* 80068384 000641C4 38 00 00 00 */ li r0, 0x0
/* 80068388 000641C8 48 00 00 14 */ b lbl_8006839C
.global lbl_8006838C
lbl_8006838C:
/* 8006838C 000641CC 38 06 FF FF */ addi r0, r6, -0x1
/* 80068390 000641D0 1C 00 00 0C */ mulli r0, r0, 0xc
/* 80068394 000641D4 7C 7E 02 14 */ add r3, r30, r0
/* 80068398 000641D8 38 03 00 6C */ addi r0, r3, 0x6c
.global lbl_8006839C
lbl_8006839C:
/* 8006839C 000641DC 2C 06 00 09 */ cmpwi r6, 0x9
/* 800683A0 000641E0 90 05 00 70 */ stw r0, 0x70(r5)
/* 800683A4 000641E4 40 82 00 0C */ bne lbl_800683B0
/* 800683A8 000641E8 38 00 00 00 */ li r0, 0x0
/* 800683AC 000641EC 48 00 00 14 */ b lbl_800683C0
.global lbl_800683B0
lbl_800683B0:
/* 800683B0 000641F0 38 06 00 01 */ addi r0, r6, 0x1
/* 800683B4 000641F4 1C 00 00 0C */ mulli r0, r0, 0xc
/* 800683B8 000641F8 7C 7E 02 14 */ add r3, r30, r0
/* 800683BC 000641FC 38 03 00 6C */ addi r0, r3, 0x6c
.global lbl_800683C0
lbl_800683C0:
/* 800683C0 00064200 90 05 00 74 */ stw r0, 0x74(r5)
/* 800683C4 00064204 38 84 00 60 */ addi r4, r4, 0x60
/* 800683C8 00064208 34 C6 00 01 */ addic. r6, r6, 0x1
/* 800683CC 0006420C 90 85 00 78 */ stw r4, 0x78(r5)
/* 800683D0 00064210 40 82 00 0C */ bne lbl_800683DC
/* 800683D4 00064214 38 00 00 00 */ li r0, 0x0
/* 800683D8 00064218 48 00 00 14 */ b lbl_800683EC
.global lbl_800683DC
lbl_800683DC:
/* 800683DC 0006421C 38 06 FF FF */ addi r0, r6, -0x1
/* 800683E0 00064220 1C 00 00 0C */ mulli r0, r0, 0xc
/* 800683E4 00064224 7C 7E 02 14 */ add r3, r30, r0
/* 800683E8 00064228 38 03 00 6C */ addi r0, r3, 0x6c
.global lbl_800683EC
lbl_800683EC:
/* 800683EC 0006422C 2C 06 00 09 */ cmpwi r6, 0x9
/* 800683F0 00064230 90 05 00 7C */ stw r0, 0x7c(r5)
/* 800683F4 00064234 40 82 00 0C */ bne lbl_80068400
/* 800683F8 00064238 38 00 00 00 */ li r0, 0x0
/* 800683FC 0006423C 48 00 00 14 */ b lbl_80068410
.global lbl_80068400
lbl_80068400:
/* 80068400 00064240 38 06 00 01 */ addi r0, r6, 0x1
/* 80068404 00064244 1C 00 00 0C */ mulli r0, r0, 0xc
/* 80068408 00064248 7C 7E 02 14 */ add r3, r30, r0
/* 8006840C 0006424C 38 03 00 6C */ addi r0, r3, 0x6c
.global lbl_80068410
lbl_80068410:
/* 80068410 00064250 90 05 00 80 */ stw r0, 0x80(r5)
/* 80068414 00064254 38 84 00 60 */ addi r4, r4, 0x60
/* 80068418 00064258 38 A5 00 18 */ addi r5, r5, 0x18
/* 8006841C 0006425C 38 C6 00 01 */ addi r6, r6, 0x1
/* 80068420 00064260 42 00 FF 58 */ bdnz lbl_80068378
/* 80068424 00064264 3B A0 00 00 */ li r29, 0x0
/* 80068428 00064268 38 C0 00 01 */ li r6, 0x1
/* 8006842C 0006426C 38 00 FF BF */ li r0, -0x41
/* 80068430 00064270 9B BE 00 0C */ stb r29, 0xc(r30)
/* 80068434 00064274 38 7E 07 02 */ addi r3, r30, 0x702
/* 80068438 00064278 38 80 00 00 */ li r4, 0x0
/* 8006843C 0006427C 9B BE 00 0E */ stb r29, 0xe(r30)
/* 80068440 00064280 38 A0 00 06 */ li r5, 0x6
/* 80068444 00064284 9B BE 00 0D */ stb r29, 0xd(r30)
/* 80068448 00064288 9B BE 00 0F */ stb r29, 0xf(r30)
/* 8006844C 0006428C 9B BE 00 10 */ stb r29, 0x10(r30)
/* 80068450 00064290 9B BE 00 11 */ stb r29, 0x11(r30)
/* 80068454 00064294 9B BE 06 E7 */ stb r29, 0x6e7(r30)
/* 80068458 00064298 9B BE 06 E9 */ stb r29, 0x6e9(r30)
/* 8006845C 0006429C 98 DE 06 E8 */ stb r6, 0x6e8(r30)
/* 80068460 000642A0 9B BE 06 EA */ stb r29, 0x6ea(r30)
/* 80068464 000642A4 9B BE 06 EB */ stb r29, 0x6eb(r30)
/* 80068468 000642A8 9B BE 07 08 */ stb r29, 0x708(r30)
/* 8006846C 000642AC 9B BE 07 0A */ stb r29, 0x70a(r30)
/* 80068470 000642B0 98 1E 07 0B */ stb r0, 0x70b(r30)
/* 80068474 000642B4 4B F9 BE DD */ bl memset
/* 80068478 000642B8 38 7E 06 FC */ addi r3, r30, 0x6fc
/* 8006847C 000642BC 38 80 00 00 */ li r4, 0x0
/* 80068480 000642C0 38 A0 00 06 */ li r5, 0x6
/* 80068484 000642C4 4B F9 BE CD */ bl memset
/* 80068488 000642C8 38 00 00 0A */ li r0, 0xa
/* 8006848C 000642CC B3 BE 07 44 */ sth r29, 0x744(r30)
/* 80068490 000642D0 B0 1E 07 46 */ sth r0, 0x746(r30)
/* 80068494 000642D4 4B FB 93 8D */ bl OSDisableInterrupts
/* 80068498 000642D8 3B DF 00 00 */ addi r30, r31, 0x0
/* 8006849C 000642DC 7C 7C 1B 78 */ mr r28, r3
/* 800684A0 000642E0 38 7E 00 E4 */ addi r3, r30, 0xe4
/* 800684A4 000642E4 38 80 00 00 */ li r4, 0x0
/* 800684A8 000642E8 38 A0 03 C0 */ li r5, 0x3c0
/* 800684AC 000642EC 4B F9 BE A5 */ bl memset
/* 800684B0 000642F0 38 7E 04 A4 */ addi r3, r30, 0x4a4
/* 800684B4 000642F4 38 80 00 00 */ li r4, 0x0
/* 800684B8 000642F8 38 A0 02 40 */ li r5, 0x240
/* 800684BC 000642FC 4B F9 BE 95 */ bl memset
/* 800684C0 00064300 9B BE 00 12 */ stb r29, 0x12(r30)
/* 800684C4 00064304 7F 83 E3 78 */ mr r3, r28
/* 800684C8 00064308 9B BE 00 13 */ stb r29, 0x13(r30)
/* 800684CC 0006430C 9B BE 06 E4 */ stb r29, 0x6e4(r30)
/* 800684D0 00064310 9B BE 06 E5 */ stb r29, 0x6e5(r30)
/* 800684D4 00064314 9B BE 06 E6 */ stb r29, 0x6e6(r30)
/* 800684D8 00064318 4B FB 93 89 */ bl OSRestoreInterrupts
/* 800684DC 0006431C 39 61 00 30 */ addi r11, r1, 0x30
/* 800684E0 00064320 4B F9 EE 9D */ bl lbl_8000737C
/* 800684E4 00064324 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800684E8 00064328 7C 08 03 A6 */ mtlr r0
/* 800684EC 0006432C 38 21 00 30 */ addi r1, r1, 0x30
/* 800684F0 00064330 4E 80 00 20 */ blr
/* 800684F4 00064334 00 00 00 00 */ .4byte 0x00000000
/* 800684F8 00064338 00 00 00 00 */ .4byte 0x00000000
/* 800684FC 0006433C 00 00 00 00 */ .4byte 0x00000000
.global WUDInit
WUDInit:
/* 80068500 00064340 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068504 00064344 7C 08 02 A6 */ mflr r0
/* 80068508 00064348 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006850C 0006434C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068510 00064350 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80068514 00064354 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80068518 00064358 80 0D EA 08 */ lwz r0, _wudInitialized@sda21(r13)
/* 8006851C 0006435C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80068520 00064360 41 82 00 0C */ beq lbl_8006852C
/* 80068524 00064364 38 60 00 00 */ li r3, 0x0
/* 80068528 00064368 48 00 00 C8 */ b lbl_800685F0
.global lbl_8006852C
lbl_8006852C:
/* 8006852C 0006436C 48 00 F4 75 */ bl BTA_Init
/* 80068530 00064370 88 6D EA 15 */ lbz r3, __bte_trace_level@sda21(r13)
/* 80068534 00064374 48 00 FF 65 */ bl bta_sys_set_trace_level
/* 80068538 00064378 88 6D EA 15 */ lbz r3, __bte_trace_level@sda21(r13)
/* 8006853C 0006437C 48 02 88 51 */ bl L2CA_SetTraceLevel
/* 80068540 00064380 88 6D EA 15 */ lbz r3, __bte_trace_level@sda21(r13)
/* 80068544 00064384 48 03 50 91 */ bl SDP_SetTraceLevel
/* 80068548 00064388 38 80 00 00 */ li r4, 0x0
/* 8006854C 0006438C 38 60 00 01 */ li r3, 0x1
/* 80068550 00064390 38 00 00 14 */ li r0, 0x14
/* 80068554 00064394 90 9F 00 00 */ stw r4, 0x0(r31)
/* 80068558 00064398 90 9F 00 04 */ stw r4, 0x4(r31)
/* 8006855C 0006439C 90 9F 00 08 */ stw r4, 0x8(r31)
/* 80068560 000643A0 90 9F 06 F0 */ stw r4, 0x6f0(r31)
/* 80068564 000643A4 90 9F 06 EC */ stw r4, 0x6ec(r31)
/* 80068568 000643A8 98 7F 00 10 */ stb r3, 0x10(r31)
/* 8006856C 000643AC 98 1F 07 48 */ stb r0, 0x748(r31)
/* 80068570 000643B0 4B FE 2E C1 */ bl SCInit
/* 80068574 000643B4 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80068578 000643B8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006857C 000643BC 41 82 00 18 */ beq lbl_80068594
/* 80068580 000643C0 81 8D EA 1C */ lwz r12, _initWBC@sda21(r13)
/* 80068584 000643C4 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80068588 000643C8 41 82 00 0C */ beq lbl_80068594
/* 8006858C 000643CC 7D 89 03 A6 */ mtctr r12
/* 80068590 000643D0 4E 80 04 21 */ bctrl
.global lbl_80068594
lbl_80068594:
/* 80068594 000643D4 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068598 000643D8 4B FB 32 69 */ bl OSCreateAlarm
/* 8006859C 000643DC 4B FB D5 A5 */ bl OSGetTime
/* 800685A0 000643E0 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 800685A4 000643E4 3D 20 80 07 */ lis r9, __wudInitHandler0@ha
/* 800685A8 000643E8 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 800685AC 000643EC 3C C0 10 62 */ lis r6, 0x1062
/* 800685B0 000643F0 7C 65 1B 78 */ mr r5, r3
/* 800685B4 000643F4 39 29 80 50 */ addi r9, r9, __wudInitHandler0@l
/* 800685B8 000643F8 38 66 4D D3 */ addi r3, r6, 0x4dd3
/* 800685BC 000643FC 54 00 F0 BE */ srwi r0, r0, 2
/* 800685C0 00064400 7C 03 00 16 */ mulhwu r0, r3, r0
/* 800685C4 00064404 7C 86 23 78 */ mr r6, r4
/* 800685C8 00064408 38 7F 07 10 */ addi r3, r31, 0x710
/* 800685CC 0006440C 38 E0 00 00 */ li r7, 0x0
/* 800685D0 00064410 54 00 D1 BE */ srwi r0, r0, 6
/* 800685D4 00064414 1D 00 00 0A */ mulli r8, r0, 0xa
/* 800685D8 00064418 4B FB 34 F9 */ bl OSSetPeriodicAlarm
/* 800685DC 0006441C 38 60 00 01 */ li r3, 0x1
/* 800685E0 00064420 38 00 00 00 */ li r0, 0x0
/* 800685E4 00064424 90 6D EA 08 */ stw r3, _wudInitialized@sda21(r13)
/* 800685E8 00064428 38 60 00 01 */ li r3, 0x1
/* 800685EC 0006442C 98 0D EA 3C */ stb r0, _scFlush@sda21(r13)
.global lbl_800685F0
lbl_800685F0:
/* 800685F0 00064430 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800685F4 00064434 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800685F8 00064438 7C 08 03 A6 */ mtlr r0
/* 800685FC 0006443C 38 21 00 10 */ addi r1, r1, 0x10
/* 80068600 00064440 4E 80 00 20 */ blr
/* 80068604 00064444 00 00 00 00 */ .4byte 0x00000000
/* 80068608 00064448 00 00 00 00 */ .4byte 0x00000000
/* 8006860C 0006444C 00 00 00 00 */ .4byte 0x00000000
.global WUDRegisterAllocator
WUDRegisterAllocator:
/* 80068610 00064450 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068614 00064454 7C 08 02 A6 */ mflr r0
/* 80068618 00064458 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006861C 0006445C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068620 00064460 7C 9F 23 78 */ mr r31, r4
/* 80068624 00064464 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80068628 00064468 7C 7E 1B 78 */ mr r30, r3
/* 8006862C 0006446C 4B FB 91 F5 */ bl OSDisableInterrupts
/* 80068630 00064470 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068634 00064474 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80068638 00064478 93 C4 06 F4 */ stw r30, 0x6f4(r4)
/* 8006863C 0006447C 93 E4 06 F8 */ stw r31, 0x6f8(r4)
/* 80068640 00064480 4B FB 92 21 */ bl OSRestoreInterrupts
/* 80068644 00064484 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80068648 00064488 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006864C 0006448C 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80068650 00064490 7C 08 03 A6 */ mtlr r0
/* 80068654 00064494 38 21 00 10 */ addi r1, r1, 0x10
/* 80068658 00064498 4E 80 00 20 */ blr
/* 8006865C 0006449C 00 00 00 00 */ .4byte 0x00000000
.global WUDShutdown
WUDShutdown:
/* 80068660 000644A0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80068664 000644A4 7C 08 02 A6 */ mflr r0
/* 80068668 000644A8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006866C 000644AC 39 61 00 30 */ addi r11, r1, 0x30
/* 80068670 000644B0 4B F9 EC C5 */ bl lbl_80007334
/* 80068674 000644B4 3F 40 80 4C */ lis r26, __rvl_wudcb@ha
/* 80068678 000644B8 7C 7D 1B 78 */ mr r29, r3
/* 8006867C 000644BC 3B 5A 5A 60 */ addi r26, r26, __rvl_wudcb@l
/* 80068680 000644C0 3B FA 00 00 */ addi r31, r26, 0x0
/* 80068684 000644C4 4B FB 91 9D */ bl OSDisableInterrupts
/* 80068688 000644C8 7C 7E 1B 78 */ mr r30, r3
/* 8006868C 000644CC 4B FB 91 95 */ bl OSDisableInterrupts
/* 80068690 000644D0 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 80068694 000644D4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80068698 000644D8 40 82 00 34 */ bne lbl_800686CC
/* 8006869C 000644DC 88 1F 00 0D */ lbz r0, 0xd(r31)
/* 800686A0 000644E0 2C 00 00 00 */ cmpwi r0, 0x0
/* 800686A4 000644E4 40 82 00 28 */ bne lbl_800686CC
/* 800686A8 000644E8 88 1F 00 0F */ lbz r0, 0xf(r31)
/* 800686AC 000644EC 28 00 00 04 */ cmplwi r0, 0x4
/* 800686B0 000644F0 40 82 00 1C */ bne lbl_800686CC
/* 800686B4 000644F4 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 800686B8 000644F8 28 00 00 07 */ cmplwi r0, 0x7
/* 800686BC 000644FC 40 82 00 10 */ bne lbl_800686CC
/* 800686C0 00064500 4B FB 91 A1 */ bl OSRestoreInterrupts
/* 800686C4 00064504 38 00 00 00 */ li r0, 0x0
/* 800686C8 00064508 48 00 00 0C */ b lbl_800686D4
.global lbl_800686CC
lbl_800686CC:
/* 800686CC 0006450C 4B FB 91 95 */ bl OSRestoreInterrupts
/* 800686D0 00064510 38 00 00 01 */ li r0, 0x1
.global lbl_800686D4
lbl_800686D4:
/* 800686D4 00064514 2C 00 00 00 */ cmpwi r0, 0x0
/* 800686D8 00064518 41 82 00 0C */ beq lbl_800686E4
/* 800686DC 0006451C 38 7F 07 10 */ addi r3, r31, 0x710
/* 800686E0 00064520 4B FB 34 81 */ bl OSCancelAlarm
.global lbl_800686E4
lbl_800686E4:
/* 800686E4 00064524 3B 7A 08 B8 */ addi r27, r26, 0x8b8
/* 800686E8 00064528 38 80 00 00 */ li r4, 0x0
/* 800686EC 0006452C 38 7B 00 01 */ addi r3, r27, 0x1
/* 800686F0 00064530 38 A0 02 BC */ li r5, 0x2bc
/* 800686F4 00064534 4B F9 BC 5D */ bl memset
/* 800686F8 00064538 38 7A 00 00 */ addi r3, r26, 0x0
/* 800686FC 0006453C 3B 3B 00 01 */ addi r25, r27, 0x1
/* 80068700 00064540 83 83 00 64 */ lwz r28, 0x64(r3)
/* 80068704 00064544 3B 7B 00 07 */ addi r27, r27, 0x7
/* 80068708 00064548 48 00 00 34 */ b lbl_8006873C
.global lbl_8006870C
lbl_8006870C:
/* 8006870C 0006454C 80 9C 00 00 */ lwz r4, 0x0(r28)
/* 80068710 00064550 7F 23 CB 78 */ mr r3, r25
/* 80068714 00064554 38 A0 00 06 */ li r5, 0x6
/* 80068718 00064558 38 84 00 40 */ addi r4, r4, 0x40
/* 8006871C 0006455C 4B F9 B8 E5 */ bl memcpy
/* 80068720 00064560 80 9C 00 00 */ lwz r4, 0x0(r28)
/* 80068724 00064564 7F 63 DB 78 */ mr r3, r27
/* 80068728 00064568 38 A0 00 40 */ li r5, 0x40
/* 8006872C 0006456C 4B F9 B8 D5 */ bl memcpy
/* 80068730 00064570 83 9C 00 08 */ lwz r28, 0x8(r28)
/* 80068734 00064574 3B 39 00 46 */ addi r25, r25, 0x46
/* 80068738 00064578 3B 7B 00 46 */ addi r27, r27, 0x46
.global lbl_8006873C
lbl_8006873C:
/* 8006873C 0006457C 2C 1C 00 00 */ cmpwi r28, 0x0
/* 80068740 00064580 40 82 FF CC */ bne lbl_8006870C
/* 80068744 00064584 4B FB 90 DD */ bl OSDisableInterrupts
/* 80068748 00064588 3B 7A 00 00 */ addi r27, r26, 0x0
/* 8006874C 0006458C 8B 3B 00 12 */ lbz r25, 0x12(r27)
/* 80068750 00064590 4B FB 91 11 */ bl OSRestoreInterrupts
/* 80068754 00064594 3B 9A 1F 60 */ addi r28, r26, 0x1f60
/* 80068758 00064598 9B 3A 08 B8 */ stb r25, 0x8b8(r26)
/* 8006875C 0006459C 38 7C 00 01 */ addi r3, r28, 0x1
/* 80068760 000645A0 38 80 00 00 */ li r4, 0x0
/* 80068764 000645A4 38 A0 02 04 */ li r5, 0x204
/* 80068768 000645A8 4B F9 BB E9 */ bl memset
/* 8006876C 000645AC 2C 1D 00 00 */ cmpwi r29, 0x0
/* 80068770 000645B0 41 82 00 80 */ beq lbl_800687F0
/* 80068774 000645B4 83 BB 00 14 */ lwz r29, 0x14(r27)
/* 80068778 000645B8 3B 3C 00 01 */ addi r25, r28, 0x1
/* 8006877C 000645BC 3B 7C 00 07 */ addi r27, r28, 0x7
/* 80068780 000645C0 3B 9C 00 47 */ addi r28, r28, 0x47
/* 80068784 000645C4 48 00 00 4C */ b lbl_800687D0
.global lbl_80068788
lbl_80068788:
/* 80068788 000645C8 80 9D 00 00 */ lwz r4, 0x0(r29)
/* 8006878C 000645CC 7F 23 CB 78 */ mr r3, r25
/* 80068790 000645D0 38 A0 00 06 */ li r5, 0x6
/* 80068794 000645D4 38 84 00 40 */ addi r4, r4, 0x40
/* 80068798 000645D8 4B F9 B8 69 */ bl memcpy
/* 8006879C 000645DC 80 9D 00 00 */ lwz r4, 0x0(r29)
/* 800687A0 000645E0 7F 63 DB 78 */ mr r3, r27
/* 800687A4 000645E4 38 A0 00 40 */ li r5, 0x40
/* 800687A8 000645E8 4B F9 B8 59 */ bl memcpy
/* 800687AC 000645EC 80 9D 00 00 */ lwz r4, 0x0(r29)
/* 800687B0 000645F0 7F 83 E3 78 */ mr r3, r28
/* 800687B4 000645F4 38 A0 00 10 */ li r5, 0x10
/* 800687B8 000645F8 38 84 00 46 */ addi r4, r4, 0x46
/* 800687BC 000645FC 4B F9 B8 45 */ bl memcpy
/* 800687C0 00064600 83 BD 00 08 */ lwz r29, 0x8(r29)
/* 800687C4 00064604 3B 39 00 56 */ addi r25, r25, 0x56
/* 800687C8 00064608 3B 7B 00 56 */ addi r27, r27, 0x56
/* 800687CC 0006460C 3B 9C 00 56 */ addi r28, r28, 0x56
.global lbl_800687D0
lbl_800687D0:
/* 800687D0 00064610 2C 1D 00 00 */ cmpwi r29, 0x0
/* 800687D4 00064614 40 82 FF B4 */ bne lbl_80068788
/* 800687D8 00064618 4B FB 90 49 */ bl OSDisableInterrupts
/* 800687DC 0006461C 38 9A 00 00 */ addi r4, r26, 0x0
/* 800687E0 00064620 8B 24 00 13 */ lbz r25, 0x13(r4)
/* 800687E4 00064624 4B FB 90 7D */ bl OSRestoreInterrupts
/* 800687E8 00064628 9B 3A 1F 60 */ stb r25, 0x1f60(r26)
/* 800687EC 0006462C 48 00 00 0C */ b lbl_800687F8
.global lbl_800687F0
lbl_800687F0:
/* 800687F0 00064630 38 00 00 00 */ li r0, 0x0
/* 800687F4 00064634 98 1A 1F 60 */ stb r0, 0x1f60(r26)
.global lbl_800687F8
lbl_800687F8:
/* 800687F8 00064638 38 00 00 01 */ li r0, 0x1
/* 800687FC 0006463C 98 1F 00 11 */ stb r0, 0x11(r31)
/* 80068800 00064640 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068804 00064644 4B FB 2F FD */ bl OSCreateAlarm
/* 80068808 00064648 4B FB D3 39 */ bl OSGetTime
/* 8006880C 0006464C 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 80068810 00064650 3D 20 80 07 */ lis r9, __wudShutdownHandler0@ha
/* 80068814 00064654 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 80068818 00064658 3C C0 10 62 */ lis r6, 0x1062
/* 8006881C 0006465C 7C 65 1B 78 */ mr r5, r3
/* 80068820 00064660 39 29 81 50 */ addi r9, r9, __wudShutdownHandler0@l
/* 80068824 00064664 38 66 4D D3 */ addi r3, r6, 0x4dd3
/* 80068828 00064668 54 00 F0 BE */ srwi r0, r0, 2
/* 8006882C 0006466C 7C 03 00 16 */ mulhwu r0, r3, r0
/* 80068830 00064670 7C 86 23 78 */ mr r6, r4
/* 80068834 00064674 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068838 00064678 38 E0 00 00 */ li r7, 0x0
/* 8006883C 0006467C 54 00 D1 BE */ srwi r0, r0, 6
/* 80068840 00064680 1D 00 00 0A */ mulli r8, r0, 0xa
/* 80068844 00064684 4B FB 32 8D */ bl OSSetPeriodicAlarm
/* 80068848 00064688 38 00 00 04 */ li r0, 0x4
/* 8006884C 0006468C 98 1F 07 08 */ stb r0, 0x708(r31)
/* 80068850 00064690 7F C3 F3 78 */ mr r3, r30
/* 80068854 00064694 4B FB 90 0D */ bl OSRestoreInterrupts
/* 80068858 00064698 39 61 00 30 */ addi r11, r1, 0x30
/* 8006885C 0006469C 4B F9 EB 25 */ bl lbl_80007380
/* 80068860 000646A0 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80068864 000646A4 7C 08 03 A6 */ mtlr r0
/* 80068868 000646A8 38 21 00 30 */ addi r1, r1, 0x30
/* 8006886C 000646AC 4E 80 00 20 */ blr
.global WUDGetStatus
WUDGetStatus:
/* 80068870 000646B0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068874 000646B4 7C 08 02 A6 */ mflr r0
/* 80068878 000646B8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006887C 000646BC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068880 000646C0 4B FB 8F A1 */ bl OSDisableInterrupts
/* 80068884 000646C4 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068888 000646C8 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 8006888C 000646CC 8B E4 07 08 */ lbz r31, 0x708(r4)
/* 80068890 000646D0 4B FB 8F D1 */ bl OSRestoreInterrupts
/* 80068894 000646D4 7F E3 07 74 */ extsb r3, r31
/* 80068898 000646D8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006889C 000646DC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800688A0 000646E0 7C 08 03 A6 */ mtlr r0
/* 800688A4 000646E4 38 21 00 10 */ addi r1, r1, 0x10
/* 800688A8 000646E8 4E 80 00 20 */ blr
/* 800688AC 000646EC 00 00 00 00 */ .4byte 0x00000000
.global WUDGetBufferStatus
WUDGetBufferStatus:
/* 800688B0 000646F0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800688B4 000646F4 7C 08 02 A6 */ mflr r0
/* 800688B8 000646F8 90 01 00 14 */ stw r0, 0x14(r1)
/* 800688BC 000646FC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800688C0 00064700 4B FB 8F 61 */ bl OSDisableInterrupts
/* 800688C4 00064704 3C A0 80 4C */ lis r5, __rvl_wudcb@ha
/* 800688C8 00064708 38 A5 5A 60 */ addi r5, r5, __rvl_wudcb@l
/* 800688CC 0006470C A0 85 07 44 */ lhz r4, 0x744(r5)
/* 800688D0 00064710 A0 05 07 46 */ lhz r0, 0x746(r5)
/* 800688D4 00064714 7C 04 00 50 */ subf r0, r4, r0
/* 800688D8 00064718 54 1F 06 3E */ clrlwi r31, r0, 24
/* 800688DC 0006471C 4B FB 8F 85 */ bl OSRestoreInterrupts
/* 800688E0 00064720 7F E3 FB 78 */ mr r3, r31
/* 800688E4 00064724 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800688E8 00064728 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800688EC 0006472C 7C 08 03 A6 */ mtlr r0
/* 800688F0 00064730 38 21 00 10 */ addi r1, r1, 0x10
/* 800688F4 00064734 4E 80 00 20 */ blr
/* 800688F8 00064738 00 00 00 00 */ .4byte 0x00000000
/* 800688FC 0006473C 00 00 00 00 */ .4byte 0x00000000
.global WUDSetSniffMode
WUDSetSniffMode:
/* 80068900 00064740 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80068904 00064744 7C 08 02 A6 */ mflr r0
/* 80068908 00064748 2C 04 00 00 */ cmpwi r4, 0x0
/* 8006890C 0006474C 3C E0 80 4C */ lis r7, __rvl_wudcb@ha
/* 80068910 00064750 90 01 00 24 */ stw r0, 0x24(r1)
/* 80068914 00064754 7C 68 1B 78 */ mr r8, r3
/* 80068918 00064758 38 E7 5A 60 */ addi r7, r7, __rvl_wudcb@l
/* 8006891C 0006475C 40 81 00 10 */ ble lbl_8006892C
/* 80068920 00064760 38 00 00 02 */ li r0, 0x2
/* 80068924 00064764 98 01 00 10 */ stb r0, 0x10(r1)
/* 80068928 00064768 48 00 00 0C */ b lbl_80068934
.global lbl_8006892C
lbl_8006892C:
/* 8006892C 0006476C 38 00 00 00 */ li r0, 0x0
/* 80068930 00064770 98 01 00 10 */ stb r0, 0x10(r1)
.global lbl_80068934
lbl_80068934:
/* 80068934 00064774 38 C0 00 01 */ li r6, 0x1
/* 80068938 00064778 38 00 00 00 */ li r0, 0x0
/* 8006893C 0006477C B0 81 00 08 */ sth r4, 0x8(r1)
/* 80068940 00064780 38 A1 00 08 */ addi r5, r1, 0x8
/* 80068944 00064784 88 67 07 0A */ lbz r3, 0x70a(r7)
/* 80068948 00064788 B0 81 00 0A */ sth r4, 0xa(r1)
/* 8006894C 0006478C 7D 04 43 78 */ mr r4, r8
/* 80068950 00064790 B0 C1 00 0C */ sth r6, 0xc(r1)
/* 80068954 00064794 B0 01 00 0E */ sth r0, 0xe(r1)
/* 80068958 00064798 48 01 AF 01 */ bl BTM_SetPowerMode
/* 8006895C 0006479C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80068960 000647A0 7C 08 03 A6 */ mtlr r0
/* 80068964 000647A4 38 21 00 20 */ addi r1, r1, 0x20
/* 80068968 000647A8 4E 80 00 20 */ blr
/* 8006896C 000647AC 00 00 00 00 */ .4byte 0x00000000
.global WUDSetSyncSimpleCallback
WUDSetSyncSimpleCallback:
/* 80068970 000647B0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068974 000647B4 7C 08 02 A6 */ mflr r0
/* 80068978 000647B8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006897C 000647BC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068980 000647C0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80068984 000647C4 7C 7E 1B 78 */ mr r30, r3
/* 80068988 000647C8 4B FB 8E 99 */ bl OSDisableInterrupts
/* 8006898C 000647CC 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068990 000647D0 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80068994 000647D4 83 E4 00 04 */ lwz r31, 0x4(r4)
/* 80068998 000647D8 93 C4 00 04 */ stw r30, 0x4(r4)
/* 8006899C 000647DC 4B FB 8E C5 */ bl OSRestoreInterrupts
/* 800689A0 000647E0 7F E3 FB 78 */ mr r3, r31
/* 800689A4 000647E4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800689A8 000647E8 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 800689AC 000647EC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800689B0 000647F0 7C 08 03 A6 */ mtlr r0
/* 800689B4 000647F4 38 21 00 10 */ addi r1, r1, 0x10
/* 800689B8 000647F8 4E 80 00 20 */ blr
/* 800689BC 000647FC 00 00 00 00 */ .4byte 0x00000000
.global __wudStartSyncDevice
__wudStartSyncDevice:
/* 800689C0 00064800 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800689C4 00064804 7C 08 02 A6 */ mflr r0
/* 800689C8 00064808 90 01 00 34 */ stw r0, 0x34(r1)
/* 800689CC 0006480C 39 61 00 30 */ addi r11, r1, 0x30
/* 800689D0 00064810 4B F9 E9 65 */ bl lbl_80007334
/* 800689D4 00064814 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 800689D8 00064818 7C 7C 1B 78 */ mr r28, r3
/* 800689DC 0006481C 7C 9D 23 78 */ mr r29, r4
/* 800689E0 00064820 7C BE 2B 78 */ mr r30, r5
/* 800689E4 00064824 7C D9 33 78 */ mr r25, r6
/* 800689E8 00064828 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 800689EC 0006482C 3B 60 00 00 */ li r27, 0x0
/* 800689F0 00064830 4B FB 8E 31 */ bl OSDisableInterrupts
/* 800689F4 00064834 8B 5F 07 08 */ lbz r26, 0x708(r31)
/* 800689F8 00064838 7F 5A 07 74 */ extsb r26, r26
/* 800689FC 0006483C 4B FB 8E 65 */ bl OSRestoreInterrupts
/* 80068A00 00064840 28 1A 00 03 */ cmplwi r26, 0x3
/* 80068A04 00064844 40 82 00 EC */ bne lbl_80068AF0
/* 80068A08 00064848 4B FB 8E 19 */ bl OSDisableInterrupts
/* 80068A0C 0006484C 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 80068A10 00064850 2C 00 00 00 */ cmpwi r0, 0x0
/* 80068A14 00064854 40 82 00 34 */ bne lbl_80068A48
/* 80068A18 00064858 88 1F 00 0D */ lbz r0, 0xd(r31)
/* 80068A1C 0006485C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80068A20 00064860 40 82 00 28 */ bne lbl_80068A48
/* 80068A24 00064864 88 1F 00 0F */ lbz r0, 0xf(r31)
/* 80068A28 00064868 28 00 00 04 */ cmplwi r0, 0x4
/* 80068A2C 0006486C 40 82 00 1C */ bne lbl_80068A48
/* 80068A30 00064870 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 80068A34 00064874 28 00 00 07 */ cmplwi r0, 0x7
/* 80068A38 00064878 40 82 00 10 */ bne lbl_80068A48
/* 80068A3C 0006487C 4B FB 8E 25 */ bl OSRestoreInterrupts
/* 80068A40 00064880 38 00 00 00 */ li r0, 0x0
/* 80068A44 00064884 48 00 00 0C */ b lbl_80068A50
.global lbl_80068A48
lbl_80068A48:
/* 80068A48 00064888 4B FB 8E 19 */ bl OSRestoreInterrupts
/* 80068A4C 0006488C 38 00 00 01 */ li r0, 0x1
.global lbl_80068A50
lbl_80068A50:
/* 80068A50 00064890 2C 00 00 00 */ cmpwi r0, 0x0
/* 80068A54 00064894 40 82 00 9C */ bne lbl_80068AF0
/* 80068A58 00064898 4B FB 8D C9 */ bl OSDisableInterrupts
/* 80068A5C 0006489C 7C 19 00 D0 */ neg r0, r25
/* 80068A60 000648A0 38 E0 00 01 */ li r7, 0x1
/* 80068A64 000648A4 7C 00 CB 78 */ or r0, r0, r25
/* 80068A68 000648A8 38 A0 00 00 */ li r5, 0x0
/* 80068A6C 000648AC 54 06 0F FE */ srwi r6, r0, 31
/* 80068A70 000648B0 38 80 00 32 */ li r4, 0x32
/* 80068A74 000648B4 38 00 00 C8 */ li r0, 0xc8
/* 80068A78 000648B8 7C 7B 1B 78 */ mr r27, r3
/* 80068A7C 000648BC 9B CD EA 3D */ stb r30, _wudTarget@sda21(r13)
/* 80068A80 000648C0 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068A84 000648C4 98 FF 00 0C */ stb r7, 0xc(r31)
/* 80068A88 000648C8 9B BF 06 E8 */ stb r29, 0x6e8(r31)
/* 80068A8C 000648CC 9B 9F 06 E9 */ stb r28, 0x6e9(r31)
/* 80068A90 000648D0 98 DF 06 E7 */ stb r6, 0x6e7(r31)
/* 80068A94 000648D4 98 BF 06 E6 */ stb r5, 0x6e6(r31)
/* 80068A98 000648D8 98 9F 07 49 */ stb r4, 0x749(r31)
/* 80068A9C 000648DC B0 1F 07 4A */ sth r0, 0x74a(r31)
/* 80068AA0 000648E0 4B FB 2D 61 */ bl OSCreateAlarm
/* 80068AA4 000648E4 4B FB D0 9D */ bl OSGetTime
/* 80068AA8 000648E8 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 80068AAC 000648EC 3D 20 80 06 */ lis r9, __wudSyncHandler0@ha
/* 80068AB0 000648F0 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 80068AB4 000648F4 3C C0 10 62 */ lis r6, 0x1062
/* 80068AB8 000648F8 7C 65 1B 78 */ mr r5, r3
/* 80068ABC 000648FC 39 29 6C 80 */ addi r9, r9, __wudSyncHandler0@l
/* 80068AC0 00064900 38 66 4D D3 */ addi r3, r6, 0x4dd3
/* 80068AC4 00064904 54 00 F0 BE */ srwi r0, r0, 2
/* 80068AC8 00064908 7C 03 00 16 */ mulhwu r0, r3, r0
/* 80068ACC 0006490C 7C 86 23 78 */ mr r6, r4
/* 80068AD0 00064910 38 7F 07 10 */ addi r3, r31, 0x710
/* 80068AD4 00064914 38 E0 00 00 */ li r7, 0x0
/* 80068AD8 00064918 54 00 D1 BE */ srwi r0, r0, 6
/* 80068ADC 0006491C 1D 00 00 14 */ mulli r8, r0, 0x14
/* 80068AE0 00064920 4B FB 2F F1 */ bl OSSetPeriodicAlarm
/* 80068AE4 00064924 7F 63 DB 78 */ mr r3, r27
/* 80068AE8 00064928 4B FB 8D 79 */ bl OSRestoreInterrupts
/* 80068AEC 0006492C 3B 60 00 01 */ li r27, 0x1
.global lbl_80068AF0
lbl_80068AF0:
/* 80068AF0 00064930 39 61 00 30 */ addi r11, r1, 0x30
/* 80068AF4 00064934 7F 63 DB 78 */ mr r3, r27
/* 80068AF8 00064938 4B F9 E8 89 */ bl lbl_80007380
/* 80068AFC 0006493C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80068B00 00064940 7C 08 03 A6 */ mtlr r0
/* 80068B04 00064944 38 21 00 30 */ addi r1, r1, 0x30
/* 80068B08 00064948 4E 80 00 20 */ blr
/* 80068B0C 0006494C 00 00 00 00 */ .4byte 0x00000000
.global WUDStartFastSyncSimple
WUDStartFastSyncSimple:
/* 80068B10 00064950 38 60 00 01 */ li r3, 0x1
/* 80068B14 00064954 38 80 FF FF */ li r4, -0x1
/* 80068B18 00064958 38 A0 00 00 */ li r5, 0x0
/* 80068B1C 0006495C 38 C0 00 01 */ li r6, 0x1
/* 80068B20 00064960 4B FF FE A0 */ b __wudStartSyncDevice
/* 80068B24 00064964 00 00 00 00 */ .4byte 0x00000000
/* 80068B28 00064968 00 00 00 00 */ .4byte 0x00000000
/* 80068B2C 0006496C 00 00 00 00 */ .4byte 0x00000000
.global WUDStartSyncSimple
WUDStartSyncSimple:
/* 80068B30 00064970 38 60 00 01 */ li r3, 0x1
/* 80068B34 00064974 38 80 FF FF */ li r4, -0x1
/* 80068B38 00064978 38 A0 00 00 */ li r5, 0x0
/* 80068B3C 0006497C 38 C0 00 00 */ li r6, 0x0
/* 80068B40 00064980 4B FF FE 80 */ b __wudStartSyncDevice
/* 80068B44 00064984 00 00 00 00 */ .4byte 0x00000000
/* 80068B48 00064988 00 00 00 00 */ .4byte 0x00000000
/* 80068B4C 0006498C 00 00 00 00 */ .4byte 0x00000000
.global WUDCancelSyncDevice
WUDCancelSyncDevice:
/* 80068B50 00064990 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80068B54 00064994 7C 08 02 A6 */ mflr r0
/* 80068B58 00064998 90 01 00 24 */ stw r0, 0x24(r1)
/* 80068B5C 0006499C 38 00 00 01 */ li r0, 0x1
/* 80068B60 000649A0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80068B64 000649A4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80068B68 000649A8 3B C0 00 00 */ li r30, 0x0
/* 80068B6C 000649AC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80068B70 000649B0 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80068B74 000649B4 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80068B78 000649B8 90 0D EA 10 */ stw r0, _wudAbortSync@sda21(r13)
/* 80068B7C 000649BC 4B FB 8C A5 */ bl OSDisableInterrupts
/* 80068B80 000649C0 88 1D 07 08 */ lbz r0, 0x708(r29)
/* 80068B84 000649C4 7C 7F 1B 78 */ mr r31, r3
/* 80068B88 000649C8 2C 00 00 03 */ cmpwi r0, 0x3
/* 80068B8C 000649CC 40 82 00 2C */ bne lbl_80068BB8
/* 80068B90 000649D0 88 1D 06 E8 */ lbz r0, 0x6e8(r29)
/* 80068B94 000649D4 7C 00 07 75 */ extsb. r0, r0
/* 80068B98 000649D8 41 82 00 1C */ beq lbl_80068BB4
/* 80068B9C 000649DC 88 1D 00 0C */ lbz r0, 0xc(r29)
/* 80068BA0 000649E0 28 00 00 03 */ cmplwi r0, 0x3
/* 80068BA4 000649E4 40 82 00 08 */ bne lbl_80068BAC
/* 80068BA8 000649E8 48 01 20 75 */ bl BTA_DmSearchCancel
.global lbl_80068BAC
lbl_80068BAC:
/* 80068BAC 000649EC 38 00 00 00 */ li r0, 0x0
/* 80068BB0 000649F0 98 1D 06 E8 */ stb r0, 0x6e8(r29)
.global lbl_80068BB4
lbl_80068BB4:
/* 80068BB4 000649F4 3B C0 00 01 */ li r30, 0x1
.global lbl_80068BB8
lbl_80068BB8:
/* 80068BB8 000649F8 7F E3 FB 78 */ mr r3, r31
/* 80068BBC 000649FC 4B FB 8C A5 */ bl OSRestoreInterrupts
/* 80068BC0 00064A00 7F C3 F3 78 */ mr r3, r30
/* 80068BC4 00064A04 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80068BC8 00064A08 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80068BCC 00064A0C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80068BD0 00064A10 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80068BD4 00064A14 7C 08 03 A6 */ mtlr r0
/* 80068BD8 00064A18 38 21 00 20 */ addi r1, r1, 0x20
/* 80068BDC 00064A1C 4E 80 00 20 */ blr
.global WUDStopSyncSimple
WUDStopSyncSimple:
/* 80068BE0 00064A20 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80068BE4 00064A24 7C 08 02 A6 */ mflr r0
/* 80068BE8 00064A28 90 01 00 24 */ stw r0, 0x24(r1)
/* 80068BEC 00064A2C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80068BF0 00064A30 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80068BF4 00064A34 3B C0 00 00 */ li r30, 0x0
/* 80068BF8 00064A38 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80068BFC 00064A3C 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80068C00 00064A40 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80068C04 00064A44 4B FB 8C 1D */ bl OSDisableInterrupts
/* 80068C08 00064A48 88 1D 07 08 */ lbz r0, 0x708(r29)
/* 80068C0C 00064A4C 7C 7F 1B 78 */ mr r31, r3
/* 80068C10 00064A50 2C 00 00 03 */ cmpwi r0, 0x3
/* 80068C14 00064A54 40 82 00 2C */ bne lbl_80068C40
/* 80068C18 00064A58 88 1D 06 E8 */ lbz r0, 0x6e8(r29)
/* 80068C1C 00064A5C 7C 00 07 75 */ extsb. r0, r0
/* 80068C20 00064A60 41 82 00 1C */ beq lbl_80068C3C
/* 80068C24 00064A64 88 1D 00 0C */ lbz r0, 0xc(r29)
/* 80068C28 00064A68 28 00 00 03 */ cmplwi r0, 0x3
/* 80068C2C 00064A6C 40 82 00 08 */ bne lbl_80068C34
/* 80068C30 00064A70 48 01 1F ED */ bl BTA_DmSearchCancel
.global lbl_80068C34
lbl_80068C34:
/* 80068C34 00064A74 38 00 00 00 */ li r0, 0x0
/* 80068C38 00064A78 98 1D 06 E8 */ stb r0, 0x6e8(r29)
.global lbl_80068C3C
lbl_80068C3C:
/* 80068C3C 00064A7C 3B C0 00 01 */ li r30, 0x1
.global lbl_80068C40
lbl_80068C40:
/* 80068C40 00064A80 7F E3 FB 78 */ mr r3, r31
/* 80068C44 00064A84 4B FB 8C 1D */ bl OSRestoreInterrupts
/* 80068C48 00064A88 7F C3 F3 78 */ mr r3, r30
/* 80068C4C 00064A8C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80068C50 00064A90 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80068C54 00064A94 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80068C58 00064A98 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80068C5C 00064A9C 7C 08 03 A6 */ mtlr r0
/* 80068C60 00064AA0 38 21 00 20 */ addi r1, r1, 0x20
/* 80068C64 00064AA4 4E 80 00 20 */ blr
/* 80068C68 00064AA8 00 00 00 00 */ .4byte 0x00000000
/* 80068C6C 00064AAC 00 00 00 00 */ .4byte 0x00000000
.global WUDSetDisableChannel
WUDSetDisableChannel:
/* 80068C70 00064AB0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80068C74 00064AB4 7C 08 02 A6 */ mflr r0
/* 80068C78 00064AB8 90 01 00 24 */ stw r0, 0x24(r1)
/* 80068C7C 00064ABC 54 60 06 3E */ clrlwi r0, r3, 24
/* 80068C80 00064AC0 28 00 00 0D */ cmplwi r0, 0xd
/* 80068C84 00064AC4 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80068C88 00064AC8 3B E0 00 00 */ li r31, 0x0
/* 80068C8C 00064ACC 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80068C90 00064AD0 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80068C94 00064AD4 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80068C98 00064AD8 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80068C9C 00064ADC 7C 7D 1B 78 */ mr r29, r3
/* 80068CA0 00064AE0 40 81 00 0C */ ble lbl_80068CAC
/* 80068CA4 00064AE4 38 60 00 00 */ li r3, 0x0
/* 80068CA8 00064AE8 48 00 00 6C */ b lbl_80068D14
.global lbl_80068CAC
lbl_80068CAC:
/* 80068CAC 00064AEC 4B FB 8B 75 */ bl OSDisableInterrupts
/* 80068CB0 00064AF0 8B DE 07 08 */ lbz r30, 0x708(r30)
/* 80068CB4 00064AF4 7F DE 07 74 */ extsb r30, r30
/* 80068CB8 00064AF8 4B FB 8B A9 */ bl OSRestoreInterrupts
/* 80068CBC 00064AFC 28 1E 00 03 */ cmplwi r30, 0x3
/* 80068CC0 00064B00 40 82 00 50 */ bne lbl_80068D10
/* 80068CC4 00064B04 7F A3 07 75 */ extsb. r3, r29
/* 80068CC8 00064B08 40 82 00 10 */ bne lbl_80068CD8
/* 80068CCC 00064B0C 38 00 00 FF */ li r0, 0xff
/* 80068CD0 00064B10 38 80 00 FF */ li r4, 0xff
/* 80068CD4 00064B14 48 00 00 2C */ b lbl_80068D00
.global lbl_80068CD8
lbl_80068CD8:
/* 80068CD8 00064B18 38 63 00 01 */ addi r3, r3, 0x1
/* 80068CDC 00064B1C 54 60 10 3A */ slwi r0, r3, 2
/* 80068CE0 00064B20 7C 60 1A 14 */ add r3, r0, r3
/* 80068CE4 00064B24 34 03 FF F2 */ addic. r0, r3, -0xe
/* 80068CE8 00064B28 38 83 00 0E */ addi r4, r3, 0xe
/* 80068CEC 00064B2C 40 80 00 08 */ bge lbl_80068CF4
/* 80068CF0 00064B30 38 00 00 00 */ li r0, 0x0
.global lbl_80068CF4
lbl_80068CF4:
/* 80068CF4 00064B34 2C 04 00 4E */ cmpwi r4, 0x4e
/* 80068CF8 00064B38 40 81 00 08 */ ble lbl_80068D00
/* 80068CFC 00064B3C 38 80 00 4E */ li r4, 0x4e
.global lbl_80068D00
lbl_80068D00:
/* 80068D00 00064B40 54 03 06 3E */ clrlwi r3, r0, 24
/* 80068D04 00064B44 54 84 06 3E */ clrlwi r4, r4, 24
/* 80068D08 00064B48 48 01 77 9D */ bl BTM_SetAfhChannels
/* 80068D0C 00064B4C 3B E0 00 01 */ li r31, 0x1
.global lbl_80068D10
lbl_80068D10:
/* 80068D10 00064B50 7F E3 FB 78 */ mr r3, r31
.global lbl_80068D14
lbl_80068D14:
/* 80068D14 00064B54 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80068D18 00064B58 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80068D1C 00064B5C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80068D20 00064B60 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80068D24 00064B64 7C 08 03 A6 */ mtlr r0
/* 80068D28 00064B68 38 21 00 20 */ addi r1, r1, 0x20
/* 80068D2C 00064B6C 4E 80 00 20 */ blr
.global WUDSetHidRecvCallback
WUDSetHidRecvCallback:
/* 80068D30 00064B70 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068D34 00064B74 7C 08 02 A6 */ mflr r0
/* 80068D38 00064B78 90 01 00 14 */ stw r0, 0x14(r1)
/* 80068D3C 00064B7C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068D40 00064B80 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80068D44 00064B84 7C 7E 1B 78 */ mr r30, r3
/* 80068D48 00064B88 4B FB 8A D9 */ bl OSDisableInterrupts
/* 80068D4C 00064B8C 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068D50 00064B90 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80068D54 00064B94 83 E4 06 EC */ lwz r31, 0x6ec(r4)
/* 80068D58 00064B98 93 C4 06 EC */ stw r30, 0x6ec(r4)
/* 80068D5C 00064B9C 4B FB 8B 05 */ bl OSRestoreInterrupts
/* 80068D60 00064BA0 7F E3 FB 78 */ mr r3, r31
/* 80068D64 00064BA4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80068D68 00064BA8 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80068D6C 00064BAC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80068D70 00064BB0 7C 08 03 A6 */ mtlr r0
/* 80068D74 00064BB4 38 21 00 10 */ addi r1, r1, 0x10
/* 80068D78 00064BB8 4E 80 00 20 */ blr
/* 80068D7C 00064BBC 00 00 00 00 */ .4byte 0x00000000
.global WUDSetHidConnCallback
WUDSetHidConnCallback:
/* 80068D80 00064BC0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068D84 00064BC4 7C 08 02 A6 */ mflr r0
/* 80068D88 00064BC8 90 01 00 14 */ stw r0, 0x14(r1)
/* 80068D8C 00064BCC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068D90 00064BD0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80068D94 00064BD4 7C 7E 1B 78 */ mr r30, r3
/* 80068D98 00064BD8 4B FB 8A 89 */ bl OSDisableInterrupts
/* 80068D9C 00064BDC 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068DA0 00064BE0 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80068DA4 00064BE4 83 E4 06 F0 */ lwz r31, 0x6f0(r4)
/* 80068DA8 00064BE8 93 C4 06 F0 */ stw r30, 0x6f0(r4)
/* 80068DAC 00064BEC 4B FB 8A B5 */ bl OSRestoreInterrupts
/* 80068DB0 00064BF0 7F E3 FB 78 */ mr r3, r31
/* 80068DB4 00064BF4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80068DB8 00064BF8 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80068DBC 00064BFC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80068DC0 00064C00 7C 08 03 A6 */ mtlr r0
/* 80068DC4 00064C04 38 21 00 10 */ addi r1, r1, 0x10
/* 80068DC8 00064C08 4E 80 00 20 */ blr
/* 80068DCC 00064C0C 00 00 00 00 */ .4byte 0x00000000
.global WUDSetVisibility
WUDSetVisibility:
/* 80068DD0 00064C10 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80068DD4 00064C14 7C 08 02 A6 */ mflr r0
/* 80068DD8 00064C18 90 01 00 14 */ stw r0, 0x14(r1)
/* 80068DDC 00064C1C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80068DE0 00064C20 7C 9F 23 78 */ mr r31, r4
/* 80068DE4 00064C24 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80068DE8 00064C28 7C 7E 1B 78 */ mr r30, r3
/* 80068DEC 00064C2C 4B FB 8A 35 */ bl OSDisableInterrupts
/* 80068DF0 00064C30 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80068DF4 00064C34 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80068DF8 00064C38 9B C4 06 EB */ stb r30, 0x6eb(r4)
/* 80068DFC 00064C3C 9B E4 06 EA */ stb r31, 0x6ea(r4)
/* 80068E00 00064C40 4B FB 8A 61 */ bl OSRestoreInterrupts
/* 80068E04 00064C44 7F C3 F3 78 */ mr r3, r30
/* 80068E08 00064C48 7F E4 FB 78 */ mr r4, r31
/* 80068E0C 00064C4C 48 01 1D 35 */ bl BTA_DmSetVisibility
/* 80068E10 00064C50 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80068E14 00064C54 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80068E18 00064C58 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80068E1C 00064C5C 7C 08 03 A6 */ mtlr r0
/* 80068E20 00064C60 38 21 00 10 */ addi r1, r1, 0x10
/* 80068E24 00064C64 4E 80 00 20 */ blr
/* 80068E28 00064C68 00 00 00 00 */ .4byte 0x00000000
/* 80068E2C 00064C6C 00 00 00 00 */ .4byte 0x00000000
.global __wudModuleRebootCallback
__wudModuleRebootCallback:
/* 80068E30 00064C70 48 00 04 B0 */ b __wudInitSub
/* 80068E34 00064C74 00 00 00 00 */ .4byte 0x00000000
/* 80068E38 00064C78 00 00 00 00 */ .4byte 0x00000000
/* 80068E3C 00064C7C 00 00 00 00 */ .4byte 0x00000000
.global __wudInstallPatchCallback
__wudInstallPatchCallback:
/* 80068E40 00064C80 94 21 FE F0 */ stwu r1, -0x110(r1)
/* 80068E44 00064C84 7C 08 02 A6 */ mflr r0
/* 80068E48 00064C88 90 01 01 14 */ stw r0, 0x114(r1)
/* 80068E4C 00064C8C 93 E1 01 0C */ stw r31, 0x10c(r1)
/* 80068E50 00064C90 93 C1 01 08 */ stw r30, 0x108(r1)
/* 80068E54 00064C94 88 AD EA 2D */ lbz r5, _wudInstallNum@sda21(r13)
/* 80068E58 00064C98 88 0D EA 2E */ lbz r0, _wudPatchNum@sda21(r13)
/* 80068E5C 00064C9C 7C 00 28 40 */ cmplw r0, r5
/* 80068E60 00064CA0 40 82 00 0C */ bne lbl_80068E6C
/* 80068E64 00064CA4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80068E68 00064CA8 40 82 00 0C */ bne lbl_80068E74
.global lbl_80068E6C
lbl_80068E6C:
/* 80068E6C 00064CAC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80068E70 00064CB0 40 82 00 14 */ bne lbl_80068E84
.global lbl_80068E74
lbl_80068E74:
/* 80068E74 00064CB4 3C 60 80 07 */ lis r3, __wudModuleRebootCallback@ha
/* 80068E78 00064CB8 38 63 8E 30 */ addi r3, r3, __wudModuleRebootCallback@l
/* 80068E7C 00064CBC 48 01 74 C9 */ bl BTM_DeviceReset
/* 80068E80 00064CC0 48 00 00 74 */ b lbl_80068EF4
.global lbl_80068E84
lbl_80068E84:
/* 80068E84 00064CC4 7C 65 00 50 */ subf r3, r5, r0
/* 80068E88 00064CC8 38 00 00 13 */ li r0, 0x13
/* 80068E8C 00064CCC 2C 03 00 13 */ cmpwi r3, 0x13
/* 80068E90 00064CD0 40 80 00 08 */ bge lbl_80068E98
/* 80068E94 00064CD4 7C 60 1B 78 */ mr r0, r3
.global lbl_80068E98
lbl_80068E98:
/* 80068E98 00064CD8 54 1F 06 3E */ clrlwi r31, r0, 24
/* 80068E9C 00064CDC 98 01 00 08 */ stb r0, 0x8(r1)
/* 80068EA0 00064CE0 3C 80 80 44 */ lis r4, _wudPatchInstallCmd@ha
/* 80068EA4 00064CE4 38 61 00 09 */ addi r3, r1, 0x9
/* 80068EA8 00064CE8 1C 05 00 0D */ mulli r0, r5, 0xd
/* 80068EAC 00064CEC 38 84 9D 1C */ addi r4, r4, _wudPatchInstallCmd@l
/* 80068EB0 00064CF0 1F DF 00 0D */ mulli r30, r31, 0xd
/* 80068EB4 00064CF4 7C 84 02 14 */ add r4, r4, r0
/* 80068EB8 00064CF8 7F C5 F3 78 */ mr r5, r30
/* 80068EBC 00064CFC 38 84 00 01 */ addi r4, r4, 0x1
/* 80068EC0 00064D00 4B F9 B1 41 */ bl memcpy
/* 80068EC4 00064D04 88 8D EA 2D */ lbz r4, _wudInstallNum@sda21(r13)
/* 80068EC8 00064D08 3C 60 00 01 */ lis r3, 0x1
/* 80068ECC 00064D0C 38 63 FC 4F */ addi r3, r3, -0x3b1
/* 80068ED0 00064D10 3C C0 80 07 */ lis r6, __wudInstallPatchCallback@ha
/* 80068ED4 00064D14 7C 84 FA 14 */ add r4, r4, r31
/* 80068ED8 00064D18 38 1E 00 01 */ addi r0, r30, 0x1
/* 80068EDC 00064D1C 98 8D EA 2D */ stb r4, _wudInstallNum@sda21(r13)
/* 80068EE0 00064D20 54 63 04 3E */ clrlwi r3, r3, 16
/* 80068EE4 00064D24 54 04 06 3E */ clrlwi r4, r0, 24
/* 80068EE8 00064D28 38 A1 00 08 */ addi r5, r1, 0x8
/* 80068EEC 00064D2C 38 C6 8E 40 */ addi r6, r6, __wudInstallPatchCallback@l
/* 80068EF0 00064D30 48 01 84 51 */ bl BTM_VendorSpecificCommand
.global lbl_80068EF4
lbl_80068EF4:
/* 80068EF4 00064D34 80 01 01 14 */ lwz r0, 0x114(r1)
/* 80068EF8 00064D38 83 E1 01 0C */ lwz r31, 0x10c(r1)
/* 80068EFC 00064D3C 83 C1 01 08 */ lwz r30, 0x108(r1)
/* 80068F00 00064D40 7C 08 03 A6 */ mtlr r0
/* 80068F04 00064D44 38 21 01 10 */ addi r1, r1, 0x110
/* 80068F08 00064D48 4E 80 00 20 */ blr
/* 80068F0C 00064D4C 00 00 00 00 */ .4byte 0x00000000
.global __wudWritePatchCallback
__wudWritePatchCallback:
/* 80068F10 00064D50 94 21 FD F0 */ stwu r1, -0x210(r1)
/* 80068F14 00064D54 7C 08 02 A6 */ mflr r0
/* 80068F18 00064D58 2C 03 00 00 */ cmpwi r3, 0x0
/* 80068F1C 00064D5C 90 01 02 14 */ stw r0, 0x214(r1)
/* 80068F20 00064D60 93 E1 02 0C */ stw r31, 0x20c(r1)
/* 80068F24 00064D64 93 C1 02 08 */ stw r30, 0x208(r1)
/* 80068F28 00064D68 41 82 01 F4 */ beq lbl_8006911C
/* 80068F2C 00064D6C 80 8D EA 34 */ lwz r4, _wudPatchOffset@sda21(r13)
/* 80068F30 00064D70 80 0D EA 38 */ lwz r0, _wudPatchSize@sda21(r13)
/* 80068F34 00064D74 7C 00 20 40 */ cmplw r0, r4
/* 80068F38 00064D78 40 82 00 80 */ bne lbl_80068FB8
/* 80068F3C 00064D7C 3C 60 80 44 */ lis r3, _wudPatchInstallCmd@ha
/* 80068F40 00064D80 38 80 00 00 */ li r4, 0x0
/* 80068F44 00064D84 88 63 9D 1C */ lbz r3, _wudPatchInstallCmd@l(r3)
/* 80068F48 00064D88 38 00 00 13 */ li r0, 0x13
/* 80068F4C 00064D8C 98 8D EA 2D */ stb r4, _wudInstallNum@sda21(r13)
/* 80068F50 00064D90 2C 03 00 13 */ cmpwi r3, 0x13
/* 80068F54 00064D94 98 6D EA 2E */ stb r3, _wudPatchNum@sda21(r13)
/* 80068F58 00064D98 40 80 00 08 */ bge lbl_80068F60
/* 80068F5C 00064D9C 7C 60 1B 78 */ mr r0, r3
.global lbl_80068F60
lbl_80068F60:
/* 80068F60 00064DA0 54 1F 06 3E */ clrlwi r31, r0, 24
/* 80068F64 00064DA4 3C 80 80 44 */ lis r4, _wudPatchInstallCmd@ha
/* 80068F68 00064DA8 1F DF 00 0D */ mulli r30, r31, 0xd
/* 80068F6C 00064DAC 98 01 01 08 */ stb r0, 0x108(r1)
/* 80068F70 00064DB0 38 84 9D 1C */ addi r4, r4, _wudPatchInstallCmd@l
/* 80068F74 00064DB4 38 61 01 09 */ addi r3, r1, 0x109
/* 80068F78 00064DB8 7F C5 F3 78 */ mr r5, r30
/* 80068F7C 00064DBC 38 84 00 01 */ addi r4, r4, 0x1
/* 80068F80 00064DC0 4B F9 B0 81 */ bl memcpy
/* 80068F84 00064DC4 88 8D EA 2D */ lbz r4, _wudInstallNum@sda21(r13)
/* 80068F88 00064DC8 3C 60 00 01 */ lis r3, 0x1
/* 80068F8C 00064DCC 38 63 FC 4F */ addi r3, r3, -0x3b1
/* 80068F90 00064DD0 3C C0 80 07 */ lis r6, __wudInstallPatchCallback@ha
/* 80068F94 00064DD4 7C 84 FA 14 */ add r4, r4, r31
/* 80068F98 00064DD8 38 1E 00 01 */ addi r0, r30, 0x1
/* 80068F9C 00064DDC 98 8D EA 2D */ stb r4, _wudInstallNum@sda21(r13)
/* 80068FA0 00064DE0 54 63 04 3E */ clrlwi r3, r3, 16
/* 80068FA4 00064DE4 54 04 06 3E */ clrlwi r4, r0, 24
/* 80068FA8 00064DE8 38 A1 01 08 */ addi r5, r1, 0x108
/* 80068FAC 00064DEC 38 C6 8E 40 */ addi r6, r6, __wudInstallPatchCallback@l
/* 80068FB0 00064DF0 48 01 83 91 */ bl BTM_VendorSpecificCommand
/* 80068FB4 00064DF4 48 00 01 74 */ b lbl_80069128
.global lbl_80068FB8
lbl_80068FB8:
/* 80068FB8 00064DF8 7C 04 00 50 */ subf r0, r4, r0
/* 80068FBC 00064DFC 38 60 00 FB */ li r3, 0xfb
/* 80068FC0 00064E00 28 00 00 FB */ cmplwi r0, 0xfb
/* 80068FC4 00064E04 40 80 00 08 */ bge lbl_80068FCC
/* 80068FC8 00064E08 7C 03 03 78 */ mr r3, r0
.global lbl_80068FCC
lbl_80068FCC:
/* 80068FCC 00064E0C 80 0D EA 30 */ lwz r0, _wudPatchAddress@sda21(r13)
/* 80068FD0 00064E10 54 63 06 3E */ clrlwi r3, r3, 24
/* 80068FD4 00064E14 2C 83 00 00 */ cmpwi cr1, r3, 0x0
/* 80068FD8 00064E18 38 C0 00 00 */ li r6, 0x0
/* 80068FDC 00064E1C 7C 00 22 14 */ add r0, r0, r4
/* 80068FE0 00064E20 98 01 00 08 */ stb r0, 0x8(r1)
/* 80068FE4 00064E24 54 05 C6 3E */ extrwi r5, r0, 8, 16
/* 80068FE8 00064E28 54 04 86 3E */ extrwi r4, r0, 8, 8
/* 80068FEC 00064E2C 54 00 46 3E */ srwi r0, r0, 24
/* 80068FF0 00064E30 98 A1 00 09 */ stb r5, 0x9(r1)
/* 80068FF4 00064E34 98 81 00 0A */ stb r4, 0xa(r1)
/* 80068FF8 00064E38 98 01 00 0B */ stb r0, 0xb(r1)
/* 80068FFC 00064E3C 40 85 00 EC */ ble cr1, lbl_800690E8
/* 80069000 00064E40 2C 03 00 08 */ cmpwi r3, 0x8
/* 80069004 00064E44 38 E3 FF F8 */ addi r7, r3, -0x8
/* 80069008 00064E48 40 81 00 A0 */ ble lbl_800690A8
/* 8006900C 00064E4C 38 A0 00 00 */ li r5, 0x0
/* 80069010 00064E50 41 84 00 18 */ blt cr1, lbl_80069028
/* 80069014 00064E54 3C 80 80 00 */ lis r4, 0x8000
/* 80069018 00064E58 38 04 FF FE */ addi r0, r4, -0x2
/* 8006901C 00064E5C 7C 03 00 00 */ cmpw r3, r0
/* 80069020 00064E60 41 81 00 08 */ bgt lbl_80069028
/* 80069024 00064E64 38 A0 00 01 */ li r5, 0x1
.global lbl_80069028
lbl_80069028:
/* 80069028 00064E68 2C 05 00 00 */ cmpwi r5, 0x0
/* 8006902C 00064E6C 41 82 00 7C */ beq lbl_800690A8
/* 80069030 00064E70 38 07 00 07 */ addi r0, r7, 0x7
/* 80069034 00064E74 3C 80 80 44 */ lis r4, _wudPatchData@ha
/* 80069038 00064E78 80 AD EA 34 */ lwz r5, _wudPatchOffset@sda21(r13)
/* 8006903C 00064E7C 38 84 9C 60 */ addi r4, r4, _wudPatchData@l
/* 80069040 00064E80 54 00 E8 FE */ srwi r0, r0, 3
/* 80069044 00064E84 39 01 00 08 */ addi r8, r1, 0x8
/* 80069048 00064E88 7C A4 2A 14 */ add r5, r4, r5
/* 8006904C 00064E8C 7C 09 03 A6 */ mtctr r0
/* 80069050 00064E90 2C 07 00 00 */ cmpwi r7, 0x0
/* 80069054 00064E94 40 81 00 54 */ ble lbl_800690A8
.global lbl_80069058
lbl_80069058:
/* 80069058 00064E98 7C 85 32 14 */ add r4, r5, r6
/* 8006905C 00064E9C 38 C6 00 08 */ addi r6, r6, 0x8
/* 80069060 00064EA0 88 04 00 08 */ lbz r0, 0x8(r4)
/* 80069064 00064EA4 98 08 00 04 */ stb r0, 0x4(r8)
/* 80069068 00064EA8 88 04 00 09 */ lbz r0, 0x9(r4)
/* 8006906C 00064EAC 98 08 00 05 */ stb r0, 0x5(r8)
/* 80069070 00064EB0 88 04 00 0A */ lbz r0, 0xa(r4)
/* 80069074 00064EB4 98 08 00 06 */ stb r0, 0x6(r8)
/* 80069078 00064EB8 88 04 00 0B */ lbz r0, 0xb(r4)
/* 8006907C 00064EBC 98 08 00 07 */ stb r0, 0x7(r8)
/* 80069080 00064EC0 88 04 00 0C */ lbz r0, 0xc(r4)
/* 80069084 00064EC4 98 08 00 08 */ stb r0, 0x8(r8)
/* 80069088 00064EC8 88 04 00 0D */ lbz r0, 0xd(r4)
/* 8006908C 00064ECC 98 08 00 09 */ stb r0, 0x9(r8)
/* 80069090 00064ED0 88 04 00 0E */ lbz r0, 0xe(r4)
/* 80069094 00064ED4 98 08 00 0A */ stb r0, 0xa(r8)
/* 80069098 00064ED8 88 04 00 0F */ lbz r0, 0xf(r4)
/* 8006909C 00064EDC 98 08 00 0B */ stb r0, 0xb(r8)
/* 800690A0 00064EE0 39 08 00 08 */ addi r8, r8, 0x8
/* 800690A4 00064EE4 42 00 FF B4 */ bdnz lbl_80069058
.global lbl_800690A8
lbl_800690A8:
/* 800690A8 00064EE8 3C 80 80 44 */ lis r4, _wudPatchData@ha
/* 800690AC 00064EEC 80 AD EA 34 */ lwz r5, _wudPatchOffset@sda21(r13)
/* 800690B0 00064EF0 38 E1 00 08 */ addi r7, r1, 0x8
/* 800690B4 00064EF4 7C 06 18 50 */ subf r0, r6, r3
/* 800690B8 00064EF8 38 84 9C 60 */ addi r4, r4, _wudPatchData@l
/* 800690BC 00064EFC 7C E7 32 14 */ add r7, r7, r6
/* 800690C0 00064F00 7C A4 2A 14 */ add r5, r4, r5
/* 800690C4 00064F04 7C 09 03 A6 */ mtctr r0
/* 800690C8 00064F08 7C 06 18 00 */ cmpw r6, r3
/* 800690CC 00064F0C 40 80 00 1C */ bge lbl_800690E8
.global lbl_800690D0
lbl_800690D0:
/* 800690D0 00064F10 7C 85 32 14 */ add r4, r5, r6
/* 800690D4 00064F14 38 C6 00 01 */ addi r6, r6, 0x1
/* 800690D8 00064F18 88 04 00 08 */ lbz r0, 0x8(r4)
/* 800690DC 00064F1C 98 07 00 04 */ stb r0, 0x4(r7)
/* 800690E0 00064F20 38 E7 00 01 */ addi r7, r7, 0x1
/* 800690E4 00064F24 42 00 FF EC */ bdnz lbl_800690D0
.global lbl_800690E8
lbl_800690E8:
/* 800690E8 00064F28 80 AD EA 34 */ lwz r5, _wudPatchOffset@sda21(r13)
/* 800690EC 00064F2C 3C 80 00 01 */ lis r4, 0x1
/* 800690F0 00064F30 38 03 00 04 */ addi r0, r3, 0x4
/* 800690F4 00064F34 3C C0 80 07 */ lis r6, __wudWritePatchCallback@ha
/* 800690F8 00064F38 7C 65 1A 14 */ add r3, r5, r3
/* 800690FC 00064F3C 38 84 FC 4C */ addi r4, r4, -0x3b4
/* 80069100 00064F40 90 6D EA 34 */ stw r3, _wudPatchOffset@sda21(r13)
/* 80069104 00064F44 54 83 04 3E */ clrlwi r3, r4, 16
/* 80069108 00064F48 54 04 06 3E */ clrlwi r4, r0, 24
/* 8006910C 00064F4C 38 A1 00 08 */ addi r5, r1, 0x8
/* 80069110 00064F50 38 C6 8F 10 */ addi r6, r6, __wudWritePatchCallback@l
/* 80069114 00064F54 48 01 82 2D */ bl BTM_VendorSpecificCommand
/* 80069118 00064F58 48 00 00 10 */ b lbl_80069128
.global lbl_8006911C
lbl_8006911C:
/* 8006911C 00064F5C 3C 60 80 07 */ lis r3, __wudModuleRebootCallback@ha
/* 80069120 00064F60 38 63 8E 30 */ addi r3, r3, __wudModuleRebootCallback@l
/* 80069124 00064F64 48 01 72 21 */ bl BTM_DeviceReset
.global lbl_80069128
lbl_80069128:
/* 80069128 00064F68 80 01 02 14 */ lwz r0, 0x214(r1)
/* 8006912C 00064F6C 83 E1 02 0C */ lwz r31, 0x20c(r1)
/* 80069130 00064F70 83 C1 02 08 */ lwz r30, 0x208(r1)
/* 80069134 00064F74 7C 08 03 A6 */ mtlr r0
/* 80069138 00064F78 38 21 02 10 */ addi r1, r1, 0x210
/* 8006913C 00064F7C 4E 80 00 20 */ blr
.global __wudRemovePatchCallback
__wudRemovePatchCallback:
/* 80069140 00064F80 94 21 FE F0 */ stwu r1, -0x110(r1)
/* 80069144 00064F84 7C 08 02 A6 */ mflr r0
/* 80069148 00064F88 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006914C 00064F8C 90 01 01 14 */ stw r0, 0x114(r1)
/* 80069150 00064F90 41 82 01 4C */ beq lbl_8006929C
/* 80069154 00064F94 80 6D EA 38 */ lwz r3, _wudPatchSize@sda21(r13)
/* 80069158 00064F98 38 00 00 FB */ li r0, 0xfb
/* 8006915C 00064F9C 28 03 00 FB */ cmplwi r3, 0xfb
/* 80069160 00064FA0 40 80 00 08 */ bge lbl_80069168
/* 80069164 00064FA4 7C 60 1B 78 */ mr r0, r3
.global lbl_80069168
lbl_80069168:
/* 80069168 00064FA8 80 CD EA 30 */ lwz r6, _wudPatchAddress@sda21(r13)
/* 8006916C 00064FAC 54 05 06 3E */ clrlwi r5, r0, 24
/* 80069170 00064FB0 2C 85 00 00 */ cmpwi cr1, r5, 0x0
/* 80069174 00064FB4 98 C1 00 08 */ stb r6, 0x8(r1)
/* 80069178 00064FB8 54 C4 C6 3E */ extrwi r4, r6, 8, 16
/* 8006917C 00064FBC 54 C3 86 3E */ extrwi r3, r6, 8, 8
/* 80069180 00064FC0 54 C0 46 3E */ srwi r0, r6, 24
/* 80069184 00064FC4 98 81 00 09 */ stb r4, 0x9(r1)
/* 80069188 00064FC8 38 C0 00 00 */ li r6, 0x0
/* 8006918C 00064FCC 98 61 00 0A */ stb r3, 0xa(r1)
/* 80069190 00064FD0 98 01 00 0B */ stb r0, 0xb(r1)
/* 80069194 00064FD4 40 85 00 DC */ ble cr1, lbl_80069270
/* 80069198 00064FD8 2C 05 00 08 */ cmpwi r5, 0x8
/* 8006919C 00064FDC 38 E5 FF F8 */ addi r7, r5, -0x8
/* 800691A0 00064FE0 40 81 00 98 */ ble lbl_80069238
/* 800691A4 00064FE4 38 80 00 00 */ li r4, 0x0
/* 800691A8 00064FE8 41 84 00 18 */ blt cr1, lbl_800691C0
/* 800691AC 00064FEC 3C 60 80 00 */ lis r3, 0x8000
/* 800691B0 00064FF0 38 03 FF FE */ addi r0, r3, -0x2
/* 800691B4 00064FF4 7C 05 00 00 */ cmpw r5, r0
/* 800691B8 00064FF8 41 81 00 08 */ bgt lbl_800691C0
/* 800691BC 00064FFC 38 80 00 01 */ li r4, 0x1
.global lbl_800691C0
lbl_800691C0:
/* 800691C0 00065000 2C 04 00 00 */ cmpwi r4, 0x0
/* 800691C4 00065004 41 82 00 74 */ beq lbl_80069238
/* 800691C8 00065008 38 07 00 07 */ addi r0, r7, 0x7
/* 800691CC 0006500C 3C 80 80 44 */ lis r4, _wudPatchData@ha
/* 800691D0 00065010 54 00 E8 FE */ srwi r0, r0, 3
/* 800691D4 00065014 39 01 00 08 */ addi r8, r1, 0x8
/* 800691D8 00065018 38 84 9C 60 */ addi r4, r4, _wudPatchData@l
/* 800691DC 0006501C 7C 09 03 A6 */ mtctr r0
/* 800691E0 00065020 2C 07 00 00 */ cmpwi r7, 0x0
/* 800691E4 00065024 40 81 00 54 */ ble lbl_80069238
.global lbl_800691E8
lbl_800691E8:
/* 800691E8 00065028 7C 64 32 14 */ add r3, r4, r6
/* 800691EC 0006502C 38 C6 00 08 */ addi r6, r6, 0x8
/* 800691F0 00065030 88 03 00 08 */ lbz r0, 0x8(r3)
/* 800691F4 00065034 98 08 00 04 */ stb r0, 0x4(r8)
/* 800691F8 00065038 88 03 00 09 */ lbz r0, 0x9(r3)
/* 800691FC 0006503C 98 08 00 05 */ stb r0, 0x5(r8)
/* 80069200 00065040 88 03 00 0A */ lbz r0, 0xa(r3)
/* 80069204 00065044 98 08 00 06 */ stb r0, 0x6(r8)
/* 80069208 00065048 88 03 00 0B */ lbz r0, 0xb(r3)
/* 8006920C 0006504C 98 08 00 07 */ stb r0, 0x7(r8)
/* 80069210 00065050 88 03 00 0C */ lbz r0, 0xc(r3)
/* 80069214 00065054 98 08 00 08 */ stb r0, 0x8(r8)
/* 80069218 00065058 88 03 00 0D */ lbz r0, 0xd(r3)
/* 8006921C 0006505C 98 08 00 09 */ stb r0, 0x9(r8)
/* 80069220 00065060 88 03 00 0E */ lbz r0, 0xe(r3)
/* 80069224 00065064 98 08 00 0A */ stb r0, 0xa(r8)
/* 80069228 00065068 88 03 00 0F */ lbz r0, 0xf(r3)
/* 8006922C 0006506C 98 08 00 0B */ stb r0, 0xb(r8)
/* 80069230 00065070 39 08 00 08 */ addi r8, r8, 0x8
/* 80069234 00065074 42 00 FF B4 */ bdnz lbl_800691E8
.global lbl_80069238
lbl_80069238:
/* 80069238 00065078 38 E1 00 08 */ addi r7, r1, 0x8
/* 8006923C 0006507C 3C 80 80 44 */ lis r4, _wudPatchData@ha
/* 80069240 00065080 7C 06 28 50 */ subf r0, r6, r5
/* 80069244 00065084 7C E7 32 14 */ add r7, r7, r6
/* 80069248 00065088 38 84 9C 60 */ addi r4, r4, _wudPatchData@l
/* 8006924C 0006508C 7C 09 03 A6 */ mtctr r0
/* 80069250 00065090 7C 06 28 00 */ cmpw r6, r5
/* 80069254 00065094 40 80 00 1C */ bge lbl_80069270
.global lbl_80069258
lbl_80069258:
/* 80069258 00065098 7C 64 32 14 */ add r3, r4, r6
/* 8006925C 0006509C 38 C6 00 01 */ addi r6, r6, 0x1
/* 80069260 000650A0 88 03 00 08 */ lbz r0, 0x8(r3)
/* 80069264 000650A4 98 07 00 04 */ stb r0, 0x4(r7)
/* 80069268 000650A8 38 E7 00 01 */ addi r7, r7, 0x1
/* 8006926C 000650AC 42 00 FF EC */ bdnz lbl_80069258
.global lbl_80069270
lbl_80069270:
/* 80069270 000650B0 3C 60 00 01 */ lis r3, 0x1
/* 80069274 000650B4 38 05 00 04 */ addi r0, r5, 0x4
/* 80069278 000650B8 38 63 FC 4C */ addi r3, r3, -0x3b4
/* 8006927C 000650BC 3C C0 80 07 */ lis r6, __wudWritePatchCallback@ha
/* 80069280 000650C0 90 AD EA 34 */ stw r5, _wudPatchOffset@sda21(r13)
/* 80069284 000650C4 54 63 04 3E */ clrlwi r3, r3, 16
/* 80069288 000650C8 54 04 06 3E */ clrlwi r4, r0, 24
/* 8006928C 000650CC 38 A1 00 08 */ addi r5, r1, 0x8
/* 80069290 000650D0 38 C6 8F 10 */ addi r6, r6, __wudWritePatchCallback@l
/* 80069294 000650D4 48 01 80 AD */ bl BTM_VendorSpecificCommand
/* 80069298 000650D8 48 00 00 10 */ b lbl_800692A8
.global lbl_8006929C
lbl_8006929C:
/* 8006929C 000650DC 3C 60 80 07 */ lis r3, __wudModuleRebootCallback@ha
/* 800692A0 000650E0 38 63 8E 30 */ addi r3, r3, __wudModuleRebootCallback@l
/* 800692A4 000650E4 48 01 70 A1 */ bl BTM_DeviceReset
.global lbl_800692A8
lbl_800692A8:
/* 800692A8 000650E8 80 01 01 14 */ lwz r0, 0x114(r1)
/* 800692AC 000650EC 7C 08 03 A6 */ mtlr r0
/* 800692B0 000650F0 38 21 01 10 */ addi r1, r1, 0x110
/* 800692B4 000650F4 4E 80 00 20 */ blr
/* 800692B8 000650F8 00 00 00 00 */ .4byte 0x00000000
/* 800692BC 000650FC 00 00 00 00 */ .4byte 0x00000000
.global __wudSuperPeekPokeCallback
__wudSuperPeekPokeCallback:
/* 800692C0 00065100 3C 60 00 01 */ lis r3, 0x1
/* 800692C4 00065104 3C C0 80 07 */ lis r6, __wudRemovePatchCallback@ha
/* 800692C8 00065108 38 03 FC 4F */ addi r0, r3, -0x3b1
/* 800692CC 0006510C 38 80 00 01 */ li r4, 0x1
/* 800692D0 00065110 54 03 04 3E */ clrlwi r3, r0, 16
/* 800692D4 00065114 38 C6 91 40 */ addi r6, r6, __wudRemovePatchCallback@l
/* 800692D8 00065118 38 AD EA 14 */ addi r5, r13, _wudPatchRemoveCmd@sda21
/* 800692DC 0006511C 48 01 80 64 */ b BTM_VendorSpecificCommand
.global __wudInitSub
__wudInitSub:
/* 800692E0 00065120 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800692E4 00065124 7C 08 02 A6 */ mflr r0
/* 800692E8 00065128 80 A2 88 48 */ lwz r5, "@3808"@sda21(r2)
/* 800692EC 0006512C 90 01 00 24 */ stw r0, 0x24(r1)
/* 800692F0 00065130 38 61 00 0C */ addi r3, r1, 0xc
/* 800692F4 00065134 A0 82 88 4C */ lhz r4, "@3810"@sda21(r2)
/* 800692F8 00065138 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800692FC 0006513C 88 02 88 4E */ lbz r0, lbl_8055E7CE@sda21(r2)
/* 80069300 00065140 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80069304 00065144 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80069308 00065148 93 81 00 10 */ stw r28, 0x10(r1)
/* 8006930C 0006514C 3F 80 80 4C */ lis r28, __rvl_wudcb@ha
/* 80069310 00065150 3B 9C 5A 60 */ addi r28, r28, __rvl_wudcb@l
/* 80069314 00065154 90 A1 00 0C */ stw r5, 0xc(r1)
/* 80069318 00065158 B0 81 00 08 */ sth r4, 0x8(r1)
/* 8006931C 0006515C 98 01 00 0A */ stb r0, 0xa(r1)
/* 80069320 00065160 48 01 17 BD */ bl BTA_DmSetDeviceName
/* 80069324 00065164 38 61 00 08 */ addi r3, r1, 0x8
/* 80069328 00065168 48 01 7F 61 */ bl BTM_SetDeviceClass
/* 8006932C 0006516C 3C 60 80 07 */ lis r3, __wudVendorSpecificEventStackCallback@ha
/* 80069330 00065170 38 63 A5 F0 */ addi r3, r3, __wudVendorSpecificEventStackCallback@l
/* 80069334 00065174 48 01 81 75 */ bl BTM_RegisterForVSEvents
/* 80069338 00065178 3C 60 80 07 */ lis r3, __wudDeviceStatusEventStackCallback@ha
/* 8006933C 0006517C 38 63 A8 70 */ addi r3, r3, __wudDeviceStatusEventStackCallback@l
/* 80069340 00065180 48 01 7F E9 */ bl BTM_RegisterForDeviceStatusNotif
/* 80069344 00065184 3C A0 80 07 */ lis r5, __wudPowerMangeEventStackCallback@ha
/* 80069348 00065188 38 9C 07 0A */ addi r4, r28, 0x70a
/* 8006934C 0006518C 38 A5 AA 80 */ addi r5, r5, __wudPowerMangeEventStackCallback@l
/* 80069350 00065190 38 60 00 03 */ li r3, 0x3
/* 80069354 00065194 48 01 A4 49 */ bl BTM_PmRegister
/* 80069358 00065198 3C 60 00 01 */ lis r3, 0x1
/* 8006935C 0006519C 38 03 80 00 */ addi r0, r3, -0x8000
/* 80069360 000651A0 54 03 04 3E */ clrlwi r3, r0, 16
/* 80069364 000651A4 48 01 82 15 */ bl BTM_WritePageTimeout
/* 80069368 000651A8 38 60 00 05 */ li r3, 0x5
/* 8006936C 000651AC 48 01 54 D1 */ bl BTM_SetDefaultLinkPolicy
/* 80069370 000651B0 38 60 0C 80 */ li r3, 0xc80
/* 80069374 000651B4 48 01 58 95 */ bl BTM_SetDefaultLinkSuperTout
/* 80069378 000651B8 7F 9E E3 78 */ mr r30, r28
/* 8006937C 000651BC 3B FC 01 24 */ addi r31, r28, 0x124
/* 80069380 000651C0 3B A0 00 00 */ li r29, 0x0
.global lbl_80069384
lbl_80069384:
/* 80069384 000651C4 88 1E 01 3D */ lbz r0, 0x13d(r30)
/* 80069388 000651C8 28 00 00 01 */ cmplwi r0, 0x1
/* 8006938C 000651CC 40 82 00 0C */ bne lbl_80069398
/* 80069390 000651D0 7F E3 FB 78 */ mr r3, r31
/* 80069394 000651D4 48 00 00 AD */ bl WUDiRegisterDevice
.global lbl_80069398
lbl_80069398:
/* 80069398 000651D8 3B BD 00 01 */ addi r29, r29, 0x1
/* 8006939C 000651DC 3B FF 00 60 */ addi r31, r31, 0x60
/* 800693A0 000651E0 2C 1D 00 0A */ cmpwi r29, 0xa
/* 800693A4 000651E4 3B DE 00 60 */ addi r30, r30, 0x60
/* 800693A8 000651E8 41 80 FF DC */ blt lbl_80069384
/* 800693AC 000651EC 7F 9F E3 78 */ mr r31, r28
/* 800693B0 000651F0 3B DC 04 E4 */ addi r30, r28, 0x4e4
/* 800693B4 000651F4 3B A0 00 00 */ li r29, 0x0
.global lbl_800693B8
lbl_800693B8:
/* 800693B8 000651F8 88 1F 04 FD */ lbz r0, 0x4fd(r31)
/* 800693BC 000651FC 28 00 00 01 */ cmplwi r0, 0x1
/* 800693C0 00065200 40 82 00 0C */ bne lbl_800693CC
/* 800693C4 00065204 7F C3 F3 78 */ mr r3, r30
/* 800693C8 00065208 48 00 00 79 */ bl WUDiRegisterDevice
.global lbl_800693CC
lbl_800693CC:
/* 800693CC 0006520C 3B BD 00 01 */ addi r29, r29, 0x1
/* 800693D0 00065210 3B DE 00 60 */ addi r30, r30, 0x60
/* 800693D4 00065214 2C 1D 00 06 */ cmpwi r29, 0x6
/* 800693D8 00065218 3B FF 00 60 */ addi r31, r31, 0x60
/* 800693DC 0006521C 41 80 FF DC */ blt lbl_800693B8
/* 800693E0 00065220 4B FB 84 41 */ bl OSDisableInterrupts
/* 800693E4 00065224 38 00 00 03 */ li r0, 0x3
/* 800693E8 00065228 3B E0 00 01 */ li r31, 0x1
/* 800693EC 0006522C 98 1C 07 08 */ stb r0, 0x708(r28)
/* 800693F0 00065230 93 ED EA 0C */ stw r31, _wudReadNand@sda21(r13)
/* 800693F4 00065234 4B FB 84 6D */ bl OSRestoreInterrupts
/* 800693F8 00065238 4B FB 84 29 */ bl OSDisableInterrupts
/* 800693FC 0006523C 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 80069400 00065240 38 00 00 00 */ li r0, 0x0
/* 80069404 00065244 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 80069408 00065248 98 04 06 EB */ stb r0, 0x6eb(r4)
/* 8006940C 0006524C 9B E4 06 EA */ stb r31, 0x6ea(r4)
/* 80069410 00065250 4B FB 84 51 */ bl OSRestoreInterrupts
/* 80069414 00065254 38 60 00 00 */ li r3, 0x0
/* 80069418 00065258 38 80 00 01 */ li r4, 0x1
/* 8006941C 0006525C 48 01 17 25 */ bl BTA_DmSetVisibility
/* 80069420 00065260 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80069424 00065264 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80069428 00065268 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8006942C 0006526C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80069430 00065270 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80069434 00065274 7C 08 03 A6 */ mtlr r0
/* 80069438 00065278 38 21 00 20 */ addi r1, r1, 0x20
/* 8006943C 0006527C 4E 80 00 20 */ blr
.global WUDiRegisterDevice
WUDiRegisterDevice:
/* 80069440 00065280 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80069444 00065284 7C 08 02 A6 */ mflr r0
/* 80069448 00065288 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006944C 0006528C 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80069450 00065290 3F E0 80 44 */ lis r31, _wudWiiRemoteDescriptor@ha
/* 80069454 00065294 3B FF 9B 78 */ addi r31, r31, _wudWiiRemoteDescriptor@l
/* 80069458 00065298 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8006945C 0006529C 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80069460 000652A0 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80069464 000652A4 93 A1 00 24 */ stw r29, 0x24(r1)
/* 80069468 000652A8 7C 7D 1B 78 */ mr r29, r3
/* 8006946C 000652AC 93 81 00 20 */ stw r28, 0x20(r1)
/* 80069470 000652B0 4B FB 83 B1 */ bl OSDisableInterrupts
/* 80069474 000652B4 7C 7C 1B 78 */ mr r28, r3
/* 80069478 000652B8 7F A3 EB 78 */ mr r3, r29
/* 8006947C 000652BC 48 00 02 05 */ bl WUDiGetDevInfo
/* 80069480 000652C0 7C 7D 1B 78 */ mr r29, r3
/* 80069484 000652C4 38 83 00 46 */ addi r4, r3, 0x46
/* 80069488 000652C8 38 A0 00 00 */ li r5, 0x0
/* 8006948C 000652CC 38 C0 00 00 */ li r6, 0x0
/* 80069490 000652D0 38 63 00 40 */ addi r3, r3, 0x40
/* 80069494 000652D4 48 01 18 4D */ bl BTA_DmAddDevice
/* 80069498 000652D8 7F A3 EB 78 */ mr r3, r29
/* 8006949C 000652DC 38 9F 02 1C */ addi r4, r31, 0x21c
/* 800694A0 000652E0 38 A0 00 10 */ li r5, 0x10
/* 800694A4 000652E4 4B FA 19 CD */ bl memcmp
/* 800694A8 000652E8 2C 03 00 00 */ cmpwi r3, 0x0
/* 800694AC 000652EC 41 82 00 28 */ beq lbl_800694D4
/* 800694B0 000652F0 7F A3 EB 78 */ mr r3, r29
/* 800694B4 000652F4 38 9F 02 30 */ addi r4, r31, 0x230
/* 800694B8 000652F8 38 A0 00 10 */ li r5, 0x10
/* 800694BC 000652FC 4B FA 19 B5 */ bl memcmp
/* 800694C0 00065300 2C 03 00 00 */ cmpwi r3, 0x0
/* 800694C4 00065304 40 82 00 44 */ bne lbl_80069508
/* 800694C8 00065308 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 800694CC 0006530C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800694D0 00065310 41 82 00 38 */ beq lbl_80069508
.global lbl_800694D4
lbl_800694D4:
/* 800694D4 00065314 38 00 00 D9 */ li r0, 0xd9
/* 800694D8 00065318 B0 01 00 10 */ sth r0, 0x10(r1)
/* 800694DC 0006531C 38 9F 00 00 */ addi r4, r31, 0x0
/* 800694E0 00065320 38 7D 00 40 */ addi r3, r29, 0x40
/* 800694E4 00065324 80 01 00 10 */ lwz r0, 0x10(r1)
/* 800694E8 00065328 38 E1 00 08 */ addi r7, r1, 0x8
/* 800694EC 0006532C 90 01 00 08 */ stw r0, 0x8(r1)
/* 800694F0 00065330 90 81 00 0C */ stw r4, 0xc(r1)
/* 800694F4 00065334 90 81 00 14 */ stw r4, 0x14(r1)
/* 800694F8 00065338 A0 9D 00 5E */ lhz r4, 0x5e(r29)
/* 800694FC 0006533C 88 BD 00 57 */ lbz r5, 0x57(r29)
/* 80069500 00065340 88 DD 00 58 */ lbz r6, 0x58(r29)
/* 80069504 00065344 48 01 3E 79 */ bl BTA_HhAddDev
.global lbl_80069508
lbl_80069508:
/* 80069508 00065348 88 1D 00 5B */ lbz r0, 0x5b(r29)
/* 8006950C 0006534C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80069510 00065350 41 82 00 1C */ beq lbl_8006952C
/* 80069514 00065354 28 00 00 04 */ cmplwi r0, 0x4
/* 80069518 00065358 41 82 00 14 */ beq lbl_8006952C
/* 8006951C 0006535C 28 00 00 02 */ cmplwi r0, 0x2
/* 80069520 00065360 41 82 00 0C */ beq lbl_8006952C
/* 80069524 00065364 28 00 00 05 */ cmplwi r0, 0x5
/* 80069528 00065368 40 82 00 14 */ bne lbl_8006953C
.global lbl_8006952C
lbl_8006952C:
/* 8006952C 0006536C 88 7E 00 12 */ lbz r3, 0x12(r30)
/* 80069530 00065370 38 03 00 01 */ addi r0, r3, 0x1
/* 80069534 00065374 98 1E 00 12 */ stb r0, 0x12(r30)
/* 80069538 00065378 48 00 00 10 */ b lbl_80069548
.global lbl_8006953C
lbl_8006953C:
/* 8006953C 0006537C 88 7E 00 13 */ lbz r3, 0x13(r30)
/* 80069540 00065380 38 03 00 01 */ addi r0, r3, 0x1
/* 80069544 00065384 98 1E 00 13 */ stb r0, 0x13(r30)
.global lbl_80069548
lbl_80069548:
/* 80069548 00065388 7F 83 E3 78 */ mr r3, r28
/* 8006954C 0006538C 4B FB 83 15 */ bl OSRestoreInterrupts
/* 80069550 00065390 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80069554 00065394 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80069558 00065398 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8006955C 0006539C 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80069560 000653A0 83 81 00 20 */ lwz r28, 0x20(r1)
/* 80069564 000653A4 7C 08 03 A6 */ mtlr r0
/* 80069568 000653A8 38 21 00 30 */ addi r1, r1, 0x30
/* 8006956C 000653AC 4E 80 00 20 */ blr
.global WUDiRemoveDevice
WUDiRemoveDevice:
/* 80069570 000653B0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069574 000653B4 7C 08 02 A6 */ mflr r0
/* 80069578 000653B8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006957C 000653BC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80069580 000653C0 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 80069584 000653C4 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 80069588 000653C8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8006958C 000653CC 7C 7E 1B 78 */ mr r30, r3
/* 80069590 000653D0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80069594 000653D4 4B FB 82 8D */ bl OSDisableInterrupts
/* 80069598 000653D8 7C 7D 1B 78 */ mr r29, r3
/* 8006959C 000653DC 7F C3 F3 78 */ mr r3, r30
/* 800695A0 000653E0 48 00 00 E1 */ bl WUDiGetDevInfo
/* 800695A4 000653E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800695A8 000653E8 7C 7E 1B 78 */ mr r30, r3
/* 800695AC 000653EC 41 82 00 A4 */ beq lbl_80069650
/* 800695B0 000653F0 3C 80 80 44 */ lis r4, "@6246"@ha
/* 800695B4 000653F4 38 A0 00 10 */ li r5, 0x10
/* 800695B8 000653F8 38 84 9D 94 */ addi r4, r4, "@6246"@l
/* 800695BC 000653FC 4B FA 18 B5 */ bl memcmp
/* 800695C0 00065400 2C 03 00 00 */ cmpwi r3, 0x0
/* 800695C4 00065404 41 82 00 2C */ beq lbl_800695F0
/* 800695C8 00065408 3C 80 80 44 */ lis r4, "@6247"@ha
/* 800695CC 0006540C 7F C3 F3 78 */ mr r3, r30
/* 800695D0 00065410 38 84 9D A8 */ addi r4, r4, "@6247"@l
/* 800695D4 00065414 38 A0 00 10 */ li r5, 0x10
/* 800695D8 00065418 4B FA 18 99 */ bl memcmp
/* 800695DC 0006541C 2C 03 00 00 */ cmpwi r3, 0x0
/* 800695E0 00065420 40 82 00 18 */ bne lbl_800695F8
/* 800695E4 00065424 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 800695E8 00065428 2C 00 00 00 */ cmpwi r0, 0x0
/* 800695EC 0006542C 41 82 00 0C */ beq lbl_800695F8
.global lbl_800695F0
lbl_800695F0:
/* 800695F0 00065430 88 7E 00 56 */ lbz r3, 0x56(r30)
/* 800695F4 00065434 48 01 3E 31 */ bl BTA_HhRemoveDev
.global lbl_800695F8
lbl_800695F8:
/* 800695F8 00065438 38 7E 00 40 */ addi r3, r30, 0x40
/* 800695FC 0006543C 48 01 17 D5 */ bl BTA_DmRemoveDevice
/* 80069600 00065440 88 7E 00 5B */ lbz r3, 0x5b(r30)
/* 80069604 00065444 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069608 00065448 41 82 00 1C */ beq lbl_80069624
/* 8006960C 0006544C 28 03 00 02 */ cmplwi r3, 0x2
/* 80069610 00065450 41 82 00 14 */ beq lbl_80069624
/* 80069614 00065454 38 03 00 FC */ addi r0, r3, 0xfc
/* 80069618 00065458 54 00 06 3E */ clrlwi r0, r0, 24
/* 8006961C 0006545C 28 00 00 01 */ cmplwi r0, 0x1
/* 80069620 00065460 41 81 00 14 */ bgt lbl_80069634
.global lbl_80069624
lbl_80069624:
/* 80069624 00065464 88 7F 00 12 */ lbz r3, 0x12(r31)
/* 80069628 00065468 38 03 FF FF */ addi r0, r3, -0x1
/* 8006962C 0006546C 98 1F 00 12 */ stb r0, 0x12(r31)
/* 80069630 00065470 48 00 00 10 */ b lbl_80069640
.global lbl_80069634
lbl_80069634:
/* 80069634 00065474 88 7F 00 13 */ lbz r3, 0x13(r31)
/* 80069638 00065478 38 03 FF FF */ addi r0, r3, -0x1
/* 8006963C 0006547C 98 1F 00 13 */ stb r0, 0x13(r31)
.global lbl_80069640
lbl_80069640:
/* 80069640 00065480 7F C3 F3 78 */ mr r3, r30
/* 80069644 00065484 38 80 00 00 */ li r4, 0x0
/* 80069648 00065488 38 A0 00 60 */ li r5, 0x60
/* 8006964C 0006548C 4B F9 AD 05 */ bl memset
.global lbl_80069650
lbl_80069650:
/* 80069650 00065490 7F A3 EB 78 */ mr r3, r29
/* 80069654 00065494 4B FB 82 0D */ bl OSRestoreInterrupts
/* 80069658 00065498 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006965C 0006549C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80069660 000654A0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80069664 000654A4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80069668 000654A8 7C 08 03 A6 */ mtlr r0
/* 8006966C 000654AC 38 21 00 20 */ addi r1, r1, 0x20
/* 80069670 000654B0 4E 80 00 20 */ blr
/* 80069674 000654B4 00 00 00 00 */ .4byte 0x00000000
/* 80069678 000654B8 00 00 00 00 */ .4byte 0x00000000
/* 8006967C 000654BC 00 00 00 00 */ .4byte 0x00000000
.global WUDiGetDevInfo
WUDiGetDevInfo:
/* 80069680 000654C0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069684 000654C4 7C 08 02 A6 */ mflr r0
/* 80069688 000654C8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006968C 000654CC 39 61 00 20 */ addi r11, r1, 0x20
/* 80069690 000654D0 4B F9 DC A9 */ bl lbl_80007338
/* 80069694 000654D4 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80069698 000654D8 7C 7A 1B 78 */ mr r26, r3
/* 8006969C 000654DC 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 800696A0 000654E0 3B 80 00 00 */ li r28, 0x0
/* 800696A4 000654E4 4B FB 81 7D */ bl OSDisableInterrupts
/* 800696A8 000654E8 7C 7B 1B 78 */ mr r27, r3
/* 800696AC 000654EC 3B FD 01 24 */ addi r31, r29, 0x124
/* 800696B0 000654F0 3B C0 00 00 */ li r30, 0x0
.global lbl_800696B4
lbl_800696B4:
/* 800696B4 000654F4 7F E3 FB 78 */ mr r3, r31
/* 800696B8 000654F8 7F 44 D3 78 */ mr r4, r26
/* 800696BC 000654FC 38 A0 00 06 */ li r5, 0x6
/* 800696C0 00065500 4B FA 17 B1 */ bl memcmp
/* 800696C4 00065504 2C 03 00 00 */ cmpwi r3, 0x0
/* 800696C8 00065508 40 82 00 14 */ bne lbl_800696DC
/* 800696CC 0006550C 1C 1E 00 60 */ mulli r0, r30, 0x60
/* 800696D0 00065510 7C 7D 02 14 */ add r3, r29, r0
/* 800696D4 00065514 3B 83 00 E4 */ addi r28, r3, 0xe4
/* 800696D8 00065518 48 00 00 14 */ b lbl_800696EC
.global lbl_800696DC
lbl_800696DC:
/* 800696DC 0006551C 3B DE 00 01 */ addi r30, r30, 0x1
/* 800696E0 00065520 3B FF 00 60 */ addi r31, r31, 0x60
/* 800696E4 00065524 2C 1E 00 0A */ cmpwi r30, 0xa
/* 800696E8 00065528 41 80 FF CC */ blt lbl_800696B4
.global lbl_800696EC
lbl_800696EC:
/* 800696EC 0006552C 2C 1C 00 00 */ cmpwi r28, 0x0
/* 800696F0 00065530 40 82 00 44 */ bne lbl_80069734
/* 800696F4 00065534 3B FD 04 E4 */ addi r31, r29, 0x4e4
/* 800696F8 00065538 3B C0 00 00 */ li r30, 0x0
.global lbl_800696FC
lbl_800696FC:
/* 800696FC 0006553C 7F E3 FB 78 */ mr r3, r31
/* 80069700 00065540 7F 44 D3 78 */ mr r4, r26
/* 80069704 00065544 38 A0 00 06 */ li r5, 0x6
/* 80069708 00065548 4B FA 17 69 */ bl memcmp
/* 8006970C 0006554C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069710 00065550 40 82 00 14 */ bne lbl_80069724
/* 80069714 00065554 1C 1E 00 60 */ mulli r0, r30, 0x60
/* 80069718 00065558 7C 7D 02 14 */ add r3, r29, r0
/* 8006971C 0006555C 3B 83 04 A4 */ addi r28, r3, 0x4a4
/* 80069720 00065560 48 00 00 14 */ b lbl_80069734
.global lbl_80069724
lbl_80069724:
/* 80069724 00065564 3B DE 00 01 */ addi r30, r30, 0x1
/* 80069728 00065568 3B FF 00 60 */ addi r31, r31, 0x60
/* 8006972C 0006556C 2C 1E 00 06 */ cmpwi r30, 0x6
/* 80069730 00065570 41 80 FF CC */ blt lbl_800696FC
.global lbl_80069734
lbl_80069734:
/* 80069734 00065574 7F 63 DB 78 */ mr r3, r27
/* 80069738 00065578 4B FB 81 29 */ bl OSRestoreInterrupts
/* 8006973C 0006557C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069740 00065580 7F 83 E3 78 */ mr r3, r28
/* 80069744 00065584 4B F9 DC 41 */ bl lbl_80007384
/* 80069748 00065588 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006974C 0006558C 7C 08 03 A6 */ mtlr r0
/* 80069750 00065590 38 21 00 20 */ addi r1, r1, 0x20
/* 80069754 00065594 4E 80 00 20 */ blr
/* 80069758 00065598 00 00 00 00 */ .4byte 0x00000000
/* 8006975C 0006559C 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveTopSmpDevInfoPtr
WUDiMoveTopSmpDevInfoPtr:
/* 80069760 000655A0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069764 000655A4 7C 08 02 A6 */ mflr r0
/* 80069768 000655A8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006976C 000655AC 39 61 00 20 */ addi r11, r1, 0x20
/* 80069770 000655B0 4B F9 DB CD */ bl lbl_8000733C
/* 80069774 000655B4 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80069778 000655B8 7C 7B 1B 78 */ mr r27, r3
/* 8006977C 000655BC 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80069780 000655C0 4B FB 80 A1 */ bl OSDisableInterrupts
/* 80069784 000655C4 7C 7D 1B 78 */ mr r29, r3
/* 80069788 000655C8 7F DC F3 78 */ mr r28, r30
/* 8006978C 000655CC 3B E0 00 00 */ li r31, 0x0
.global lbl_80069790
lbl_80069790:
/* 80069790 000655D0 80 7C 00 1C */ lwz r3, 0x1c(r28)
/* 80069794 000655D4 38 9B 00 40 */ addi r4, r27, 0x40
/* 80069798 000655D8 38 A0 00 06 */ li r5, 0x6
/* 8006979C 000655DC 38 63 00 40 */ addi r3, r3, 0x40
/* 800697A0 000655E0 4B FA 16 D1 */ bl memcmp
/* 800697A4 000655E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800697A8 000655E8 40 82 00 9C */ bne lbl_80069844
/* 800697AC 000655EC 1F 9F 00 0C */ mulli r28, r31, 0xc
/* 800697B0 000655F0 80 7E 00 14 */ lwz r3, 0x14(r30)
/* 800697B4 000655F4 38 A0 00 06 */ li r5, 0x6
/* 800697B8 000655F8 80 63 00 00 */ lwz r3, 0x0(r3)
/* 800697BC 000655FC 7F FE E2 14 */ add r31, r30, r28
/* 800697C0 00065600 84 9F 00 1C */ lwzu r4, 0x1c(r31)
/* 800697C4 00065604 38 63 00 40 */ addi r3, r3, 0x40
/* 800697C8 00065608 38 84 00 40 */ addi r4, r4, 0x40
/* 800697CC 0006560C 4B FA 16 A5 */ bl memcmp
/* 800697D0 00065610 2C 03 00 00 */ cmpwi r3, 0x0
/* 800697D4 00065614 41 82 00 80 */ beq lbl_80069854
/* 800697D8 00065618 7F 9E E2 14 */ add r28, r30, r28
/* 800697DC 0006561C 38 A0 00 06 */ li r5, 0x6
/* 800697E0 00065620 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 800697E4 00065624 80 1C 00 24 */ lwz r0, 0x24(r28)
/* 800697E8 00065628 90 03 00 08 */ stw r0, 0x8(r3)
/* 800697EC 0006562C 80 9E 00 18 */ lwz r4, 0x18(r30)
/* 800697F0 00065630 80 7F 00 00 */ lwz r3, 0x0(r31)
/* 800697F4 00065634 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 800697F8 00065638 38 83 00 40 */ addi r4, r3, 0x40
/* 800697FC 0006563C 38 66 00 40 */ addi r3, r6, 0x40
/* 80069800 00065640 4B FA 16 71 */ bl memcmp
/* 80069804 00065644 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069808 00065648 40 82 00 10 */ bne lbl_80069818
/* 8006980C 0006564C 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 80069810 00065650 90 1E 00 18 */ stw r0, 0x18(r30)
/* 80069814 00065654 48 00 00 10 */ b lbl_80069824
.global lbl_80069818
lbl_80069818:
/* 80069818 00065658 80 7C 00 24 */ lwz r3, 0x24(r28)
/* 8006981C 0006565C 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 80069820 00065660 90 03 00 04 */ stw r0, 0x4(r3)
.global lbl_80069824
lbl_80069824:
/* 80069824 00065664 80 7E 00 14 */ lwz r3, 0x14(r30)
/* 80069828 00065668 38 00 00 00 */ li r0, 0x0
/* 8006982C 0006566C 90 7C 00 24 */ stw r3, 0x24(r28)
/* 80069830 00065670 80 7E 00 14 */ lwz r3, 0x14(r30)
/* 80069834 00065674 93 E3 00 04 */ stw r31, 0x4(r3)
/* 80069838 00065678 93 FE 00 14 */ stw r31, 0x14(r30)
/* 8006983C 0006567C 90 1C 00 20 */ stw r0, 0x20(r28)
/* 80069840 00065680 48 00 00 14 */ b lbl_80069854
.global lbl_80069844
lbl_80069844:
/* 80069844 00065684 3B FF 00 01 */ addi r31, r31, 0x1
/* 80069848 00065688 3B 9C 00 0C */ addi r28, r28, 0xc
/* 8006984C 0006568C 2C 1F 00 06 */ cmpwi r31, 0x6
/* 80069850 00065690 41 80 FF 40 */ blt lbl_80069790
.global lbl_80069854
lbl_80069854:
/* 80069854 00065694 7F A3 EB 78 */ mr r3, r29
/* 80069858 00065698 4B FB 80 09 */ bl OSRestoreInterrupts
/* 8006985C 0006569C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069860 000656A0 4B F9 DB 29 */ bl lbl_80007388
/* 80069864 000656A4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80069868 000656A8 7C 08 03 A6 */ mtlr r0
/* 8006986C 000656AC 38 21 00 20 */ addi r1, r1, 0x20
/* 80069870 000656B0 4E 80 00 20 */ blr
/* 80069874 000656B4 00 00 00 00 */ .4byte 0x00000000
/* 80069878 000656B8 00 00 00 00 */ .4byte 0x00000000
/* 8006987C 000656BC 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveBottomSmpDevInfoPtr
WUDiMoveBottomSmpDevInfoPtr:
/* 80069880 000656C0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069884 000656C4 7C 08 02 A6 */ mflr r0
/* 80069888 000656C8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006988C 000656CC 39 61 00 20 */ addi r11, r1, 0x20
/* 80069890 000656D0 4B F9 DA AD */ bl lbl_8000733C
/* 80069894 000656D4 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80069898 000656D8 7C 7B 1B 78 */ mr r27, r3
/* 8006989C 000656DC 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 800698A0 000656E0 4B FB 7F 81 */ bl OSDisableInterrupts
/* 800698A4 000656E4 7C 7D 1B 78 */ mr r29, r3
/* 800698A8 000656E8 7F DC F3 78 */ mr r28, r30
/* 800698AC 000656EC 3B E0 00 00 */ li r31, 0x0
.global lbl_800698B0
lbl_800698B0:
/* 800698B0 000656F0 80 7C 00 1C */ lwz r3, 0x1c(r28)
/* 800698B4 000656F4 38 9B 00 40 */ addi r4, r27, 0x40
/* 800698B8 000656F8 38 A0 00 06 */ li r5, 0x6
/* 800698BC 000656FC 38 63 00 40 */ addi r3, r3, 0x40
/* 800698C0 00065700 4B FA 15 B1 */ bl memcmp
/* 800698C4 00065704 2C 03 00 00 */ cmpwi r3, 0x0
/* 800698C8 00065708 40 82 00 9C */ bne lbl_80069964
/* 800698CC 0006570C 1F 9F 00 0C */ mulli r28, r31, 0xc
/* 800698D0 00065710 80 7E 00 18 */ lwz r3, 0x18(r30)
/* 800698D4 00065714 38 A0 00 06 */ li r5, 0x6
/* 800698D8 00065718 80 63 00 00 */ lwz r3, 0x0(r3)
/* 800698DC 0006571C 7F FE E2 14 */ add r31, r30, r28
/* 800698E0 00065720 84 9F 00 1C */ lwzu r4, 0x1c(r31)
/* 800698E4 00065724 38 63 00 40 */ addi r3, r3, 0x40
/* 800698E8 00065728 38 84 00 40 */ addi r4, r4, 0x40
/* 800698EC 0006572C 4B FA 15 85 */ bl memcmp
/* 800698F0 00065730 2C 03 00 00 */ cmpwi r3, 0x0
/* 800698F4 00065734 41 82 00 80 */ beq lbl_80069974
/* 800698F8 00065738 7F 9E E2 14 */ add r28, r30, r28
/* 800698FC 0006573C 38 A0 00 06 */ li r5, 0x6
/* 80069900 00065740 80 7C 00 24 */ lwz r3, 0x24(r28)
/* 80069904 00065744 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 80069908 00065748 90 03 00 04 */ stw r0, 0x4(r3)
/* 8006990C 0006574C 80 9E 00 14 */ lwz r4, 0x14(r30)
/* 80069910 00065750 80 7F 00 00 */ lwz r3, 0x0(r31)
/* 80069914 00065754 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80069918 00065758 38 83 00 40 */ addi r4, r3, 0x40
/* 8006991C 0006575C 38 66 00 40 */ addi r3, r6, 0x40
/* 80069920 00065760 4B FA 15 51 */ bl memcmp
/* 80069924 00065764 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069928 00065768 40 82 00 10 */ bne lbl_80069938
/* 8006992C 0006576C 80 1C 00 24 */ lwz r0, 0x24(r28)
/* 80069930 00065770 90 1E 00 14 */ stw r0, 0x14(r30)
/* 80069934 00065774 48 00 00 10 */ b lbl_80069944
.global lbl_80069938
lbl_80069938:
/* 80069938 00065778 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 8006993C 0006577C 80 1C 00 24 */ lwz r0, 0x24(r28)
/* 80069940 00065780 90 03 00 08 */ stw r0, 0x8(r3)
.global lbl_80069944
lbl_80069944:
/* 80069944 00065784 80 7E 00 18 */ lwz r3, 0x18(r30)
/* 80069948 00065788 38 00 00 00 */ li r0, 0x0
/* 8006994C 0006578C 90 7C 00 20 */ stw r3, 0x20(r28)
/* 80069950 00065790 80 7E 00 18 */ lwz r3, 0x18(r30)
/* 80069954 00065794 93 E3 00 08 */ stw r31, 0x8(r3)
/* 80069958 00065798 93 FE 00 18 */ stw r31, 0x18(r30)
/* 8006995C 0006579C 90 1C 00 24 */ stw r0, 0x24(r28)
/* 80069960 000657A0 48 00 00 14 */ b lbl_80069974
.global lbl_80069964
lbl_80069964:
/* 80069964 000657A4 3B FF 00 01 */ addi r31, r31, 0x1
/* 80069968 000657A8 3B 9C 00 0C */ addi r28, r28, 0xc
/* 8006996C 000657AC 2C 1F 00 06 */ cmpwi r31, 0x6
/* 80069970 000657B0 41 80 FF 40 */ blt lbl_800698B0
.global lbl_80069974
lbl_80069974:
/* 80069974 000657B4 7F A3 EB 78 */ mr r3, r29
/* 80069978 000657B8 4B FB 7E E9 */ bl OSRestoreInterrupts
/* 8006997C 000657BC 39 61 00 20 */ addi r11, r1, 0x20
/* 80069980 000657C0 4B F9 DA 09 */ bl lbl_80007388
/* 80069984 000657C4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80069988 000657C8 7C 08 03 A6 */ mtlr r0
/* 8006998C 000657CC 38 21 00 20 */ addi r1, r1, 0x20
/* 80069990 000657D0 4E 80 00 20 */ blr
/* 80069994 000657D4 00 00 00 00 */ .4byte 0x00000000
/* 80069998 000657D8 00 00 00 00 */ .4byte 0x00000000
/* 8006999C 000657DC 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveTopOfDisconnectedSmpDevice
WUDiMoveTopOfDisconnectedSmpDevice:
/* 800699A0 000657E0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800699A4 000657E4 7C 08 02 A6 */ mflr r0
/* 800699A8 000657E8 90 01 00 34 */ stw r0, 0x34(r1)
/* 800699AC 000657EC 39 61 00 30 */ addi r11, r1, 0x30
/* 800699B0 000657F0 4B F9 D9 7D */ bl lbl_8000732C
/* 800699B4 000657F4 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 800699B8 000657F8 7C 7A 1B 78 */ mr r26, r3
/* 800699BC 000657FC 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 800699C0 00065800 4B FB 7E 61 */ bl OSDisableInterrupts
/* 800699C4 00065804 7C 7C 1B 78 */ mr r28, r3
/* 800699C8 00065808 3B A0 00 00 */ li r29, 0x0
/* 800699CC 0006580C 3B 20 00 00 */ li r25, 0x0
.global lbl_800699D0
lbl_800699D0:
/* 800699D0 00065810 7F FE CA 14 */ add r31, r30, r25
/* 800699D4 00065814 84 7F 00 1C */ lwzu r3, 0x1c(r31)
/* 800699D8 00065818 38 9A 00 40 */ addi r4, r26, 0x40
/* 800699DC 0006581C 38 A0 00 06 */ li r5, 0x6
/* 800699E0 00065820 38 63 00 40 */ addi r3, r3, 0x40
/* 800699E4 00065824 4B FA 14 8D */ bl memcmp
/* 800699E8 00065828 2C 03 00 00 */ cmpwi r3, 0x0
/* 800699EC 0006582C 40 82 00 EC */ bne lbl_80069AD8
/* 800699F0 00065830 82 FE 00 14 */ lwz r23, 0x14(r30)
/* 800699F4 00065834 7E FB BB 78 */ mr r27, r23
/* 800699F8 00065838 48 00 00 D8 */ b lbl_80069AD0
.global lbl_800699FC
lbl_800699FC:
/* 800699FC 0006583C 83 1B 00 00 */ lwz r24, 0x0(r27)
/* 80069A00 00065840 38 9A 00 40 */ addi r4, r26, 0x40
/* 80069A04 00065844 38 A0 00 06 */ li r5, 0x6
/* 80069A08 00065848 38 78 00 40 */ addi r3, r24, 0x40
/* 80069A0C 0006584C 4B FA 14 65 */ bl memcmp
/* 80069A10 00065850 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069A14 00065854 41 82 00 B8 */ beq lbl_80069ACC
/* 80069A18 00065858 88 18 00 59 */ lbz r0, 0x59(r24)
/* 80069A1C 0006585C 28 00 00 01 */ cmplwi r0, 0x1
/* 80069A20 00065860 41 81 00 AC */ bgt lbl_80069ACC
/* 80069A24 00065864 7C 7E CA 14 */ add r3, r30, r25
/* 80069A28 00065868 80 D7 00 00 */ lwz r6, 0x0(r23)
/* 80069A2C 0006586C 80 83 00 1C */ lwz r4, 0x1c(r3)
/* 80069A30 00065870 38 A0 00 06 */ li r5, 0x6
/* 80069A34 00065874 38 66 00 40 */ addi r3, r6, 0x40
/* 80069A38 00065878 38 84 00 40 */ addi r4, r4, 0x40
/* 80069A3C 0006587C 4B FA 14 35 */ bl memcmp
/* 80069A40 00065880 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069A44 00065884 40 82 00 20 */ bne lbl_80069A64
/* 80069A48 00065888 80 17 00 08 */ lwz r0, 0x8(r23)
/* 80069A4C 0006588C 7C 1B 00 40 */ cmplw r27, r0
/* 80069A50 00065890 41 82 00 88 */ beq lbl_80069AD8
/* 80069A54 00065894 7C BE CA 14 */ add r5, r30, r25
/* 80069A58 00065898 84 05 00 24 */ lwzu r0, 0x24(r5)
/* 80069A5C 0006589C 90 1E 00 14 */ stw r0, 0x14(r30)
/* 80069A60 000658A0 48 00 00 18 */ b lbl_80069A78
.global lbl_80069A64
lbl_80069A64:
/* 80069A64 000658A4 7C 7E CA 14 */ add r3, r30, r25
/* 80069A68 000658A8 38 A3 00 24 */ addi r5, r3, 0x24
/* 80069A6C 000658AC 80 63 00 20 */ lwz r3, 0x20(r3)
/* 80069A70 000658B0 80 05 00 00 */ lwz r0, 0x0(r5)
/* 80069A74 000658B4 90 03 00 08 */ stw r0, 0x8(r3)
.global lbl_80069A78
lbl_80069A78:
/* 80069A78 000658B8 7C 9E CA 14 */ add r4, r30, r25
/* 80069A7C 000658BC 80 65 00 00 */ lwz r3, 0x0(r5)
/* 80069A80 000658C0 80 04 00 20 */ lwz r0, 0x20(r4)
/* 80069A84 000658C4 90 03 00 04 */ stw r0, 0x4(r3)
/* 80069A88 000658C8 80 1E 00 14 */ lwz r0, 0x14(r30)
/* 80069A8C 000658CC 7C 1B 00 40 */ cmplw r27, r0
/* 80069A90 000658D0 41 82 00 20 */ beq lbl_80069AB0
/* 80069A94 000658D4 80 1B 00 04 */ lwz r0, 0x4(r27)
/* 80069A98 000658D8 90 04 00 20 */ stw r0, 0x20(r4)
/* 80069A9C 000658DC 93 65 00 00 */ stw r27, 0x0(r5)
/* 80069AA0 000658E0 80 7B 00 04 */ lwz r3, 0x4(r27)
/* 80069AA4 000658E4 93 E3 00 08 */ stw r31, 0x8(r3)
/* 80069AA8 000658E8 93 FB 00 04 */ stw r31, 0x4(r27)
/* 80069AAC 000658EC 48 00 00 2C */ b lbl_80069AD8
.global lbl_80069AB0
lbl_80069AB0:
/* 80069AB0 000658F0 93 64 00 20 */ stw r27, 0x20(r4)
/* 80069AB4 000658F4 80 1B 00 08 */ lwz r0, 0x8(r27)
/* 80069AB8 000658F8 90 05 00 00 */ stw r0, 0x0(r5)
/* 80069ABC 000658FC 80 7B 00 08 */ lwz r3, 0x8(r27)
/* 80069AC0 00065900 93 E3 00 04 */ stw r31, 0x4(r3)
/* 80069AC4 00065904 93 FB 00 08 */ stw r31, 0x8(r27)
/* 80069AC8 00065908 48 00 00 10 */ b lbl_80069AD8
.global lbl_80069ACC
lbl_80069ACC:
/* 80069ACC 0006590C 83 7B 00 08 */ lwz r27, 0x8(r27)
.global lbl_80069AD0
lbl_80069AD0:
/* 80069AD0 00065910 2C 1B 00 00 */ cmpwi r27, 0x0
/* 80069AD4 00065914 40 82 FF 28 */ bne lbl_800699FC
.global lbl_80069AD8
lbl_80069AD8:
/* 80069AD8 00065918 3B BD 00 01 */ addi r29, r29, 0x1
/* 80069ADC 0006591C 3B 39 00 0C */ addi r25, r25, 0xc
/* 80069AE0 00065920 2C 1D 00 06 */ cmpwi r29, 0x6
/* 80069AE4 00065924 41 80 FE EC */ blt lbl_800699D0
/* 80069AE8 00065928 7F 83 E3 78 */ mr r3, r28
/* 80069AEC 0006592C 4B FB 7D 75 */ bl OSRestoreInterrupts
/* 80069AF0 00065930 39 61 00 30 */ addi r11, r1, 0x30
/* 80069AF4 00065934 4B F9 D8 85 */ bl lbl_80007378
/* 80069AF8 00065938 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80069AFC 0006593C 7C 08 03 A6 */ mtlr r0
/* 80069B00 00065940 38 21 00 30 */ addi r1, r1, 0x30
/* 80069B04 00065944 4E 80 00 20 */ blr
/* 80069B08 00065948 00 00 00 00 */ .4byte 0x00000000
/* 80069B0C 0006594C 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveTopStdDevInfoPtr
WUDiMoveTopStdDevInfoPtr:
/* 80069B10 00065950 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069B14 00065954 7C 08 02 A6 */ mflr r0
/* 80069B18 00065958 90 01 00 24 */ stw r0, 0x24(r1)
/* 80069B1C 0006595C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069B20 00065960 4B F9 D8 1D */ bl lbl_8000733C
/* 80069B24 00065964 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80069B28 00065968 7C 7B 1B 78 */ mr r27, r3
/* 80069B2C 0006596C 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80069B30 00065970 4B FB 7C F1 */ bl OSDisableInterrupts
/* 80069B34 00065974 7C 7D 1B 78 */ mr r29, r3
/* 80069B38 00065978 7F DC F3 78 */ mr r28, r30
/* 80069B3C 0006597C 3B E0 00 00 */ li r31, 0x0
.global lbl_80069B40
lbl_80069B40:
/* 80069B40 00065980 80 7C 00 6C */ lwz r3, 0x6c(r28)
/* 80069B44 00065984 38 9B 00 40 */ addi r4, r27, 0x40
/* 80069B48 00065988 38 A0 00 06 */ li r5, 0x6
/* 80069B4C 0006598C 38 63 00 40 */ addi r3, r3, 0x40
/* 80069B50 00065990 4B FA 13 21 */ bl memcmp
/* 80069B54 00065994 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069B58 00065998 40 82 00 9C */ bne lbl_80069BF4
/* 80069B5C 0006599C 1F 9F 00 0C */ mulli r28, r31, 0xc
/* 80069B60 000659A0 80 7E 00 64 */ lwz r3, 0x64(r30)
/* 80069B64 000659A4 38 A0 00 06 */ li r5, 0x6
/* 80069B68 000659A8 80 63 00 00 */ lwz r3, 0x0(r3)
/* 80069B6C 000659AC 7F FE E2 14 */ add r31, r30, r28
/* 80069B70 000659B0 84 9F 00 6C */ lwzu r4, 0x6c(r31)
/* 80069B74 000659B4 38 63 00 40 */ addi r3, r3, 0x40
/* 80069B78 000659B8 38 84 00 40 */ addi r4, r4, 0x40
/* 80069B7C 000659BC 4B FA 12 F5 */ bl memcmp
/* 80069B80 000659C0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069B84 000659C4 41 82 00 80 */ beq lbl_80069C04
/* 80069B88 000659C8 7F 9E E2 14 */ add r28, r30, r28
/* 80069B8C 000659CC 38 A0 00 06 */ li r5, 0x6
/* 80069B90 000659D0 80 7C 00 70 */ lwz r3, 0x70(r28)
/* 80069B94 000659D4 80 1C 00 74 */ lwz r0, 0x74(r28)
/* 80069B98 000659D8 90 03 00 08 */ stw r0, 0x8(r3)
/* 80069B9C 000659DC 80 9E 00 68 */ lwz r4, 0x68(r30)
/* 80069BA0 000659E0 80 7F 00 00 */ lwz r3, 0x0(r31)
/* 80069BA4 000659E4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80069BA8 000659E8 38 83 00 40 */ addi r4, r3, 0x40
/* 80069BAC 000659EC 38 66 00 40 */ addi r3, r6, 0x40
/* 80069BB0 000659F0 4B FA 12 C1 */ bl memcmp
/* 80069BB4 000659F4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069BB8 000659F8 40 82 00 10 */ bne lbl_80069BC8
/* 80069BBC 000659FC 80 1C 00 70 */ lwz r0, 0x70(r28)
/* 80069BC0 00065A00 90 1E 00 68 */ stw r0, 0x68(r30)
/* 80069BC4 00065A04 48 00 00 10 */ b lbl_80069BD4
.global lbl_80069BC8
lbl_80069BC8:
/* 80069BC8 00065A08 80 7C 00 74 */ lwz r3, 0x74(r28)
/* 80069BCC 00065A0C 80 1C 00 70 */ lwz r0, 0x70(r28)
/* 80069BD0 00065A10 90 03 00 04 */ stw r0, 0x4(r3)
.global lbl_80069BD4
lbl_80069BD4:
/* 80069BD4 00065A14 80 7E 00 64 */ lwz r3, 0x64(r30)
/* 80069BD8 00065A18 38 00 00 00 */ li r0, 0x0
/* 80069BDC 00065A1C 90 7C 00 74 */ stw r3, 0x74(r28)
/* 80069BE0 00065A20 80 7E 00 64 */ lwz r3, 0x64(r30)
/* 80069BE4 00065A24 93 E3 00 04 */ stw r31, 0x4(r3)
/* 80069BE8 00065A28 93 FE 00 64 */ stw r31, 0x64(r30)
/* 80069BEC 00065A2C 90 1C 00 70 */ stw r0, 0x70(r28)
/* 80069BF0 00065A30 48 00 00 14 */ b lbl_80069C04
.global lbl_80069BF4
lbl_80069BF4:
/* 80069BF4 00065A34 3B FF 00 01 */ addi r31, r31, 0x1
/* 80069BF8 00065A38 3B 9C 00 0C */ addi r28, r28, 0xc
/* 80069BFC 00065A3C 2C 1F 00 0A */ cmpwi r31, 0xa
/* 80069C00 00065A40 41 80 FF 40 */ blt lbl_80069B40
.global lbl_80069C04
lbl_80069C04:
/* 80069C04 00065A44 7F A3 EB 78 */ mr r3, r29
/* 80069C08 00065A48 4B FB 7C 59 */ bl OSRestoreInterrupts
/* 80069C0C 00065A4C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069C10 00065A50 4B F9 D7 79 */ bl lbl_80007388
/* 80069C14 00065A54 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80069C18 00065A58 7C 08 03 A6 */ mtlr r0
/* 80069C1C 00065A5C 38 21 00 20 */ addi r1, r1, 0x20
/* 80069C20 00065A60 4E 80 00 20 */ blr
/* 80069C24 00065A64 00 00 00 00 */ .4byte 0x00000000
/* 80069C28 00065A68 00 00 00 00 */ .4byte 0x00000000
/* 80069C2C 00065A6C 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveBottomStdDevInfoPtr
WUDiMoveBottomStdDevInfoPtr:
/* 80069C30 00065A70 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80069C34 00065A74 7C 08 02 A6 */ mflr r0
/* 80069C38 00065A78 90 01 00 24 */ stw r0, 0x24(r1)
/* 80069C3C 00065A7C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069C40 00065A80 4B F9 D6 FD */ bl lbl_8000733C
/* 80069C44 00065A84 3F C0 80 4C */ lis r30, __rvl_wudcb@ha
/* 80069C48 00065A88 7C 7B 1B 78 */ mr r27, r3
/* 80069C4C 00065A8C 3B DE 5A 60 */ addi r30, r30, __rvl_wudcb@l
/* 80069C50 00065A90 4B FB 7B D1 */ bl OSDisableInterrupts
/* 80069C54 00065A94 7C 7D 1B 78 */ mr r29, r3
/* 80069C58 00065A98 7F DC F3 78 */ mr r28, r30
/* 80069C5C 00065A9C 3B E0 00 00 */ li r31, 0x0
.global lbl_80069C60
lbl_80069C60:
/* 80069C60 00065AA0 80 7C 00 6C */ lwz r3, 0x6c(r28)
/* 80069C64 00065AA4 38 9B 00 40 */ addi r4, r27, 0x40
/* 80069C68 00065AA8 38 A0 00 06 */ li r5, 0x6
/* 80069C6C 00065AAC 38 63 00 40 */ addi r3, r3, 0x40
/* 80069C70 00065AB0 4B FA 12 01 */ bl memcmp
/* 80069C74 00065AB4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069C78 00065AB8 40 82 00 9C */ bne lbl_80069D14
/* 80069C7C 00065ABC 1F 9F 00 0C */ mulli r28, r31, 0xc
/* 80069C80 00065AC0 80 7E 00 68 */ lwz r3, 0x68(r30)
/* 80069C84 00065AC4 38 A0 00 06 */ li r5, 0x6
/* 80069C88 00065AC8 80 63 00 00 */ lwz r3, 0x0(r3)
/* 80069C8C 00065ACC 7F FE E2 14 */ add r31, r30, r28
/* 80069C90 00065AD0 84 9F 00 6C */ lwzu r4, 0x6c(r31)
/* 80069C94 00065AD4 38 63 00 40 */ addi r3, r3, 0x40
/* 80069C98 00065AD8 38 84 00 40 */ addi r4, r4, 0x40
/* 80069C9C 00065ADC 4B FA 11 D5 */ bl memcmp
/* 80069CA0 00065AE0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069CA4 00065AE4 41 82 00 80 */ beq lbl_80069D24
/* 80069CA8 00065AE8 7F 9E E2 14 */ add r28, r30, r28
/* 80069CAC 00065AEC 38 A0 00 06 */ li r5, 0x6
/* 80069CB0 00065AF0 80 7C 00 74 */ lwz r3, 0x74(r28)
/* 80069CB4 00065AF4 80 1C 00 70 */ lwz r0, 0x70(r28)
/* 80069CB8 00065AF8 90 03 00 04 */ stw r0, 0x4(r3)
/* 80069CBC 00065AFC 80 9E 00 64 */ lwz r4, 0x64(r30)
/* 80069CC0 00065B00 80 7F 00 00 */ lwz r3, 0x0(r31)
/* 80069CC4 00065B04 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80069CC8 00065B08 38 83 00 40 */ addi r4, r3, 0x40
/* 80069CCC 00065B0C 38 66 00 40 */ addi r3, r6, 0x40
/* 80069CD0 00065B10 4B FA 11 A1 */ bl memcmp
/* 80069CD4 00065B14 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069CD8 00065B18 40 82 00 10 */ bne lbl_80069CE8
/* 80069CDC 00065B1C 80 1C 00 74 */ lwz r0, 0x74(r28)
/* 80069CE0 00065B20 90 1E 00 64 */ stw r0, 0x64(r30)
/* 80069CE4 00065B24 48 00 00 10 */ b lbl_80069CF4
.global lbl_80069CE8
lbl_80069CE8:
/* 80069CE8 00065B28 80 7C 00 70 */ lwz r3, 0x70(r28)
/* 80069CEC 00065B2C 80 1C 00 74 */ lwz r0, 0x74(r28)
/* 80069CF0 00065B30 90 03 00 08 */ stw r0, 0x8(r3)
.global lbl_80069CF4
lbl_80069CF4:
/* 80069CF4 00065B34 80 7E 00 68 */ lwz r3, 0x68(r30)
/* 80069CF8 00065B38 38 00 00 00 */ li r0, 0x0
/* 80069CFC 00065B3C 90 7C 00 70 */ stw r3, 0x70(r28)
/* 80069D00 00065B40 80 7E 00 68 */ lwz r3, 0x68(r30)
/* 80069D04 00065B44 93 E3 00 08 */ stw r31, 0x8(r3)
/* 80069D08 00065B48 93 FE 00 68 */ stw r31, 0x68(r30)
/* 80069D0C 00065B4C 90 1C 00 74 */ stw r0, 0x74(r28)
/* 80069D10 00065B50 48 00 00 14 */ b lbl_80069D24
.global lbl_80069D14
lbl_80069D14:
/* 80069D14 00065B54 3B FF 00 01 */ addi r31, r31, 0x1
/* 80069D18 00065B58 3B 9C 00 0C */ addi r28, r28, 0xc
/* 80069D1C 00065B5C 2C 1F 00 0A */ cmpwi r31, 0xa
/* 80069D20 00065B60 41 80 FF 40 */ blt lbl_80069C60
.global lbl_80069D24
lbl_80069D24:
/* 80069D24 00065B64 7F A3 EB 78 */ mr r3, r29
/* 80069D28 00065B68 4B FB 7B 39 */ bl OSRestoreInterrupts
/* 80069D2C 00065B6C 39 61 00 20 */ addi r11, r1, 0x20
/* 80069D30 00065B70 4B F9 D6 59 */ bl lbl_80007388
/* 80069D34 00065B74 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80069D38 00065B78 7C 08 03 A6 */ mtlr r0
/* 80069D3C 00065B7C 38 21 00 20 */ addi r1, r1, 0x20
/* 80069D40 00065B80 4E 80 00 20 */ blr
/* 80069D44 00065B84 00 00 00 00 */ .4byte 0x00000000
/* 80069D48 00065B88 00 00 00 00 */ .4byte 0x00000000
/* 80069D4C 00065B8C 00 00 00 00 */ .4byte 0x00000000
.global WUDiMoveTopOfDisconnectedStdDevice
WUDiMoveTopOfDisconnectedStdDevice:
/* 80069D50 00065B90 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80069D54 00065B94 7C 08 02 A6 */ mflr r0
/* 80069D58 00065B98 90 01 00 34 */ stw r0, 0x34(r1)
/* 80069D5C 00065B9C 39 61 00 30 */ addi r11, r1, 0x30
/* 80069D60 00065BA0 4B F9 D5 C9 */ bl lbl_80007328
/* 80069D64 00065BA4 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80069D68 00065BA8 7C 79 1B 78 */ mr r25, r3
/* 80069D6C 00065BAC 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80069D70 00065BB0 4B FB 7A B1 */ bl OSDisableInterrupts
/* 80069D74 00065BB4 7C 7B 1B 78 */ mr r27, r3
/* 80069D78 00065BB8 3B 80 00 00 */ li r28, 0x0
/* 80069D7C 00065BBC 3B 00 00 00 */ li r24, 0x0
/* 80069D80 00065BC0 3F E0 80 44 */ lis r31, "@6246"@ha
.global lbl_80069D84
lbl_80069D84:
/* 80069D84 00065BC4 7F DD C2 14 */ add r30, r29, r24
/* 80069D88 00065BC8 84 7E 00 6C */ lwzu r3, 0x6c(r30)
/* 80069D8C 00065BCC 38 99 00 40 */ addi r4, r25, 0x40
/* 80069D90 00065BD0 38 A0 00 06 */ li r5, 0x6
/* 80069D94 00065BD4 38 63 00 40 */ addi r3, r3, 0x40
/* 80069D98 00065BD8 4B FA 10 D9 */ bl memcmp
/* 80069D9C 00065BDC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069DA0 00065BE0 40 82 01 10 */ bne lbl_80069EB0
/* 80069DA4 00065BE4 82 DD 00 64 */ lwz r22, 0x64(r29)
/* 80069DA8 00065BE8 7E DA B3 78 */ mr r26, r22
/* 80069DAC 00065BEC 48 00 00 FC */ b lbl_80069EA8
.global lbl_80069DB0
lbl_80069DB0:
/* 80069DB0 00065BF0 82 FA 00 00 */ lwz r23, 0x0(r26)
/* 80069DB4 00065BF4 38 99 00 40 */ addi r4, r25, 0x40
/* 80069DB8 00065BF8 38 A0 00 06 */ li r5, 0x6
/* 80069DBC 00065BFC 38 77 00 40 */ addi r3, r23, 0x40
/* 80069DC0 00065C00 4B FA 10 B1 */ bl memcmp
/* 80069DC4 00065C04 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069DC8 00065C08 41 82 00 DC */ beq lbl_80069EA4
/* 80069DCC 00065C0C 88 17 00 59 */ lbz r0, 0x59(r23)
/* 80069DD0 00065C10 28 00 00 01 */ cmplwi r0, 0x1
/* 80069DD4 00065C14 40 81 00 28 */ ble lbl_80069DFC
/* 80069DD8 00065C18 7E E3 BB 78 */ mr r3, r23
/* 80069DDC 00065C1C 38 9F 9D 94 */ addi r4, r31, "@6246"@l
/* 80069DE0 00065C20 38 A0 00 10 */ li r5, 0x10
/* 80069DE4 00065C24 4B FA 10 8D */ bl memcmp
/* 80069DE8 00065C28 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069DEC 00065C2C 41 82 00 B8 */ beq lbl_80069EA4
/* 80069DF0 00065C30 80 0D EA 20 */ lwz r0, _linkedWBC@sda21(r13)
/* 80069DF4 00065C34 2C 00 00 00 */ cmpwi r0, 0x0
/* 80069DF8 00065C38 41 82 00 AC */ beq lbl_80069EA4
.global lbl_80069DFC
lbl_80069DFC:
/* 80069DFC 00065C3C 7C 7D C2 14 */ add r3, r29, r24
/* 80069E00 00065C40 80 D6 00 00 */ lwz r6, 0x0(r22)
/* 80069E04 00065C44 80 83 00 6C */ lwz r4, 0x6c(r3)
/* 80069E08 00065C48 38 A0 00 06 */ li r5, 0x6
/* 80069E0C 00065C4C 38 66 00 40 */ addi r3, r6, 0x40
/* 80069E10 00065C50 38 84 00 40 */ addi r4, r4, 0x40
/* 80069E14 00065C54 4B FA 10 5D */ bl memcmp
/* 80069E18 00065C58 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069E1C 00065C5C 40 82 00 20 */ bne lbl_80069E3C
/* 80069E20 00065C60 80 16 00 08 */ lwz r0, 0x8(r22)
/* 80069E24 00065C64 7C 1A 00 40 */ cmplw r26, r0
/* 80069E28 00065C68 41 82 00 88 */ beq lbl_80069EB0
/* 80069E2C 00065C6C 7C BD C2 14 */ add r5, r29, r24
/* 80069E30 00065C70 84 05 00 74 */ lwzu r0, 0x74(r5)
/* 80069E34 00065C74 90 1D 00 64 */ stw r0, 0x64(r29)
/* 80069E38 00065C78 48 00 00 18 */ b lbl_80069E50
.global lbl_80069E3C
lbl_80069E3C:
/* 80069E3C 00065C7C 7C 7D C2 14 */ add r3, r29, r24
/* 80069E40 00065C80 38 A3 00 74 */ addi r5, r3, 0x74
/* 80069E44 00065C84 80 63 00 70 */ lwz r3, 0x70(r3)
/* 80069E48 00065C88 80 05 00 00 */ lwz r0, 0x0(r5)
/* 80069E4C 00065C8C 90 03 00 08 */ stw r0, 0x8(r3)
.global lbl_80069E50
lbl_80069E50:
/* 80069E50 00065C90 7C 9D C2 14 */ add r4, r29, r24
/* 80069E54 00065C94 80 65 00 00 */ lwz r3, 0x0(r5)
/* 80069E58 00065C98 80 04 00 70 */ lwz r0, 0x70(r4)
/* 80069E5C 00065C9C 90 03 00 04 */ stw r0, 0x4(r3)
/* 80069E60 00065CA0 80 1D 00 64 */ lwz r0, 0x64(r29)
/* 80069E64 00065CA4 7C 1A 00 40 */ cmplw r26, r0
/* 80069E68 00065CA8 41 82 00 20 */ beq lbl_80069E88
/* 80069E6C 00065CAC 80 1A 00 04 */ lwz r0, 0x4(r26)
/* 80069E70 00065CB0 90 04 00 70 */ stw r0, 0x70(r4)
/* 80069E74 00065CB4 93 45 00 00 */ stw r26, 0x0(r5)
/* 80069E78 00065CB8 80 7A 00 04 */ lwz r3, 0x4(r26)
/* 80069E7C 00065CBC 93 C3 00 08 */ stw r30, 0x8(r3)
/* 80069E80 00065CC0 93 DA 00 04 */ stw r30, 0x4(r26)
/* 80069E84 00065CC4 48 00 00 2C */ b lbl_80069EB0
.global lbl_80069E88
lbl_80069E88:
/* 80069E88 00065CC8 93 44 00 70 */ stw r26, 0x70(r4)
/* 80069E8C 00065CCC 80 1A 00 08 */ lwz r0, 0x8(r26)
/* 80069E90 00065CD0 90 05 00 00 */ stw r0, 0x0(r5)
/* 80069E94 00065CD4 80 7A 00 08 */ lwz r3, 0x8(r26)
/* 80069E98 00065CD8 93 C3 00 04 */ stw r30, 0x4(r3)
/* 80069E9C 00065CDC 93 DA 00 08 */ stw r30, 0x8(r26)
/* 80069EA0 00065CE0 48 00 00 10 */ b lbl_80069EB0
.global lbl_80069EA4
lbl_80069EA4:
/* 80069EA4 00065CE4 83 5A 00 08 */ lwz r26, 0x8(r26)
.global lbl_80069EA8
lbl_80069EA8:
/* 80069EA8 00065CE8 2C 1A 00 00 */ cmpwi r26, 0x0
/* 80069EAC 00065CEC 40 82 FF 04 */ bne lbl_80069DB0
.global lbl_80069EB0
lbl_80069EB0:
/* 80069EB0 00065CF0 3B 9C 00 01 */ addi r28, r28, 0x1
/* 80069EB4 00065CF4 3B 18 00 0C */ addi r24, r24, 0xc
/* 80069EB8 00065CF8 2C 1C 00 0A */ cmpwi r28, 0xa
/* 80069EBC 00065CFC 41 80 FE C8 */ blt lbl_80069D84
/* 80069EC0 00065D00 7F 63 DB 78 */ mr r3, r27
/* 80069EC4 00065D04 4B FB 79 9D */ bl OSRestoreInterrupts
/* 80069EC8 00065D08 39 61 00 30 */ addi r11, r1, 0x30
/* 80069ECC 00065D0C 4B F9 D4 A9 */ bl lbl_80007374
/* 80069ED0 00065D10 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80069ED4 00065D14 7C 08 03 A6 */ mtlr r0
/* 80069ED8 00065D18 38 21 00 30 */ addi r1, r1, 0x30
/* 80069EDC 00065D1C 4E 80 00 20 */ blr
.global WUDiMoveTopOfUnusedStdDevice
WUDiMoveTopOfUnusedStdDevice:
/* 80069EE0 00065D20 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80069EE4 00065D24 7C 08 02 A6 */ mflr r0
/* 80069EE8 00065D28 90 01 00 44 */ stw r0, 0x44(r1)
/* 80069EEC 00065D2C 39 61 00 40 */ addi r11, r1, 0x40
/* 80069EF0 00065D30 4B F9 D4 35 */ bl lbl_80007324
/* 80069EF4 00065D34 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 80069EF8 00065D38 7C 79 1B 78 */ mr r25, r3
/* 80069EFC 00065D3C 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 80069F00 00065D40 4B FB 79 21 */ bl OSDisableInterrupts
/* 80069F04 00065D44 7C 7B 1B 78 */ mr r27, r3
/* 80069F08 00065D48 7F BF EB 78 */ mr r31, r29
/* 80069F0C 00065D4C 3B DD 00 6C */ addi r30, r29, 0x6c
/* 80069F10 00065D50 3B 80 00 00 */ li r28, 0x0
/* 80069F14 00065D54 3B 00 00 00 */ li r24, 0x0
.global lbl_80069F18
lbl_80069F18:
/* 80069F18 00065D58 80 7F 00 6C */ lwz r3, 0x6c(r31)
/* 80069F1C 00065D5C 38 99 00 40 */ addi r4, r25, 0x40
/* 80069F20 00065D60 38 A0 00 06 */ li r5, 0x6
/* 80069F24 00065D64 3A C3 00 40 */ addi r22, r3, 0x40
/* 80069F28 00065D68 7E C3 B3 78 */ mr r3, r22
/* 80069F2C 00065D6C 4B FA 0F 45 */ bl memcmp
/* 80069F30 00065D70 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069F34 00065D74 40 82 01 10 */ bne lbl_8006A044
/* 80069F38 00065D78 82 BD 00 64 */ lwz r21, 0x64(r29)
/* 80069F3C 00065D7C 7E BA AB 78 */ mr r26, r21
/* 80069F40 00065D80 48 00 00 FC */ b lbl_8006A03C
.global lbl_80069F44
lbl_80069F44:
/* 80069F44 00065D84 82 FA 00 00 */ lwz r23, 0x0(r26)
/* 80069F48 00065D88 38 99 00 40 */ addi r4, r25, 0x40
/* 80069F4C 00065D8C 38 A0 00 06 */ li r5, 0x6
/* 80069F50 00065D90 38 77 00 40 */ addi r3, r23, 0x40
/* 80069F54 00065D94 4B FA 0F 1D */ bl memcmp
/* 80069F58 00065D98 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069F5C 00065D9C 41 82 00 DC */ beq lbl_8006A038
/* 80069F60 00065DA0 88 17 00 59 */ lbz r0, 0x59(r23)
/* 80069F64 00065DA4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80069F68 00065DA8 41 82 00 10 */ beq lbl_80069F78
/* 80069F6C 00065DAC 80 1D 00 68 */ lwz r0, 0x68(r29)
/* 80069F70 00065DB0 7C 1A 00 40 */ cmplw r26, r0
/* 80069F74 00065DB4 40 82 00 C4 */ bne lbl_8006A038
.global lbl_80069F78
lbl_80069F78:
/* 80069F78 00065DB8 80 75 00 00 */ lwz r3, 0x0(r21)
/* 80069F7C 00065DBC 7E C4 B3 78 */ mr r4, r22
/* 80069F80 00065DC0 38 A0 00 06 */ li r5, 0x6
/* 80069F84 00065DC4 38 63 00 40 */ addi r3, r3, 0x40
/* 80069F88 00065DC8 4B FA 0E E9 */ bl memcmp
/* 80069F8C 00065DCC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80069F90 00065DD0 40 82 00 1C */ bne lbl_80069FAC
/* 80069F94 00065DD4 80 15 00 08 */ lwz r0, 0x8(r21)
/* 80069F98 00065DD8 7C 1A 00 40 */ cmplw r26, r0
/* 80069F9C 00065DDC 41 82 00 A8 */ beq lbl_8006A044
/* 80069FA0 00065DE0 80 1F 00 74 */ lwz r0, 0x74(r31)
/* 80069FA4 00065DE4 90 1D 00 64 */ stw r0, 0x64(r29)
/* 80069FA8 00065DE8 48 00 00 10 */ b lbl_80069FB8
.global lbl_80069FAC
lbl_80069FAC:
/* 80069FAC 00065DEC 80 7F 00 70 */ lwz r3, 0x70(r31)
/* 80069FB0 00065DF0 80 1F 00 74 */ lwz r0, 0x74(r31)
/* 80069FB4 00065DF4 90 03 00 08 */ stw r0, 0x8(r3)
.global lbl_80069FB8
lbl_80069FB8:
/* 80069FB8 00065DF8 80 7F 00 74 */ lwz r3, 0x74(r31)
/* 80069FBC 00065DFC 80 1F 00 70 */ lwz r0, 0x70(r31)
/* 80069FC0 00065E00 90 03 00 04 */ stw r0, 0x4(r3)
/* 80069FC4 00065E04 80 1D 00 68 */ lwz r0, 0x68(r29)
/* 80069FC8 00065E08 7C 1A 00 40 */ cmplw r26, r0
/* 80069FCC 00065E0C 40 82 00 28 */ bne lbl_80069FF4
/* 80069FD0 00065E10 80 7A 00 00 */ lwz r3, 0x0(r26)
/* 80069FD4 00065E14 88 03 00 59 */ lbz r0, 0x59(r3)
/* 80069FD8 00065E18 2C 00 00 00 */ cmpwi r0, 0x0
/* 80069FDC 00065E1C 41 82 00 18 */ beq lbl_80069FF4
/* 80069FE0 00065E20 93 5F 00 70 */ stw r26, 0x70(r31)
/* 80069FE4 00065E24 93 1F 00 74 */ stw r24, 0x74(r31)
/* 80069FE8 00065E28 93 DA 00 08 */ stw r30, 0x8(r26)
/* 80069FEC 00065E2C 93 DD 00 68 */ stw r30, 0x68(r29)
/* 80069FF0 00065E30 48 00 00 54 */ b lbl_8006A044
.global lbl_80069FF4
lbl_80069FF4:
/* 80069FF4 00065E34 80 1D 00 64 */ lwz r0, 0x64(r29)
/* 80069FF8 00065E38 7C 1A 00 40 */ cmplw r26, r0
/* 80069FFC 00065E3C 41 82 00 20 */ beq lbl_8006A01C
/* 8006A000 00065E40 80 1A 00 04 */ lwz r0, 0x4(r26)
/* 8006A004 00065E44 90 1F 00 70 */ stw r0, 0x70(r31)
/* 8006A008 00065E48 93 5F 00 74 */ stw r26, 0x74(r31)
/* 8006A00C 00065E4C 80 7A 00 04 */ lwz r3, 0x4(r26)
/* 8006A010 00065E50 93 C3 00 08 */ stw r30, 0x8(r3)
/* 8006A014 00065E54 93 DA 00 04 */ stw r30, 0x4(r26)
/* 8006A018 00065E58 48 00 00 2C */ b lbl_8006A044
.global lbl_8006A01C
lbl_8006A01C:
/* 8006A01C 00065E5C 93 5F 00 70 */ stw r26, 0x70(r31)
/* 8006A020 00065E60 80 1A 00 08 */ lwz r0, 0x8(r26)
/* 8006A024 00065E64 90 1F 00 74 */ stw r0, 0x74(r31)
/* 8006A028 00065E68 80 7A 00 08 */ lwz r3, 0x8(r26)
/* 8006A02C 00065E6C 93 C3 00 04 */ stw r30, 0x4(r3)
/* 8006A030 00065E70 93 DA 00 08 */ stw r30, 0x8(r26)
/* 8006A034 00065E74 48 00 00 10 */ b lbl_8006A044
.global lbl_8006A038
lbl_8006A038:
/* 8006A038 00065E78 83 5A 00 08 */ lwz r26, 0x8(r26)
.global lbl_8006A03C
lbl_8006A03C:
/* 8006A03C 00065E7C 2C 1A 00 00 */ cmpwi r26, 0x0
/* 8006A040 00065E80 40 82 FF 04 */ bne lbl_80069F44
.global lbl_8006A044
lbl_8006A044:
/* 8006A044 00065E84 3B 9C 00 01 */ addi r28, r28, 0x1
/* 8006A048 00065E88 3B DE 00 0C */ addi r30, r30, 0xc
/* 8006A04C 00065E8C 2C 1C 00 0A */ cmpwi r28, 0xa
/* 8006A050 00065E90 3B FF 00 0C */ addi r31, r31, 0xc
/* 8006A054 00065E94 41 80 FE C4 */ blt lbl_80069F18
/* 8006A058 00065E98 7F 63 DB 78 */ mr r3, r27
/* 8006A05C 00065E9C 4B FB 78 05 */ bl OSRestoreInterrupts
/* 8006A060 00065EA0 39 61 00 40 */ addi r11, r1, 0x40
/* 8006A064 00065EA4 4B F9 D3 0D */ bl lbl_80007370
/* 8006A068 00065EA8 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8006A06C 00065EAC 7C 08 03 A6 */ mtlr r0
/* 8006A070 00065EB0 38 21 00 40 */ addi r1, r1, 0x40
/* 8006A074 00065EB4 4E 80 00 20 */ blr
/* 8006A078 00065EB8 00 00 00 00 */ .4byte 0x00000000
/* 8006A07C 00065EBC 00 00 00 00 */ .4byte 0x00000000
.global WUDIsBusy
WUDIsBusy:
/* 8006A080 00065EC0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006A084 00065EC4 7C 08 02 A6 */ mflr r0
/* 8006A088 00065EC8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006A08C 00065ECC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006A090 00065ED0 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 8006A094 00065ED4 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 8006A098 00065ED8 4B FB 77 89 */ bl OSDisableInterrupts
/* 8006A09C 00065EDC 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 8006A0A0 00065EE0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A0A4 00065EE4 40 82 00 34 */ bne lbl_8006A0D8
/* 8006A0A8 00065EE8 88 1F 00 0D */ lbz r0, 0xd(r31)
/* 8006A0AC 00065EEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A0B0 00065EF0 40 82 00 28 */ bne lbl_8006A0D8
/* 8006A0B4 00065EF4 88 1F 00 0F */ lbz r0, 0xf(r31)
/* 8006A0B8 00065EF8 28 00 00 04 */ cmplwi r0, 0x4
/* 8006A0BC 00065EFC 40 82 00 1C */ bne lbl_8006A0D8
/* 8006A0C0 00065F00 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 8006A0C4 00065F04 28 00 00 07 */ cmplwi r0, 0x7
/* 8006A0C8 00065F08 40 82 00 10 */ bne lbl_8006A0D8
/* 8006A0CC 00065F0C 4B FB 77 95 */ bl OSRestoreInterrupts
/* 8006A0D0 00065F10 38 60 00 00 */ li r3, 0x0
/* 8006A0D4 00065F14 48 00 00 0C */ b lbl_8006A0E0
.global lbl_8006A0D8
lbl_8006A0D8:
/* 8006A0D8 00065F18 4B FB 77 89 */ bl OSRestoreInterrupts
/* 8006A0DC 00065F1C 38 60 00 01 */ li r3, 0x1
.global lbl_8006A0E0
lbl_8006A0E0:
/* 8006A0E0 00065F20 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006A0E4 00065F24 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006A0E8 00065F28 7C 08 03 A6 */ mtlr r0
/* 8006A0EC 00065F2C 38 21 00 10 */ addi r1, r1, 0x10
/* 8006A0F0 00065F30 4E 80 00 20 */ blr
/* 8006A0F4 00065F34 00 00 00 00 */ .4byte 0x00000000
/* 8006A0F8 00065F38 00 00 00 00 */ .4byte 0x00000000
/* 8006A0FC 00065F3C 00 00 00 00 */ .4byte 0x00000000
.global __wudCleanupStackCallback
__wudCleanupStackCallback:
/* 8006A100 00065F40 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A104 00065F44 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 8006A108 00065F48 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 8006A10C 00065F4C 4C 82 00 20 */ bnelr
/* 8006A110 00065F50 38 00 00 00 */ li r0, 0x0
/* 8006A114 00065F54 90 0D EA 08 */ stw r0, _wudInitialized@sda21(r13)
/* 8006A118 00065F58 98 03 07 08 */ stb r0, 0x708(r3)
/* 8006A11C 00065F5C 4E 80 00 20 */ blr
.global __wudSecurityEventStackCallback
__wudSecurityEventStackCallback:
/* 8006A120 00065F60 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8006A124 00065F64 7C 08 02 A6 */ mflr r0
/* 8006A128 00065F68 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006A12C 00065F6C 39 61 00 30 */ addi r11, r1, 0x30
/* 8006A130 00065F70 4B F9 D2 09 */ bl lbl_80007338
/* 8006A134 00065F74 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 8006A138 00065F78 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A13C 00065F7C 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 8006A140 00065F80 7C 9E 23 78 */ mr r30, r4
/* 8006A144 00065F84 3B FD 00 00 */ addi r31, r29, 0x0
/* 8006A148 00065F88 41 82 00 30 */ beq lbl_8006A178
/* 8006A14C 00065F8C 2C 03 00 01 */ cmpwi r3, 0x1
/* 8006A150 00065F90 41 82 00 A0 */ beq lbl_8006A1F0
/* 8006A154 00065F94 2C 03 00 02 */ cmpwi r3, 0x2
/* 8006A158 00065F98 41 82 00 A8 */ beq lbl_8006A200
/* 8006A15C 00065F9C 2C 03 00 03 */ cmpwi r3, 0x3
/* 8006A160 00065FA0 41 82 01 34 */ beq lbl_8006A294
/* 8006A164 00065FA4 2C 03 00 05 */ cmpwi r3, 0x5
/* 8006A168 00065FA8 41 82 01 88 */ beq lbl_8006A2F0
/* 8006A16C 00065FAC 2C 03 00 06 */ cmpwi r3, 0x6
/* 8006A170 00065FB0 41 82 02 08 */ beq lbl_8006A378
/* 8006A174 00065FB4 48 00 03 08 */ b lbl_8006A47C
.global lbl_8006A178
lbl_8006A178:
/* 8006A178 00065FB8 38 7F 07 02 */ addi r3, r31, 0x702
/* 8006A17C 00065FBC 38 A0 00 06 */ li r5, 0x6
/* 8006A180 00065FC0 4B F9 9E 81 */ bl memcpy
/* 8006A184 00065FC4 3C 80 80 07 */ lis r4, WUDiHidHostEventCallback@ha
/* 8006A188 00065FC8 38 60 00 12 */ li r3, 0x12
/* 8006A18C 00065FCC 38 84 AE 40 */ addi r4, r4, WUDiHidHostEventCallback@l
/* 8006A190 00065FD0 48 01 2F 85 */ bl BTA_HhEnable
/* 8006A194 00065FD4 38 00 00 01 */ li r0, 0x1
/* 8006A198 00065FD8 98 1F 00 0F */ stb r0, 0xf(r31)
/* 8006A19C 00065FDC 38 7F 07 10 */ addi r3, r31, 0x710
/* 8006A1A0 00065FE0 4B FB 16 61 */ bl OSCreateAlarm
/* 8006A1A4 00065FE4 4B FB B9 9D */ bl OSGetTime
/* 8006A1A8 00065FE8 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 8006A1AC 00065FEC 3D 20 80 06 */ lis r9, __wudStackHandler0@ha
/* 8006A1B0 00065FF0 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 8006A1B4 00065FF4 3C C0 10 62 */ lis r6, 0x1062
/* 8006A1B8 00065FF8 7C 65 1B 78 */ mr r5, r3
/* 8006A1BC 00065FFC 39 29 74 90 */ addi r9, r9, __wudStackHandler0@l
/* 8006A1C0 00066000 38 66 4D D3 */ addi r3, r6, 0x4dd3
/* 8006A1C4 00066004 54 00 F0 BE */ srwi r0, r0, 2
/* 8006A1C8 00066008 7C 03 00 16 */ mulhwu r0, r3, r0
/* 8006A1CC 0006600C 7C 86 23 78 */ mr r6, r4
/* 8006A1D0 00066010 38 7F 07 10 */ addi r3, r31, 0x710
/* 8006A1D4 00066014 38 E0 00 00 */ li r7, 0x0
/* 8006A1D8 00066018 54 00 D1 BE */ srwi r0, r0, 6
/* 8006A1DC 0006601C 1D 00 00 0A */ mulli r8, r0, 0xa
/* 8006A1E0 00066020 4B FB 18 F1 */ bl OSSetPeriodicAlarm
/* 8006A1E4 00066024 38 00 00 02 */ li r0, 0x2
/* 8006A1E8 00066028 98 1F 07 08 */ stb r0, 0x708(r31)
/* 8006A1EC 0006602C 48 00 02 90 */ b lbl_8006A47C
.global lbl_8006A1F0
lbl_8006A1F0:
/* 8006A1F0 00066030 3C 60 80 07 */ lis r3, __wudCleanupStackCallback@ha
/* 8006A1F4 00066034 38 63 A1 00 */ addi r3, r3, __wudCleanupStackCallback@l
/* 8006A1F8 00066038 48 00 D8 89 */ bl BTA_CleanUp
/* 8006A1FC 0006603C 48 00 02 80 */ b lbl_8006A47C
.global lbl_8006A200
lbl_8006A200:
/* 8006A200 00066040 88 1F 06 E9 */ lbz r0, 0x6e9(r31)
/* 8006A204 00066044 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A208 00066048 40 82 00 0C */ bne lbl_8006A214
/* 8006A20C 0006604C 3B FF 07 02 */ addi r31, r31, 0x702
/* 8006A210 00066050 48 00 00 08 */ b lbl_8006A218
.global lbl_8006A214
lbl_8006A214:
/* 8006A214 00066054 7F DF F3 78 */ mr r31, r30
.global lbl_8006A218
lbl_8006A218:
/* 8006A218 00066058 3B 9D 08 58 */ addi r28, r29, 0x858
/* 8006A21C 0006605C 88 1C 00 5B */ lbz r0, 0x5b(r28)
/* 8006A220 00066060 28 00 00 04 */ cmplwi r0, 0x4
/* 8006A224 00066064 40 82 00 14 */ bne lbl_8006A238
/* 8006A228 00066068 38 7C 00 40 */ addi r3, r28, 0x40
/* 8006A22C 0006606C 4B FF F3 45 */ bl WUDiRemoveDevice
/* 8006A230 00066070 38 7C 00 40 */ addi r3, r28, 0x40
/* 8006A234 00066074 48 01 56 19 */ bl btm_remove_acl
.global lbl_8006A238
lbl_8006A238:
/* 8006A238 00066078 38 7D 08 58 */ addi r3, r29, 0x858
/* 8006A23C 0006607C 38 00 00 01 */ li r0, 0x1
/* 8006A240 00066080 98 03 00 5A */ stb r0, 0x5a(r3)
/* 8006A244 00066084 4B FB 75 DD */ bl OSDisableInterrupts
/* 8006A248 00066088 88 1F 00 05 */ lbz r0, 0x5(r31)
/* 8006A24C 0006608C 98 01 00 08 */ stb r0, 0x8(r1)
/* 8006A250 00066090 88 1F 00 04 */ lbz r0, 0x4(r31)
/* 8006A254 00066094 98 01 00 09 */ stb r0, 0x9(r1)
/* 8006A258 00066098 88 1F 00 03 */ lbz r0, 0x3(r31)
/* 8006A25C 0006609C 98 01 00 0A */ stb r0, 0xa(r1)
/* 8006A260 000660A0 88 1F 00 02 */ lbz r0, 0x2(r31)
/* 8006A264 000660A4 98 01 00 0B */ stb r0, 0xb(r1)
/* 8006A268 000660A8 88 1F 00 01 */ lbz r0, 0x1(r31)
/* 8006A26C 000660AC 98 01 00 0C */ stb r0, 0xc(r1)
/* 8006A270 000660B0 88 1F 00 00 */ lbz r0, 0x0(r31)
/* 8006A274 000660B4 98 01 00 0D */ stb r0, 0xd(r1)
/* 8006A278 000660B8 4B FB 75 E9 */ bl OSRestoreInterrupts
/* 8006A27C 000660BC 7F C3 F3 78 */ mr r3, r30
/* 8006A280 000660C0 38 C1 00 08 */ addi r6, r1, 0x8
/* 8006A284 000660C4 38 80 00 01 */ li r4, 0x1
/* 8006A288 000660C8 38 A0 00 06 */ li r5, 0x6
/* 8006A28C 000660CC 48 01 09 C9 */ bl BTA_DmPinReply
/* 8006A290 000660D0 48 00 01 EC */ b lbl_8006A47C
.global lbl_8006A294
lbl_8006A294:
/* 8006A294 000660D4 88 04 01 0F */ lbz r0, 0x10f(r4)
/* 8006A298 000660D8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A29C 000660DC 41 82 01 E0 */ beq lbl_8006A47C
/* 8006A2A0 000660E0 7F C3 F3 78 */ mr r3, r30
/* 8006A2A4 000660E4 4B FF F3 DD */ bl WUDiGetDevInfo
/* 8006A2A8 000660E8 3B 9D 08 58 */ addi r28, r29, 0x858
/* 8006A2AC 000660EC 7C 7B 1B 78 */ mr r27, r3
/* 8006A2B0 000660F0 7F C4 F3 78 */ mr r4, r30
/* 8006A2B4 000660F4 38 A0 00 06 */ li r5, 0x6
/* 8006A2B8 000660F8 38 7C 00 40 */ addi r3, r28, 0x40
/* 8006A2BC 000660FC 4B FA 0B B5 */ bl memcmp
/* 8006A2C0 00066100 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A2C4 00066104 40 82 00 18 */ bne lbl_8006A2DC
/* 8006A2C8 00066108 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8006A2CC 0006610C 38 00 00 0C */ li r0, 0xc
/* 8006A2D0 00066110 98 1C 00 59 */ stb r0, 0x59(r28)
/* 8006A2D4 00066114 40 82 00 08 */ bne lbl_8006A2DC
/* 8006A2D8 00066118 7F 9B E3 78 */ mr r27, r28
.global lbl_8006A2DC
lbl_8006A2DC:
/* 8006A2DC 0006611C 38 7B 00 46 */ addi r3, r27, 0x46
/* 8006A2E0 00066120 38 9E 00 FF */ addi r4, r30, 0xff
/* 8006A2E4 00066124 38 A0 00 10 */ li r5, 0x10
/* 8006A2E8 00066128 4B F9 9D 19 */ bl memcpy
/* 8006A2EC 0006612C 48 00 01 90 */ b lbl_8006A47C
.global lbl_8006A2F0
lbl_8006A2F0:
/* 8006A2F0 00066130 7F C3 F3 78 */ mr r3, r30
/* 8006A2F4 00066134 4B FF F3 8D */ bl WUDiGetDevInfo
/* 8006A2F8 00066138 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A2FC 0006613C 7C 7B 1B 78 */ mr r27, r3
/* 8006A300 00066140 40 82 00 24 */ bne lbl_8006A324
/* 8006A304 00066144 3B 9D 08 58 */ addi r28, r29, 0x858
/* 8006A308 00066148 7F C3 F3 78 */ mr r3, r30
/* 8006A30C 0006614C 38 9C 00 40 */ addi r4, r28, 0x40
/* 8006A310 00066150 38 A0 00 06 */ li r5, 0x6
/* 8006A314 00066154 4B FA 0B 5D */ bl memcmp
/* 8006A318 00066158 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A31C 0006615C 40 82 00 08 */ bne lbl_8006A324
/* 8006A320 00066160 7F 9B E3 78 */ mr r27, r28
.global lbl_8006A324
lbl_8006A324:
/* 8006A324 00066164 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8006A328 00066168 41 82 00 1C */ beq lbl_8006A344
/* 8006A32C 0006616C 4B FB 74 F5 */ bl OSDisableInterrupts
/* 8006A330 00066170 38 9D 00 00 */ addi r4, r29, 0x0
/* 8006A334 00066174 8B 84 06 E5 */ lbz r28, 0x6e5(r4)
/* 8006A338 00066178 4B FB 75 29 */ bl OSRestoreInterrupts
/* 8006A33C 0006617C 28 1C 00 04 */ cmplwi r28, 0x4
/* 8006A340 00066180 40 82 00 10 */ bne lbl_8006A350
.global lbl_8006A344
lbl_8006A344:
/* 8006A344 00066184 7F C3 F3 78 */ mr r3, r30
/* 8006A348 00066188 48 01 55 05 */ bl btm_remove_acl
/* 8006A34C 0006618C 48 00 01 30 */ b lbl_8006A47C
.global lbl_8006A350
lbl_8006A350:
/* 8006A350 00066190 88 1B 00 59 */ lbz r0, 0x59(r27)
/* 8006A354 00066194 38 60 00 03 */ li r3, 0x3
/* 8006A358 00066198 28 00 00 02 */ cmplwi r0, 0x2
/* 8006A35C 0006619C 40 82 00 08 */ bne lbl_8006A364
/* 8006A360 000661A0 38 60 00 0C */ li r3, 0xc
.global lbl_8006A364
lbl_8006A364:
/* 8006A364 000661A4 98 7B 00 59 */ stb r3, 0x59(r27)
/* 8006A368 000661A8 88 7F 06 E5 */ lbz r3, 0x6e5(r31)
/* 8006A36C 000661AC 38 03 00 01 */ addi r0, r3, 0x1
/* 8006A370 000661B0 98 1F 06 E5 */ stb r0, 0x6e5(r31)
/* 8006A374 000661B4 48 00 01 08 */ b lbl_8006A47C
.global lbl_8006A378
lbl_8006A378:
/* 8006A378 000661B8 7F C3 F3 78 */ mr r3, r30
/* 8006A37C 000661BC 4B FF F3 05 */ bl WUDiGetDevInfo
/* 8006A380 000661C0 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A384 000661C4 41 82 00 A4 */ beq lbl_8006A428
/* 8006A388 000661C8 38 00 00 01 */ li r0, 0x1
/* 8006A38C 000661CC 98 03 00 59 */ stb r0, 0x59(r3)
/* 8006A390 000661D0 38 7D 08 58 */ addi r3, r29, 0x858
/* 8006A394 000661D4 7F C4 F3 78 */ mr r4, r30
/* 8006A398 000661D8 88 DF 06 E5 */ lbz r6, 0x6e5(r31)
/* 8006A39C 000661DC 38 63 00 40 */ addi r3, r3, 0x40
/* 8006A3A0 000661E0 38 A0 00 06 */ li r5, 0x6
/* 8006A3A4 000661E4 38 06 FF FF */ addi r0, r6, -0x1
/* 8006A3A8 000661E8 98 1F 06 E5 */ stb r0, 0x6e5(r31)
/* 8006A3AC 000661EC 4B FA 0A C5 */ bl memcmp
/* 8006A3B0 000661F0 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A3B4 000661F4 40 82 00 0C */ bne lbl_8006A3C0
/* 8006A3B8 000661F8 38 00 00 FF */ li r0, 0xff
/* 8006A3BC 000661FC 98 1F 00 0C */ stb r0, 0xc(r31)
.global lbl_8006A3C0
lbl_8006A3C0:
/* 8006A3C0 00066200 88 1E 00 06 */ lbz r0, 0x6(r30)
/* 8006A3C4 00066204 28 00 00 15 */ cmplwi r0, 0x15
/* 8006A3C8 00066208 40 82 00 90 */ bne lbl_8006A458
/* 8006A3CC 0006620C 3B 9D 08 B8 */ addi r28, r29, 0x8b8
/* 8006A3D0 00066210 3B 40 00 00 */ li r26, 0x0
/* 8006A3D4 00066214 3B A0 00 01 */ li r29, 0x1
.global lbl_8006A3D8
lbl_8006A3D8:
/* 8006A3D8 00066218 57 43 06 3E */ clrlwi r3, r26, 24
/* 8006A3DC 0006621C 7F C4 F3 78 */ mr r4, r30
/* 8006A3E0 00066220 38 03 00 0A */ addi r0, r3, 0xa
/* 8006A3E4 00066224 38 A0 00 06 */ li r5, 0x6
/* 8006A3E8 00066228 1C 00 00 46 */ mulli r0, r0, 0x46
/* 8006A3EC 0006622C 7C 7C 02 14 */ add r3, r28, r0
/* 8006A3F0 00066230 3B 63 00 01 */ addi r27, r3, 0x1
/* 8006A3F4 00066234 7F 63 DB 78 */ mr r3, r27
/* 8006A3F8 00066238 4B FA 0A 79 */ bl memcmp
/* 8006A3FC 0006623C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A400 00066240 40 82 00 18 */ bne lbl_8006A418
/* 8006A404 00066244 7F 63 DB 78 */ mr r3, r27
/* 8006A408 00066248 38 80 00 00 */ li r4, 0x0
/* 8006A40C 0006624C 38 A0 00 46 */ li r5, 0x46
/* 8006A410 00066250 4B F9 9F 41 */ bl memset
/* 8006A414 00066254 9B AD EA 3C */ stb r29, _scFlush@sda21(r13)
.global lbl_8006A418
lbl_8006A418:
/* 8006A418 00066258 3B 5A 00 01 */ addi r26, r26, 0x1
/* 8006A41C 0006625C 28 1A 00 04 */ cmplwi r26, 0x4
/* 8006A420 00066260 41 80 FF B8 */ blt lbl_8006A3D8
/* 8006A424 00066264 48 00 00 34 */ b lbl_8006A458
.global lbl_8006A428
lbl_8006A428:
/* 8006A428 00066268 38 7D 08 58 */ addi r3, r29, 0x858
/* 8006A42C 0006626C 7F C4 F3 78 */ mr r4, r30
/* 8006A430 00066270 38 63 00 40 */ addi r3, r3, 0x40
/* 8006A434 00066274 38 A0 00 06 */ li r5, 0x6
/* 8006A438 00066278 4B FA 0A 39 */ bl memcmp
/* 8006A43C 0006627C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A440 00066280 40 82 00 18 */ bne lbl_8006A458
/* 8006A444 00066284 88 7F 06 E5 */ lbz r3, 0x6e5(r31)
/* 8006A448 00066288 38 00 00 FF */ li r0, 0xff
/* 8006A44C 0006628C 98 1F 00 0C */ stb r0, 0xc(r31)
/* 8006A450 00066290 38 03 FF FF */ addi r0, r3, -0x1
/* 8006A454 00066294 98 1F 06 E5 */ stb r0, 0x6e5(r31)
.global lbl_8006A458
lbl_8006A458:
/* 8006A458 00066298 88 1F 06 E5 */ lbz r0, 0x6e5(r31)
/* 8006A45C 0006629C 28 00 00 FA */ cmplwi r0, 0xfa
/* 8006A460 000662A0 41 80 00 1C */ blt lbl_8006A47C
/* 8006A464 000662A4 3C 60 80 44 */ lis r3, "@7511"@ha
/* 8006A468 000662A8 38 63 9E 50 */ addi r3, r3, "@7511"@l
/* 8006A46C 000662AC 4C C6 31 82 */ crclr 4*cr1+eq
/* 8006A470 000662B0 4B FB 35 21 */ bl OSReport
/* 8006A474 000662B4 38 00 00 00 */ li r0, 0x0
/* 8006A478 000662B8 98 1F 06 E5 */ stb r0, 0x6e5(r31)
.global lbl_8006A47C
lbl_8006A47C:
/* 8006A47C 000662BC 39 61 00 30 */ addi r11, r1, 0x30
/* 8006A480 000662C0 4B F9 CF 05 */ bl lbl_80007384
/* 8006A484 000662C4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8006A488 000662C8 7C 08 03 A6 */ mtlr r0
/* 8006A48C 000662CC 38 21 00 30 */ addi r1, r1, 0x30
/* 8006A490 000662D0 4E 80 00 20 */ blr
/* 8006A494 000662D4 00 00 00 00 */ .4byte 0x00000000
/* 8006A498 000662D8 00 00 00 00 */ .4byte 0x00000000
/* 8006A49C 000662DC 00 00 00 00 */ .4byte 0x00000000
.global __wudSearchEventStackCallback
__wudSearchEventStackCallback:
/* 8006A4A0 000662E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006A4A4 000662E4 7C 08 02 A6 */ mflr r0
/* 8006A4A8 000662E8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A4AC 000662EC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006A4B0 000662F0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006A4B4 000662F4 93 C1 00 08 */ stw r30, 0x8(r1)
/* 8006A4B8 000662F8 7C 9E 23 78 */ mr r30, r4
/* 8006A4BC 000662FC 41 82 00 20 */ beq lbl_8006A4DC
/* 8006A4C0 00066300 2C 03 00 02 */ cmpwi r3, 0x2
/* 8006A4C4 00066304 41 82 00 6C */ beq lbl_8006A530
/* 8006A4C8 00066308 2C 03 00 03 */ cmpwi r3, 0x3
/* 8006A4CC 0006630C 41 82 00 A0 */ beq lbl_8006A56C
/* 8006A4D0 00066310 2C 03 00 04 */ cmpwi r3, 0x4
/* 8006A4D4 00066314 41 82 00 AC */ beq lbl_8006A580
/* 8006A4D8 00066318 48 00 00 F4 */ b lbl_8006A5CC
.global lbl_8006A4DC
lbl_8006A4DC:
/* 8006A4DC 0006631C 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 8006A4E0 00066320 88 04 00 09 */ lbz r0, 0x9(r4)
/* 8006A4E4 00066324 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 8006A4E8 00066328 98 0D EA 3E */ stb r0, _wudDiscRssi@sda21(r13)
/* 8006A4EC 0006632C 88 1F 06 E7 */ lbz r0, 0x6e7(r31)
/* 8006A4F0 00066330 28 00 00 01 */ cmplwi r0, 0x1
/* 8006A4F4 00066334 41 82 00 20 */ beq lbl_8006A514
/* 8006A4F8 00066338 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A4FC 0006633C 40 82 00 20 */ bne lbl_8006A51C
/* 8006A500 00066340 4B FB 73 21 */ bl OSDisableInterrupts
/* 8006A504 00066344 8B FF 06 E5 */ lbz r31, 0x6e5(r31)
/* 8006A508 00066348 4B FB 73 59 */ bl OSRestoreInterrupts
/* 8006A50C 0006634C 28 1F 00 03 */ cmplwi r31, 0x3
/* 8006A510 00066350 40 80 00 0C */ bge lbl_8006A51C
.global lbl_8006A514
lbl_8006A514:
/* 8006A514 00066354 38 00 19 00 */ li r0, 0x1900
/* 8006A518 00066358 48 00 00 0C */ b lbl_8006A524
.global lbl_8006A51C
lbl_8006A51C:
/* 8006A51C 0006635C 3C 60 00 01 */ lis r3, 0x1
/* 8006A520 00066360 38 03 80 00 */ addi r0, r3, -0x8000
.global lbl_8006A524
lbl_8006A524:
/* 8006A524 00066364 54 03 04 3E */ clrlwi r3, r0, 16
/* 8006A528 00066368 48 01 70 51 */ bl BTM_WritePageTimeout
/* 8006A52C 0006636C 48 00 00 A0 */ b lbl_8006A5CC
.global lbl_8006A530
lbl_8006A530:
/* 8006A530 00066370 3F E0 80 4C */ lis r31, _wudDiscResp@ha
/* 8006A534 00066374 38 A0 00 06 */ li r5, 0x6
/* 8006A538 00066378 38 7F 61 B0 */ addi r3, r31, _wudDiscResp@l
/* 8006A53C 0006637C 4B F9 9A C5 */ bl memcpy
/* 8006A540 00066380 3B FF 61 B0 */ addi r31, r31, 0x61b0
/* 8006A544 00066384 38 9E 00 06 */ addi r4, r30, 0x6
/* 8006A548 00066388 38 7F 00 06 */ addi r3, r31, 0x6
/* 8006A54C 0006638C 38 A0 00 40 */ li r5, 0x40
/* 8006A550 00066390 4B F9 9A B1 */ bl memcpy
/* 8006A554 00066394 88 6D EA 3F */ lbz r3, _wudDiscNumResps@sda21(r13)
/* 8006A558 00066398 80 1E 01 00 */ lwz r0, 0x100(r30)
/* 8006A55C 0006639C 90 1F 01 00 */ stw r0, 0x100(r31)
/* 8006A560 000663A0 38 03 00 01 */ addi r0, r3, 0x1
/* 8006A564 000663A4 98 0D EA 3F */ stb r0, _wudDiscNumResps@sda21(r13)
/* 8006A568 000663A8 48 00 00 64 */ b lbl_8006A5CC
.global lbl_8006A56C
lbl_8006A56C:
/* 8006A56C 000663AC 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 8006A570 000663B0 38 00 00 04 */ li r0, 0x4
/* 8006A574 000663B4 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 8006A578 000663B8 98 03 00 0C */ stb r0, 0xc(r3)
/* 8006A57C 000663BC 48 00 00 50 */ b lbl_8006A5CC
.global lbl_8006A580
lbl_8006A580:
/* 8006A580 000663C0 3C 60 00 01 */ lis r3, 0x1
/* 8006A584 000663C4 3C A0 80 44 */ lis r5, _wudResetAuthCountCmd@ha
/* 8006A588 000663C8 38 03 FC 4C */ addi r0, r3, -0x3b4
/* 8006A58C 000663CC 38 80 00 1C */ li r4, 0x1c
/* 8006A590 000663D0 54 03 04 3E */ clrlwi r3, r0, 16
/* 8006A594 000663D4 38 A5 9D 78 */ addi r5, r5, _wudResetAuthCountCmd@l
/* 8006A598 000663D8 38 C0 00 00 */ li r6, 0x0
/* 8006A59C 000663DC 48 01 6D A5 */ bl BTM_VendorSpecificCommand
/* 8006A5A0 000663E0 38 00 00 00 */ li r0, 0x0
/* 8006A5A4 000663E4 3C 60 80 4C */ lis r3, _wudDiscResp@ha
/* 8006A5A8 000663E8 98 0D EA 3F */ stb r0, _wudDiscNumResps@sda21(r13)
/* 8006A5AC 000663EC 38 63 61 B0 */ addi r3, r3, _wudDiscResp@l
/* 8006A5B0 000663F0 38 80 00 00 */ li r4, 0x0
/* 8006A5B4 000663F4 38 A0 01 08 */ li r5, 0x108
/* 8006A5B8 000663F8 4B F9 9D 99 */ bl memset
/* 8006A5BC 000663FC 3C 60 80 4C */ lis r3, __rvl_wudcb@ha
/* 8006A5C0 00066400 38 00 00 04 */ li r0, 0x4
/* 8006A5C4 00066404 38 63 5A 60 */ addi r3, r3, __rvl_wudcb@l
/* 8006A5C8 00066408 98 03 00 0C */ stb r0, 0xc(r3)
.global lbl_8006A5CC
lbl_8006A5CC:
/* 8006A5CC 0006640C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006A5D0 00066410 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006A5D4 00066414 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 8006A5D8 00066418 7C 08 03 A6 */ mtlr r0
/* 8006A5DC 0006641C 38 21 00 10 */ addi r1, r1, 0x10
/* 8006A5E0 00066420 4E 80 00 20 */ blr
/* 8006A5E4 00066424 00 00 00 00 */ .4byte 0x00000000
/* 8006A5E8 00066428 00 00 00 00 */ .4byte 0x00000000
/* 8006A5EC 0006642C 00 00 00 00 */ .4byte 0x00000000
.global __wudVendorSpecificEventStackCallback
__wudVendorSpecificEventStackCallback:
/* 8006A5F0 00066430 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8006A5F4 00066434 7C 08 02 A6 */ mflr r0
/* 8006A5F8 00066438 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006A5FC 0006643C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8006A600 00066440 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8006A604 00066444 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8006A608 00066448 3F A0 80 4C */ lis r29, __rvl_wudcb@ha
/* 8006A60C 0006644C 3B BD 5A 60 */ addi r29, r29, __rvl_wudcb@l
/* 8006A610 00066450 88 04 00 00 */ lbz r0, 0x0(r4)
/* 8006A614 00066454 2C 00 00 08 */ cmpwi r0, 0x8
/* 8006A618 00066458 41 82 00 20 */ beq lbl_8006A638
/* 8006A61C 0006645C 2C 00 00 09 */ cmpwi r0, 0x9
/* 8006A620 00066460 41 82 00 AC */ beq lbl_8006A6CC
/* 8006A624 00066464 2C 00 00 0A */ cmpwi r0, 0xa
/* 8006A628 00066468 41 82 02 00 */ beq lbl_8006A828
/* 8006A62C 0006646C 2C 00 00 10 */ cmpwi r0, 0x10
/* 8006A630 00066470 41 82 02 04 */ beq lbl_8006A834
/* 8006A634 00066474 48 00 02 18 */ b lbl_8006A84C
.global lbl_8006A638
lbl_8006A638:
/* 8006A638 00066478 4B FB 71 E9 */ bl OSDisableInterrupts
/* 8006A63C 0006647C 88 1D 00 0C */ lbz r0, 0xc(r29)
/* 8006A640 00066480 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A644 00066484 40 82 00 34 */ bne lbl_8006A678
/* 8006A648 00066488 88 1D 00 0D */ lbz r0, 0xd(r29)
/* 8006A64C 0006648C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A650 00066490 40 82 00 28 */ bne lbl_8006A678
/* 8006A654 00066494 88 1D 00 0F */ lbz r0, 0xf(r29)
/* 8006A658 00066498 28 00 00 04 */ cmplwi r0, 0x4
/* 8006A65C 0006649C 40 82 00 1C */ bne lbl_8006A678
/* 8006A660 000664A0 88 1D 00 10 */ lbz r0, 0x10(r29)
/* 8006A664 000664A4 28 00 00 07 */ cmplwi r0, 0x7
/* 8006A668 000664A8 40 82 00 10 */ bne lbl_8006A678
/* 8006A66C 000664AC 4B FB 71 F5 */ bl OSRestoreInterrupts
/* 8006A670 000664B0 38 00 00 00 */ li r0, 0x0
/* 8006A674 000664B4 48 00 00 0C */ b lbl_8006A680
.global lbl_8006A678
lbl_8006A678:
/* 8006A678 000664B8 4B FB 71 E9 */ bl OSRestoreInterrupts
/* 8006A67C 000664BC 38 00 00 01 */ li r0, 0x1
.global lbl_8006A680
lbl_8006A680:
/* 8006A680 000664C0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A684 000664C4 40 82 01 C8 */ bne lbl_8006A84C
/* 8006A688 000664C8 4B FB 71 99 */ bl OSDisableInterrupts
/* 8006A68C 000664CC 83 FD 00 00 */ lwz r31, 0x0(r29)
/* 8006A690 000664D0 4B FB 71 D1 */ bl OSRestoreInterrupts
/* 8006A694 000664D4 2C 1F 00 00 */ cmpwi r31, 0x0
/* 8006A698 000664D8 41 82 00 1C */ beq lbl_8006A6B4
/* 8006A69C 000664DC 7F EC FB 78 */ mr r12, r31
/* 8006A6A0 000664E0 38 60 00 00 */ li r3, 0x0
/* 8006A6A4 000664E4 38 80 00 00 */ li r4, 0x0
/* 8006A6A8 000664E8 7D 89 03 A6 */ mtctr r12
/* 8006A6AC 000664EC 4E 80 04 21 */ bctrl
/* 8006A6B0 000664F0 48 00 01 9C */ b lbl_8006A84C
.global lbl_8006A6B4
lbl_8006A6B4:
/* 8006A6B4 000664F4 38 60 00 00 */ li r3, 0x0
/* 8006A6B8 000664F8 38 80 00 03 */ li r4, 0x3
/* 8006A6BC 000664FC 38 A0 00 00 */ li r5, 0x0
/* 8006A6C0 00066500 38 C0 00 00 */ li r6, 0x0
/* 8006A6C4 00066504 4B FF E2 FD */ bl __wudStartSyncDevice
/* 8006A6C8 00066508 48 00 01 84 */ b lbl_8006A84C
.global lbl_8006A6CC
lbl_8006A6CC:
/* 8006A6CC 0006650C 4B FB 71 55 */ bl OSDisableInterrupts
/* 8006A6D0 00066510 83 FD 00 08 */ lwz r31, 0x8(r29)
/* 8006A6D4 00066514 7C 7E 1B 78 */ mr r30, r3
/* 8006A6D8 00066518 4B FB 71 49 */ bl OSDisableInterrupts
/* 8006A6DC 0006651C 88 1D 00 0C */ lbz r0, 0xc(r29)
/* 8006A6E0 00066520 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A6E4 00066524 40 82 00 34 */ bne lbl_8006A718
/* 8006A6E8 00066528 88 1D 00 0D */ lbz r0, 0xd(r29)
/* 8006A6EC 0006652C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A6F0 00066530 40 82 00 28 */ bne lbl_8006A718
/* 8006A6F4 00066534 88 1D 00 0F */ lbz r0, 0xf(r29)
/* 8006A6F8 00066538 28 00 00 04 */ cmplwi r0, 0x4
/* 8006A6FC 0006653C 40 82 00 1C */ bne lbl_8006A718
/* 8006A700 00066540 88 1D 00 10 */ lbz r0, 0x10(r29)
/* 8006A704 00066544 28 00 00 07 */ cmplwi r0, 0x7
/* 8006A708 00066548 40 82 00 10 */ bne lbl_8006A718
/* 8006A70C 0006654C 4B FB 71 55 */ bl OSRestoreInterrupts
/* 8006A710 00066550 38 80 00 00 */ li r4, 0x0
/* 8006A714 00066554 48 00 00 0C */ b lbl_8006A720
.global lbl_8006A718
lbl_8006A718:
/* 8006A718 00066558 4B FB 71 49 */ bl OSRestoreInterrupts
/* 8006A71C 0006655C 38 80 00 01 */ li r4, 0x1
.global lbl_8006A720
lbl_8006A720:
/* 8006A720 00066560 7C 04 00 D0 */ neg r0, r4
/* 8006A724 00066564 7F C3 F3 78 */ mr r3, r30
/* 8006A728 00066568 7C 00 23 78 */ or r0, r0, r4
/* 8006A72C 0006656C 54 00 0F FE */ srwi r0, r0, 31
/* 8006A730 00066570 7F C0 00 D0 */ neg r30, r0
/* 8006A734 00066574 4B FB 71 2D */ bl OSRestoreInterrupts
/* 8006A738 00066578 2C 1F 00 00 */ cmpwi r31, 0x0
/* 8006A73C 0006657C 41 82 00 18 */ beq lbl_8006A754
/* 8006A740 00066580 7F EC FB 78 */ mr r12, r31
/* 8006A744 00066584 7F C3 F3 78 */ mr r3, r30
/* 8006A748 00066588 7D 89 03 A6 */ mtctr r12
/* 8006A74C 0006658C 4E 80 04 21 */ bctrl
/* 8006A750 00066590 48 00 00 FC */ b lbl_8006A84C
.global lbl_8006A754
lbl_8006A754:
/* 8006A754 00066594 3F E0 80 4C */ lis r31, __rvl_wudcb@ha
/* 8006A758 00066598 3B FF 5A 60 */ addi r31, r31, __rvl_wudcb@l
/* 8006A75C 0006659C 4B FB 70 C5 */ bl OSDisableInterrupts
/* 8006A760 000665A0 8B DF 07 08 */ lbz r30, 0x708(r31)
/* 8006A764 000665A4 7F DE 07 74 */ extsb r30, r30
/* 8006A768 000665A8 4B FB 70 F9 */ bl OSRestoreInterrupts
/* 8006A76C 000665AC 28 1E 00 03 */ cmplwi r30, 0x3
/* 8006A770 000665B0 40 82 00 DC */ bne lbl_8006A84C
/* 8006A774 000665B4 4B FB 70 AD */ bl OSDisableInterrupts
/* 8006A778 000665B8 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 8006A77C 000665BC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A780 000665C0 40 82 00 34 */ bne lbl_8006A7B4
/* 8006A784 000665C4 88 1F 00 0D */ lbz r0, 0xd(r31)
/* 8006A788 000665C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A78C 000665CC 40 82 00 28 */ bne lbl_8006A7B4
/* 8006A790 000665D0 88 1F 00 0F */ lbz r0, 0xf(r31)
/* 8006A794 000665D4 28 00 00 04 */ cmplwi r0, 0x4
/* 8006A798 000665D8 40 82 00 1C */ bne lbl_8006A7B4
/* 8006A79C 000665DC 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 8006A7A0 000665E0 28 00 00 07 */ cmplwi r0, 0x7
/* 8006A7A4 000665E4 40 82 00 10 */ bne lbl_8006A7B4
/* 8006A7A8 000665E8 4B FB 70 B9 */ bl OSRestoreInterrupts
/* 8006A7AC 000665EC 38 00 00 00 */ li r0, 0x0
/* 8006A7B0 000665F0 48 00 00 0C */ b lbl_8006A7BC
.global lbl_8006A7B4
lbl_8006A7B4:
/* 8006A7B4 000665F4 4B FB 70 AD */ bl OSRestoreInterrupts
/* 8006A7B8 000665F8 38 00 00 01 */ li r0, 0x1
.global lbl_8006A7BC
lbl_8006A7BC:
/* 8006A7BC 000665FC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A7C0 00066600 40 82 00 8C */ bne lbl_8006A84C
/* 8006A7C4 00066604 4B FB 70 5D */ bl OSDisableInterrupts
/* 8006A7C8 00066608 38 00 00 01 */ li r0, 0x1
/* 8006A7CC 0006660C 98 1F 00 0D */ stb r0, 0xd(r31)
/* 8006A7D0 00066610 7C 7E 1B 78 */ mr r30, r3
/* 8006A7D4 00066614 38 7F 07 10 */ addi r3, r31, 0x710
/* 8006A7D8 00066618 4B FB 10 29 */ bl OSCreateAlarm
/* 8006A7DC 0006661C 4B FB B3 65 */ bl OSGetTime
/* 8006A7E0 00066620 3C A0 80 00 */ lis r5, 0x800000F8@ha
/* 8006A7E4 00066624 3D 20 80 06 */ lis r9, __wudDeleteHandler0@ha
/* 8006A7E8 00066628 80 05 00 F8 */ lwz r0, 0x800000F8@l(r5)
/* 8006A7EC 0006662C 3C C0 10 62 */ lis r6, 0x1062
/* 8006A7F0 00066630 7C 65 1B 78 */ mr r5, r3
/* 8006A7F4 00066634 39 29 71 E0 */ addi r9, r9, __wudDeleteHandler0@l
/* 8006A7F8 00066638 38 66 4D D3 */ addi r3, r6, 0x4dd3
/* 8006A7FC 0006663C 54 00 F0 BE */ srwi r0, r0, 2
/* 8006A800 00066640 7C 03 00 16 */ mulhwu r0, r3, r0
/* 8006A804 00066644 7C 86 23 78 */ mr r6, r4
/* 8006A808 00066648 38 7F 07 10 */ addi r3, r31, 0x710
/* 8006A80C 0006664C 38 E0 00 00 */ li r7, 0x0
/* 8006A810 00066650 54 00 D1 BE */ srwi r0, r0, 6
/* 8006A814 00066654 1D 00 00 14 */ mulli r8, r0, 0x14
/* 8006A818 00066658 4B FB 12 B9 */ bl OSSetPeriodicAlarm
/* 8006A81C 0006665C 7F C3 F3 78 */ mr r3, r30
/* 8006A820 00066660 4B FB 70 41 */ bl OSRestoreInterrupts
/* 8006A824 00066664 48 00 00 28 */ b lbl_8006A84C
.global lbl_8006A828
lbl_8006A828:
/* 8006A828 00066668 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8006A82C 0006666C 98 1D 07 09 */ stb r0, 0x709(r29)
/* 8006A830 00066670 48 00 00 1C */ b lbl_8006A84C
.global lbl_8006A834
lbl_8006A834:
/* 8006A834 00066674 3C A0 80 44 */ lis r5, "@7554"@ha
/* 8006A838 00066678 38 6D 83 E0 */ addi r3, r13, "@6791_80556800"@sda21
/* 8006A83C 0006667C 38 A5 9E 74 */ addi r5, r5, "@7554"@l
/* 8006A840 00066680 38 80 15 0B */ li r4, 0x150b
/* 8006A844 00066684 4C C6 31 82 */ crclr 4*cr1+eq
/* 8006A848 00066688 48 11 FF A9 */ bl OSPanic
.global lbl_8006A84C
lbl_8006A84C:
/* 8006A84C 0006668C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006A850 00066690 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8006A854 00066694 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8006A858 00066698 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8006A85C 0006669C 7C 08 03 A6 */ mtlr r0
/* 8006A860 000666A0 38 21 00 20 */ addi r1, r1, 0x20
/* 8006A864 000666A4 4E 80 00 20 */ blr
/* 8006A868 000666A8 00 00 00 00 */ .4byte 0x00000000
/* 8006A86C 000666AC 00 00 00 00 */ .4byte 0x00000000
.global __wudDeviceStatusEventStackCallback
__wudDeviceStatusEventStackCallback:
/* 8006A870 000666B0 28 03 00 02 */ cmplwi r3, 0x2
/* 8006A874 000666B4 4C 82 00 20 */ bnelr
/* 8006A878 000666B8 3C 60 80 44 */ lis r3, "@7558"@ha
/* 8006A87C 000666BC 38 63 9E 88 */ addi r3, r3, "@7558"@l
/* 8006A880 000666C0 4C C6 31 82 */ crclr 4*cr1+eq
/* 8006A884 000666C4 4B FB 31 0C */ b OSReport
/* 8006A888 000666C8 4E 80 00 20 */ blr
/* 8006A88C 000666CC 00 00 00 00 */ .4byte 0x00000000
.global __wudLinkKeyEventStackCallback
__wudLinkKeyEventStackCallback:
/* 8006A890 000666D0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8006A894 000666D4 7C 08 02 A6 */ mflr r0
/* 8006A898 000666D8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006A89C 000666DC 39 61 00 30 */ addi r11, r1, 0x30
/* 8006A8A0 000666E0 4B F9 CA 8D */ bl lbl_8000732C
/* 8006A8A4 000666E4 88 03 00 00 */ lbz r0, 0x0(r3)
/* 8006A8A8 000666E8 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 8006A8AC 000666EC 7C 7C 1B 78 */ mr r28, r3
/* 8006A8B0 000666F0 2C 00 00 01 */ cmpwi r0, 0x1
/* 8006A8B4 000666F4 3B C4 5A 60 */ addi r30, r4, __rvl_wudcb@l
/* 8006A8B8 000666F8 41 82 00 20 */ beq lbl_8006A8D8
/* 8006A8BC 000666FC 2C 00 00 02 */ cmpwi r0, 0x2
/* 8006A8C0 00066700 41 82 01 6C */ beq lbl_8006AA2C
/* 8006A8C4 00066704 2C 00 00 03 */ cmpwi r0, 0x3
/* 8006A8C8 00066708 41 82 01 70 */ beq lbl_8006AA38
/* 8006A8CC 0006670C 2C 00 00 04 */ cmpwi r0, 0x4
/* 8006A8D0 00066710 41 82 01 74 */ beq lbl_8006AA44
/* 8006A8D4 00066714 48 00 01 7C */ b lbl_8006AA50
.global lbl_8006A8D8
lbl_8006A8D8:
/* 8006A8D8 00066718 3B E3 00 02 */ addi r31, r3, 0x2
/* 8006A8DC 0006671C 3B A0 00 00 */ li r29, 0x0
/* 8006A8E0 00066720 3B 00 00 01 */ li r24, 0x1
/* 8006A8E4 00066724 3B 20 00 03 */ li r25, 0x3
/* 8006A8E8 00066728 3B 40 00 0A */ li r26, 0xa
/* 8006A8EC 0006672C 3B 60 00 06 */ li r27, 0x6
/* 8006A8F0 00066730 48 00 01 2C */ b lbl_8006AA1C
.global lbl_8006A8F4
lbl_8006A8F4:
/* 8006A8F4 00066734 7F E3 FB 78 */ mr r3, r31
/* 8006A8F8 00066738 4B FF ED 89 */ bl WUDiGetDevInfo
/* 8006A8FC 0006673C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006A900 00066740 7C 77 1B 78 */ mr r23, r3
/* 8006A904 00066744 40 82 00 D0 */ bne lbl_8006A9D4
/* 8006A908 00066748 4B FB 6F 19 */ bl OSDisableInterrupts
/* 8006A90C 0006674C 88 1E 06 E9 */ lbz r0, 0x6e9(r30)
/* 8006A910 00066750 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A914 00066754 40 82 00 40 */ bne lbl_8006A954
/* 8006A918 00066758 7F C5 F3 78 */ mr r5, r30
/* 8006A91C 0006675C 3A E0 00 00 */ li r23, 0x0
/* 8006A920 00066760 38 80 00 00 */ li r4, 0x0
/* 8006A924 00066764 7F 49 03 A6 */ mtctr r26
.global lbl_8006A928
lbl_8006A928:
/* 8006A928 00066768 88 05 01 3D */ lbz r0, 0x13d(r5)
/* 8006A92C 0006676C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A930 00066770 40 82 00 14 */ bne lbl_8006A944
/* 8006A934 00066774 1C 04 00 60 */ mulli r0, r4, 0x60
/* 8006A938 00066778 7C 9E 02 14 */ add r4, r30, r0
/* 8006A93C 0006677C 3A E4 00 E4 */ addi r23, r4, 0xe4
/* 8006A940 00066780 48 00 00 1C */ b lbl_8006A95C
.global lbl_8006A944
lbl_8006A944:
/* 8006A944 00066784 38 A5 00 60 */ addi r5, r5, 0x60
/* 8006A948 00066788 38 84 00 01 */ addi r4, r4, 0x1
/* 8006A94C 0006678C 42 00 FF DC */ bdnz lbl_8006A928
/* 8006A950 00066790 48 00 00 0C */ b lbl_8006A95C
.global lbl_8006A954
lbl_8006A954:
/* 8006A954 00066794 80 9E 00 18 */ lwz r4, 0x18(r30)
/* 8006A958 00066798 82 E4 00 00 */ lwz r23, 0x0(r4)
.global lbl_8006A95C
lbl_8006A95C:
/* 8006A95C 0006679C 4B FB 6F 05 */ bl OSRestoreInterrupts
/* 8006A960 000667A0 2C 17 00 00 */ cmpwi r23, 0x0
/* 8006A964 000667A4 40 82 00 3C */ bne lbl_8006A9A0
/* 8006A968 000667A8 7F C3 F3 78 */ mr r3, r30
/* 8006A96C 000667AC 3B A0 00 00 */ li r29, 0x0
/* 8006A970 000667B0 7F 69 03 A6 */ mtctr r27
/* 8006A974 000667B4 60 00 00 00 */ nop
.global lbl_8006A978
lbl_8006A978:
/* 8006A978 000667B8 88 03 04 FD */ lbz r0, 0x4fd(r3)
/* 8006A97C 000667BC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006A980 000667C0 40 82 00 14 */ bne lbl_8006A994
/* 8006A984 000667C4 1C 1D 00 60 */ mulli r0, r29, 0x60
/* 8006A988 000667C8 7C 7E 02 14 */ add r3, r30, r0
/* 8006A98C 000667CC 3A E3 04 A4 */ addi r23, r3, 0x4a4
/* 8006A990 000667D0 48 00 00 10 */ b lbl_8006A9A0
.global lbl_8006A994
lbl_8006A994:
/* 8006A994 000667D4 38 63 00 60 */ addi r3, r3, 0x60
/* 8006A998 000667D8 3B BD 00 01 */ addi r29, r29, 0x1
/* 8006A99C 000667DC 42 00 FF DC */ bdnz lbl_8006A978
.global lbl_8006A9A0
lbl_8006A9A0:
/* 8006A9A0 000667E0 2C 17 00 00 */ cmpwi r23, 0x0
/* 8006A9A4 000667E4 41 82 00 70 */ beq lbl_8006AA14
/* 8006A9A8 000667E8 9B 17 00 5C */ stb r24, 0x5c(r23)
/* 8006A9AC 000667EC 7F E4 FB 78 */ mr r4, r31
/* 8006A9B0 000667F0 38 77 00 40 */ addi r3, r23, 0x40
/* 8006A9B4 000667F4 38 A0 00 06 */ li r5, 0x6
/* 8006A9B8 000667F8 9B 17 00 59 */ stb r24, 0x59(r23)
/* 8006A9BC 000667FC 4B F9 96 45 */ bl memcpy
/* 8006A9C0 00066800 38 77 00 46 */ addi r3, r23, 0x46
/* 8006A9C4 00066804 38 9F 00 06 */ addi r4, r31, 0x6
/* 8006A9C8 00066808 38 A0 00 10 */ li r5, 0x10
/* 8006A9CC 0006680C 4B F9 96 35 */ bl memcpy
/* 8006A9D0 00066810 48 00 00 44 */ b lbl_8006AA14
.global lbl_8006A9D4
lbl_8006A9D4:
/* 8006A9D4 00066814 7F E4 FB 78 */ mr r4, r31
/* 8006A9D8 00066818 38 A0 00 06 */ li r5, 0x6
/* 8006A9DC 0006681C 38 63 00 40 */ addi r3, r3, 0x40
/* 8006A9E0 00066820 4B F9 96 21 */ bl memcpy
/* 8006A9E4 00066824 38 77 00 46 */ addi r3, r23, 0x46
/* 8006A9E8 00066828 38 9F 00 06 */ addi r4, r31, 0x6
/* 8006A9EC 0006682C 38 A0 00 10 */ li r5, 0x10
/* 8006A9F0 00066830 4B F9 96 11 */ bl memcpy
/* 8006A9F4 00066834 88 17 00 5C */ lbz r0, 0x5c(r23)
/* 8006A9F8 00066838 28 00 00 02 */ cmplwi r0, 0x2
/* 8006A9FC 0006683C 40 82 00 08 */ bne lbl_8006AA04
/* 8006AA00 00066840 9B 37 00 5C */ stb r25, 0x5c(r23)
.global lbl_8006AA04
lbl_8006AA04:
/* 8006AA04 00066844 7F E4 FB 78 */ mr r4, r31
/* 8006AA08 00066848 38 7E 06 FC */ addi r3, r30, 0x6fc
/* 8006AA0C 0006684C 38 A0 00 06 */ li r5, 0x6
/* 8006AA10 00066850 4B F9 95 F1 */ bl memcpy
.global lbl_8006AA14
lbl_8006AA14:
/* 8006AA14 00066854 3B FF 00 16 */ addi r31, r31, 0x16
/* 8006AA18 00066858 3B BD 00 01 */ addi r29, r29, 0x1
.global lbl_8006AA1C
lbl_8006AA1C:
/* 8006AA1C 0006685C 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 8006AA20 00066860 7C 1D 00 00 */ cmpw r29, r0
/* 8006AA24 00066864 41 80 FE D0 */ blt lbl_8006A8F4
/* 8006AA28 00066868 48 00 00 40 */ b lbl_8006AA68
.global lbl_8006AA2C
lbl_8006AA2C:
/* 8006AA2C 0006686C 38 00 00 00 */ li r0, 0x0
/* 8006AA30 00066870 98 1E 00 0E */ stb r0, 0xe(r30)
/* 8006AA34 00066874 48 00 00 34 */ b lbl_8006AA68
.global lbl_8006AA38
lbl_8006AA38:
/* 8006AA38 00066878 38 00 00 00 */ li r0, 0x0
/* 8006AA3C 0006687C 98 1E 00 0E */ stb r0, 0xe(r30)
/* 8006AA40 00066880 48 00 00 28 */ b lbl_8006AA68
.global lbl_8006AA44
lbl_8006AA44:
/* 8006AA44 00066884 38 00 00 00 */ li r0, 0x0
/* 8006AA48 00066888 98 1E 00 0E */ stb r0, 0xe(r30)
/* 8006AA4C 0006688C 48 00 00 1C */ b lbl_8006AA68
.global lbl_8006AA50
lbl_8006AA50:
/* 8006AA50 00066890 3C A0 80 44 */ lis r5, "@7592"@ha
/* 8006AA54 00066894 38 6D 83 E0 */ addi r3, r13, "@6791_80556800"@sda21
/* 8006AA58 00066898 38 A5 9E B0 */ addi r5, r5, "@7592"@l
/* 8006AA5C 0006689C 38 80 15 A8 */ li r4, 0x15a8
/* 8006AA60 000668A0 4C C6 31 82 */ crclr 4*cr1+eq
/* 8006AA64 000668A4 48 11 FD 8D */ bl OSPanic
.global lbl_8006AA68
lbl_8006AA68:
/* 8006AA68 000668A8 39 61 00 30 */ addi r11, r1, 0x30
/* 8006AA6C 000668AC 4B F9 C9 0D */ bl lbl_80007378
/* 8006AA70 000668B0 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8006AA74 000668B4 7C 08 03 A6 */ mtlr r0
/* 8006AA78 000668B8 38 21 00 30 */ addi r1, r1, 0x30
/* 8006AA7C 000668BC 4E 80 00 20 */ blr
.global __wudPowerMangeEventStackCallback
__wudPowerMangeEventStackCallback:
/* 8006AA80 000668C0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8006AA84 000668C4 7C 08 02 A6 */ mflr r0
/* 8006AA88 000668C8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8006AA8C 000668CC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8006AA90 000668D0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8006AA94 000668D4 7C 9E 23 78 */ mr r30, r4
/* 8006AA98 000668D8 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8006AA9C 000668DC 7C 7D 1B 78 */ mr r29, r3
/* 8006AAA0 000668E0 4B FF EB E1 */ bl WUDiGetDevInfo
/* 8006AAA4 000668E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006AAA8 000668E8 40 82 00 30 */ bne lbl_8006AAD8
/* 8006AAAC 000668EC 3F E0 80 4C */ lis r31, _wudDiscWork@ha
/* 8006AAB0 000668F0 7F A4 EB 78 */ mr r4, r29
/* 8006AAB4 000668F4 3B FF 62 B8 */ addi r31, r31, _wudDiscWork@l
/* 8006AAB8 000668F8 38 A0 00 06 */ li r5, 0x6
/* 8006AABC 000668FC 38 7F 00 40 */ addi r3, r31, 0x40
/* 8006AAC0 00066900 4B FA 03 B1 */ bl memcmp
/* 8006AAC4 00066904 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006AAC8 00066908 40 82 00 38 */ bne lbl_8006AB00
/* 8006AACC 0006690C 7F E3 FB 78 */ mr r3, r31
/* 8006AAD0 00066910 48 00 00 08 */ b lbl_8006AAD8
/* 8006AAD4 00066914 48 00 00 2C */ b lbl_8006AB00
.global lbl_8006AAD8
lbl_8006AAD8:
/* 8006AAD8 00066918 2C 1E 00 00 */ cmpwi r30, 0x0
/* 8006AADC 0006691C 41 82 00 10 */ beq lbl_8006AAEC
/* 8006AAE0 00066920 2C 1E 00 02 */ cmpwi r30, 0x2
/* 8006AAE4 00066924 41 82 00 14 */ beq lbl_8006AAF8
/* 8006AAE8 00066928 48 00 00 18 */ b lbl_8006AB00
.global lbl_8006AAEC
lbl_8006AAEC:
/* 8006AAEC 0006692C 38 00 00 08 */ li r0, 0x8
/* 8006AAF0 00066930 98 03 00 59 */ stb r0, 0x59(r3)
/* 8006AAF4 00066934 48 00 00 0C */ b lbl_8006AB00
.global lbl_8006AAF8
lbl_8006AAF8:
/* 8006AAF8 00066938 38 00 00 09 */ li r0, 0x9
/* 8006AAFC 0006693C 98 03 00 59 */ stb r0, 0x59(r3)
.global lbl_8006AB00
lbl_8006AB00:
/* 8006AB00 00066940 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006AB04 00066944 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8006AB08 00066948 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8006AB0C 0006694C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8006AB10 00066950 7C 08 03 A6 */ mtlr r0
/* 8006AB14 00066954 38 21 00 20 */ addi r1, r1, 0x20
/* 8006AB18 00066958 4E 80 00 20 */ blr
/* 8006AB1C 0006695C 00 00 00 00 */ .4byte 0x00000000
.global _WUDGetDevAddr
_WUDGetDevAddr:
/* 8006AB20 00066960 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AB24 00066964 7C 08 02 A6 */ mflr r0
/* 8006AB28 00066968 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006AB2C 0006696C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006AB30 00066970 7C 7F 1B 78 */ mr r31, r3
/* 8006AB34 00066974 4B FB 6C ED */ bl OSDisableInterrupts
/* 8006AB38 00066978 28 1F 00 10 */ cmplwi r31, 0x10
/* 8006AB3C 0006697C 40 80 00 18 */ bge lbl_8006AB54
/* 8006AB40 00066980 3C 80 80 4C */ lis r4, _dev_handle_to_bda@ha
/* 8006AB44 00066984 57 E0 15 BA */ rlwinm r0, r31, 2, 22, 29
/* 8006AB48 00066988 38 84 68 20 */ addi r4, r4, _dev_handle_to_bda@l
/* 8006AB4C 0006698C 7F E4 00 2E */ lwzx r31, r4, r0
/* 8006AB50 00066990 48 00 00 08 */ b lbl_8006AB58
.global lbl_8006AB54
lbl_8006AB54:
/* 8006AB54 00066994 3B E0 00 00 */ li r31, 0x0
.global lbl_8006AB58
lbl_8006AB58:
/* 8006AB58 00066998 4B FB 6D 09 */ bl OSRestoreInterrupts
/* 8006AB5C 0006699C 7F E3 FB 78 */ mr r3, r31
/* 8006AB60 000669A0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006AB64 000669A4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006AB68 000669A8 7C 08 03 A6 */ mtlr r0
/* 8006AB6C 000669AC 38 21 00 10 */ addi r1, r1, 0x10
/* 8006AB70 000669B0 4E 80 00 20 */ blr
/* 8006AB74 000669B4 00 00 00 00 */ .4byte 0x00000000
/* 8006AB78 000669B8 00 00 00 00 */ .4byte 0x00000000
/* 8006AB7C 000669BC 00 00 00 00 */ .4byte 0x00000000
.global _WUDGetQueuedSize
_WUDGetQueuedSize:
/* 8006AB80 000669C0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AB84 000669C4 7C 08 02 A6 */ mflr r0
/* 8006AB88 000669C8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006AB8C 000669CC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006AB90 000669D0 7C 7F 1B 78 */ mr r31, r3
/* 8006AB94 000669D4 4B FB 6C 8D */ bl OSDisableInterrupts
/* 8006AB98 000669D8 57 E0 06 3E */ clrlwi r0, r31, 24
/* 8006AB9C 000669DC 28 00 00 0F */ cmplwi r0, 0xf
/* 8006ABA0 000669E0 41 81 00 18 */ bgt lbl_8006ABB8
/* 8006ABA4 000669E4 3C 80 80 4C */ lis r4, _dev_handle_queue_size@ha
/* 8006ABA8 000669E8 57 E0 0D FC */ rlwinm r0, r31, 1, 23, 30
/* 8006ABAC 000669EC 38 84 7B C8 */ addi r4, r4, _dev_handle_queue_size@l
/* 8006ABB0 000669F0 7F E4 02 2E */ lhzx r31, r4, r0
/* 8006ABB4 000669F4 48 00 00 08 */ b lbl_8006ABBC
.global lbl_8006ABB8
lbl_8006ABB8:
/* 8006ABB8 000669F8 3B E0 00 00 */ li r31, 0x0
.global lbl_8006ABBC
lbl_8006ABBC:
/* 8006ABBC 000669FC 4B FB 6C A5 */ bl OSRestoreInterrupts
/* 8006ABC0 00066A00 7F E3 FB 78 */ mr r3, r31
/* 8006ABC4 00066A04 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006ABC8 00066A08 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006ABCC 00066A0C 7C 08 03 A6 */ mtlr r0
/* 8006ABD0 00066A10 38 21 00 10 */ addi r1, r1, 0x10
/* 8006ABD4 00066A14 4E 80 00 20 */ blr
/* 8006ABD8 00066A18 00 00 00 00 */ .4byte 0x00000000
/* 8006ABDC 00066A1C 00 00 00 00 */ .4byte 0x00000000
.global _WUDGetNotAckedSize
_WUDGetNotAckedSize:
/* 8006ABE0 00066A20 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006ABE4 00066A24 7C 08 02 A6 */ mflr r0
/* 8006ABE8 00066A28 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006ABEC 00066A2C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006ABF0 00066A30 7C 7F 1B 78 */ mr r31, r3
/* 8006ABF4 00066A34 4B FB 6C 2D */ bl OSDisableInterrupts
/* 8006ABF8 00066A38 57 E0 06 3E */ clrlwi r0, r31, 24
/* 8006ABFC 00066A3C 28 00 00 0F */ cmplwi r0, 0xf
/* 8006AC00 00066A40 41 81 00 18 */ bgt lbl_8006AC18
/* 8006AC04 00066A44 3C 80 80 4C */ lis r4, _dev_handle_notack_num@ha
/* 8006AC08 00066A48 57 E0 0D FC */ rlwinm r0, r31, 1, 23, 30
/* 8006AC0C 00066A4C 38 84 7B E8 */ addi r4, r4, _dev_handle_notack_num@l
/* 8006AC10 00066A50 7F E4 02 2E */ lhzx r31, r4, r0
/* 8006AC14 00066A54 48 00 00 08 */ b lbl_8006AC1C
.global lbl_8006AC18
lbl_8006AC18:
/* 8006AC18 00066A58 3B E0 00 00 */ li r31, 0x0
.global lbl_8006AC1C
lbl_8006AC1C:
/* 8006AC1C 00066A5C 4B FB 6C 45 */ bl OSRestoreInterrupts
/* 8006AC20 00066A60 7F E3 FB 78 */ mr r3, r31
/* 8006AC24 00066A64 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006AC28 00066A68 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006AC2C 00066A6C 7C 08 03 A6 */ mtlr r0
/* 8006AC30 00066A70 38 21 00 10 */ addi r1, r1, 0x10
/* 8006AC34 00066A74 4E 80 00 20 */ blr
/* 8006AC38 00066A78 00 00 00 00 */ .4byte 0x00000000
/* 8006AC3C 00066A7C 00 00 00 00 */ .4byte 0x00000000
.global _WUDGetLinkNumber
_WUDGetLinkNumber:
/* 8006AC40 00066A80 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AC44 00066A84 7C 08 02 A6 */ mflr r0
/* 8006AC48 00066A88 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006AC4C 00066A8C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8006AC50 00066A90 4B FB 6B D1 */ bl OSDisableInterrupts
/* 8006AC54 00066A94 3C 80 80 4C */ lis r4, __rvl_wudcb@ha
/* 8006AC58 00066A98 38 84 5A 60 */ addi r4, r4, __rvl_wudcb@l
/* 8006AC5C 00066A9C 8B E4 06 E5 */ lbz r31, 0x6e5(r4)
/* 8006AC60 00066AA0 4B FB 6C 01 */ bl OSRestoreInterrupts
/* 8006AC64 00066AA4 7F E3 FB 78 */ mr r3, r31
/* 8006AC68 00066AA8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8006AC6C 00066AAC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006AC70 00066AB0 7C 08 03 A6 */ mtlr r0
/* 8006AC74 00066AB4 38 21 00 10 */ addi r1, r1, 0x10
/* 8006AC78 00066AB8 4E 80 00 20 */ blr
/* 8006AC7C 00066ABC 00 00 00 00 */ .4byte 0x00000000
.global WUDiGetDiscoverDevice
WUDiGetDiscoverDevice:
/* 8006AC80 00066AC0 3C 60 80 4C */ lis r3, _wudDiscWork@ha
/* 8006AC84 00066AC4 38 63 62 B8 */ addi r3, r3, _wudDiscWork@l
/* 8006AC88 00066AC8 4E 80 00 20 */ blr
/* 8006AC8C 00066ACC 00 00 00 00 */ .4byte 0x00000000
.global WUDSetDeviceHistory
WUDSetDeviceHistory:
/* 8006AC90 00066AD0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AC94 00066AD4 7C 08 02 A6 */ mflr r0
/* 8006AC98 00066AD8 2C 04 00 00 */ cmpwi r4, 0x0
/* 8006AC9C 00066ADC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006ACA0 00066AE0 40 82 00 2C */ bne lbl_8006ACCC
/* 8006ACA4 00066AE4 38 03 00 0A */ addi r0, r3, 0xa
/* 8006ACA8 00066AE8 3C 60 80 4C */ lis r3, _scArray@ha
/* 8006ACAC 00066AEC 1C 00 00 46 */ mulli r0, r0, 0x46
/* 8006ACB0 00066AF0 38 80 00 00 */ li r4, 0x0
/* 8006ACB4 00066AF4 38 63 63 18 */ addi r3, r3, _scArray@l
/* 8006ACB8 00066AF8 38 A0 00 46 */ li r5, 0x46
/* 8006ACBC 00066AFC 7C 63 02 14 */ add r3, r3, r0
/* 8006ACC0 00066B00 38 63 00 01 */ addi r3, r3, 0x1
/* 8006ACC4 00066B04 4B F9 96 8D */ bl memset
/* 8006ACC8 00066B08 48 00 00 24 */ b lbl_8006ACEC
.global lbl_8006ACCC
lbl_8006ACCC:
/* 8006ACCC 00066B0C 38 03 00 0A */ addi r0, r3, 0xa
/* 8006ACD0 00066B10 3C 60 80 4C */ lis r3, _scArray@ha
/* 8006ACD4 00066B14 1C 00 00 46 */ mulli r0, r0, 0x46
/* 8006ACD8 00066B18 38 A0 00 06 */ li r5, 0x6
/* 8006ACDC 00066B1C 38 63 63 18 */ addi r3, r3, _scArray@l
/* 8006ACE0 00066B20 7C 63 02 14 */ add r3, r3, r0
/* 8006ACE4 00066B24 38 63 00 01 */ addi r3, r3, 0x1
/* 8006ACE8 00066B28 4B F9 93 19 */ bl memcpy
.global lbl_8006ACEC
lbl_8006ACEC:
/* 8006ACEC 00066B2C 38 00 00 01 */ li r0, 0x1
/* 8006ACF0 00066B30 98 0D EA 3C */ stb r0, _scFlush@sda21(r13)
/* 8006ACF4 00066B34 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006ACF8 00066B38 7C 08 03 A6 */ mtlr r0
/* 8006ACFC 00066B3C 38 21 00 10 */ addi r1, r1, 0x10
/* 8006AD00 00066B40 4E 80 00 20 */ blr
/* 8006AD04 00066B44 00 00 00 00 */ .4byte 0x00000000
/* 8006AD08 00066B48 00 00 00 00 */ .4byte 0x00000000
/* 8006AD0C 00066B4C 00 00 00 00 */ .4byte 0x00000000
.global WUDIsLatestDevice
WUDIsLatestDevice:
/* 8006AD10 00066B50 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AD14 00066B54 7C 08 02 A6 */ mflr r0
/* 8006AD18 00066B58 2C 04 00 00 */ cmpwi r4, 0x0
/* 8006AD1C 00066B5C 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006AD20 00066B60 40 82 00 0C */ bne lbl_8006AD2C
/* 8006AD24 00066B64 38 60 00 00 */ li r3, 0x0
/* 8006AD28 00066B68 48 00 00 2C */ b lbl_8006AD54
.global lbl_8006AD2C
lbl_8006AD2C:
/* 8006AD2C 00066B6C 38 03 00 0A */ addi r0, r3, 0xa
/* 8006AD30 00066B70 3C 60 80 4C */ lis r3, _scArray@ha
/* 8006AD34 00066B74 1C 00 00 46 */ mulli r0, r0, 0x46
/* 8006AD38 00066B78 38 A0 00 06 */ li r5, 0x6
/* 8006AD3C 00066B7C 38 63 63 18 */ addi r3, r3, _scArray@l
/* 8006AD40 00066B80 7C 63 02 14 */ add r3, r3, r0
/* 8006AD44 00066B84 38 63 00 01 */ addi r3, r3, 0x1
/* 8006AD48 00066B88 4B FA 01 29 */ bl memcmp
/* 8006AD4C 00066B8C 7C 60 00 34 */ cntlzw r0, r3
/* 8006AD50 00066B90 54 03 D9 7E */ srwi r3, r0, 5
.global lbl_8006AD54
lbl_8006AD54:
/* 8006AD54 00066B94 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006AD58 00066B98 7C 08 03 A6 */ mtlr r0
/* 8006AD5C 00066B9C 38 21 00 10 */ addi r1, r1, 0x10
/* 8006AD60 00066BA0 4E 80 00 20 */ blr
/* 8006AD64 00066BA4 00 00 00 00 */ .4byte 0x00000000
/* 8006AD68 00066BA8 00 00 00 00 */ .4byte 0x00000000
/* 8006AD6C 00066BAC 00 00 00 00 */ .4byte 0x00000000
.global WUDUpdateSCSetting
WUDUpdateSCSetting:
/* 8006AD70 00066BB0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8006AD74 00066BB4 7C 08 02 A6 */ mflr r0
/* 8006AD78 00066BB8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006AD7C 00066BBC 88 0D EA 3C */ lbz r0, _scFlush@sda21(r13)
/* 8006AD80 00066BC0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006AD84 00066BC4 41 82 00 28 */ beq lbl_8006ADAC
/* 8006AD88 00066BC8 3C 60 80 4C */ lis r3, _scArray@ha
/* 8006AD8C 00066BCC 38 63 63 18 */ addi r3, r3, _scArray@l
/* 8006AD90 00066BD0 4B FE 22 81 */ bl SCSetBtDeviceInfoArray
/* 8006AD94 00066BD4 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006AD98 00066BD8 41 82 00 14 */ beq lbl_8006ADAC
/* 8006AD9C 00066BDC 38 60 00 00 */ li r3, 0x0
/* 8006ADA0 00066BE0 4B FE 19 E1 */ bl SCFlushAsync
/* 8006ADA4 00066BE4 38 00 00 00 */ li r0, 0x0
/* 8006ADA8 00066BE8 98 0D EA 3C */ stb r0, _scFlush@sda21(r13)
.global lbl_8006ADAC
lbl_8006ADAC:
/* 8006ADAC 00066BEC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006ADB0 00066BF0 7C 08 03 A6 */ mtlr r0
/* 8006ADB4 00066BF4 38 21 00 10 */ addi r1, r1, 0x10
/* 8006ADB8 00066BF8 4E 80 00 20 */ blr
/* 8006ADBC 00066BFC 00 00 00 00 */ .4byte 0x00000000
.global WUDiSetDevAddrForHandle
WUDiSetDevAddrForHandle:
/* 8006ADC0 00066C00 3C A0 80 4C */ lis r5, _dev_handle_to_bda@ha
/* 8006ADC4 00066C04 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 8006ADC8 00066C08 38 A5 68 20 */ addi r5, r5, _dev_handle_to_bda@l
/* 8006ADCC 00066C0C 7C 85 01 2E */ stwx r4, r5, r0
/* 8006ADD0 00066C10 4E 80 00 20 */ blr
/* 8006ADD4 00066C14 00 00 00 00 */ .4byte 0x00000000
/* 8006ADD8 00066C18 00 00 00 00 */ .4byte 0x00000000
/* 8006ADDC 00066C1C 00 00 00 00 */ .4byte 0x00000000
.global WUDiGetDevAddrForHandle
WUDiGetDevAddrForHandle:
/* 8006ADE0 00066C20 3C 80 80 4C */ lis r4, _dev_handle_to_bda@ha
/* 8006ADE4 00066C24 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 8006ADE8 00066C28 38 84 68 20 */ addi r4, r4, _dev_handle_to_bda@l
/* 8006ADEC 00066C2C 7C 64 00 2E */ lwzx r3, r4, r0
/* 8006ADF0 00066C30 4E 80 00 20 */ blr
/* 8006ADF4 00066C34 00 00 00 00 */ .4byte 0x00000000
/* 8006ADF8 00066C38 00 00 00 00 */ .4byte 0x00000000
/* 8006ADFC 00066C3C 00 00 00 00 */ .4byte 0x00000000
.global WUDiSetQueueSizeForHandle
WUDiSetQueueSizeForHandle:
/* 8006AE00 00066C40 3C A0 80 4C */ lis r5, _dev_handle_queue_size@ha
/* 8006AE04 00066C44 54 60 0D FC */ rlwinm r0, r3, 1, 23, 30
/* 8006AE08 00066C48 38 A5 7B C8 */ addi r5, r5, _dev_handle_queue_size@l
/* 8006AE0C 00066C4C 7C 85 03 2E */ sthx r4, r5, r0
/* 8006AE10 00066C50 4E 80 00 20 */ blr
/* 8006AE14 00066C54 00 00 00 00 */ .4byte 0x00000000
/* 8006AE18 00066C58 00 00 00 00 */ .4byte 0x00000000
/* 8006AE1C 00066C5C 00 00 00 00 */ .4byte 0x00000000
.global WUDiSetNotAckNumForHandle
WUDiSetNotAckNumForHandle:
/* 8006AE20 00066C60 3C A0 80 4C */ lis r5, _dev_handle_notack_num@ha
/* 8006AE24 00066C64 54 60 0D FC */ rlwinm r0, r3, 1, 23, 30
/* 8006AE28 00066C68 38 A5 7B E8 */ addi r5, r5, _dev_handle_notack_num@l
/* 8006AE2C 00066C6C 7C 85 03 2E */ sthx r4, r5, r0
/* 8006AE30 00066C70 4E 80 00 20 */ blr
/* 8006AE34 00066C74 00 00 00 00 */ .4byte 0x00000000
/* 8006AE38 00066C78 00 00 00 00 */ .4byte 0x00000000
/* 8006AE3C 00066C7C 00 00 00 00 */ .4byte 0x00000000