donut-decomp/asm/bte/bta_hh_act.s
2022-10-17 09:41:13 +01:00

2274 lines
90 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global bta_hh_api_enable
bta_hh_api_enable:
/* 8007B9CC 0007780C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007B9D0 00077810 7C 08 02 A6 */ mflr r0
/* 8007B9D4 00077814 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007B9D8 00077818 38 00 00 06 */ li r0, 0x6
/* 8007B9DC 0007781C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007B9E0 00077820 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007B9E4 00077824 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007B9E8 00077828 7C 7D 1B 78 */ mr r29, r3
/* 8007B9EC 0007782C 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007B9F0 00077830 48 01 1F 49 */ bl HID_HostInit
/* 8007B9F4 00077834 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007B9F8 00077838 38 80 00 00 */ li r4, 0x0
/* 8007B9FC 0007783C 38 7F 5D 28 */ addi r3, r31, bta_hh_cb@l
/* 8007BA00 00077840 38 A0 02 30 */ li r5, 0x230
/* 8007BA04 00077844 4B F8 89 4D */ bl memset
/* 8007BA08 00077848 88 9D 00 08 */ lbz r4, 0x8(r29)
/* 8007BA0C 0007784C 38 6D 84 D8 */ addi r3, r13, "@1486"@sda21
/* 8007BA10 00077850 48 01 25 69 */ bl HID_HostSetSecurityLevel
/* 8007BA14 00077854 3C 60 80 08 */ lis r3, bta_hh_cback@ha
/* 8007BA18 00077858 38 63 CE 7C */ addi r3, r3, bta_hh_cback@l
/* 8007BA1C 0007785C 48 01 1F 61 */ bl HID_HostRegister
/* 8007BA20 00077860 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BA24 00077864 40 82 00 E4 */ bne lbl_8007BB08
/* 8007BA28 00077868 80 9D 00 30 */ lwz r4, 0x30(r29)
/* 8007BA2C 0007786C 39 9F 5D 28 */ addi r12, r31, 0x5d28
/* 8007BA30 00077870 38 60 00 00 */ li r3, 0x0
/* 8007BA34 00077874 38 00 00 02 */ li r0, 0x2
/* 8007BA38 00077878 90 8C 02 24 */ stw r4, 0x224(r12)
/* 8007BA3C 0007787C 3B A0 00 00 */ li r29, 0x0
/* 8007BA40 00077880 39 60 00 01 */ li r11, 0x1
/* 8007BA44 00077884 39 40 00 FF */ li r10, 0xff
/* 8007BA48 00077888 98 61 00 08 */ stb r3, 0x8(r1)
/* 8007BA4C 0007788C 39 20 00 10 */ li r9, 0x10
/* 8007BA50 00077890 7C 09 03 A6 */ mtctr r0
.global lbl_8007BA54
lbl_8007BA54:
/* 8007BA54 00077894 57 A3 2C F4 */ rlwinm r3, r29, 5, 19, 26
/* 8007BA58 00077898 57 A0 06 3E */ clrlwi r0, r29, 24
/* 8007BA5C 0007789C 7F EC 1A 14 */ add r31, r12, r3
/* 8007BA60 000778A0 39 1D 00 01 */ addi r8, r29, 0x1
/* 8007BA64 000778A4 99 7F 00 2C */ stb r11, 0x2c(r31)
/* 8007BA68 000778A8 7F CC 02 14 */ add r30, r12, r0
/* 8007BA6C 000778AC 38 FD 00 02 */ addi r7, r29, 0x2
/* 8007BA70 000778B0 38 DD 00 03 */ addi r6, r29, 0x3
/* 8007BA74 000778B4 99 5F 00 26 */ stb r10, 0x26(r31)
/* 8007BA78 000778B8 38 BD 00 04 */ addi r5, r29, 0x4
/* 8007BA7C 000778BC 38 9D 00 05 */ addi r4, r29, 0x5
/* 8007BA80 000778C0 38 7D 00 06 */ addi r3, r29, 0x6
/* 8007BA84 000778C4 9B BF 00 22 */ stb r29, 0x22(r31)
/* 8007BA88 000778C8 38 1D 00 07 */ addi r0, r29, 0x7
/* 8007BA8C 000778CC 3B BD 00 08 */ addi r29, r29, 0x8
/* 8007BA90 000778D0 99 3E 02 14 */ stb r9, 0x214(r30)
/* 8007BA94 000778D4 99 7F 00 4C */ stb r11, 0x4c(r31)
/* 8007BA98 000778D8 99 5F 00 46 */ stb r10, 0x46(r31)
/* 8007BA9C 000778DC 99 1F 00 42 */ stb r8, 0x42(r31)
/* 8007BAA0 000778E0 99 3E 02 15 */ stb r9, 0x215(r30)
/* 8007BAA4 000778E4 99 7F 00 6C */ stb r11, 0x6c(r31)
/* 8007BAA8 000778E8 99 5F 00 66 */ stb r10, 0x66(r31)
/* 8007BAAC 000778EC 98 FF 00 62 */ stb r7, 0x62(r31)
/* 8007BAB0 000778F0 99 3E 02 16 */ stb r9, 0x216(r30)
/* 8007BAB4 000778F4 99 7F 00 8C */ stb r11, 0x8c(r31)
/* 8007BAB8 000778F8 99 5F 00 86 */ stb r10, 0x86(r31)
/* 8007BABC 000778FC 98 DF 00 82 */ stb r6, 0x82(r31)
/* 8007BAC0 00077900 99 3E 02 17 */ stb r9, 0x217(r30)
/* 8007BAC4 00077904 99 7F 00 AC */ stb r11, 0xac(r31)
/* 8007BAC8 00077908 99 5F 00 A6 */ stb r10, 0xa6(r31)
/* 8007BACC 0007790C 98 BF 00 A2 */ stb r5, 0xa2(r31)
/* 8007BAD0 00077910 99 3E 02 18 */ stb r9, 0x218(r30)
/* 8007BAD4 00077914 99 7F 00 CC */ stb r11, 0xcc(r31)
/* 8007BAD8 00077918 99 5F 00 C6 */ stb r10, 0xc6(r31)
/* 8007BADC 0007791C 98 9F 00 C2 */ stb r4, 0xc2(r31)
/* 8007BAE0 00077920 99 3E 02 19 */ stb r9, 0x219(r30)
/* 8007BAE4 00077924 99 7F 00 EC */ stb r11, 0xec(r31)
/* 8007BAE8 00077928 99 5F 00 E6 */ stb r10, 0xe6(r31)
/* 8007BAEC 0007792C 98 7F 00 E2 */ stb r3, 0xe2(r31)
/* 8007BAF0 00077930 99 3E 02 1A */ stb r9, 0x21a(r30)
/* 8007BAF4 00077934 99 7F 01 0C */ stb r11, 0x10c(r31)
/* 8007BAF8 00077938 99 5F 01 06 */ stb r10, 0x106(r31)
/* 8007BAFC 0007793C 98 1F 01 02 */ stb r0, 0x102(r31)
/* 8007BB00 00077940 99 3E 02 1B */ stb r9, 0x21b(r30)
/* 8007BB04 00077944 42 00 FF 50 */ bdnz lbl_8007BA54
.global lbl_8007BB08
lbl_8007BB08:
/* 8007BB08 00077948 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007BB0C 0007794C 38 81 00 08 */ addi r4, r1, 0x8
/* 8007BB10 00077950 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007BB14 00077954 38 60 00 00 */ li r3, 0x0
/* 8007BB18 00077958 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007BB1C 0007795C 7D 89 03 A6 */ mtctr r12
/* 8007BB20 00077960 4E 80 04 21 */ bctrl
/* 8007BB24 00077964 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007BB28 00077968 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007BB2C 0007796C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007BB30 00077970 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007BB34 00077974 7C 08 03 A6 */ mtlr r0
/* 8007BB38 00077978 38 21 00 20 */ addi r1, r1, 0x20
/* 8007BB3C 0007797C 4E 80 00 20 */ blr
.global bta_hh_api_disable
bta_hh_api_disable:
/* 8007BB40 00077980 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007BB44 00077984 7C 08 02 A6 */ mflr r0
/* 8007BB48 00077988 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007BB4C 0007798C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007BB50 00077990 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007BB54 00077994 3B E3 5D 28 */ addi r31, r3, bta_hh_cb@l
/* 8007BB58 00077998 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007BB5C 0007799C 80 1F 02 24 */ lwz r0, 0x224(r31)
/* 8007BB60 000779A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BB64 000779A4 41 82 00 C8 */ beq lbl_8007BC2C
/* 8007BB68 000779A8 88 1F 02 2D */ lbz r0, 0x22d(r31)
/* 8007BB6C 000779AC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BB70 000779B0 40 82 00 80 */ bne lbl_8007BBF0
/* 8007BB74 000779B4 38 00 00 00 */ li r0, 0x0
/* 8007BB78 000779B8 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007BB7C 000779BC 48 01 1E 7D */ bl HID_HostDeregister
/* 8007BB80 000779C0 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BB84 000779C4 41 82 00 0C */ beq lbl_8007BB90
/* 8007BB88 000779C8 38 00 00 06 */ li r0, 0x6
/* 8007BB8C 000779CC 98 01 00 08 */ stb r0, 0x8(r1)
.global lbl_8007BB90
lbl_8007BB90:
/* 8007BB90 000779D0 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007BB94 000779D4 3B C0 00 00 */ li r30, 0x0
/* 8007BB98 000779D8 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
.global lbl_8007BB9C
lbl_8007BB9C:
/* 8007BB9C 000779DC 57 C0 2C F4 */ rlwinm r0, r30, 5, 19, 26
/* 8007BBA0 000779E0 7C 7F 02 14 */ add r3, r31, r0
/* 8007BBA4 000779E4 38 63 00 14 */ addi r3, r3, 0x14
/* 8007BBA8 000779E8 4B FF CA D9 */ bl utl_freebuf
/* 8007BBAC 000779EC 3B DE 00 01 */ addi r30, r30, 0x1
/* 8007BBB0 000779F0 28 1E 00 10 */ cmplwi r30, 0x10
/* 8007BBB4 000779F4 41 80 FF E8 */ blt lbl_8007BB9C
/* 8007BBB8 000779F8 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007BBBC 000779FC 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
/* 8007BBC0 00077A00 38 7F 02 28 */ addi r3, r31, 0x228
/* 8007BBC4 00077A04 4B FF CA BD */ bl utl_freebuf
/* 8007BBC8 00077A08 81 9F 02 24 */ lwz r12, 0x224(r31)
/* 8007BBCC 00077A0C 38 81 00 08 */ addi r4, r1, 0x8
/* 8007BBD0 00077A10 38 60 00 01 */ li r3, 0x1
/* 8007BBD4 00077A14 7D 89 03 A6 */ mtctr r12
/* 8007BBD8 00077A18 4E 80 04 21 */ bctrl
/* 8007BBDC 00077A1C 7F E3 FB 78 */ mr r3, r31
/* 8007BBE0 00077A20 38 80 00 00 */ li r4, 0x0
/* 8007BBE4 00077A24 38 A0 02 30 */ li r5, 0x230
/* 8007BBE8 00077A28 4B F8 87 69 */ bl memset
/* 8007BBEC 00077A2C 48 00 00 40 */ b lbl_8007BC2C
.global lbl_8007BBF0
lbl_8007BBF0:
/* 8007BBF0 00077A30 38 00 00 01 */ li r0, 0x1
/* 8007BBF4 00077A34 3B C0 00 00 */ li r30, 0x0
/* 8007BBF8 00077A38 98 1F 02 2E */ stb r0, 0x22e(r31)
.global lbl_8007BBFC
lbl_8007BBFC:
/* 8007BBFC 00077A3C 57 C0 2C F4 */ rlwinm r0, r30, 5, 19, 26
/* 8007BC00 00077A40 7C 7F 02 14 */ add r3, r31, r0
/* 8007BC04 00077A44 88 03 00 2C */ lbz r0, 0x2c(r3)
/* 8007BC08 00077A48 28 00 00 03 */ cmplwi r0, 0x3
/* 8007BC0C 00077A4C 40 82 00 14 */ bne lbl_8007BC20
/* 8007BC10 00077A50 38 63 00 10 */ addi r3, r3, 0x10
/* 8007BC14 00077A54 38 80 17 01 */ li r4, 0x1701
/* 8007BC18 00077A58 38 A0 00 00 */ li r5, 0x0
/* 8007BC1C 00077A5C 48 00 18 C9 */ bl bta_hh_sm_execute
.global lbl_8007BC20
lbl_8007BC20:
/* 8007BC20 00077A60 3B DE 00 01 */ addi r30, r30, 0x1
/* 8007BC24 00077A64 28 1E 00 10 */ cmplwi r30, 0x10
/* 8007BC28 00077A68 41 80 FF D4 */ blt lbl_8007BBFC
.global lbl_8007BC2C
lbl_8007BC2C:
/* 8007BC2C 00077A6C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007BC30 00077A70 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007BC34 00077A74 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007BC38 00077A78 7C 08 03 A6 */ mtlr r0
/* 8007BC3C 00077A7C 38 21 00 20 */ addi r1, r1, 0x20
/* 8007BC40 00077A80 4E 80 00 20 */ blr
.global bta_hh_disc_cmpl
bta_hh_disc_cmpl:
/* 8007BC44 00077A84 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007BC48 00077A88 7C 08 02 A6 */ mflr r0
/* 8007BC4C 00077A8C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007BC50 00077A90 38 00 00 00 */ li r0, 0x0
/* 8007BC54 00077A94 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007BC58 00077A98 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007BC5C 00077A9C 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007BC60 00077AA0 48 01 1D 99 */ bl HID_HostDeregister
/* 8007BC64 00077AA4 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BC68 00077AA8 41 82 00 0C */ beq lbl_8007BC74
/* 8007BC6C 00077AAC 38 00 00 06 */ li r0, 0x6
/* 8007BC70 00077AB0 98 01 00 08 */ stb r0, 0x8(r1)
.global lbl_8007BC74
lbl_8007BC74:
/* 8007BC74 00077AB4 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007BC78 00077AB8 3B C0 00 00 */ li r30, 0x0
/* 8007BC7C 00077ABC 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
.global lbl_8007BC80
lbl_8007BC80:
/* 8007BC80 00077AC0 57 C0 2C F4 */ rlwinm r0, r30, 5, 19, 26
/* 8007BC84 00077AC4 7C 7F 02 14 */ add r3, r31, r0
/* 8007BC88 00077AC8 38 63 00 14 */ addi r3, r3, 0x14
/* 8007BC8C 00077ACC 4B FF C9 F5 */ bl utl_freebuf
/* 8007BC90 00077AD0 3B DE 00 01 */ addi r30, r30, 0x1
/* 8007BC94 00077AD4 28 1E 00 10 */ cmplwi r30, 0x10
/* 8007BC98 00077AD8 41 80 FF E8 */ blt lbl_8007BC80
/* 8007BC9C 00077ADC 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007BCA0 00077AE0 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
/* 8007BCA4 00077AE4 38 7F 02 28 */ addi r3, r31, 0x228
/* 8007BCA8 00077AE8 4B FF C9 D9 */ bl utl_freebuf
/* 8007BCAC 00077AEC 81 9F 02 24 */ lwz r12, 0x224(r31)
/* 8007BCB0 00077AF0 38 81 00 08 */ addi r4, r1, 0x8
/* 8007BCB4 00077AF4 38 60 00 01 */ li r3, 0x1
/* 8007BCB8 00077AF8 7D 89 03 A6 */ mtctr r12
/* 8007BCBC 00077AFC 4E 80 04 21 */ bctrl
/* 8007BCC0 00077B00 7F E3 FB 78 */ mr r3, r31
/* 8007BCC4 00077B04 38 80 00 00 */ li r4, 0x0
/* 8007BCC8 00077B08 38 A0 02 30 */ li r5, 0x230
/* 8007BCCC 00077B0C 4B F8 86 85 */ bl memset
/* 8007BCD0 00077B10 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007BCD4 00077B14 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007BCD8 00077B18 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007BCDC 00077B1C 7C 08 03 A6 */ mtlr r0
/* 8007BCE0 00077B20 38 21 00 20 */ addi r1, r1, 0x20
/* 8007BCE4 00077B24 4E 80 00 20 */ blr
.global bta_hh_sdp_cback
bta_hh_sdp_cback:
/* 8007BCE8 00077B28 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007BCEC 00077B2C 7C 08 02 A6 */ mflr r0
/* 8007BCF0 00077B30 3C C0 80 4F */ lis r6, bta_hh_cb@ha
/* 8007BCF4 00077B34 2C 03 00 00 */ cmpwi r3, 0x0
/* 8007BCF8 00077B38 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007BCFC 00077B3C 38 00 00 10 */ li r0, 0x10
/* 8007BD00 00077B40 38 C6 5D 28 */ addi r6, r6, bta_hh_cb@l
/* 8007BD04 00077B44 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007BD08 00077B48 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007BD0C 00077B4C 7C BE 2B 78 */ mr r30, r5
/* 8007BD10 00077B50 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007BD14 00077B54 7C 9D 23 78 */ mr r29, r4
/* 8007BD18 00077B58 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007BD1C 00077B5C 83 E6 02 10 */ lwz r31, 0x210(r6)
/* 8007BD20 00077B60 40 82 00 C0 */ bne lbl_8007BDE0
/* 8007BD24 00077B64 88 1F 00 14 */ lbz r0, 0x14(r31)
/* 8007BD28 00077B68 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BD2C 00077B6C 41 82 00 08 */ beq lbl_8007BD34
/* 8007BD30 00077B70 60 9D 80 00 */ ori r29, r4, 0x8000
.global lbl_8007BD34
lbl_8007BD34:
/* 8007BD34 00077B74 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007BD38 00077B78 28 00 00 04 */ cmplwi r0, 0x4
/* 8007BD3C 00077B7C 41 80 00 20 */ blt lbl_8007BD5C
/* 8007BD40 00077B80 3C 80 80 44 */ lis r4, "@1516_8043ABE8"@ha
/* 8007BD44 00077B84 7C 66 1B 78 */ mr r6, r3
/* 8007BD48 00077B88 7F E5 FB 78 */ mr r5, r31
/* 8007BD4C 00077B8C 57 A7 04 3E */ clrlwi r7, r29, 16
/* 8007BD50 00077B90 38 84 AB E8 */ addi r4, r4, "@1516_8043ABE8"@l
/* 8007BD54 00077B94 38 60 05 03 */ li r3, 0x503
/* 8007BD58 00077B98 4B FF BC 09 */ bl LogMsg_0
.global lbl_8007BD5C
lbl_8007BD5C:
/* 8007BD5C 00077B9C 88 9E 00 64 */ lbz r4, 0x64(r30)
/* 8007BD60 00077BA0 7F E3 FB 78 */ mr r3, r31
/* 8007BD64 00077BA4 48 00 1F 4D */ bl bta_hh_tod_spt
/* 8007BD68 00077BA8 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BD6C 00077BAC 41 82 00 6C */ beq lbl_8007BDD8
/* 8007BD70 00077BB0 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007BD74 00077BB4 28 00 00 FF */ cmplwi r0, 0xff
/* 8007BD78 00077BB8 40 82 00 68 */ bne lbl_8007BDE0
/* 8007BD7C 00077BBC 38 7F 00 08 */ addi r3, r31, 0x8
/* 8007BD80 00077BC0 57 A4 04 3E */ clrlwi r4, r29, 16
/* 8007BD84 00077BC4 38 A1 00 09 */ addi r5, r1, 0x9
/* 8007BD88 00077BC8 48 01 1D 55 */ bl HID_HostAddDev
/* 8007BD8C 00077BCC 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BD90 00077BD0 98 61 00 08 */ stb r3, 0x8(r1)
/* 8007BD94 00077BD4 40 82 00 38 */ bne lbl_8007BDCC
/* 8007BD98 00077BD8 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007BD9C 00077BDC 88 81 00 09 */ lbz r4, 0x9(r1)
/* 8007BDA0 00077BE0 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007BDA4 00077BE4 88 1F 00 12 */ lbz r0, 0x12(r31)
/* 8007BDA8 00077BE8 7C A3 22 14 */ add r5, r3, r4
/* 8007BDAC 00077BEC 38 DE 00 68 */ addi r6, r30, 0x68
/* 8007BDB0 00077BF0 98 05 02 14 */ stb r0, 0x214(r5)
/* 8007BDB4 00077BF4 7F E3 FB 78 */ mr r3, r31
/* 8007BDB8 00077BF8 57 A5 04 3E */ clrlwi r5, r29, 16
/* 8007BDBC 00077BFC 88 FE 00 64 */ lbz r7, 0x64(r30)
/* 8007BDC0 00077C00 89 1F 00 15 */ lbz r8, 0x15(r31)
/* 8007BDC4 00077C04 48 00 1E 31 */ bl bta_hh_add_device_to_list
/* 8007BDC8 00077C08 48 00 00 18 */ b lbl_8007BDE0
.global lbl_8007BDCC
lbl_8007BDCC:
/* 8007BDCC 00077C0C 38 00 00 00 */ li r0, 0x0
/* 8007BDD0 00077C10 98 1F 00 15 */ stb r0, 0x15(r31)
/* 8007BDD4 00077C14 48 00 00 0C */ b lbl_8007BDE0
.global lbl_8007BDD8
lbl_8007BDD8:
/* 8007BDD8 00077C18 38 00 00 FF */ li r0, 0xff
/* 8007BDDC 00077C1C 98 01 00 08 */ stb r0, 0x8(r1)
.global lbl_8007BDE0
lbl_8007BDE0:
/* 8007BDE0 00077C20 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007BDE4 00077C24 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007BDE8 00077C28 38 63 02 28 */ addi r3, r3, 0x228
/* 8007BDEC 00077C2C 4B FF C8 95 */ bl utl_freebuf
/* 8007BDF0 00077C30 7F E3 FB 78 */ mr r3, r31
/* 8007BDF4 00077C34 38 A1 00 08 */ addi r5, r1, 0x8
/* 8007BDF8 00077C38 38 80 17 07 */ li r4, 0x1707
/* 8007BDFC 00077C3C 48 00 16 E9 */ bl bta_hh_sm_execute
/* 8007BE00 00077C40 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007BE04 00077C44 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007BE08 00077C48 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007BE0C 00077C4C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007BE10 00077C50 7C 08 03 A6 */ mtlr r0
/* 8007BE14 00077C54 38 21 00 20 */ addi r1, r1, 0x20
/* 8007BE18 00077C58 4E 80 00 20 */ blr
.global bta_hh_start_sdp
bta_hh_start_sdp:
/* 8007BE1C 00077C5C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007BE20 00077C60 7C 08 02 A6 */ mflr r0
/* 8007BE24 00077C64 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007BE28 00077C68 38 00 00 10 */ li r0, 0x10
/* 8007BE2C 00077C6C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007BE30 00077C70 7C 7F 1B 78 */ mr r31, r3
/* 8007BE34 00077C74 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007BE38 00077C78 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007BE3C 00077C7C 7C 9D 23 78 */ mr r29, r4
/* 8007BE40 00077C80 98 01 00 09 */ stb r0, 0x9(r1)
/* 8007BE44 00077C84 88 A4 00 0E */ lbz r5, 0xe(r4)
/* 8007BE48 00077C88 88 03 00 15 */ lbz r0, 0x15(r3)
/* 8007BE4C 00077C8C 98 A3 00 14 */ stb r5, 0x14(r3)
/* 8007BE50 00077C90 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BE54 00077C94 88 04 00 0F */ lbz r0, 0xf(r4)
/* 8007BE58 00077C98 98 03 00 1B */ stb r0, 0x1b(r3)
/* 8007BE5C 00077C9C 41 82 00 98 */ beq lbl_8007BEF4
/* 8007BE60 00077CA0 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007BE64 00077CA4 38 60 00 00 */ li r3, 0x0
/* 8007BE68 00077CA8 98 61 00 09 */ stb r3, 0x9(r1)
/* 8007BE6C 00077CAC 28 00 00 05 */ cmplwi r0, 0x5
/* 8007BE70 00077CB0 41 80 00 14 */ blt lbl_8007BE84
/* 8007BE74 00077CB4 3C 80 80 44 */ lis r4, "@1527"@ha
/* 8007BE78 00077CB8 38 60 05 04 */ li r3, 0x504
/* 8007BE7C 00077CBC 38 84 AC 40 */ addi r4, r4, "@1527"@l
/* 8007BE80 00077CC0 4B FF BA E1 */ bl LogMsg_0
.global lbl_8007BE84
lbl_8007BE84:
/* 8007BE84 00077CC4 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007BE88 00077CC8 28 00 00 FF */ cmplwi r0, 0xff
/* 8007BE8C 00077CCC 40 82 00 54 */ bne lbl_8007BEE0
/* 8007BE90 00077CD0 A0 9F 00 0E */ lhz r4, 0xe(r31)
/* 8007BE94 00077CD4 38 7F 00 08 */ addi r3, r31, 0x8
/* 8007BE98 00077CD8 38 A1 00 08 */ addi r5, r1, 0x8
/* 8007BE9C 00077CDC 48 01 1C 41 */ bl HID_HostAddDev
/* 8007BEA0 00077CE0 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007BEA4 00077CE4 98 61 00 09 */ stb r3, 0x9(r1)
/* 8007BEA8 00077CE8 40 82 00 38 */ bne lbl_8007BEE0
/* 8007BEAC 00077CEC 88 81 00 08 */ lbz r4, 0x8(r1)
/* 8007BEB0 00077CF0 7F E3 FB 78 */ mr r3, r31
/* 8007BEB4 00077CF4 A0 BF 00 0E */ lhz r5, 0xe(r31)
/* 8007BEB8 00077CF8 38 C0 00 00 */ li r6, 0x0
/* 8007BEBC 00077CFC 88 FF 00 13 */ lbz r7, 0x13(r31)
/* 8007BEC0 00077D00 89 1F 00 15 */ lbz r8, 0x15(r31)
/* 8007BEC4 00077D04 48 00 1D 31 */ bl bta_hh_add_device_to_list
/* 8007BEC8 00077D08 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007BECC 00077D0C 88 01 00 08 */ lbz r0, 0x8(r1)
/* 8007BED0 00077D10 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007BED4 00077D14 88 9F 00 12 */ lbz r4, 0x12(r31)
/* 8007BED8 00077D18 7C 63 02 14 */ add r3, r3, r0
/* 8007BEDC 00077D1C 98 83 02 14 */ stb r4, 0x214(r3)
.global lbl_8007BEE0
lbl_8007BEE0:
/* 8007BEE0 00077D20 7F E3 FB 78 */ mr r3, r31
/* 8007BEE4 00077D24 38 A1 00 09 */ addi r5, r1, 0x9
/* 8007BEE8 00077D28 38 80 17 07 */ li r4, 0x1707
/* 8007BEEC 00077D2C 48 00 15 F9 */ bl bta_hh_sm_execute
/* 8007BEF0 00077D30 48 00 00 A4 */ b lbl_8007BF94
.global lbl_8007BEF4
lbl_8007BEF4:
/* 8007BEF4 00077D34 3F C0 80 4F */ lis r30, bta_hh_cb@ha
/* 8007BEF8 00077D38 3B DE 5D 28 */ addi r30, r30, bta_hh_cb@l
/* 8007BEFC 00077D3C 80 1E 02 28 */ lwz r0, 0x228(r30)
/* 8007BF00 00077D40 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BF04 00077D44 40 82 00 74 */ bne lbl_8007BF78
/* 8007BF08 00077D48 80 6D 84 B0 */ lwz r3, p_bta_hh_cfg@sda21(r13)
/* 8007BF0C 00077D4C A0 63 00 08 */ lhz r3, 0x8(r3)
/* 8007BF10 00077D50 4B FF 8D 71 */ bl GKI_getbuf
/* 8007BF14 00077D54 90 7E 02 28 */ stw r3, 0x228(r30)
/* 8007BF18 00077D58 3C C0 80 08 */ lis r6, bta_hh_sdp_cback@ha
/* 8007BF1C 00077D5C 80 AD 84 B0 */ lwz r5, p_bta_hh_cfg@sda21(r13)
/* 8007BF20 00077D60 7C 64 1B 78 */ mr r4, r3
/* 8007BF24 00077D64 93 FE 02 10 */ stw r31, 0x210(r30)
/* 8007BF28 00077D68 38 7D 00 08 */ addi r3, r29, 0x8
/* 8007BF2C 00077D6C 38 C6 BC E8 */ addi r6, r6, bta_hh_sdp_cback@l
/* 8007BF30 00077D70 A0 A5 00 08 */ lhz r5, 0x8(r5)
/* 8007BF34 00077D74 48 01 14 ED */ bl HID_HostGetSDPRecord
/* 8007BF38 00077D78 54 65 06 3F */ clrlwi. r5, r3, 24
/* 8007BF3C 00077D7C 98 61 00 09 */ stb r3, 0x9(r1)
/* 8007BF40 00077D80 41 82 00 38 */ beq lbl_8007BF78
/* 8007BF44 00077D84 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007BF48 00077D88 28 00 00 05 */ cmplwi r0, 0x5
/* 8007BF4C 00077D8C 41 80 00 14 */ blt lbl_8007BF60
/* 8007BF50 00077D90 3C 80 80 44 */ lis r4, "@1528"@ha
/* 8007BF54 00077D94 38 60 05 04 */ li r3, 0x504
/* 8007BF58 00077D98 38 84 AC 70 */ addi r4, r4, "@1528"@l
/* 8007BF5C 00077D9C 4B FF BA 05 */ bl LogMsg_0
.global lbl_8007BF60
lbl_8007BF60:
/* 8007BF60 00077DA0 38 00 00 07 */ li r0, 0x7
/* 8007BF64 00077DA4 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007BF68 00077DA8 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007BF6C 00077DAC 98 01 00 09 */ stb r0, 0x9(r1)
/* 8007BF70 00077DB0 38 63 02 28 */ addi r3, r3, 0x228
/* 8007BF74 00077DB4 4B FF C7 0D */ bl utl_freebuf
.global lbl_8007BF78
lbl_8007BF78:
/* 8007BF78 00077DB8 88 01 00 09 */ lbz r0, 0x9(r1)
/* 8007BF7C 00077DBC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007BF80 00077DC0 41 82 00 14 */ beq lbl_8007BF94
/* 8007BF84 00077DC4 7F E3 FB 78 */ mr r3, r31
/* 8007BF88 00077DC8 38 A1 00 09 */ addi r5, r1, 0x9
/* 8007BF8C 00077DCC 38 80 17 07 */ li r4, 0x1707
/* 8007BF90 00077DD0 48 00 15 55 */ bl bta_hh_sm_execute
.global lbl_8007BF94
lbl_8007BF94:
/* 8007BF94 00077DD4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007BF98 00077DD8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007BF9C 00077DDC 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007BFA0 00077DE0 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007BFA4 00077DE4 7C 08 03 A6 */ mtlr r0
/* 8007BFA8 00077DE8 38 21 00 20 */ addi r1, r1, 0x20
/* 8007BFAC 00077DEC 4E 80 00 20 */ blr
.global bta_hh_sdp_cmpl
bta_hh_sdp_cmpl:
/* 8007BFB0 00077DF0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007BFB4 00077DF4 7C 08 02 A6 */ mflr r0
/* 8007BFB8 00077DF8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007BFBC 00077DFC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007BFC0 00077E00 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007BFC4 00077E04 7C 9E 23 78 */ mr r30, r4
/* 8007BFC8 00077E08 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007BFCC 00077E0C 7C 7D 1B 78 */ mr r29, r3
/* 8007BFD0 00077E10 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007BFD4 00077E14 28 00 00 05 */ cmplwi r0, 0x5
/* 8007BFD8 00077E18 41 80 00 18 */ blt lbl_8007BFF0
/* 8007BFDC 00077E1C 3C 80 80 44 */ lis r4, "@1541"@ha
/* 8007BFE0 00077E20 88 BE 00 00 */ lbz r5, 0x0(r30)
/* 8007BFE4 00077E24 38 84 AC C0 */ addi r4, r4, "@1541"@l
/* 8007BFE8 00077E28 38 60 05 04 */ li r3, 0x504
/* 8007BFEC 00077E2C 4B FF B9 75 */ bl LogMsg_0
.global lbl_8007BFF0
lbl_8007BFF0:
/* 8007BFF0 00077E30 38 61 00 08 */ addi r3, r1, 0x8
/* 8007BFF4 00077E34 38 80 00 00 */ li r4, 0x0
/* 8007BFF8 00077E38 38 A0 00 08 */ li r5, 0x8
/* 8007BFFC 00077E3C 4B F8 83 55 */ bl memset
/* 8007C000 00077E40 88 1D 00 16 */ lbz r0, 0x16(r29)
/* 8007C004 00077E44 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C008 00077E48 38 9D 00 08 */ addi r4, r29, 0x8
/* 8007C00C 00077E4C 98 01 00 0F */ stb r0, 0xf(r1)
/* 8007C010 00077E50 4B FF BF 25 */ bl bdcpy
/* 8007C014 00077E54 8B FE 00 00 */ lbz r31, 0x0(r30)
/* 8007C018 00077E58 2C 1F 00 00 */ cmpwi r31, 0x0
/* 8007C01C 00077E5C 40 82 00 68 */ bne lbl_8007C084
/* 8007C020 00077E60 88 1D 00 19 */ lbz r0, 0x19(r29)
/* 8007C024 00077E64 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C028 00077E68 40 82 00 4C */ bne lbl_8007C074
/* 8007C02C 00077E6C 88 9D 00 14 */ lbz r4, 0x14(r29)
/* 8007C030 00077E70 38 6D 84 D8 */ addi r3, r13, "@1486"@sda21
/* 8007C034 00077E74 48 01 1F 45 */ bl HID_HostSetSecurityLevel
/* 8007C038 00077E78 88 7D 00 16 */ lbz r3, 0x16(r29)
/* 8007C03C 00077E7C 48 01 1C F9 */ bl HID_HostOpenDev
/* 8007C040 00077E80 54 65 06 3F */ clrlwi. r5, r3, 24
/* 8007C044 00077E84 7C 7F 1B 78 */ mr r31, r3
/* 8007C048 00077E88 41 82 00 3C */ beq lbl_8007C084
/* 8007C04C 00077E8C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C050 00077E90 28 00 00 05 */ cmplwi r0, 0x5
/* 8007C054 00077E94 41 80 00 14 */ blt lbl_8007C068
/* 8007C058 00077E98 3C 80 80 44 */ lis r4, "@1542"@ha
/* 8007C05C 00077E9C 38 60 05 04 */ li r3, 0x504
/* 8007C060 00077EA0 38 84 AC E0 */ addi r4, r4, "@1542"@l
/* 8007C064 00077EA4 4B FF B8 FD */ bl LogMsg_0
.global lbl_8007C068
lbl_8007C068:
/* 8007C068 00077EA8 88 7D 00 16 */ lbz r3, 0x16(r29)
/* 8007C06C 00077EAC 48 01 1C 01 */ bl HID_HostRemoveDev
/* 8007C070 00077EB0 48 00 00 14 */ b lbl_8007C084
.global lbl_8007C074
lbl_8007C074:
/* 8007C074 00077EB4 7F A3 EB 78 */ mr r3, r29
/* 8007C078 00077EB8 38 80 17 0B */ li r4, 0x170b
/* 8007C07C 00077EBC 38 A0 00 00 */ li r5, 0x0
/* 8007C080 00077EC0 48 00 14 65 */ bl bta_hh_sm_execute
.global lbl_8007C084
lbl_8007C084:
/* 8007C084 00077EC4 57 E0 06 3F */ clrlwi. r0, r31, 24
/* 8007C088 00077EC8 41 82 00 74 */ beq lbl_8007C0FC
/* 8007C08C 00077ECC 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 8007C090 00077ED0 28 00 00 FF */ cmplwi r0, 0xff
/* 8007C094 00077ED4 40 82 00 10 */ bne lbl_8007C0A4
/* 8007C098 00077ED8 38 00 00 0A */ li r0, 0xa
/* 8007C09C 00077EDC 98 01 00 0E */ stb r0, 0xe(r1)
/* 8007C0A0 00077EE0 48 00 00 0C */ b lbl_8007C0AC
.global lbl_8007C0A4
lbl_8007C0A4:
/* 8007C0A4 00077EE4 38 00 00 07 */ li r0, 0x7
/* 8007C0A8 00077EE8 98 01 00 0E */ stb r0, 0xe(r1)
.global lbl_8007C0AC
lbl_8007C0AC:
/* 8007C0AC 00077EEC 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C0B0 00077EF0 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C0B4 00077EF4 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C0B8 00077EF8 38 60 00 02 */ li r3, 0x2
/* 8007C0BC 00077EFC 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C0C0 00077F00 7D 89 03 A6 */ mtctr r12
/* 8007C0C4 00077F04 4E 80 04 21 */ bctrl
/* 8007C0C8 00077F08 7F A3 EB 78 */ mr r3, r29
/* 8007C0CC 00077F0C 38 80 17 01 */ li r4, 0x1701
/* 8007C0D0 00077F10 38 A0 00 00 */ li r5, 0x0
/* 8007C0D4 00077F14 48 00 14 11 */ bl bta_hh_sm_execute
/* 8007C0D8 00077F18 88 1D 00 15 */ lbz r0, 0x15(r29)
/* 8007C0DC 00077F1C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C0E0 00077F20 40 82 00 18 */ bne lbl_8007C0F8
/* 8007C0E4 00077F24 88 1D 00 19 */ lbz r0, 0x19(r29)
/* 8007C0E8 00077F28 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C0EC 00077F2C 40 82 00 0C */ bne lbl_8007C0F8
/* 8007C0F0 00077F30 7F A3 EB 78 */ mr r3, r29
/* 8007C0F4 00077F34 48 00 1A 81 */ bl bta_hh_clean_up_kdev
.global lbl_8007C0F8
lbl_8007C0F8:
/* 8007C0F8 00077F38 48 00 1C 0D */ bl bta_hh_trace_dev_db
.global lbl_8007C0FC
lbl_8007C0FC:
/* 8007C0FC 00077F3C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007C100 00077F40 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007C104 00077F44 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007C108 00077F48 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007C10C 00077F4C 7C 08 03 A6 */ mtlr r0
/* 8007C110 00077F50 38 21 00 20 */ addi r1, r1, 0x20
/* 8007C114 00077F54 4E 80 00 20 */ blr
.global bta_hh_api_disc_act
bta_hh_api_disc_act:
/* 8007C118 00077F58 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8007C11C 00077F5C 7C 08 02 A6 */ mflr r0
/* 8007C120 00077F60 2C 04 00 00 */ cmpwi r4, 0x0
/* 8007C124 00077F64 90 01 00 14 */ stw r0, 0x14(r1)
/* 8007C128 00077F68 41 82 00 10 */ beq lbl_8007C138
/* 8007C12C 00077F6C A0 04 00 06 */ lhz r0, 0x6(r4)
/* 8007C130 00077F70 54 03 06 3E */ clrlwi r3, r0, 24
/* 8007C134 00077F74 48 00 00 08 */ b lbl_8007C13C
.global lbl_8007C138
lbl_8007C138:
/* 8007C138 00077F78 88 63 00 16 */ lbz r3, 0x16(r3)
.global lbl_8007C13C
lbl_8007C13C:
/* 8007C13C 00077F7C 38 00 00 06 */ li r0, 0x6
/* 8007C140 00077F80 98 61 00 09 */ stb r3, 0x9(r1)
/* 8007C144 00077F84 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007C148 00077F88 48 01 1D 91 */ bl HID_HostCloseDev
/* 8007C14C 00077F8C 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007C150 00077F90 41 82 00 20 */ beq lbl_8007C170
/* 8007C154 00077F94 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C158 00077F98 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C15C 00077F9C 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C160 00077FA0 38 60 00 03 */ li r3, 0x3
/* 8007C164 00077FA4 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C168 00077FA8 7D 89 03 A6 */ mtctr r12
/* 8007C16C 00077FAC 4E 80 04 21 */ bctrl
.global lbl_8007C170
lbl_8007C170:
/* 8007C170 00077FB0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8007C174 00077FB4 7C 08 03 A6 */ mtlr r0
/* 8007C178 00077FB8 38 21 00 10 */ addi r1, r1, 0x10
/* 8007C17C 00077FBC 4E 80 00 20 */ blr
.global bta_hh_open_cmpl_act
bta_hh_open_cmpl_act:
/* 8007C180 00077FC0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007C184 00077FC4 7C 08 02 A6 */ mflr r0
/* 8007C188 00077FC8 2C 04 00 00 */ cmpwi r4, 0x0
/* 8007C18C 00077FCC 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007C190 00077FD0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007C194 00077FD4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007C198 00077FD8 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007C19C 00077FDC 7C 7D 1B 78 */ mr r29, r3
/* 8007C1A0 00077FE0 41 82 00 10 */ beq lbl_8007C1B0
/* 8007C1A4 00077FE4 A0 04 00 06 */ lhz r0, 0x6(r4)
/* 8007C1A8 00077FE8 54 1E 06 3E */ clrlwi r30, r0, 24
/* 8007C1AC 00077FEC 48 00 00 08 */ b lbl_8007C1B4
.global lbl_8007C1B0
lbl_8007C1B0:
/* 8007C1B0 00077FF0 8B C3 00 16 */ lbz r30, 0x16(r3)
.global lbl_8007C1B4
lbl_8007C1B4:
/* 8007C1B4 00077FF4 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C1B8 00077FF8 38 80 00 00 */ li r4, 0x0
/* 8007C1BC 00077FFC 38 A0 00 08 */ li r5, 0x8
/* 8007C1C0 00078000 4B F8 81 91 */ bl memset
/* 8007C1C4 00078004 9B C1 00 0F */ stb r30, 0xf(r1)
/* 8007C1C8 00078008 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C1CC 0007800C 38 9D 00 08 */ addi r4, r29, 0x8
/* 8007C1D0 00078010 4B FF BD 65 */ bl bdcpy
/* 8007C1D4 00078014 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007C1D8 00078018 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
/* 8007C1DC 0007801C 88 7F 02 2D */ lbz r3, 0x22d(r31)
/* 8007C1E0 00078020 38 03 00 01 */ addi r0, r3, 0x1
/* 8007C1E4 00078024 98 1F 02 2D */ stb r0, 0x22d(r31)
/* 8007C1E8 00078028 88 7D 00 16 */ lbz r3, 0x16(r29)
/* 8007C1EC 0007802C 88 9D 00 13 */ lbz r4, 0x13(r29)
/* 8007C1F0 00078030 A0 BD 00 0E */ lhz r5, 0xe(r29)
/* 8007C1F4 00078034 88 DD 00 15 */ lbz r6, 0x15(r29)
/* 8007C1F8 00078038 4B FA 82 A9 */ bl DefaultSwitchThreadCallback
/* 8007C1FC 0007803C 88 9D 00 15 */ lbz r4, 0x15(r29)
/* 8007C200 00078040 38 BD 00 08 */ addi r5, r29, 0x8
/* 8007C204 00078044 38 60 00 17 */ li r3, 0x17
/* 8007C208 00078048 4B FF BE 31 */ bl bta_sys_conn_open
/* 8007C20C 0007804C 88 BD 00 1B */ lbz r5, 0x1b(r29)
/* 8007C210 00078050 2C 05 00 00 */ cmpwi r5, 0x0
/* 8007C214 00078054 41 82 00 54 */ beq lbl_8007C268
/* 8007C218 00078058 7F C3 F3 78 */ mr r3, r30
/* 8007C21C 0007805C 38 80 00 07 */ li r4, 0x7
/* 8007C220 00078060 38 C0 00 00 */ li r6, 0x0
/* 8007C224 00078064 38 E0 00 00 */ li r7, 0x0
/* 8007C228 00078068 39 00 00 00 */ li r8, 0x0
/* 8007C22C 0007806C 48 01 1B 6D */ bl HID_HostWriteDev
/* 8007C230 00078070 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007C234 00078074 98 61 00 0E */ stb r3, 0xe(r1)
/* 8007C238 00078078 41 82 00 24 */ beq lbl_8007C25C
/* 8007C23C 0007807C 81 9F 02 24 */ lwz r12, 0x224(r31)
/* 8007C240 00078080 38 00 00 08 */ li r0, 0x8
/* 8007C244 00078084 98 01 00 0E */ stb r0, 0xe(r1)
/* 8007C248 00078088 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C24C 0007808C 38 60 00 02 */ li r3, 0x2
/* 8007C250 00078090 7D 89 03 A6 */ mtctr r12
/* 8007C254 00078094 4E 80 04 21 */ bctrl
/* 8007C258 00078098 48 00 00 2C */ b lbl_8007C284
.global lbl_8007C25C
lbl_8007C25C:
/* 8007C25C 0007809C 38 00 00 02 */ li r0, 0x2
/* 8007C260 000780A0 B0 1D 00 10 */ sth r0, 0x10(r29)
/* 8007C264 000780A4 48 00 00 20 */ b lbl_8007C284
.global lbl_8007C268
lbl_8007C268:
/* 8007C268 000780A8 38 00 00 01 */ li r0, 0x1
/* 8007C26C 000780AC 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C270 000780B0 98 1D 00 1A */ stb r0, 0x1a(r29)
/* 8007C274 000780B4 38 60 00 02 */ li r3, 0x2
/* 8007C278 000780B8 81 9F 02 24 */ lwz r12, 0x224(r31)
/* 8007C27C 000780BC 7D 89 03 A6 */ mtctr r12
/* 8007C280 000780C0 4E 80 04 21 */ bctrl
.global lbl_8007C284
lbl_8007C284:
/* 8007C284 000780C4 38 00 00 00 */ li r0, 0x0
/* 8007C288 000780C8 98 1D 00 19 */ stb r0, 0x19(r29)
/* 8007C28C 000780CC 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007C290 000780D0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007C294 000780D4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007C298 000780D8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007C29C 000780DC 7C 08 03 A6 */ mtlr r0
/* 8007C2A0 000780E0 38 21 00 20 */ addi r1, r1, 0x20
/* 8007C2A4 000780E4 4E 80 00 20 */ blr
.global bta_hh_open_act
bta_hh_open_act:
/* 8007C2A8 000780E8 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007C2AC 000780EC 7C 08 02 A6 */ mflr r0
/* 8007C2B0 000780F0 2C 04 00 00 */ cmpwi r4, 0x0
/* 8007C2B4 000780F4 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007C2B8 000780F8 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007C2BC 000780FC 7C 9F 23 78 */ mr r31, r4
/* 8007C2C0 00078100 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007C2C4 00078104 7C 7E 1B 78 */ mr r30, r3
/* 8007C2C8 00078108 41 82 00 10 */ beq lbl_8007C2D8
/* 8007C2CC 0007810C A0 04 00 06 */ lhz r0, 0x6(r4)
/* 8007C2D0 00078110 54 05 06 3E */ clrlwi r5, r0, 24
/* 8007C2D4 00078114 48 00 00 08 */ b lbl_8007C2DC
.global lbl_8007C2D8
lbl_8007C2D8:
/* 8007C2D8 00078118 88 A3 00 16 */ lbz r5, 0x16(r3)
.global lbl_8007C2DC
lbl_8007C2DC:
/* 8007C2DC 0007811C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C2E0 00078120 28 00 00 04 */ cmplwi r0, 0x4
/* 8007C2E4 00078124 41 80 00 14 */ blt lbl_8007C2F8
/* 8007C2E8 00078128 3C 80 80 44 */ lis r4, "@1573_8043AD2C"@ha
/* 8007C2EC 0007812C 38 60 05 03 */ li r3, 0x503
/* 8007C2F0 00078130 38 84 AD 2C */ addi r4, r4, "@1573_8043AD2C"@l
/* 8007C2F4 00078134 4B FF B6 6D */ bl LogMsg_0
.global lbl_8007C2F8
lbl_8007C2F8:
/* 8007C2F8 00078138 88 1E 00 15 */ lbz r0, 0x15(r30)
/* 8007C2FC 0007813C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C300 00078140 41 82 00 18 */ beq lbl_8007C318
/* 8007C304 00078144 7F C3 F3 78 */ mr r3, r30
/* 8007C308 00078148 7F E5 FB 78 */ mr r5, r31
/* 8007C30C 0007814C 38 80 17 0B */ li r4, 0x170b
/* 8007C310 00078150 48 00 11 D5 */ bl bta_hh_sm_execute
/* 8007C314 00078154 48 00 00 34 */ b lbl_8007C348
.global lbl_8007C318
lbl_8007C318:
/* 8007C318 00078158 38 00 00 01 */ li r0, 0x1
/* 8007C31C 0007815C 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C320 00078160 98 1E 00 19 */ stb r0, 0x19(r30)
/* 8007C324 00078164 38 80 00 00 */ li r4, 0x0
/* 8007C328 00078168 38 A0 00 10 */ li r5, 0x10
/* 8007C32C 0007816C 4B F8 80 25 */ bl memset
/* 8007C330 00078170 38 61 00 10 */ addi r3, r1, 0x10
/* 8007C334 00078174 38 9E 00 08 */ addi r4, r30, 0x8
/* 8007C338 00078178 4B FF BB FD */ bl bdcpy
/* 8007C33C 0007817C 7F C3 F3 78 */ mr r3, r30
/* 8007C340 00078180 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C344 00078184 4B FF FA D9 */ bl bta_hh_start_sdp
.global lbl_8007C348
lbl_8007C348:
/* 8007C348 00078188 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007C34C 0007818C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007C350 00078190 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007C354 00078194 7C 08 03 A6 */ mtlr r0
/* 8007C358 00078198 38 21 00 20 */ addi r1, r1, 0x20
/* 8007C35C 0007819C 4E 80 00 20 */ blr
.global bta_hh_data_act
bta_hh_data_act:
/* 8007C360 000781A0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8007C364 000781A4 7C 08 02 A6 */ mflr r0
/* 8007C368 000781A8 7C 68 1B 78 */ mr r8, r3
/* 8007C36C 000781AC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8007C370 000781B0 80 A4 00 0C */ lwz r5, 0xc(r4)
/* 8007C374 000781B4 90 A1 00 08 */ stw r5, 0x8(r1)
/* 8007C378 000781B8 A0 05 00 04 */ lhz r0, 0x4(r5)
/* 8007C37C 000781BC A0 64 00 06 */ lhz r3, 0x6(r4)
/* 8007C380 000781C0 7C 85 02 14 */ add r4, r5, r0
/* 8007C384 000781C4 A0 A5 00 02 */ lhz r5, 0x2(r5)
/* 8007C388 000781C8 88 C8 00 1B */ lbz r6, 0x1b(r8)
/* 8007C38C 000781CC 54 63 06 3E */ clrlwi r3, r3, 24
/* 8007C390 000781D0 88 E8 00 13 */ lbz r7, 0x13(r8)
/* 8007C394 000781D4 38 84 00 08 */ addi r4, r4, 0x8
/* 8007C398 000781D8 89 08 00 15 */ lbz r8, 0x15(r8)
/* 8007C39C 000781DC 4B FE EE B5 */ bl bta_hh_co_data
/* 8007C3A0 000781E0 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C3A4 000781E4 4B FF C2 DD */ bl utl_freebuf
/* 8007C3A8 000781E8 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8007C3AC 000781EC 7C 08 03 A6 */ mtlr r0
/* 8007C3B0 000781F0 38 21 00 10 */ addi r1, r1, 0x10
/* 8007C3B4 000781F4 4E 80 00 20 */ blr
.global bta_hh_handsk_act
bta_hh_handsk_act:
/* 8007C3B8 000781F8 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 8007C3BC 000781FC 7C 08 02 A6 */ mflr r0
/* 8007C3C0 00078200 90 01 00 44 */ stw r0, 0x44(r1)
/* 8007C3C4 00078204 93 E1 00 3C */ stw r31, 0x3c(r1)
/* 8007C3C8 00078208 7C 7F 1B 78 */ mr r31, r3
/* 8007C3CC 0007820C 93 C1 00 38 */ stw r30, 0x38(r1)
/* 8007C3D0 00078210 3F C0 80 44 */ lis r30, "@1516_8043ABE8"@ha
/* 8007C3D4 00078214 3B DE AB E8 */ addi r30, r30, "@1516_8043ABE8"@l
/* 8007C3D8 00078218 93 A1 00 34 */ stw r29, 0x34(r1)
/* 8007C3DC 0007821C 7C 9D 23 78 */ mr r29, r4
/* 8007C3E0 00078220 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C3E4 00078224 28 00 00 05 */ cmplwi r0, 0x5
/* 8007C3E8 00078228 41 80 00 74 */ blt lbl_8007C45C
/* 8007C3EC 0007822C A0 03 00 10 */ lhz r0, 0x10(r3)
/* 8007C3F0 00078230 28 00 00 09 */ cmplwi r0, 0x9
/* 8007C3F4 00078234 41 81 00 54 */ bgt lbl_8007C448
/* 8007C3F8 00078238 3C 60 80 44 */ lis r3, "@1637_8043AE68"@ha
/* 8007C3FC 0007823C 54 00 10 3A */ slwi r0, r0, 2
/* 8007C400 00078240 38 63 AE 68 */ addi r3, r3, "@1637_8043AE68"@l
/* 8007C404 00078244 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007C408 00078248 7C 69 03 A6 */ mtctr r3
/* 8007C40C 0007824C 4E 80 04 20 */ bctr
.global lbl_8007C410
lbl_8007C410:
/* 8007C410 00078250 38 BE 01 6C */ addi r5, r30, 0x16c
/* 8007C414 00078254 48 00 00 38 */ b lbl_8007C44C
.global lbl_8007C418
lbl_8007C418:
/* 8007C418 00078258 38 BE 01 80 */ addi r5, r30, 0x180
/* 8007C41C 0007825C 48 00 00 30 */ b lbl_8007C44C
.global lbl_8007C420
lbl_8007C420:
/* 8007C420 00078260 38 BE 01 94 */ addi r5, r30, 0x194
/* 8007C424 00078264 48 00 00 28 */ b lbl_8007C44C
.global lbl_8007C428
lbl_8007C428:
/* 8007C428 00078268 38 BE 01 AC */ addi r5, r30, 0x1ac
/* 8007C42C 0007826C 48 00 00 20 */ b lbl_8007C44C
.global lbl_8007C430
lbl_8007C430:
/* 8007C430 00078270 38 BE 01 C4 */ addi r5, r30, 0x1c4
/* 8007C434 00078274 48 00 00 18 */ b lbl_8007C44C
.global lbl_8007C438
lbl_8007C438:
/* 8007C438 00078278 38 BE 01 D8 */ addi r5, r30, 0x1d8
/* 8007C43C 0007827C 48 00 00 10 */ b lbl_8007C44C
.global lbl_8007C440
lbl_8007C440:
/* 8007C440 00078280 38 BE 01 F0 */ addi r5, r30, 0x1f0
/* 8007C444 00078284 48 00 00 08 */ b lbl_8007C44C
.global lbl_8007C448
lbl_8007C448:
/* 8007C448 00078288 38 BE 02 00 */ addi r5, r30, 0x200
.global lbl_8007C44C
lbl_8007C44C:
/* 8007C44C 0007828C 80 DD 00 08 */ lwz r6, 0x8(r29)
/* 8007C450 00078290 38 9E 02 10 */ addi r4, r30, 0x210
/* 8007C454 00078294 38 60 05 04 */ li r3, 0x504
/* 8007C458 00078298 4B FF B5 09 */ bl LogMsg_0
.global lbl_8007C45C
lbl_8007C45C:
/* 8007C45C 0007829C A0 1F 00 10 */ lhz r0, 0x10(r31)
/* 8007C460 000782A0 28 00 00 09 */ cmplwi r0, 0x9
/* 8007C464 000782A4 41 81 01 78 */ bgt lbl_8007C5DC
/* 8007C468 000782A8 3C 60 80 44 */ lis r3, "@1638_8043AE40"@ha
/* 8007C46C 000782AC 54 00 10 3A */ slwi r0, r0, 2
/* 8007C470 000782B0 38 63 AE 40 */ addi r3, r3, "@1638_8043AE40"@l
/* 8007C474 000782B4 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007C478 000782B8 7C 69 03 A6 */ mtctr r3
/* 8007C47C 000782BC 4E 80 04 20 */ bctr
.global lbl_8007C480
lbl_8007C480:
/* 8007C480 000782C0 38 61 00 18 */ addi r3, r1, 0x18
/* 8007C484 000782C4 38 80 00 00 */ li r4, 0x0
/* 8007C488 000782C8 38 A0 00 0A */ li r5, 0xa
/* 8007C48C 000782CC 4B F8 7E C5 */ bl memset
/* 8007C490 000782D0 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007C494 000782D4 98 01 00 19 */ stb r0, 0x19(r1)
/* 8007C498 000782D8 80 1D 00 08 */ lwz r0, 0x8(r29)
/* 8007C49C 000782DC 2C 00 00 05 */ cmpwi r0, 0x5
/* 8007C4A0 000782E0 40 80 00 14 */ bge lbl_8007C4B4
/* 8007C4A4 000782E4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C4A8 000782E8 41 82 00 18 */ beq lbl_8007C4C0
/* 8007C4AC 000782EC 40 80 00 1C */ bge lbl_8007C4C8
/* 8007C4B0 000782F0 48 00 00 20 */ b lbl_8007C4D0
.global lbl_8007C4B4
lbl_8007C4B4:
/* 8007C4B4 000782F4 2C 00 00 10 */ cmpwi r0, 0x10
/* 8007C4B8 000782F8 40 80 00 18 */ bge lbl_8007C4D0
/* 8007C4BC 000782FC 48 00 00 14 */ b lbl_8007C4D0
.global lbl_8007C4C0
lbl_8007C4C0:
/* 8007C4C0 00078300 38 00 00 00 */ li r0, 0x0
/* 8007C4C4 00078304 48 00 00 10 */ b lbl_8007C4D4
.global lbl_8007C4C8
lbl_8007C4C8:
/* 8007C4C8 00078308 54 00 06 3E */ clrlwi r0, r0, 24
/* 8007C4CC 0007830C 48 00 00 08 */ b lbl_8007C4D4
.global lbl_8007C4D0
lbl_8007C4D0:
/* 8007C4D0 00078310 38 00 00 05 */ li r0, 0x5
.global lbl_8007C4D4
lbl_8007C4D4:
/* 8007C4D4 00078314 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007C4D8 00078318 98 01 00 18 */ stb r0, 0x18(r1)
/* 8007C4DC 0007831C 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007C4E0 00078320 38 81 00 18 */ addi r4, r1, 0x18
/* 8007C4E4 00078324 81 83 02 24 */ lwz r12, 0x224(r3)
/* 8007C4E8 00078328 A0 7F 00 10 */ lhz r3, 0x10(r31)
/* 8007C4EC 0007832C 7D 89 03 A6 */ mtctr r12
/* 8007C4F0 00078330 4E 80 04 21 */ bctrl
/* 8007C4F4 00078334 38 00 00 00 */ li r0, 0x0
/* 8007C4F8 00078338 B0 1F 00 10 */ sth r0, 0x10(r31)
/* 8007C4FC 0007833C 48 00 00 F8 */ b lbl_8007C5F4
.global lbl_8007C500
lbl_8007C500:
/* 8007C500 00078340 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007C504 00078344 98 01 00 09 */ stb r0, 0x9(r1)
/* 8007C508 00078348 80 1D 00 08 */ lwz r0, 0x8(r29)
/* 8007C50C 0007834C 2C 00 00 05 */ cmpwi r0, 0x5
/* 8007C510 00078350 40 80 00 14 */ bge lbl_8007C524
/* 8007C514 00078354 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C518 00078358 41 82 00 18 */ beq lbl_8007C530
/* 8007C51C 0007835C 40 80 00 1C */ bge lbl_8007C538
/* 8007C520 00078360 48 00 00 20 */ b lbl_8007C540
.global lbl_8007C524
lbl_8007C524:
/* 8007C524 00078364 2C 00 00 10 */ cmpwi r0, 0x10
/* 8007C528 00078368 40 80 00 18 */ bge lbl_8007C540
/* 8007C52C 0007836C 48 00 00 14 */ b lbl_8007C540
.global lbl_8007C530
lbl_8007C530:
/* 8007C530 00078370 38 00 00 00 */ li r0, 0x0
/* 8007C534 00078374 48 00 00 10 */ b lbl_8007C544
.global lbl_8007C538
lbl_8007C538:
/* 8007C538 00078378 54 00 06 3E */ clrlwi r0, r0, 24
/* 8007C53C 0007837C 48 00 00 08 */ b lbl_8007C544
.global lbl_8007C540
lbl_8007C540:
/* 8007C540 00078380 38 00 00 05 */ li r0, 0x5
.global lbl_8007C544
lbl_8007C544:
/* 8007C544 00078384 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007C548 00078388 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007C54C 0007838C 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007C550 00078390 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C554 00078394 81 83 02 24 */ lwz r12, 0x224(r3)
/* 8007C558 00078398 A0 7F 00 10 */ lhz r3, 0x10(r31)
/* 8007C55C 0007839C 7D 89 03 A6 */ mtctr r12
/* 8007C560 000783A0 4E 80 04 21 */ bctrl
/* 8007C564 000783A4 38 00 00 00 */ li r0, 0x0
/* 8007C568 000783A8 B0 1F 00 10 */ sth r0, 0x10(r31)
/* 8007C56C 000783AC 48 00 00 88 */ b lbl_8007C5F4
.global lbl_8007C570
lbl_8007C570:
/* 8007C570 000783B0 80 1D 00 08 */ lwz r0, 0x8(r29)
/* 8007C574 000783B4 38 60 00 00 */ li r3, 0x0
/* 8007C578 000783B8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C57C 000783BC 41 82 00 08 */ beq lbl_8007C584
/* 8007C580 000783C0 38 60 00 08 */ li r3, 0x8
.global lbl_8007C584
lbl_8007C584:
/* 8007C584 000783C4 98 61 00 16 */ stb r3, 0x16(r1)
/* 8007C588 000783C8 38 61 00 10 */ addi r3, r1, 0x10
/* 8007C58C 000783CC 38 9F 00 08 */ addi r4, r31, 0x8
/* 8007C590 000783D0 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007C594 000783D4 98 01 00 17 */ stb r0, 0x17(r1)
/* 8007C598 000783D8 4B FF B9 9D */ bl bdcpy
/* 8007C59C 000783DC 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C5A0 000783E0 38 81 00 10 */ addi r4, r1, 0x10
/* 8007C5A4 000783E4 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C5A8 000783E8 A0 7F 00 10 */ lhz r3, 0x10(r31)
/* 8007C5AC 000783EC 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C5B0 000783F0 7D 89 03 A6 */ mtctr r12
/* 8007C5B4 000783F4 4E 80 04 21 */ bctrl
/* 8007C5B8 000783F8 48 00 17 4D */ bl bta_hh_trace_dev_db
/* 8007C5BC 000783FC 38 00 00 00 */ li r0, 0x0
/* 8007C5C0 00078400 B0 1F 00 10 */ sth r0, 0x10(r31)
/* 8007C5C4 00078404 88 01 00 16 */ lbz r0, 0x16(r1)
/* 8007C5C8 00078408 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C5CC 0007840C 40 82 00 28 */ bne lbl_8007C5F4
/* 8007C5D0 00078410 38 00 00 01 */ li r0, 0x1
/* 8007C5D4 00078414 98 1F 00 1A */ stb r0, 0x1a(r31)
/* 8007C5D8 00078418 48 00 00 1C */ b lbl_8007C5F4
.global lbl_8007C5DC
lbl_8007C5DC:
/* 8007C5DC 0007841C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C5E0 00078420 28 00 00 05 */ cmplwi r0, 0x5
/* 8007C5E4 00078424 41 80 00 10 */ blt lbl_8007C5F4
/* 8007C5E8 00078428 38 9E 02 3C */ addi r4, r30, 0x23c
/* 8007C5EC 0007842C 38 60 05 04 */ li r3, 0x504
/* 8007C5F0 00078430 4B FF B3 71 */ bl LogMsg_0
.global lbl_8007C5F4
lbl_8007C5F4:
/* 8007C5F4 00078434 88 9F 00 15 */ lbz r4, 0x15(r31)
/* 8007C5F8 00078438 38 BF 00 08 */ addi r5, r31, 0x8
/* 8007C5FC 0007843C 38 60 00 17 */ li r3, 0x17
/* 8007C600 00078440 4B FF BB F5 */ bl bta_sys_idle
/* 8007C604 00078444 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8007C608 00078448 83 E1 00 3C */ lwz r31, 0x3c(r1)
/* 8007C60C 0007844C 83 C1 00 38 */ lwz r30, 0x38(r1)
/* 8007C610 00078450 83 A1 00 34 */ lwz r29, 0x34(r1)
/* 8007C614 00078454 7C 08 03 A6 */ mtlr r0
/* 8007C618 00078458 38 21 00 40 */ addi r1, r1, 0x40
/* 8007C61C 0007845C 4E 80 00 20 */ blr
.global bta_hh_ctrl_dat_act
bta_hh_ctrl_dat_act:
/* 8007C620 00078460 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8007C624 00078464 7C 08 02 A6 */ mflr r0
/* 8007C628 00078468 90 01 00 34 */ stw r0, 0x34(r1)
/* 8007C62C 0007846C 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8007C630 00078470 7C 7F 1B 78 */ mr r31, r3
/* 8007C634 00078474 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8007C638 00078478 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8007C63C 0007847C 3F A0 80 44 */ lis r29, "@1516_8043ABE8"@ha
/* 8007C640 00078480 3B BD AB E8 */ addi r29, r29, "@1516_8043ABE8"@l
/* 8007C644 00078484 80 84 00 0C */ lwz r4, 0xc(r4)
/* 8007C648 00078488 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C64C 0007848C 90 81 00 08 */ stw r4, 0x8(r1)
/* 8007C650 00078490 28 00 00 05 */ cmplwi r0, 0x5
/* 8007C654 00078494 A0 04 00 04 */ lhz r0, 0x4(r4)
/* 8007C658 00078498 7F C4 02 14 */ add r30, r4, r0
/* 8007C65C 0007849C 41 80 00 70 */ blt lbl_8007C6CC
/* 8007C660 000784A0 A0 03 00 10 */ lhz r0, 0x10(r3)
/* 8007C664 000784A4 28 00 00 09 */ cmplwi r0, 0x9
/* 8007C668 000784A8 41 81 00 54 */ bgt lbl_8007C6BC
/* 8007C66C 000784AC 3C 60 80 44 */ lis r3, "@1677"@ha
/* 8007C670 000784B0 54 00 10 3A */ slwi r0, r0, 2
/* 8007C674 000784B4 38 63 AF 14 */ addi r3, r3, "@1677"@l
/* 8007C678 000784B8 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007C67C 000784BC 7C 69 03 A6 */ mtctr r3
/* 8007C680 000784C0 4E 80 04 20 */ bctr
.global lbl_8007C684
lbl_8007C684:
/* 8007C684 000784C4 38 BD 01 6C */ addi r5, r29, 0x16c
/* 8007C688 000784C8 48 00 00 38 */ b lbl_8007C6C0
.global lbl_8007C68C
lbl_8007C68C:
/* 8007C68C 000784CC 38 BD 01 80 */ addi r5, r29, 0x180
/* 8007C690 000784D0 48 00 00 30 */ b lbl_8007C6C0
.global lbl_8007C694
lbl_8007C694:
/* 8007C694 000784D4 38 BD 01 94 */ addi r5, r29, 0x194
/* 8007C698 000784D8 48 00 00 28 */ b lbl_8007C6C0
.global lbl_8007C69C
lbl_8007C69C:
/* 8007C69C 000784DC 38 BD 01 AC */ addi r5, r29, 0x1ac
/* 8007C6A0 000784E0 48 00 00 20 */ b lbl_8007C6C0
.global lbl_8007C6A4
lbl_8007C6A4:
/* 8007C6A4 000784E4 38 BD 01 C4 */ addi r5, r29, 0x1c4
/* 8007C6A8 000784E8 48 00 00 18 */ b lbl_8007C6C0
.global lbl_8007C6AC
lbl_8007C6AC:
/* 8007C6AC 000784EC 38 BD 01 D8 */ addi r5, r29, 0x1d8
/* 8007C6B0 000784F0 48 00 00 10 */ b lbl_8007C6C0
.global lbl_8007C6B4
lbl_8007C6B4:
/* 8007C6B4 000784F4 38 BD 01 F0 */ addi r5, r29, 0x1f0
/* 8007C6B8 000784F8 48 00 00 08 */ b lbl_8007C6C0
.global lbl_8007C6BC
lbl_8007C6BC:
/* 8007C6BC 000784FC 38 BD 02 00 */ addi r5, r29, 0x200
.global lbl_8007C6C0
lbl_8007C6C0:
/* 8007C6C0 00078500 38 9D 02 A8 */ addi r4, r29, 0x2a8
/* 8007C6C4 00078504 38 60 05 04 */ li r3, 0x504
/* 8007C6C8 00078508 4B FF B2 99 */ bl LogMsg_0
.global lbl_8007C6CC
lbl_8007C6CC:
/* 8007C6CC 0007850C 38 00 00 00 */ li r0, 0x0
/* 8007C6D0 00078510 98 01 00 0C */ stb r0, 0xc(r1)
/* 8007C6D4 00078514 88 1F 00 16 */ lbz r0, 0x16(r31)
/* 8007C6D8 00078518 98 01 00 0D */ stb r0, 0xd(r1)
/* 8007C6DC 0007851C A0 9F 00 10 */ lhz r4, 0x10(r31)
/* 8007C6E0 00078520 2C 04 00 07 */ cmpwi r4, 0x7
/* 8007C6E4 00078524 41 82 00 58 */ beq lbl_8007C73C
/* 8007C6E8 00078528 40 80 00 1C */ bge lbl_8007C704
/* 8007C6EC 0007852C 2C 04 00 05 */ cmpwi r4, 0x5
/* 8007C6F0 00078530 41 82 00 4C */ beq lbl_8007C73C
/* 8007C6F4 00078534 40 80 00 3C */ bge lbl_8007C730
/* 8007C6F8 00078538 2C 04 00 04 */ cmpwi r4, 0x4
/* 8007C6FC 0007853C 40 80 00 20 */ bge lbl_8007C71C
/* 8007C700 00078540 48 00 00 3C */ b lbl_8007C73C
.global lbl_8007C704
lbl_8007C704:
/* 8007C704 00078544 2C 04 00 09 */ cmpwi r4, 0x9
/* 8007C708 00078548 41 82 00 34 */ beq lbl_8007C73C
/* 8007C70C 0007854C 40 80 00 30 */ bge lbl_8007C73C
/* 8007C710 00078550 88 1E 00 08 */ lbz r0, 0x8(r30)
/* 8007C714 00078554 98 01 00 0E */ stb r0, 0xe(r1)
/* 8007C718 00078558 48 00 00 98 */ b lbl_8007C7B0
.global lbl_8007C71C
lbl_8007C71C:
/* 8007C71C 0007855C 80 81 00 08 */ lwz r4, 0x8(r1)
/* 8007C720 00078560 38 61 00 0E */ addi r3, r1, 0xe
/* 8007C724 00078564 38 A0 00 08 */ li r5, 0x8
/* 8007C728 00078568 4B F8 78 D9 */ bl memcpy
/* 8007C72C 0007856C 48 00 00 84 */ b lbl_8007C7B0
.global lbl_8007C730
lbl_8007C730:
/* 8007C730 00078570 88 1E 00 08 */ lbz r0, 0x8(r30)
/* 8007C734 00078574 98 01 00 0E */ stb r0, 0xe(r1)
/* 8007C738 00078578 48 00 00 78 */ b lbl_8007C7B0
.global lbl_8007C73C
lbl_8007C73C:
/* 8007C73C 0007857C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007C740 00078580 28 00 00 05 */ cmplwi r0, 0x5
/* 8007C744 00078584 41 80 00 6C */ blt lbl_8007C7B0
/* 8007C748 00078588 28 04 00 09 */ cmplwi r4, 0x9
/* 8007C74C 0007858C 41 81 00 54 */ bgt lbl_8007C7A0
/* 8007C750 00078590 3C 60 80 44 */ lis r3, "@1678"@ha
/* 8007C754 00078594 54 80 10 3A */ slwi r0, r4, 2
/* 8007C758 00078598 38 63 AE EC */ addi r3, r3, "@1678"@l
/* 8007C75C 0007859C 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007C760 000785A0 7C 69 03 A6 */ mtctr r3
/* 8007C764 000785A4 4E 80 04 20 */ bctr
.global lbl_8007C768
lbl_8007C768:
/* 8007C768 000785A8 38 BD 01 6C */ addi r5, r29, 0x16c
/* 8007C76C 000785AC 48 00 00 38 */ b lbl_8007C7A4
.global lbl_8007C770
lbl_8007C770:
/* 8007C770 000785B0 38 BD 01 80 */ addi r5, r29, 0x180
/* 8007C774 000785B4 48 00 00 30 */ b lbl_8007C7A4
.global lbl_8007C778
lbl_8007C778:
/* 8007C778 000785B8 38 BD 01 94 */ addi r5, r29, 0x194
/* 8007C77C 000785BC 48 00 00 28 */ b lbl_8007C7A4
.global lbl_8007C780
lbl_8007C780:
/* 8007C780 000785C0 38 BD 01 AC */ addi r5, r29, 0x1ac
/* 8007C784 000785C4 48 00 00 20 */ b lbl_8007C7A4
.global lbl_8007C788
lbl_8007C788:
/* 8007C788 000785C8 38 BD 01 C4 */ addi r5, r29, 0x1c4
/* 8007C78C 000785CC 48 00 00 18 */ b lbl_8007C7A4
.global lbl_8007C790
lbl_8007C790:
/* 8007C790 000785D0 38 BD 01 D8 */ addi r5, r29, 0x1d8
/* 8007C794 000785D4 48 00 00 10 */ b lbl_8007C7A4
.global lbl_8007C798
lbl_8007C798:
/* 8007C798 000785D8 38 BD 01 F0 */ addi r5, r29, 0x1f0
/* 8007C79C 000785DC 48 00 00 08 */ b lbl_8007C7A4
.global lbl_8007C7A0
lbl_8007C7A0:
/* 8007C7A0 000785E0 38 BD 02 00 */ addi r5, r29, 0x200
.global lbl_8007C7A4
lbl_8007C7A4:
/* 8007C7A4 000785E4 38 9D 02 CC */ addi r4, r29, 0x2cc
/* 8007C7A8 000785E8 38 60 05 04 */ li r3, 0x504
/* 8007C7AC 000785EC 4B FF B1 B5 */ bl LogMsg_0
.global lbl_8007C7B0
lbl_8007C7B0:
/* 8007C7B0 000785F0 88 9F 00 15 */ lbz r4, 0x15(r31)
/* 8007C7B4 000785F4 38 BF 00 08 */ addi r5, r31, 0x8
/* 8007C7B8 000785F8 38 60 00 17 */ li r3, 0x17
/* 8007C7BC 000785FC 4B FF BA 6D */ bl bta_sys_busy
/* 8007C7C0 00078600 88 9F 00 15 */ lbz r4, 0x15(r31)
/* 8007C7C4 00078604 38 BF 00 08 */ addi r5, r31, 0x8
/* 8007C7C8 00078608 38 60 00 17 */ li r3, 0x17
/* 8007C7CC 0007860C 4B FF BA 29 */ bl bta_sys_idle
/* 8007C7D0 00078610 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C7D4 00078614 38 81 00 0C */ addi r4, r1, 0xc
/* 8007C7D8 00078618 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C7DC 0007861C A0 7F 00 10 */ lhz r3, 0x10(r31)
/* 8007C7E0 00078620 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C7E4 00078624 7D 89 03 A6 */ mtctr r12
/* 8007C7E8 00078628 4E 80 04 21 */ bctrl
/* 8007C7EC 0007862C 38 00 00 00 */ li r0, 0x0
/* 8007C7F0 00078630 38 61 00 08 */ addi r3, r1, 0x8
/* 8007C7F4 00078634 B0 1F 00 10 */ sth r0, 0x10(r31)
/* 8007C7F8 00078638 4B FF BE 89 */ bl utl_freebuf
/* 8007C7FC 0007863C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8007C800 00078640 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8007C804 00078644 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8007C808 00078648 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8007C80C 0007864C 7C 08 03 A6 */ mtlr r0
/* 8007C810 00078650 38 21 00 30 */ addi r1, r1, 0x30
/* 8007C814 00078654 4E 80 00 20 */ blr
.global bta_hh_close_act
bta_hh_close_act:
/* 8007C818 00078658 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007C81C 0007865C 7C 08 02 A6 */ mflr r0
/* 8007C820 00078660 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007C824 00078664 38 00 00 00 */ li r0, 0x0
/* 8007C828 00078668 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007C82C 0007866C 7C 7F 1B 78 */ mr r31, r3
/* 8007C830 00078670 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007C834 00078674 3B C0 00 03 */ li r30, 0x3
/* 8007C838 00078678 B0 01 00 0C */ sth r0, 0xc(r1)
/* 8007C83C 0007867C 88 03 00 17 */ lbz r0, 0x17(r3)
/* 8007C840 00078680 80 C4 00 08 */ lwz r6, 0x8(r4)
/* 8007C844 00078684 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C848 00078688 41 82 00 08 */ beq lbl_8007C850
/* 8007C84C 0007868C 3B C0 00 0D */ li r30, 0xd
.global lbl_8007C850
lbl_8007C850:
/* 8007C850 00078690 88 A3 00 16 */ lbz r5, 0x16(r3)
/* 8007C854 00078694 54 C0 05 6F */ rlwinm. r0, r6, 0, 21, 23
/* 8007C858 00078698 98 A1 00 0D */ stb r5, 0xd(r1)
/* 8007C85C 0007869C 80 04 00 08 */ lwz r0, 0x8(r4)
/* 8007C860 000786A0 98 01 00 0C */ stb r0, 0xc(r1)
/* 8007C864 000786A4 40 82 00 20 */ bne lbl_8007C884
/* 8007C868 000786A8 28 06 00 0F */ cmplwi r6, 0xf
/* 8007C86C 000786AC 41 82 00 18 */ beq lbl_8007C884
/* 8007C870 000786B0 28 06 00 0E */ cmplwi r6, 0xe
/* 8007C874 000786B4 41 82 00 10 */ beq lbl_8007C884
/* 8007C878 000786B8 88 03 00 1A */ lbz r0, 0x1a(r3)
/* 8007C87C 000786BC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C880 000786C0 40 82 00 58 */ bne lbl_8007C8D8
.global lbl_8007C884
lbl_8007C884:
/* 8007C884 000786C4 88 63 00 16 */ lbz r3, 0x16(r3)
/* 8007C888 000786C8 28 06 00 0F */ cmplwi r6, 0xf
/* 8007C88C 000786CC 38 00 00 06 */ li r0, 0x6
/* 8007C890 000786D0 98 61 00 17 */ stb r3, 0x17(r1)
/* 8007C894 000786D4 40 82 00 08 */ bne lbl_8007C89C
/* 8007C898 000786D8 38 00 00 0C */ li r0, 0xc
.global lbl_8007C89C
lbl_8007C89C:
/* 8007C89C 000786DC 98 01 00 16 */ stb r0, 0x16(r1)
/* 8007C8A0 000786E0 38 61 00 10 */ addi r3, r1, 0x10
/* 8007C8A4 000786E4 38 9F 00 08 */ addi r4, r31, 0x8
/* 8007C8A8 000786E8 4B FF B6 8D */ bl bdcpy
/* 8007C8AC 000786EC 88 7F 00 16 */ lbz r3, 0x16(r31)
/* 8007C8B0 000786F0 48 01 16 29 */ bl HID_HostCloseDev
/* 8007C8B4 000786F4 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C8B8 000786F8 38 81 00 10 */ addi r4, r1, 0x10
/* 8007C8BC 000786FC 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C8C0 00078700 38 60 00 02 */ li r3, 0x2
/* 8007C8C4 00078704 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C8C8 00078708 7D 89 03 A6 */ mtctr r12
/* 8007C8CC 0007870C 4E 80 04 21 */ bctrl
/* 8007C8D0 00078710 48 00 14 35 */ bl bta_hh_trace_dev_db
/* 8007C8D4 00078714 48 00 01 2C */ b lbl_8007CA00
.global lbl_8007C8D8
lbl_8007C8D8:
/* 8007C8D8 00078718 88 63 00 16 */ lbz r3, 0x16(r3)
/* 8007C8DC 0007871C 88 9F 00 15 */ lbz r4, 0x15(r31)
/* 8007C8E0 00078720 4B FA 7B C1 */ bl DefaultSwitchThreadCallback
/* 8007C8E4 00078724 88 9F 00 15 */ lbz r4, 0x15(r31)
/* 8007C8E8 00078728 38 BF 00 08 */ addi r5, r31, 0x8
/* 8007C8EC 0007872C 38 60 00 17 */ li r3, 0x17
/* 8007C8F0 00078730 4B FF B8 0D */ bl bta_sys_conn_close
/* 8007C8F4 00078734 3C 80 80 4F */ lis r4, bta_hh_cb@ha
/* 8007C8F8 00078738 38 00 00 00 */ li r0, 0x0
/* 8007C8FC 0007873C 38 84 5D 28 */ addi r4, r4, bta_hh_cb@l
/* 8007C900 00078740 88 64 02 2D */ lbz r3, 0x22d(r4)
/* 8007C904 00078744 38 63 FF FF */ addi r3, r3, -0x1
/* 8007C908 00078748 98 64 02 2D */ stb r3, 0x22d(r4)
/* 8007C90C 0007874C 98 1F 00 1A */ stb r0, 0x1a(r31)
/* 8007C910 00078750 88 01 00 0C */ lbz r0, 0xc(r1)
/* 8007C914 00078754 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C918 00078758 41 82 00 0C */ beq lbl_8007C924
/* 8007C91C 0007875C 38 00 00 06 */ li r0, 0x6
/* 8007C920 00078760 98 01 00 0C */ stb r0, 0xc(r1)
.global lbl_8007C924
lbl_8007C924:
/* 8007C924 00078764 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007C928 00078768 7F C3 F3 78 */ mr r3, r30
/* 8007C92C 0007876C 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007C930 00078770 38 81 00 0C */ addi r4, r1, 0xc
/* 8007C934 00078774 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007C938 00078778 7D 89 03 A6 */ mtctr r12
/* 8007C93C 0007877C 4E 80 04 21 */ bctrl
/* 8007C940 00078780 88 1F 00 17 */ lbz r0, 0x17(r31)
/* 8007C944 00078784 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C948 00078788 41 82 00 14 */ beq lbl_8007C95C
/* 8007C94C 0007878C 88 7F 00 16 */ lbz r3, 0x16(r31)
/* 8007C950 00078790 48 01 13 1D */ bl HID_HostRemoveDev
/* 8007C954 00078794 7F E3 FB 78 */ mr r3, r31
/* 8007C958 00078798 48 00 12 1D */ bl bta_hh_clean_up_kdev
.global lbl_8007C95C
lbl_8007C95C:
/* 8007C95C 0007879C 48 00 13 A9 */ bl bta_hh_trace_dev_db
/* 8007C960 000787A0 38 80 00 00 */ li r4, 0x0
/* 8007C964 000787A4 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007C968 000787A8 98 9F 00 17 */ stb r4, 0x17(r31)
/* 8007C96C 000787AC 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007C970 000787B0 B0 9F 00 10 */ sth r4, 0x10(r31)
/* 8007C974 000787B4 88 03 02 2D */ lbz r0, 0x22d(r3)
/* 8007C978 000787B8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C97C 000787BC 40 82 00 84 */ bne lbl_8007CA00
/* 8007C980 000787C0 88 03 02 2E */ lbz r0, 0x22e(r3)
/* 8007C984 000787C4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007C988 000787C8 41 82 00 78 */ beq lbl_8007CA00
/* 8007C98C 000787CC 98 81 00 08 */ stb r4, 0x8(r1)
/* 8007C990 000787D0 48 01 10 69 */ bl HID_HostDeregister
/* 8007C994 000787D4 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007C998 000787D8 41 82 00 0C */ beq lbl_8007C9A4
/* 8007C99C 000787DC 38 00 00 06 */ li r0, 0x6
/* 8007C9A0 000787E0 98 01 00 08 */ stb r0, 0x8(r1)
.global lbl_8007C9A4
lbl_8007C9A4:
/* 8007C9A4 000787E4 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007C9A8 000787E8 3B C0 00 00 */ li r30, 0x0
/* 8007C9AC 000787EC 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
.global lbl_8007C9B0
lbl_8007C9B0:
/* 8007C9B0 000787F0 57 C0 2C F4 */ rlwinm r0, r30, 5, 19, 26
/* 8007C9B4 000787F4 7C 7F 02 14 */ add r3, r31, r0
/* 8007C9B8 000787F8 38 63 00 14 */ addi r3, r3, 0x14
/* 8007C9BC 000787FC 4B FF BC C5 */ bl utl_freebuf
/* 8007C9C0 00078800 3B DE 00 01 */ addi r30, r30, 0x1
/* 8007C9C4 00078804 28 1E 00 10 */ cmplwi r30, 0x10
/* 8007C9C8 00078808 41 80 FF E8 */ blt lbl_8007C9B0
/* 8007C9CC 0007880C 3F E0 80 4F */ lis r31, bta_hh_cb@ha
/* 8007C9D0 00078810 3B FF 5D 28 */ addi r31, r31, bta_hh_cb@l
/* 8007C9D4 00078814 38 7F 02 28 */ addi r3, r31, 0x228
/* 8007C9D8 00078818 4B FF BC A9 */ bl utl_freebuf
/* 8007C9DC 0007881C 81 9F 02 24 */ lwz r12, 0x224(r31)
/* 8007C9E0 00078820 38 81 00 08 */ addi r4, r1, 0x8
/* 8007C9E4 00078824 38 60 00 01 */ li r3, 0x1
/* 8007C9E8 00078828 7D 89 03 A6 */ mtctr r12
/* 8007C9EC 0007882C 4E 80 04 21 */ bctrl
/* 8007C9F0 00078830 7F E3 FB 78 */ mr r3, r31
/* 8007C9F4 00078834 38 80 00 00 */ li r4, 0x0
/* 8007C9F8 00078838 38 A0 02 30 */ li r5, 0x230
/* 8007C9FC 0007883C 4B F8 79 55 */ bl memset
.global lbl_8007CA00
lbl_8007CA00:
/* 8007CA00 00078840 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007CA04 00078844 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007CA08 00078848 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007CA0C 0007884C 7C 08 03 A6 */ mtlr r0
/* 8007CA10 00078850 38 21 00 20 */ addi r1, r1, 0x20
/* 8007CA14 00078854 4E 80 00 20 */ blr
.global bta_hh_get_dscp_act
bta_hh_get_dscp_act:
/* 8007CA18 00078858 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007CA1C 0007885C 7C 64 1B 78 */ mr r4, r3
/* 8007CA20 00078860 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007CA24 00078864 38 60 00 0A */ li r3, 0xa
/* 8007CA28 00078868 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007CA2C 0007886C 7D 89 03 A6 */ mtctr r12
/* 8007CA30 00078870 4E 80 04 20 */ bctr
.global bta_hh_maint_dev_act
bta_hh_maint_dev_act:
/* 8007CA34 00078874 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007CA38 00078878 7C 08 02 A6 */ mflr r0
/* 8007CA3C 0007887C 38 A0 00 06 */ li r5, 0x6
/* 8007CA40 00078880 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007CA44 00078884 38 00 00 FF */ li r0, 0xff
/* 8007CA48 00078888 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007CA4C 0007888C 7C 9F 23 78 */ mr r31, r4
/* 8007CA50 00078890 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007CA54 00078894 7C 7E 1B 78 */ mr r30, r3
/* 8007CA58 00078898 98 A1 00 16 */ stb r5, 0x16(r1)
/* 8007CA5C 0007889C 98 01 00 17 */ stb r0, 0x17(r1)
/* 8007CA60 000788A0 A0 04 00 10 */ lhz r0, 0x10(r4)
/* 8007CA64 000788A4 2C 00 00 0C */ cmpwi r0, 0xc
/* 8007CA68 000788A8 41 82 00 9C */ beq lbl_8007CB04
/* 8007CA6C 000788AC 40 80 00 DC */ bge lbl_8007CB48
/* 8007CA70 000788B0 2C 00 00 0B */ cmpwi r0, 0xb
/* 8007CA74 000788B4 40 80 00 08 */ bge lbl_8007CA7C
/* 8007CA78 000788B8 48 00 00 D0 */ b lbl_8007CB48
.global lbl_8007CA7C
lbl_8007CA7C:
/* 8007CA7C 000788BC 38 61 00 10 */ addi r3, r1, 0x10
/* 8007CA80 000788C0 38 84 00 08 */ addi r4, r4, 0x8
/* 8007CA84 000788C4 4B FF B4 B1 */ bl bdcpy
/* 8007CA88 000788C8 88 7E 00 16 */ lbz r3, 0x16(r30)
/* 8007CA8C 000788CC 28 03 00 FF */ cmplwi r3, 0xff
/* 8007CA90 000788D0 40 82 00 60 */ bne lbl_8007CAF0
/* 8007CA94 000788D4 A0 9F 00 0E */ lhz r4, 0xe(r31)
/* 8007CA98 000788D8 38 7F 00 08 */ addi r3, r31, 0x8
/* 8007CA9C 000788DC 38 A1 00 08 */ addi r5, r1, 0x8
/* 8007CAA0 000788E0 48 01 10 3D */ bl HID_HostAddDev
/* 8007CAA4 000788E4 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007CAA8 000788E8 40 82 00 54 */ bne lbl_8007CAFC
/* 8007CAAC 000788EC 88 81 00 08 */ lbz r4, 0x8(r1)
/* 8007CAB0 000788F0 38 00 00 00 */ li r0, 0x0
/* 8007CAB4 000788F4 98 01 00 16 */ stb r0, 0x16(r1)
/* 8007CAB8 000788F8 7F C3 F3 78 */ mr r3, r30
/* 8007CABC 000788FC 38 C0 00 00 */ li r6, 0x0
/* 8007CAC0 00078900 98 81 00 17 */ stb r4, 0x17(r1)
/* 8007CAC4 00078904 A0 BF 00 0E */ lhz r5, 0xe(r31)
/* 8007CAC8 00078908 88 FF 00 12 */ lbz r7, 0x12(r31)
/* 8007CACC 0007890C 89 1F 00 13 */ lbz r8, 0x13(r31)
/* 8007CAD0 00078910 48 00 11 25 */ bl bta_hh_add_device_to_list
/* 8007CAD4 00078914 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007CAD8 00078918 88 01 00 08 */ lbz r0, 0x8(r1)
/* 8007CADC 0007891C 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007CAE0 00078920 88 9E 00 12 */ lbz r4, 0x12(r30)
/* 8007CAE4 00078924 7C 63 02 14 */ add r3, r3, r0
/* 8007CAE8 00078928 98 83 02 14 */ stb r4, 0x214(r3)
/* 8007CAEC 0007892C 48 00 00 10 */ b lbl_8007CAFC
.global lbl_8007CAF0
lbl_8007CAF0:
/* 8007CAF0 00078930 38 00 00 00 */ li r0, 0x0
/* 8007CAF4 00078934 98 61 00 17 */ stb r3, 0x17(r1)
/* 8007CAF8 00078938 98 01 00 16 */ stb r0, 0x16(r1)
.global lbl_8007CAFC
lbl_8007CAFC:
/* 8007CAFC 0007893C 48 00 12 09 */ bl bta_hh_trace_dev_db
/* 8007CB00 00078940 48 00 00 64 */ b lbl_8007CB64
.global lbl_8007CB04
lbl_8007CB04:
/* 8007CB04 00078944 A0 04 00 06 */ lhz r0, 0x6(r4)
/* 8007CB08 00078948 38 61 00 10 */ addi r3, r1, 0x10
/* 8007CB0C 0007894C 38 9E 00 08 */ addi r4, r30, 0x8
/* 8007CB10 00078950 98 01 00 17 */ stb r0, 0x17(r1)
/* 8007CB14 00078954 4B FF B4 21 */ bl bdcpy
/* 8007CB18 00078958 88 1E 00 1C */ lbz r0, 0x1c(r30)
/* 8007CB1C 0007895C 28 00 00 03 */ cmplwi r0, 0x3
/* 8007CB20 00078960 41 82 00 44 */ beq lbl_8007CB64
/* 8007CB24 00078964 88 61 00 17 */ lbz r3, 0x17(r1)
/* 8007CB28 00078968 48 01 11 45 */ bl HID_HostRemoveDev
/* 8007CB2C 0007896C 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8007CB30 00078970 40 82 00 34 */ bne lbl_8007CB64
/* 8007CB34 00078974 38 00 00 00 */ li r0, 0x0
/* 8007CB38 00078978 7F C3 F3 78 */ mr r3, r30
/* 8007CB3C 0007897C 98 01 00 16 */ stb r0, 0x16(r1)
/* 8007CB40 00078980 48 00 10 35 */ bl bta_hh_clean_up_kdev
/* 8007CB44 00078984 48 00 00 20 */ b lbl_8007CB64
.global lbl_8007CB48
lbl_8007CB48:
/* 8007CB48 00078988 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007CB4C 0007898C 28 00 00 05 */ cmplwi r0, 0x5
/* 8007CB50 00078990 41 80 00 14 */ blt lbl_8007CB64
/* 8007CB54 00078994 3C 80 80 44 */ lis r4, "@1713"@ha
/* 8007CB58 00078998 38 60 05 04 */ li r3, 0x504
/* 8007CB5C 0007899C 38 84 AF 40 */ addi r4, r4, "@1713"@l
/* 8007CB60 000789A0 4B FF AE 01 */ bl LogMsg_0
.global lbl_8007CB64
lbl_8007CB64:
/* 8007CB64 000789A4 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007CB68 000789A8 38 81 00 10 */ addi r4, r1, 0x10
/* 8007CB6C 000789AC 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007CB70 000789B0 A0 7F 00 10 */ lhz r3, 0x10(r31)
/* 8007CB74 000789B4 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007CB78 000789B8 7D 89 03 A6 */ mtctr r12
/* 8007CB7C 000789BC 4E 80 04 21 */ bctrl
/* 8007CB80 000789C0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007CB84 000789C4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007CB88 000789C8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007CB8C 000789CC 7C 08 03 A6 */ mtlr r0
/* 8007CB90 000789D0 38 21 00 20 */ addi r1, r1, 0x20
/* 8007CB94 000789D4 4E 80 00 20 */ blr
.global bta_hh_get_acl_q_info
bta_hh_get_acl_q_info:
/* 8007CB98 000789D8 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 8007CB9C 000789DC 7C 08 02 A6 */ mflr r0
/* 8007CBA0 000789E0 90 01 00 44 */ stw r0, 0x44(r1)
/* 8007CBA4 000789E4 39 61 00 40 */ addi r11, r1, 0x40
/* 8007CBA8 000789E8 4B F8 A7 95 */ bl lbl_8000733C
/* 8007CBAC 000789EC 38 61 00 08 */ addi r3, r1, 0x8
/* 8007CBB0 000789F0 3B E0 00 00 */ li r31, 0x0
/* 8007CBB4 000789F4 38 80 00 00 */ li r4, 0x0
/* 8007CBB8 000789F8 38 A0 00 1E */ li r5, 0x1e
/* 8007CBBC 000789FC 4B F8 77 95 */ bl memset
/* 8007CBC0 00078A00 3F C0 80 50 */ lis r30, hh_cb@ha
/* 8007CBC4 00078A04 3F A0 80 4F */ lis r29, bta_hh_cb@ha
/* 8007CBC8 00078A08 3B DE 8C 18 */ addi r30, r30, hh_cb@l
/* 8007CBCC 00078A0C 3B 60 00 00 */ li r27, 0x0
/* 8007CBD0 00078A10 3B BD 5D 28 */ addi r29, r29, bta_hh_cb@l
.global lbl_8007CBD4
lbl_8007CBD4:
/* 8007CBD4 00078A14 57 60 2C F4 */ rlwinm r0, r27, 5, 19, 26
/* 8007CBD8 00078A18 7C 7D 02 14 */ add r3, r29, r0
/* 8007CBDC 00078A1C 88 03 00 28 */ lbz r0, 0x28(r3)
/* 8007CBE0 00078A20 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007CBE4 00078A24 41 82 00 70 */ beq lbl_8007CC54
/* 8007CBE8 00078A28 88 03 00 2C */ lbz r0, 0x2c(r3)
/* 8007CBEC 00078A2C 28 00 00 03 */ cmplwi r0, 0x3
/* 8007CBF0 00078A30 40 82 00 64 */ bne lbl_8007CC54
/* 8007CBF4 00078A34 88 83 00 26 */ lbz r4, 0x26(r3)
/* 8007CBF8 00078A38 57 E0 06 3E */ clrlwi r0, r31, 24
/* 8007CBFC 00078A3C 1C A0 00 06 */ mulli r5, r0, 0x6
/* 8007CC00 00078A40 3B 81 00 08 */ addi r28, r1, 0x8
/* 8007CC04 00078A44 38 60 00 00 */ li r3, 0x0
/* 8007CC08 00078A48 7F 9C 2A 14 */ add r28, r28, r5
/* 8007CC0C 00078A4C 1C 04 00 34 */ mulli r0, r4, 0x34
/* 8007CC10 00078A50 98 9C 00 06 */ stb r4, 0x6(r28)
/* 8007CC14 00078A54 7C 9E 02 14 */ add r4, r30, r0
/* 8007CC18 00078A58 A0 84 00 16 */ lhz r4, 0x16(r4)
/* 8007CC1C 00078A5C 48 01 8E D5 */ bl l2cu_find_ccb_by_cid
/* 8007CC20 00078A60 2C 03 00 00 */ cmpwi r3, 0x0
/* 8007CC24 00078A64 41 82 00 2C */ beq lbl_8007CC50
/* 8007CC28 00078A68 80 63 00 10 */ lwz r3, 0x10(r3)
/* 8007CC2C 00078A6C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8007CC30 00078A70 41 82 00 20 */ beq lbl_8007CC50
/* 8007CC34 00078A74 88 03 00 00 */ lbz r0, 0x0(r3)
/* 8007CC38 00078A78 2C 00 00 00 */ cmpwi r0, 0x0
/* 8007CC3C 00078A7C 41 82 00 14 */ beq lbl_8007CC50
/* 8007CC40 00078A80 A0 03 00 4C */ lhz r0, 0x4c(r3)
/* 8007CC44 00078A84 B0 1C 00 08 */ sth r0, 0x8(r28)
/* 8007CC48 00078A88 A0 03 00 38 */ lhz r0, 0x38(r3)
/* 8007CC4C 00078A8C B0 1C 00 0A */ sth r0, 0xa(r28)
.global lbl_8007CC50
lbl_8007CC50:
/* 8007CC50 00078A90 3B FF 00 01 */ addi r31, r31, 0x1
.global lbl_8007CC54
lbl_8007CC54:
/* 8007CC54 00078A94 3B 7B 00 01 */ addi r27, r27, 0x1
/* 8007CC58 00078A98 28 1B 00 10 */ cmplwi r27, 0x10
/* 8007CC5C 00078A9C 41 80 FF 78 */ blt lbl_8007CBD4
/* 8007CC60 00078AA0 3C 80 80 50 */ lis r4, l2cb@ha
/* 8007CC64 00078AA4 3C 60 80 4F */ lis r3, bta_hh_cb@ha
/* 8007CC68 00078AA8 38 84 90 20 */ addi r4, r4, l2cb@l
/* 8007CC6C 00078AAC 57 E0 06 3E */ clrlwi r0, r31, 24
/* 8007CC70 00078AB0 38 63 5D 28 */ addi r3, r3, bta_hh_cb@l
/* 8007CC74 00078AB4 A0 C4 00 04 */ lhz r6, 0x4(r4)
/* 8007CC78 00078AB8 A0 A4 00 02 */ lhz r5, 0x2(r4)
/* 8007CC7C 00078ABC 38 81 00 08 */ addi r4, r1, 0x8
/* 8007CC80 00078AC0 81 83 02 24 */ lwz r12, 0x224(r3)
/* 8007CC84 00078AC4 38 60 00 0F */ li r3, 0xf
/* 8007CC88 00078AC8 B0 C1 00 08 */ sth r6, 0x8(r1)
/* 8007CC8C 00078ACC B0 A1 00 0A */ sth r5, 0xa(r1)
/* 8007CC90 00078AD0 B0 01 00 0C */ sth r0, 0xc(r1)
/* 8007CC94 00078AD4 7D 89 03 A6 */ mtctr r12
/* 8007CC98 00078AD8 4E 80 04 21 */ bctrl
/* 8007CC9C 00078ADC 39 61 00 40 */ addi r11, r1, 0x40
/* 8007CCA0 00078AE0 4B F8 A6 E9 */ bl lbl_80007388
/* 8007CCA4 00078AE4 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8007CCA8 00078AE8 7C 08 03 A6 */ mtlr r0
/* 8007CCAC 00078AEC 38 21 00 40 */ addi r1, r1, 0x40
/* 8007CCB0 00078AF0 4E 80 00 20 */ blr
.global bta_hh_write_dev_act
bta_hh_write_dev_act:
/* 8007CCB4 00078AF4 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007CCB8 00078AF8 7C 08 02 A6 */ mflr r0
/* 8007CCBC 00078AFC 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007CCC0 00078B00 38 00 00 00 */ li r0, 0x0
/* 8007CCC4 00078B04 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007CCC8 00078B08 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007CCCC 00078B0C 7C 9E 23 78 */ mr r30, r4
/* 8007CCD0 00078B10 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007CCD4 00078B14 7C 7D 1B 78 */ mr r29, r3
/* 8007CCD8 00078B18 B0 01 00 08 */ sth r0, 0x8(r1)
/* 8007CCDC 00078B1C 8B E4 00 08 */ lbz r31, 0x8(r4)
/* 8007CCE0 00078B20 88 03 00 16 */ lbz r0, 0x16(r3)
/* 8007CCE4 00078B24 98 01 00 09 */ stb r0, 0x9(r1)
/* 8007CCE8 00078B28 88 63 00 16 */ lbz r3, 0x16(r3)
/* 8007CCEC 00078B2C 88 84 00 08 */ lbz r4, 0x8(r4)
/* 8007CCF0 00078B30 88 BE 00 09 */ lbz r5, 0x9(r30)
/* 8007CCF4 00078B34 A0 DE 00 0C */ lhz r6, 0xc(r30)
/* 8007CCF8 00078B38 88 FE 00 0A */ lbz r7, 0xa(r30)
/* 8007CCFC 00078B3C 81 1E 00 10 */ lwz r8, 0x10(r30)
/* 8007CD00 00078B40 48 01 10 99 */ bl HID_HostWriteDev
/* 8007CD04 00078B44 54 65 06 3F */ clrlwi. r5, r3, 24
/* 8007CD08 00078B48 41 82 00 88 */ beq lbl_8007CD90
/* 8007CD0C 00078B4C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007CD10 00078B50 28 00 00 01 */ cmplwi r0, 0x1
/* 8007CD14 00078B54 41 80 00 14 */ blt lbl_8007CD28
/* 8007CD18 00078B58 3C 80 80 44 */ lis r4, "@1760"@ha
/* 8007CD1C 00078B5C 38 60 05 00 */ li r3, 0x500
/* 8007CD20 00078B60 38 84 AF 50 */ addi r4, r4, "@1760"@l
/* 8007CD24 00078B64 4B FF AC 3D */ bl LogMsg_0
.global lbl_8007CD28
lbl_8007CD28:
/* 8007CD28 00078B68 38 00 00 06 */ li r0, 0x6
/* 8007CD2C 00078B6C 98 01 00 08 */ stb r0, 0x8(r1)
/* 8007CD30 00078B70 88 1E 00 08 */ lbz r0, 0x8(r30)
/* 8007CD34 00078B74 28 00 00 01 */ cmplwi r0, 0x1
/* 8007CD38 00078B78 41 82 00 2C */ beq lbl_8007CD64
/* 8007CD3C 00078B7C 28 00 00 0A */ cmplwi r0, 0xa
/* 8007CD40 00078B80 41 82 00 24 */ beq lbl_8007CD64
/* 8007CD44 00078B84 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007CD48 00078B88 7F E3 FB 78 */ mr r3, r31
/* 8007CD4C 00078B8C 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007CD50 00078B90 38 81 00 08 */ addi r4, r1, 0x8
/* 8007CD54 00078B94 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007CD58 00078B98 7D 89 03 A6 */ mtctr r12
/* 8007CD5C 00078B9C 4E 80 04 21 */ bctrl
/* 8007CD60 00078BA0 48 00 01 00 */ b lbl_8007CE60
.global lbl_8007CD64
lbl_8007CD64:
/* 8007CD64 00078BA4 88 1E 00 09 */ lbz r0, 0x9(r30)
/* 8007CD68 00078BA8 28 00 00 05 */ cmplwi r0, 0x5
/* 8007CD6C 00078BAC 40 82 00 F4 */ bne lbl_8007CE60
/* 8007CD70 00078BB0 3C A0 80 4F */ lis r5, bta_hh_cb@ha
/* 8007CD74 00078BB4 38 81 00 08 */ addi r4, r1, 0x8
/* 8007CD78 00078BB8 38 A5 5D 28 */ addi r5, r5, bta_hh_cb@l
/* 8007CD7C 00078BBC 38 60 00 0D */ li r3, 0xd
/* 8007CD80 00078BC0 81 85 02 24 */ lwz r12, 0x224(r5)
/* 8007CD84 00078BC4 7D 89 03 A6 */ mtctr r12
/* 8007CD88 00078BC8 4E 80 04 21 */ bctrl
/* 8007CD8C 00078BCC 48 00 00 D4 */ b lbl_8007CE60
.global lbl_8007CD90
lbl_8007CD90:
/* 8007CD90 00078BD0 88 BE 00 08 */ lbz r5, 0x8(r30)
/* 8007CD94 00078BD4 2C 05 00 0A */ cmpwi r5, 0xa
/* 8007CD98 00078BD8 41 82 00 2C */ beq lbl_8007CDC4
/* 8007CD9C 00078BDC 40 80 00 40 */ bge lbl_8007CDDC
/* 8007CDA0 00078BE0 2C 05 00 01 */ cmpwi r5, 0x1
/* 8007CDA4 00078BE4 41 82 00 20 */ beq lbl_8007CDC4
/* 8007CDA8 00078BE8 41 80 00 34 */ blt lbl_8007CDDC
/* 8007CDAC 00078BEC 2C 05 00 04 */ cmpwi r5, 0x4
/* 8007CDB0 00078BF0 40 80 00 0C */ bge lbl_8007CDBC
/* 8007CDB4 00078BF4 48 00 00 28 */ b lbl_8007CDDC
/* 8007CDB8 00078BF8 48 00 00 24 */ b lbl_8007CDDC
.global lbl_8007CDBC
lbl_8007CDBC:
/* 8007CDBC 00078BFC B3 FD 00 10 */ sth r31, 0x10(r29)
/* 8007CDC0 00078C00 48 00 00 38 */ b lbl_8007CDF8
.global lbl_8007CDC4
lbl_8007CDC4:
/* 8007CDC4 00078C04 88 1E 00 09 */ lbz r0, 0x9(r30)
/* 8007CDC8 00078C08 28 00 00 05 */ cmplwi r0, 0x5
/* 8007CDCC 00078C0C 40 82 00 2C */ bne lbl_8007CDF8
/* 8007CDD0 00078C10 38 00 00 01 */ li r0, 0x1
/* 8007CDD4 00078C14 98 1D 00 17 */ stb r0, 0x17(r29)
/* 8007CDD8 00078C18 48 00 00 20 */ b lbl_8007CDF8
.global lbl_8007CDDC
lbl_8007CDDC:
/* 8007CDDC 00078C1C 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007CDE0 00078C20 28 00 00 05 */ cmplwi r0, 0x5
/* 8007CDE4 00078C24 41 80 00 14 */ blt lbl_8007CDF8
/* 8007CDE8 00078C28 3C 80 80 44 */ lis r4, "@1761"@ha
/* 8007CDEC 00078C2C 38 60 05 04 */ li r3, 0x504
/* 8007CDF0 00078C30 38 84 AF 6C */ addi r4, r4, "@1761"@l
/* 8007CDF4 00078C34 4B FF AB 6D */ bl LogMsg_0
.global lbl_8007CDF8
lbl_8007CDF8:
/* 8007CDF8 00078C38 88 1E 00 08 */ lbz r0, 0x8(r30)
/* 8007CDFC 00078C3C 28 00 00 01 */ cmplwi r0, 0x1
/* 8007CE00 00078C40 41 82 00 28 */ beq lbl_8007CE28
/* 8007CE04 00078C44 88 9D 00 15 */ lbz r4, 0x15(r29)
/* 8007CE08 00078C48 38 BD 00 08 */ addi r5, r29, 0x8
/* 8007CE0C 00078C4C 38 60 00 17 */ li r3, 0x17
/* 8007CE10 00078C50 4B FF B4 19 */ bl bta_sys_busy
/* 8007CE14 00078C54 88 9D 00 15 */ lbz r4, 0x15(r29)
/* 8007CE18 00078C58 38 BD 00 08 */ addi r5, r29, 0x8
/* 8007CE1C 00078C5C 38 60 00 17 */ li r3, 0x17
/* 8007CE20 00078C60 4B FF B3 D5 */ bl bta_sys_idle
/* 8007CE24 00078C64 48 00 00 3C */ b lbl_8007CE60
.global lbl_8007CE28
lbl_8007CE28:
/* 8007CE28 00078C68 88 1E 00 09 */ lbz r0, 0x9(r30)
/* 8007CE2C 00078C6C 28 00 00 03 */ cmplwi r0, 0x3
/* 8007CE30 00078C70 40 82 00 18 */ bne lbl_8007CE48
/* 8007CE34 00078C74 88 9D 00 15 */ lbz r4, 0x15(r29)
/* 8007CE38 00078C78 38 BD 00 08 */ addi r5, r29, 0x8
/* 8007CE3C 00078C7C 38 60 00 17 */ li r3, 0x17
/* 8007CE40 00078C80 4B FF B3 81 */ bl bta_sys_sco_close
/* 8007CE44 00078C84 48 00 00 1C */ b lbl_8007CE60
.global lbl_8007CE48
lbl_8007CE48:
/* 8007CE48 00078C88 28 00 00 04 */ cmplwi r0, 0x4
/* 8007CE4C 00078C8C 40 82 00 14 */ bne lbl_8007CE60
/* 8007CE50 00078C90 88 9D 00 15 */ lbz r4, 0x15(r29)
/* 8007CE54 00078C94 38 BD 00 08 */ addi r5, r29, 0x8
/* 8007CE58 00078C98 38 60 00 17 */ li r3, 0x17
/* 8007CE5C 00078C9C 4B FF B3 CD */ bl bta_sys_busy
.global lbl_8007CE60
lbl_8007CE60:
/* 8007CE60 00078CA0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007CE64 00078CA4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007CE68 00078CA8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007CE6C 00078CAC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007CE70 00078CB0 7C 08 03 A6 */ mtlr r0
/* 8007CE74 00078CB4 38 21 00 20 */ addi r1, r1, 0x20
/* 8007CE78 00078CB8 4E 80 00 20 */ blr
.global bta_hh_cback
bta_hh_cback:
/* 8007CE7C 00078CBC 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8007CE80 00078CC0 7C 08 02 A6 */ mflr r0
/* 8007CE84 00078CC4 3C E0 80 44 */ lis r7, "@1516_8043ABE8"@ha
/* 8007CE88 00078CC8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8007CE8C 00078CCC 38 E7 AB E8 */ addi r7, r7, "@1516_8043ABE8"@l
/* 8007CE90 00078CD0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8007CE94 00078CD4 3B E0 17 10 */ li r31, 0x1710
/* 8007CE98 00078CD8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8007CE9C 00078CDC 7C BE 2B 78 */ mr r30, r5
/* 8007CEA0 00078CE0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8007CEA4 00078CE4 7C 9D 23 78 */ mr r29, r4
/* 8007CEA8 00078CE8 93 81 00 10 */ stw r28, 0x10(r1)
/* 8007CEAC 00078CEC 7C 7C 1B 78 */ mr r28, r3
/* 8007CEB0 00078CF0 88 0D EA F0 */ lbz r0, appl_trace_level@sda21(r13)
/* 8007CEB4 00078CF4 90 C1 00 08 */ stw r6, 0x8(r1)
/* 8007CEB8 00078CF8 28 00 00 05 */ cmplwi r0, 0x5
/* 8007CEBC 00078CFC 41 80 00 7C */ blt lbl_8007CF38
/* 8007CEC0 00078D00 28 04 00 08 */ cmplwi r4, 0x8
/* 8007CEC4 00078D04 41 81 00 64 */ bgt lbl_8007CF28
/* 8007CEC8 00078D08 3C 60 80 44 */ lis r3, "@1803_8043B0BC"@ha
/* 8007CECC 00078D0C 54 80 10 3A */ slwi r0, r4, 2
/* 8007CED0 00078D10 38 63 B0 BC */ addi r3, r3, "@1803_8043B0BC"@l
/* 8007CED4 00078D14 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007CED8 00078D18 7C 69 03 A6 */ mtctr r3
/* 8007CEDC 00078D1C 4E 80 04 20 */ bctr
.global lbl_8007CEE0
lbl_8007CEE0:
/* 8007CEE0 00078D20 38 A7 03 AC */ addi r5, r7, 0x3ac
/* 8007CEE4 00078D24 48 00 00 48 */ b lbl_8007CF2C
.global lbl_8007CEE8
lbl_8007CEE8:
/* 8007CEE8 00078D28 38 A7 03 C0 */ addi r5, r7, 0x3c0
/* 8007CEEC 00078D2C 48 00 00 40 */ b lbl_8007CF2C
.global lbl_8007CEF0
lbl_8007CEF0:
/* 8007CEF0 00078D30 38 A7 03 D4 */ addi r5, r7, 0x3d4
/* 8007CEF4 00078D34 48 00 00 38 */ b lbl_8007CF2C
.global lbl_8007CEF8
lbl_8007CEF8:
/* 8007CEF8 00078D38 38 A7 03 EC */ addi r5, r7, 0x3ec
/* 8007CEFC 00078D3C 48 00 00 30 */ b lbl_8007CF2C
.global lbl_8007CF00
lbl_8007CF00:
/* 8007CF00 00078D40 38 A7 04 04 */ addi r5, r7, 0x404
/* 8007CF04 00078D44 48 00 00 28 */ b lbl_8007CF2C
.global lbl_8007CF08
lbl_8007CF08:
/* 8007CF08 00078D48 38 A7 04 1C */ addi r5, r7, 0x41c
/* 8007CF0C 00078D4C 48 00 00 20 */ b lbl_8007CF2C
.global lbl_8007CF10
lbl_8007CF10:
/* 8007CF10 00078D50 38 A7 04 34 */ addi r5, r7, 0x434
/* 8007CF14 00078D54 48 00 00 18 */ b lbl_8007CF2C
.global lbl_8007CF18
lbl_8007CF18:
/* 8007CF18 00078D58 38 A7 04 4C */ addi r5, r7, 0x44c
/* 8007CF1C 00078D5C 48 00 00 10 */ b lbl_8007CF2C
.global lbl_8007CF20
lbl_8007CF20:
/* 8007CF20 00078D60 38 A7 04 64 */ addi r5, r7, 0x464
/* 8007CF24 00078D64 48 00 00 08 */ b lbl_8007CF2C
.global lbl_8007CF28
lbl_8007CF28:
/* 8007CF28 00078D68 38 A7 04 7C */ addi r5, r7, 0x47c
.global lbl_8007CF2C
lbl_8007CF2C:
/* 8007CF2C 00078D6C 38 87 04 90 */ addi r4, r7, 0x490
/* 8007CF30 00078D70 38 60 05 04 */ li r3, 0x504
/* 8007CF34 00078D74 4B FF AA 2D */ bl LogMsg_0
.global lbl_8007CF38
lbl_8007CF38:
/* 8007CF38 00078D78 28 1D 00 08 */ cmplwi r29, 0x8
/* 8007CF3C 00078D7C 41 81 01 88 */ bgt lbl_8007D0C4
/* 8007CF40 00078D80 3C 60 80 44 */ lis r3, "@1804_8043B098"@ha
/* 8007CF44 00078D84 57 A0 10 3A */ slwi r0, r29, 2
/* 8007CF48 00078D88 38 63 B0 98 */ addi r3, r3, "@1804_8043B098"@l
/* 8007CF4C 00078D8C 7C 63 00 2E */ lwzx r3, r3, r0
/* 8007CF50 00078D90 7C 69 03 A6 */ mtctr r3
/* 8007CF54 00078D94 4E 80 04 20 */ bctr
.global lbl_8007CF58
lbl_8007CF58:
/* 8007CF58 00078D98 3B E0 17 02 */ li r31, 0x1702
/* 8007CF5C 00078D9C 48 00 01 68 */ b lbl_8007D0C4
.global lbl_8007CF60
lbl_8007CF60:
/* 8007CF60 00078DA0 3B E0 17 03 */ li r31, 0x1703
/* 8007CF64 00078DA4 48 00 01 60 */ b lbl_8007D0C4
.global lbl_8007CF68
lbl_8007CF68:
/* 8007CF68 00078DA8 3B E0 17 04 */ li r31, 0x1704
/* 8007CF6C 00078DAC 48 00 01 58 */ b lbl_8007D0C4
.global lbl_8007CF70
lbl_8007CF70:
/* 8007CF70 00078DB0 3B E0 17 06 */ li r31, 0x1706
/* 8007CF74 00078DB4 48 00 01 50 */ b lbl_8007D0C4
.global lbl_8007CF78
lbl_8007CF78:
/* 8007CF78 00078DB8 3B E0 17 05 */ li r31, 0x1705
/* 8007CF7C 00078DBC 48 00 01 48 */ b lbl_8007D0C4
.global lbl_8007CF80
lbl_8007CF80:
/* 8007CF80 00078DC0 38 61 00 08 */ addi r3, r1, 0x8
/* 8007CF84 00078DC4 4B FF B6 FD */ bl utl_freebuf
/* 8007CF88 00078DC8 48 00 01 3C */ b lbl_8007D0C4
.global lbl_8007CF8C
lbl_8007CF8C:
/* 8007CF8C 00078DCC 3C 80 80 4F */ lis r4, bta_hh_cb@ha
/* 8007CF90 00078DD0 38 00 00 02 */ li r0, 0x2
/* 8007CF94 00078DD4 38 84 5D 28 */ addi r4, r4, bta_hh_cb@l
/* 8007CF98 00078DD8 38 A0 00 00 */ li r5, 0x0
/* 8007CF9C 00078DDC 7C 09 03 A6 */ mtctr r0
.global lbl_8007CFA0
lbl_8007CFA0:
/* 8007CFA0 00078DE0 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007CFA4 00078DE4 7C 64 02 14 */ add r3, r4, r0
/* 8007CFA8 00078DE8 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007CFAC 00078DEC 7C 1C 00 40 */ cmplw r28, r0
/* 8007CFB0 00078DF0 40 82 00 10 */ bne lbl_8007CFC0
/* 8007CFB4 00078DF4 38 00 00 01 */ li r0, 0x1
/* 8007CFB8 00078DF8 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007CFBC 00078DFC 48 00 01 08 */ b lbl_8007D0C4
.global lbl_8007CFC0
lbl_8007CFC0:
/* 8007CFC0 00078E00 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007CFC4 00078E04 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007CFC8 00078E08 7C 64 02 14 */ add r3, r4, r0
/* 8007CFCC 00078E0C 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007CFD0 00078E10 7C 1C 00 40 */ cmplw r28, r0
/* 8007CFD4 00078E14 40 82 00 10 */ bne lbl_8007CFE4
/* 8007CFD8 00078E18 38 00 00 01 */ li r0, 0x1
/* 8007CFDC 00078E1C 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007CFE0 00078E20 48 00 00 E4 */ b lbl_8007D0C4
.global lbl_8007CFE4
lbl_8007CFE4:
/* 8007CFE4 00078E24 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007CFE8 00078E28 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007CFEC 00078E2C 7C 64 02 14 */ add r3, r4, r0
/* 8007CFF0 00078E30 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007CFF4 00078E34 7C 1C 00 40 */ cmplw r28, r0
/* 8007CFF8 00078E38 40 82 00 10 */ bne lbl_8007D008
/* 8007CFFC 00078E3C 38 00 00 01 */ li r0, 0x1
/* 8007D000 00078E40 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D004 00078E44 48 00 00 C0 */ b lbl_8007D0C4
.global lbl_8007D008
lbl_8007D008:
/* 8007D008 00078E48 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D00C 00078E4C 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007D010 00078E50 7C 64 02 14 */ add r3, r4, r0
/* 8007D014 00078E54 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007D018 00078E58 7C 1C 00 40 */ cmplw r28, r0
/* 8007D01C 00078E5C 40 82 00 10 */ bne lbl_8007D02C
/* 8007D020 00078E60 38 00 00 01 */ li r0, 0x1
/* 8007D024 00078E64 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D028 00078E68 48 00 00 9C */ b lbl_8007D0C4
.global lbl_8007D02C
lbl_8007D02C:
/* 8007D02C 00078E6C 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D030 00078E70 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007D034 00078E74 7C 64 02 14 */ add r3, r4, r0
/* 8007D038 00078E78 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007D03C 00078E7C 7C 1C 00 40 */ cmplw r28, r0
/* 8007D040 00078E80 40 82 00 10 */ bne lbl_8007D050
/* 8007D044 00078E84 38 00 00 01 */ li r0, 0x1
/* 8007D048 00078E88 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D04C 00078E8C 48 00 00 78 */ b lbl_8007D0C4
.global lbl_8007D050
lbl_8007D050:
/* 8007D050 00078E90 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D054 00078E94 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007D058 00078E98 7C 64 02 14 */ add r3, r4, r0
/* 8007D05C 00078E9C 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007D060 00078EA0 7C 1C 00 40 */ cmplw r28, r0
/* 8007D064 00078EA4 40 82 00 10 */ bne lbl_8007D074
/* 8007D068 00078EA8 38 00 00 01 */ li r0, 0x1
/* 8007D06C 00078EAC 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D070 00078EB0 48 00 00 54 */ b lbl_8007D0C4
.global lbl_8007D074
lbl_8007D074:
/* 8007D074 00078EB4 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D078 00078EB8 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007D07C 00078EBC 7C 64 02 14 */ add r3, r4, r0
/* 8007D080 00078EC0 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007D084 00078EC4 7C 1C 00 40 */ cmplw r28, r0
/* 8007D088 00078EC8 40 82 00 10 */ bne lbl_8007D098
/* 8007D08C 00078ECC 38 00 00 01 */ li r0, 0x1
/* 8007D090 00078ED0 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D094 00078ED4 48 00 00 30 */ b lbl_8007D0C4
.global lbl_8007D098
lbl_8007D098:
/* 8007D098 00078ED8 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D09C 00078EDC 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8007D0A0 00078EE0 7C 64 02 14 */ add r3, r4, r0
/* 8007D0A4 00078EE4 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8007D0A8 00078EE8 7C 1C 00 40 */ cmplw r28, r0
/* 8007D0AC 00078EEC 40 82 00 10 */ bne lbl_8007D0BC
/* 8007D0B0 00078EF0 38 00 00 01 */ li r0, 0x1
/* 8007D0B4 00078EF4 98 03 00 27 */ stb r0, 0x27(r3)
/* 8007D0B8 00078EF8 48 00 00 0C */ b lbl_8007D0C4
.global lbl_8007D0BC
lbl_8007D0BC:
/* 8007D0BC 00078EFC 38 A5 00 01 */ addi r5, r5, 0x1
/* 8007D0C0 00078F00 42 00 FE E0 */ bdnz lbl_8007CFA0
.global lbl_8007D0C4
lbl_8007D0C4:
/* 8007D0C4 00078F04 28 1F 17 10 */ cmplwi r31, 0x1710
/* 8007D0C8 00078F08 41 82 00 2C */ beq lbl_8007D0F4
/* 8007D0CC 00078F0C 38 60 00 18 */ li r3, 0x18
/* 8007D0D0 00078F10 4B FF 7B B1 */ bl GKI_getbuf
/* 8007D0D4 00078F14 2C 03 00 00 */ cmpwi r3, 0x0
/* 8007D0D8 00078F18 41 82 00 1C */ beq lbl_8007D0F4
/* 8007D0DC 00078F1C B3 E3 00 00 */ sth r31, 0x0(r3)
/* 8007D0E0 00078F20 B3 83 00 06 */ sth r28, 0x6(r3)
/* 8007D0E4 00078F24 93 C3 00 08 */ stw r30, 0x8(r3)
/* 8007D0E8 00078F28 80 01 00 08 */ lwz r0, 0x8(r1)
/* 8007D0EC 00078F2C 90 03 00 0C */ stw r0, 0xc(r3)
/* 8007D0F0 00078F30 4B FF B2 F1 */ bl bta_sys_sendmsg
.global lbl_8007D0F4
lbl_8007D0F4:
/* 8007D0F4 00078F34 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8007D0F8 00078F38 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8007D0FC 00078F3C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8007D100 00078F40 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8007D104 00078F44 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8007D108 00078F48 7C 08 03 A6 */ mtlr r0
/* 8007D10C 00078F4C 38 21 00 20 */ addi r1, r1, 0x20
/* 8007D110 00078F50 4E 80 00 20 */ blr
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@1516_8043ABE8"
"@1516_8043ABE8":
.4byte 0x6274615F
.4byte 0x68685F73
.4byte 0x64705F63
.4byte 0x6261636B
.4byte 0x3A20705F
.4byte 0x63623A20
.4byte 0x25642072
.4byte 0x6573756C
.4byte 0x74203078
.4byte 0x25303278
.4byte 0x2C202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20206174
.4byte 0x74725F6D
.4byte 0x61736B20
.4byte 0x30782530
.4byte 0x32780000
.global "@1527"
"@1527":
.4byte 0x6274615F
.4byte 0x68685F73
.4byte 0x74617274
.4byte 0x5F736470
.4byte 0x3A3A2073
.4byte 0x6B697020
.4byte 0x53445020
.4byte 0x666F7220
.4byte 0x6B6E6F77
.4byte 0x6E206465
.4byte 0x76696365
.4byte 0x73000000
.global "@1528"
"@1528":
.4byte 0x6274615F
.4byte 0x68685F73
.4byte 0x74617274
.4byte 0x5F736470
.4byte 0x3A202048
.4byte 0x49445F48
.4byte 0x6F737447
.4byte 0x65745344
.4byte 0x50526563
.4byte 0x6F726420
.4byte 0x6661696C
.4byte 0x65643A20
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x53746174
.4byte 0x75732030
.4byte 0x78253258
.4byte 0
.global "@1541"
"@1541":
.4byte 0x6274615F
.4byte 0x68685F73
.4byte 0x64705F63
.4byte 0x6D706C3A
.4byte 0x20207374
.4byte 0x61747573
.4byte 0x20307825
.4byte 0x32580000
.global "@1542"
"@1542":
.4byte 0x6274615F
.4byte 0x68685F73
.4byte 0x64705F63
.4byte 0x6D706C3A
.4byte 0x20204849
.4byte 0x445F486F
.4byte 0x73744F70
.4byte 0x656E4465
.4byte 0x76206661
.4byte 0x696C6564
.4byte 0x3A202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20202020
.4byte 0x20205374
.4byte 0x61747573
.4byte 0x20307825
.4byte 0x32580000
.global "@1573_8043AD2C"
"@1573_8043AD2C":
.4byte 0x6274615F
.4byte 0x68685F6F
.4byte 0x70656E5F
.4byte 0x6163743A
.4byte 0x20204465
.4byte 0x76696365
.4byte 0x5B25645D
.4byte 0x20636F6E
.4byte 0x6E656374
.4byte 0x65640000
.4byte 0x4254415F
.4byte 0x48485F47
.4byte 0x45545F52
.4byte 0x50545F45
.4byte 0x56540000
.4byte 0x4254415F
.4byte 0x48485F53
.4byte 0x45545F52
.4byte 0x50545F45
.4byte 0x56540000
.4byte 0x4254415F
.4byte 0x48485F47
.4byte 0x45545F50
.4byte 0x524F544F
.4byte 0x5F455654
.4byte 0
.4byte 0x4254415F
.4byte 0x48485F53
.4byte 0x45545F50
.4byte 0x524F544F
.4byte 0x5F455654
.4byte 0
.4byte 0x4254415F
.4byte 0x48485F47
.4byte 0x45545F49
.4byte 0x444C455F
.4byte 0x45565400
.4byte 0x4254415F
.4byte 0x48485F53
.4byte 0x45545F49
.4byte 0x444C455F
.4byte 0x45565400
.4byte 0
.4byte 0x4254415F
.4byte 0x48485F4F
.4byte 0x50454E5F
.4byte 0x45565400
.4byte 0x556E6B6E
.4byte 0x6F776E20
.4byte 0x6576656E
.4byte 0x74000000
.4byte 0x48414E44
.4byte 0x5348414B
.4byte 0x45207265
.4byte 0x63656976
.4byte 0x65642066
.4byte 0x6F723A20
.4byte 0x6576656E
.4byte 0x74203D20
.4byte 0x25732064
.4byte 0x6174613D
.4byte 0x20256400
.4byte 0x756E6B6E
.4byte 0x6F776E20
.4byte 0x7472616E
.4byte 0x73616374
.4byte 0x696F6E20
.4byte 0x74797065
.4byte 0
.global "@1638_8043AE40"
"@1638_8043AE40":
.4byte lbl_8007C5DC
.4byte lbl_8007C5DC
.4byte lbl_8007C570
.4byte lbl_8007C5DC
.4byte lbl_8007C480
.4byte lbl_8007C500
.4byte lbl_8007C480
.4byte lbl_8007C500
.4byte lbl_8007C480
.4byte lbl_8007C500
.global "@1637_8043AE68"
"@1637_8043AE68":
.4byte lbl_8007C448
.4byte lbl_8007C448
.4byte lbl_8007C440
.4byte lbl_8007C448
.4byte lbl_8007C410
.4byte lbl_8007C418
.4byte lbl_8007C420
.4byte lbl_8007C428
.4byte lbl_8007C430
.4byte lbl_8007C438
.4byte 0x4374726C
.4byte 0x20444154
.4byte 0x41207265
.4byte 0x63656976
.4byte 0x65642077
.4byte 0x343A2065
.4byte 0x76656E74
.4byte 0x5B25735D
.4byte 0
.4byte 0x696E7661
.4byte 0x6C696420
.4byte 0x20747261
.4byte 0x6E736163
.4byte 0x74696F6E
.4byte 0x20747970
.4byte 0x6520666F
.4byte 0x72204441
.4byte 0x54412070
.4byte 0x61796C6F
.4byte 0x61643A20
.4byte 0x345F6576
.4byte 0x745B2573
.4byte 0x5D000000
.global "@1678"
"@1678":
.4byte lbl_8007C7A0
.4byte lbl_8007C7A0
.4byte lbl_8007C798
.4byte lbl_8007C7A0
.4byte lbl_8007C768
.4byte lbl_8007C770
.4byte lbl_8007C778
.4byte lbl_8007C780
.4byte lbl_8007C788
.4byte lbl_8007C790
.global "@1677"
"@1677":
.4byte lbl_8007C6BC
.4byte lbl_8007C6BC
.4byte lbl_8007C6B4
.4byte lbl_8007C6BC
.4byte lbl_8007C684
.4byte lbl_8007C68C
.4byte lbl_8007C694
.4byte lbl_8007C69C
.4byte lbl_8007C6A4
.4byte lbl_8007C6AC
.4byte 0
.global "@1713"
"@1713":
.4byte 0x696E7661
.4byte 0x6C696420
.4byte 0x636F6D6D
.4byte 0x616E6400
.global "@1760"
"@1760":
.4byte 0x4849445F
.4byte 0x486F7374
.4byte 0x57726974
.4byte 0x65446576
.4byte 0x20457272
.4byte 0x6F722025
.4byte 0x64000000
.global "@1761"
"@1761":
.4byte 0x6274615F
.4byte 0x68685F77
.4byte 0x72697465
.4byte 0x5F646576
.4byte 0x5F616374
.4byte 0x3A3A2063
.4byte 0x6D642074
.4byte 0x79706520
.4byte 0x3D202564
.4byte 0
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F4F5045
.4byte 0x4E000000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F434C4F
.4byte 0x53450000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F524554
.4byte 0x5259494E
.4byte 0x47000000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F494E54
.4byte 0x525F4441
.4byte 0x54410000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F494E54
.4byte 0x525F4441
.4byte 0x54430000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F435452
.4byte 0x4C5F4441
.4byte 0x54410000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F435452
.4byte 0x4C5F4441
.4byte 0x54430000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F48414E
.4byte 0x44534841
.4byte 0x4B450000
.4byte 0x4849445F
.4byte 0x48444556
.4byte 0x5F455654
.4byte 0x5F56435F
.4byte 0x554E504C
.4byte 0x55470000
.4byte 0x556E6B6E
.4byte 0x6F776E20
.4byte 0x48494420
.4byte 0x6576656E
.4byte 0x74000000
.4byte 0x6274615F
.4byte 0x68685F63
.4byte 0x6261636B
.4byte 0x3A3A4849
.4byte 0x445F6576
.4byte 0x656E7420
.4byte 0x5B25735D
.4byte 0
.global "@1804_8043B098"
"@1804_8043B098":
.4byte lbl_8007CF58
.4byte lbl_8007CF60
.4byte lbl_8007D0C4
.4byte lbl_8007CF68
.4byte lbl_8007CF80
.4byte lbl_8007CF78
.4byte lbl_8007CF80
.4byte lbl_8007CF70
.4byte lbl_8007CF8C
.global "@1803_8043B0BC"
"@1803_8043B0BC":
.4byte lbl_8007CEE0
.4byte lbl_8007CEE8
.4byte lbl_8007CEF0
.4byte lbl_8007CEF8
.4byte lbl_8007CF00
.4byte lbl_8007CF08
.4byte lbl_8007CF10
.4byte lbl_8007CF18
.4byte lbl_8007CF20
.include "macros.inc"
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
.global "@1486"
"@1486":
.4byte 0
.4byte 0