.include "macros.inc" .section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860 .global btsnd_hcic_inquiry btsnd_hcic_inquiry: /* 8008A798 000865D8 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008A79C 000865DC 7C 08 02 A6 */ mflr r0 /* 8008A7A0 000865E0 90 01 00 24 */ stw r0, 0x24(r1) /* 8008A7A4 000865E4 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008A7A8 000865E8 7C BF 2B 78 */ mr r31, r5 /* 8008A7AC 000865EC 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008A7B0 000865F0 7C 9E 23 78 */ mr r30, r4 /* 8008A7B4 000865F4 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008A7B8 000865F8 7C 7D 1B 78 */ mr r29, r3 /* 8008A7BC 000865FC 38 60 00 02 */ li r3, 0x2 /* 8008A7C0 00086600 4B FE A6 61 */ bl GKI_getpoolbuf /* 8008A7C4 00086604 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008A7C8 00086608 40 82 00 0C */ bne lbl_8008A7D4 /* 8008A7CC 0008660C 38 60 00 00 */ li r3, 0x0 /* 8008A7D0 00086610 48 00 00 54 */ b lbl_8008A824 .global lbl_8008A7D4 lbl_8008A7D4: /* 8008A7D4 00086614 38 00 00 08 */ li r0, 0x8 /* 8008A7D8 00086618 38 A0 00 00 */ li r5, 0x0 /* 8008A7DC 0008661C B0 03 00 02 */ sth r0, 0x2(r3) /* 8008A7E0 00086620 38 80 00 01 */ li r4, 0x1 /* 8008A7E4 00086624 38 00 00 04 */ li r0, 0x4 /* 8008A7E8 00086628 38 C0 00 05 */ li r6, 0x5 /* 8008A7EC 0008662C B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008A7F0 00086630 88 BD 00 02 */ lbz r5, 0x2(r29) /* 8008A7F4 00086634 98 83 00 08 */ stb r4, 0x8(r3) /* 8008A7F8 00086638 88 9D 00 01 */ lbz r4, 0x1(r29) /* 8008A7FC 0008663C 98 03 00 09 */ stb r0, 0x9(r3) /* 8008A800 00086640 88 1D 00 00 */ lbz r0, 0x0(r29) /* 8008A804 00086644 98 C3 00 0A */ stb r6, 0xa(r3) /* 8008A808 00086648 98 A3 00 0B */ stb r5, 0xb(r3) /* 8008A80C 0008664C 98 83 00 0C */ stb r4, 0xc(r3) /* 8008A810 00086650 98 03 00 0D */ stb r0, 0xd(r3) /* 8008A814 00086654 9B C3 00 0E */ stb r30, 0xe(r3) /* 8008A818 00086658 9B E3 00 0F */ stb r31, 0xf(r3) /* 8008A81C 0008665C 4B FF DF C9 */ bl btu_hcif_send_cmd /* 8008A820 00086660 38 60 00 01 */ li r3, 0x1 .global lbl_8008A824 lbl_8008A824: /* 8008A824 00086664 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008A828 00086668 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008A82C 0008666C 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008A830 00086670 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008A834 00086674 7C 08 03 A6 */ mtlr r0 /* 8008A838 00086678 38 21 00 20 */ addi r1, r1, 0x20 /* 8008A83C 0008667C 4E 80 00 20 */ blr .global btsnd_hcic_inq_cancel btsnd_hcic_inq_cancel: /* 8008A840 00086680 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008A844 00086684 7C 08 02 A6 */ mflr r0 /* 8008A848 00086688 38 60 00 02 */ li r3, 0x2 /* 8008A84C 0008668C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008A850 00086690 4B FE A5 D1 */ bl GKI_getpoolbuf /* 8008A854 00086694 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008A858 00086698 40 82 00 0C */ bne lbl_8008A864 /* 8008A85C 0008669C 38 60 00 00 */ li r3, 0x0 /* 8008A860 000866A0 48 00 00 30 */ b lbl_8008A890 .global lbl_8008A864 lbl_8008A864: /* 8008A864 000866A4 38 00 00 03 */ li r0, 0x3 /* 8008A868 000866A8 38 A0 00 00 */ li r5, 0x0 /* 8008A86C 000866AC B0 03 00 02 */ sth r0, 0x2(r3) /* 8008A870 000866B0 38 80 00 02 */ li r4, 0x2 /* 8008A874 000866B4 38 00 00 04 */ li r0, 0x4 /* 8008A878 000866B8 B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008A87C 000866BC 98 83 00 08 */ stb r4, 0x8(r3) /* 8008A880 000866C0 98 03 00 09 */ stb r0, 0x9(r3) /* 8008A884 000866C4 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008A888 000866C8 4B FF DF 5D */ bl btu_hcif_send_cmd /* 8008A88C 000866CC 38 60 00 01 */ li r3, 0x1 .global lbl_8008A890 lbl_8008A890: /* 8008A890 000866D0 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008A894 000866D4 7C 08 03 A6 */ mtlr r0 /* 8008A898 000866D8 38 21 00 10 */ addi r1, r1, 0x10 /* 8008A89C 000866DC 4E 80 00 20 */ blr .global btsnd_hcic_per_inq_mode btsnd_hcic_per_inq_mode: /* 8008A8A0 000866E0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008A8A4 000866E4 7C 08 02 A6 */ mflr r0 /* 8008A8A8 000866E8 90 01 00 24 */ stw r0, 0x24(r1) /* 8008A8AC 000866EC 39 61 00 20 */ addi r11, r1, 0x20 /* 8008A8B0 000866F0 4B F7 CA 8D */ bl lbl_8000733C /* 8008A8B4 000866F4 7C 7B 1B 78 */ mr r27, r3 /* 8008A8B8 000866F8 7C 9C 23 78 */ mr r28, r4 /* 8008A8BC 000866FC 7C BD 2B 78 */ mr r29, r5 /* 8008A8C0 00086700 7C DE 33 78 */ mr r30, r6 /* 8008A8C4 00086704 7C FF 3B 78 */ mr r31, r7 /* 8008A8C8 00086708 38 60 00 02 */ li r3, 0x2 /* 8008A8CC 0008670C 4B FE A5 55 */ bl GKI_getpoolbuf /* 8008A8D0 00086710 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008A8D4 00086714 40 82 00 0C */ bne lbl_8008A8E0 /* 8008A8D8 00086718 38 60 00 00 */ li r3, 0x0 /* 8008A8DC 0008671C 48 00 00 6C */ b lbl_8008A948 .global lbl_8008A8E0 lbl_8008A8E0: /* 8008A8E0 00086720 38 00 00 0C */ li r0, 0xc /* 8008A8E4 00086724 38 A0 00 00 */ li r5, 0x0 /* 8008A8E8 00086728 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008A8EC 0008672C 38 80 00 03 */ li r4, 0x3 /* 8008A8F0 00086730 38 00 00 04 */ li r0, 0x4 /* 8008A8F4 00086734 39 00 00 09 */ li r8, 0x9 /* 8008A8F8 00086738 B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008A8FC 0008673C 7F 67 46 70 */ srawi r7, r27, 8 /* 8008A900 00086740 57 86 C6 3E */ extrwi r6, r28, 8, 16 /* 8008A904 00086744 88 BD 00 02 */ lbz r5, 0x2(r29) /* 8008A908 00086748 98 83 00 08 */ stb r4, 0x8(r3) /* 8008A90C 0008674C 88 9D 00 01 */ lbz r4, 0x1(r29) /* 8008A910 00086750 98 03 00 09 */ stb r0, 0x9(r3) /* 8008A914 00086754 88 1D 00 00 */ lbz r0, 0x0(r29) /* 8008A918 00086758 99 03 00 0A */ stb r8, 0xa(r3) /* 8008A91C 0008675C 9B 63 00 0B */ stb r27, 0xb(r3) /* 8008A920 00086760 98 E3 00 0C */ stb r7, 0xc(r3) /* 8008A924 00086764 9B 83 00 0D */ stb r28, 0xd(r3) /* 8008A928 00086768 98 C3 00 0E */ stb r6, 0xe(r3) /* 8008A92C 0008676C 98 A3 00 0F */ stb r5, 0xf(r3) /* 8008A930 00086770 98 83 00 10 */ stb r4, 0x10(r3) /* 8008A934 00086774 98 03 00 11 */ stb r0, 0x11(r3) /* 8008A938 00086778 9B C3 00 12 */ stb r30, 0x12(r3) /* 8008A93C 0008677C 9B E3 00 13 */ stb r31, 0x13(r3) /* 8008A940 00086780 4B FF DE A5 */ bl btu_hcif_send_cmd /* 8008A944 00086784 38 60 00 01 */ li r3, 0x1 .global lbl_8008A948 lbl_8008A948: /* 8008A948 00086788 39 61 00 20 */ addi r11, r1, 0x20 /* 8008A94C 0008678C 4B F7 CA 3D */ bl lbl_80007388 /* 8008A950 00086790 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008A954 00086794 7C 08 03 A6 */ mtlr r0 /* 8008A958 00086798 38 21 00 20 */ addi r1, r1, 0x20 /* 8008A95C 0008679C 4E 80 00 20 */ blr .global btsnd_hcic_create_conn btsnd_hcic_create_conn: /* 8008A960 000867A0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008A964 000867A4 7C 08 02 A6 */ mflr r0 /* 8008A968 000867A8 90 01 00 24 */ stw r0, 0x24(r1) /* 8008A96C 000867AC 39 61 00 20 */ addi r11, r1, 0x20 /* 8008A970 000867B0 4B F7 C9 C9 */ bl lbl_80007338 /* 8008A974 000867B4 7C 7A 1B 78 */ mr r26, r3 /* 8008A978 000867B8 7C 9B 23 78 */ mr r27, r4 /* 8008A97C 000867BC 7C BC 2B 78 */ mr r28, r5 /* 8008A980 000867C0 7C DD 33 78 */ mr r29, r6 /* 8008A984 000867C4 7C FE 3B 78 */ mr r30, r7 /* 8008A988 000867C8 7D 1F 43 78 */ mr r31, r8 /* 8008A98C 000867CC 38 60 00 02 */ li r3, 0x2 /* 8008A990 000867D0 4B FE A4 91 */ bl GKI_getpoolbuf /* 8008A994 000867D4 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008A998 000867D8 40 82 00 0C */ bne lbl_8008A9A4 /* 8008A99C 000867DC 38 60 00 00 */ li r3, 0x0 /* 8008A9A0 000867E0 48 00 00 88 */ b lbl_8008AA28 .global lbl_8008A9A4 lbl_8008A9A4: /* 8008A9A4 000867E4 38 80 00 10 */ li r4, 0x10 /* 8008A9A8 000867E8 38 00 00 00 */ li r0, 0x0 /* 8008A9AC 000867EC B0 83 00 02 */ sth r4, 0x2(r3) /* 8008A9B0 000867F0 38 E0 00 05 */ li r7, 0x5 /* 8008A9B4 000867F4 38 C0 00 04 */ li r6, 0x4 /* 8008A9B8 000867F8 38 A0 00 0D */ li r5, 0xd /* 8008A9BC 000867FC B0 03 00 04 */ sth r0, 0x4(r3) /* 8008A9C0 00086800 7F 64 46 70 */ srawi r4, r27, 8 /* 8008A9C4 00086804 57 C0 C6 3E */ extrwi r0, r30, 8, 16 /* 8008A9C8 00086808 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008A9CC 0008680C 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008A9D0 00086810 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008A9D4 00086814 88 BA 00 05 */ lbz r5, 0x5(r26) /* 8008A9D8 00086818 98 A3 00 0B */ stb r5, 0xb(r3) /* 8008A9DC 0008681C 88 BA 00 04 */ lbz r5, 0x4(r26) /* 8008A9E0 00086820 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008A9E4 00086824 88 BA 00 03 */ lbz r5, 0x3(r26) /* 8008A9E8 00086828 98 A3 00 0D */ stb r5, 0xd(r3) /* 8008A9EC 0008682C 88 BA 00 02 */ lbz r5, 0x2(r26) /* 8008A9F0 00086830 98 A3 00 0E */ stb r5, 0xe(r3) /* 8008A9F4 00086834 88 BA 00 01 */ lbz r5, 0x1(r26) /* 8008A9F8 00086838 98 A3 00 0F */ stb r5, 0xf(r3) /* 8008A9FC 0008683C 88 BA 00 00 */ lbz r5, 0x0(r26) /* 8008AA00 00086840 98 A3 00 10 */ stb r5, 0x10(r3) /* 8008AA04 00086844 9B 63 00 11 */ stb r27, 0x11(r3) /* 8008AA08 00086848 98 83 00 12 */ stb r4, 0x12(r3) /* 8008AA0C 0008684C 9B 83 00 13 */ stb r28, 0x13(r3) /* 8008AA10 00086850 9B A3 00 14 */ stb r29, 0x14(r3) /* 8008AA14 00086854 9B C3 00 15 */ stb r30, 0x15(r3) /* 8008AA18 00086858 98 03 00 16 */ stb r0, 0x16(r3) /* 8008AA1C 0008685C 9B E3 00 17 */ stb r31, 0x17(r3) /* 8008AA20 00086860 4B FF DD C5 */ bl btu_hcif_send_cmd /* 8008AA24 00086864 38 60 00 01 */ li r3, 0x1 .global lbl_8008AA28 lbl_8008AA28: /* 8008AA28 00086868 39 61 00 20 */ addi r11, r1, 0x20 /* 8008AA2C 0008686C 4B F7 C9 59 */ bl lbl_80007384 /* 8008AA30 00086870 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008AA34 00086874 7C 08 03 A6 */ mtlr r0 /* 8008AA38 00086878 38 21 00 20 */ addi r1, r1, 0x20 /* 8008AA3C 0008687C 4E 80 00 20 */ blr .global btsnd_hcic_disconnect btsnd_hcic_disconnect: /* 8008AA40 00086880 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008AA44 00086884 7C 08 02 A6 */ mflr r0 /* 8008AA48 00086888 90 01 00 14 */ stw r0, 0x14(r1) /* 8008AA4C 0008688C 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008AA50 00086890 7C 9F 23 78 */ mr r31, r4 /* 8008AA54 00086894 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008AA58 00086898 7C 7E 1B 78 */ mr r30, r3 /* 8008AA5C 0008689C 38 60 00 02 */ li r3, 0x2 /* 8008AA60 000868A0 4B FE A3 C1 */ bl GKI_getpoolbuf /* 8008AA64 000868A4 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008AA68 000868A8 40 82 00 0C */ bne lbl_8008AA74 /* 8008AA6C 000868AC 38 60 00 00 */ li r3, 0x0 /* 8008AA70 000868B0 48 00 00 40 */ b lbl_8008AAB0 .global lbl_8008AA74 lbl_8008AA74: /* 8008AA74 000868B4 38 E0 00 06 */ li r7, 0x6 /* 8008AA78 000868B8 38 C0 00 00 */ li r6, 0x0 /* 8008AA7C 000868BC B0 E3 00 02 */ sth r7, 0x2(r3) /* 8008AA80 000868C0 38 A0 00 04 */ li r5, 0x4 /* 8008AA84 000868C4 38 80 00 03 */ li r4, 0x3 /* 8008AA88 000868C8 57 C0 C6 3E */ extrwi r0, r30, 8, 16 /* 8008AA8C 000868CC B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008AA90 000868D0 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008AA94 000868D4 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008AA98 000868D8 98 83 00 0A */ stb r4, 0xa(r3) /* 8008AA9C 000868DC 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008AAA0 000868E0 98 03 00 0C */ stb r0, 0xc(r3) /* 8008AAA4 000868E4 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008AAA8 000868E8 4B FF DD 3D */ bl btu_hcif_send_cmd /* 8008AAAC 000868EC 38 60 00 01 */ li r3, 0x1 .global lbl_8008AAB0 lbl_8008AAB0: /* 8008AAB0 000868F0 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008AAB4 000868F4 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008AAB8 000868F8 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008AABC 000868FC 7C 08 03 A6 */ mtlr r0 /* 8008AAC0 00086900 38 21 00 10 */ addi r1, r1, 0x10 /* 8008AAC4 00086904 4E 80 00 20 */ blr .global btsnd_hcic_add_SCO_conn btsnd_hcic_add_SCO_conn: /* 8008AAC8 00086908 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008AACC 0008690C 7C 08 02 A6 */ mflr r0 /* 8008AAD0 00086910 90 01 00 14 */ stw r0, 0x14(r1) /* 8008AAD4 00086914 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008AAD8 00086918 7C 9F 23 78 */ mr r31, r4 /* 8008AADC 0008691C 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008AAE0 00086920 7C 7E 1B 78 */ mr r30, r3 /* 8008AAE4 00086924 38 60 00 02 */ li r3, 0x2 /* 8008AAE8 00086928 4B FE A3 39 */ bl GKI_getpoolbuf /* 8008AAEC 0008692C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008AAF0 00086930 40 82 00 0C */ bne lbl_8008AAFC /* 8008AAF4 00086934 38 60 00 00 */ li r3, 0x0 /* 8008AAF8 00086938 48 00 00 44 */ b lbl_8008AB3C .global lbl_8008AAFC lbl_8008AAFC: /* 8008AAFC 0008693C 38 E0 00 07 */ li r7, 0x7 /* 8008AB00 00086940 38 C0 00 00 */ li r6, 0x0 /* 8008AB04 00086944 B0 E3 00 02 */ sth r7, 0x2(r3) /* 8008AB08 00086948 38 A0 00 04 */ li r5, 0x4 /* 8008AB0C 0008694C 7F C4 46 70 */ srawi r4, r30, 8 /* 8008AB10 00086950 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008AB14 00086954 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008AB18 00086958 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008AB1C 0008695C 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008AB20 00086960 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008AB24 00086964 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008AB28 00086968 98 83 00 0C */ stb r4, 0xc(r3) /* 8008AB2C 0008696C 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008AB30 00086970 98 03 00 0E */ stb r0, 0xe(r3) /* 8008AB34 00086974 4B FF DC B1 */ bl btu_hcif_send_cmd /* 8008AB38 00086978 38 60 00 01 */ li r3, 0x1 .global lbl_8008AB3C lbl_8008AB3C: /* 8008AB3C 0008697C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008AB40 00086980 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008AB44 00086984 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008AB48 00086988 7C 08 03 A6 */ mtlr r0 /* 8008AB4C 0008698C 38 21 00 10 */ addi r1, r1, 0x10 /* 8008AB50 00086990 4E 80 00 20 */ blr .global btsnd_hcic_accept_conn btsnd_hcic_accept_conn: /* 8008AB54 00086994 39 20 00 0A */ li r9, 0xa /* 8008AB58 00086998 39 00 00 00 */ li r8, 0x0 /* 8008AB5C 0008699C 38 E0 00 09 */ li r7, 0x9 /* 8008AB60 000869A0 38 C0 00 04 */ li r6, 0x4 /* 8008AB64 000869A4 38 00 00 07 */ li r0, 0x7 /* 8008AB68 000869A8 B1 23 00 02 */ sth r9, 0x2(r3) /* 8008AB6C 000869AC B1 03 00 04 */ sth r8, 0x4(r3) /* 8008AB70 000869B0 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008AB74 000869B4 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008AB78 000869B8 98 03 00 0A */ stb r0, 0xa(r3) /* 8008AB7C 000869BC 88 04 00 05 */ lbz r0, 0x5(r4) /* 8008AB80 000869C0 98 03 00 0B */ stb r0, 0xb(r3) /* 8008AB84 000869C4 88 04 00 04 */ lbz r0, 0x4(r4) /* 8008AB88 000869C8 98 03 00 0C */ stb r0, 0xc(r3) /* 8008AB8C 000869CC 88 04 00 03 */ lbz r0, 0x3(r4) /* 8008AB90 000869D0 98 03 00 0D */ stb r0, 0xd(r3) /* 8008AB94 000869D4 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008AB98 000869D8 98 03 00 0E */ stb r0, 0xe(r3) /* 8008AB9C 000869DC 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008ABA0 000869E0 98 03 00 0F */ stb r0, 0xf(r3) /* 8008ABA4 000869E4 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008ABA8 000869E8 98 03 00 10 */ stb r0, 0x10(r3) /* 8008ABAC 000869EC 98 A3 00 11 */ stb r5, 0x11(r3) /* 8008ABB0 000869F0 4B FF DC 34 */ b btu_hcif_send_cmd .global btsnd_hcic_reject_conn btsnd_hcic_reject_conn: /* 8008ABB4 000869F4 39 00 00 0A */ li r8, 0xa /* 8008ABB8 000869F8 38 E0 00 00 */ li r7, 0x0 /* 8008ABBC 000869FC 38 C0 00 04 */ li r6, 0x4 /* 8008ABC0 00086A00 38 00 00 07 */ li r0, 0x7 /* 8008ABC4 00086A04 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008ABC8 00086A08 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008ABCC 00086A0C 99 03 00 08 */ stb r8, 0x8(r3) /* 8008ABD0 00086A10 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008ABD4 00086A14 98 03 00 0A */ stb r0, 0xa(r3) /* 8008ABD8 00086A18 88 04 00 05 */ lbz r0, 0x5(r4) /* 8008ABDC 00086A1C 98 03 00 0B */ stb r0, 0xb(r3) /* 8008ABE0 00086A20 88 04 00 04 */ lbz r0, 0x4(r4) /* 8008ABE4 00086A24 98 03 00 0C */ stb r0, 0xc(r3) /* 8008ABE8 00086A28 88 04 00 03 */ lbz r0, 0x3(r4) /* 8008ABEC 00086A2C 98 03 00 0D */ stb r0, 0xd(r3) /* 8008ABF0 00086A30 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008ABF4 00086A34 98 03 00 0E */ stb r0, 0xe(r3) /* 8008ABF8 00086A38 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008ABFC 00086A3C 98 03 00 0F */ stb r0, 0xf(r3) /* 8008AC00 00086A40 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008AC04 00086A44 98 03 00 10 */ stb r0, 0x10(r3) /* 8008AC08 00086A48 98 A3 00 11 */ stb r5, 0x11(r3) /* 8008AC0C 00086A4C 4B FF DB D8 */ b btu_hcif_send_cmd .global btsnd_hcic_link_key_req_reply btsnd_hcic_link_key_req_reply: /* 8008AC10 00086A50 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8008AC14 00086A54 7C 08 02 A6 */ mflr r0 /* 8008AC18 00086A58 90 01 00 34 */ stw r0, 0x34(r1) /* 8008AC1C 00086A5C 39 61 00 30 */ addi r11, r1, 0x30 /* 8008AC20 00086A60 4B F7 C7 0D */ bl lbl_8000732C /* 8008AC24 00086A64 7C 7E 1B 78 */ mr r30, r3 /* 8008AC28 00086A68 7C 9F 23 78 */ mr r31, r4 /* 8008AC2C 00086A6C 38 60 00 02 */ li r3, 0x2 /* 8008AC30 00086A70 4B FE A1 F1 */ bl GKI_getpoolbuf /* 8008AC34 00086A74 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008AC38 00086A78 40 82 00 0C */ bne lbl_8008AC44 /* 8008AC3C 00086A7C 38 60 00 00 */ li r3, 0x0 /* 8008AC40 00086A80 48 00 01 58 */ b lbl_8008AD98 .global lbl_8008AC44 lbl_8008AC44: /* 8008AC44 00086A84 38 00 00 19 */ li r0, 0x19 /* 8008AC48 00086A88 38 80 00 00 */ li r4, 0x0 /* 8008AC4C 00086A8C B0 03 00 02 */ sth r0, 0x2(r3) /* 8008AC50 00086A90 38 00 00 0B */ li r0, 0xb /* 8008AC54 00086A94 38 C0 00 04 */ li r6, 0x4 /* 8008AC58 00086A98 38 A0 00 16 */ li r5, 0x16 /* 8008AC5C 00086A9C B0 83 00 04 */ sth r4, 0x4(r3) /* 8008AC60 00086AA0 23 04 00 0F */ subfic r24, r4, 0xf /* 8008AC64 00086AA4 3B 20 00 01 */ li r25, 0x1 /* 8008AC68 00086AA8 3B 60 00 02 */ li r27, 0x2 /* 8008AC6C 00086AAC 98 03 00 08 */ stb r0, 0x8(r3) /* 8008AC70 00086AB0 23 59 00 0F */ subfic r26, r25, 0xf /* 8008AC74 00086AB4 23 9B 00 0F */ subfic r28, r27, 0xf /* 8008AC78 00086AB8 38 80 00 03 */ li r4, 0x3 /* 8008AC7C 00086ABC 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008AC80 00086AC0 23 A4 00 0F */ subfic r29, r4, 0xf /* 8008AC84 00086AC4 39 20 00 05 */ li r9, 0x5 /* 8008AC88 00086AC8 21 46 00 0F */ subfic r10, r6, 0xf /* 8008AC8C 00086ACC 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008AC90 00086AD0 21 09 00 0F */ subfic r8, r9, 0xf /* 8008AC94 00086AD4 38 E0 00 06 */ li r7, 0x6 /* 8008AC98 00086AD8 38 A0 00 07 */ li r5, 0x7 /* 8008AC9C 00086ADC 88 9E 00 05 */ lbz r4, 0x5(r30) /* 8008ACA0 00086AE0 20 C7 00 0F */ subfic r6, r7, 0xf /* 8008ACA4 00086AE4 3A E0 00 08 */ li r23, 0x8 /* 8008ACA8 00086AE8 3B 20 00 09 */ li r25, 0x9 /* 8008ACAC 00086AEC 98 83 00 0B */ stb r4, 0xb(r3) /* 8008ACB0 00086AF0 20 85 00 0F */ subfic r4, r5, 0xf /* 8008ACB4 00086AF4 3B 60 00 0A */ li r27, 0xa /* 8008ACB8 00086AF8 39 60 00 0C */ li r11, 0xc /* 8008ACBC 00086AFC 88 BE 00 04 */ lbz r5, 0x4(r30) /* 8008ACC0 00086B00 39 20 00 0D */ li r9, 0xd /* 8008ACC4 00086B04 38 E0 00 0E */ li r7, 0xe /* 8008ACC8 00086B08 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008ACCC 00086B0C 38 A0 00 0F */ li r5, 0xf /* 8008ACD0 00086B10 89 9E 00 03 */ lbz r12, 0x3(r30) /* 8008ACD4 00086B14 99 83 00 0D */ stb r12, 0xd(r3) /* 8008ACD8 00086B18 89 9E 00 02 */ lbz r12, 0x2(r30) /* 8008ACDC 00086B1C 99 83 00 0E */ stb r12, 0xe(r3) /* 8008ACE0 00086B20 89 9E 00 01 */ lbz r12, 0x1(r30) /* 8008ACE4 00086B24 99 83 00 0F */ stb r12, 0xf(r3) /* 8008ACE8 00086B28 89 9E 00 00 */ lbz r12, 0x0(r30) /* 8008ACEC 00086B2C 99 83 00 10 */ stb r12, 0x10(r3) /* 8008ACF0 00086B30 7D 9F C0 AE */ lbzx r12, r31, r24 /* 8008ACF4 00086B34 23 17 00 0F */ subfic r24, r23, 0xf /* 8008ACF8 00086B38 99 83 00 11 */ stb r12, 0x11(r3) /* 8008ACFC 00086B3C 7D 9F D0 AE */ lbzx r12, r31, r26 /* 8008AD00 00086B40 23 59 00 0F */ subfic r26, r25, 0xf /* 8008AD04 00086B44 99 83 00 12 */ stb r12, 0x12(r3) /* 8008AD08 00086B48 7D 9F E0 AE */ lbzx r12, r31, r28 /* 8008AD0C 00086B4C 23 9B 00 0F */ subfic r28, r27, 0xf /* 8008AD10 00086B50 99 83 00 13 */ stb r12, 0x13(r3) /* 8008AD14 00086B54 7D 9F E8 AE */ lbzx r12, r31, r29 /* 8008AD18 00086B58 23 A0 00 0F */ subfic r29, r0, 0xf /* 8008AD1C 00086B5C 99 83 00 14 */ stb r12, 0x14(r3) /* 8008AD20 00086B60 7C 1F 50 AE */ lbzx r0, r31, r10 /* 8008AD24 00086B64 21 4B 00 0F */ subfic r10, r11, 0xf /* 8008AD28 00086B68 98 03 00 15 */ stb r0, 0x15(r3) /* 8008AD2C 00086B6C 7C 1F 40 AE */ lbzx r0, r31, r8 /* 8008AD30 00086B70 21 09 00 0F */ subfic r8, r9, 0xf /* 8008AD34 00086B74 98 03 00 16 */ stb r0, 0x16(r3) /* 8008AD38 00086B78 7C 1F 30 AE */ lbzx r0, r31, r6 /* 8008AD3C 00086B7C 20 C7 00 0F */ subfic r6, r7, 0xf /* 8008AD40 00086B80 98 03 00 17 */ stb r0, 0x17(r3) /* 8008AD44 00086B84 7C 1F 20 AE */ lbzx r0, r31, r4 /* 8008AD48 00086B88 20 85 00 0F */ subfic r4, r5, 0xf /* 8008AD4C 00086B8C 98 03 00 18 */ stb r0, 0x18(r3) /* 8008AD50 00086B90 7D 9F C0 AE */ lbzx r12, r31, r24 /* 8008AD54 00086B94 99 83 00 19 */ stb r12, 0x19(r3) /* 8008AD58 00086B98 7D 9F D0 AE */ lbzx r12, r31, r26 /* 8008AD5C 00086B9C 99 83 00 1A */ stb r12, 0x1a(r3) /* 8008AD60 00086BA0 7D 9F E0 AE */ lbzx r12, r31, r28 /* 8008AD64 00086BA4 99 83 00 1B */ stb r12, 0x1b(r3) /* 8008AD68 00086BA8 7D 9F E8 AE */ lbzx r12, r31, r29 /* 8008AD6C 00086BAC 99 83 00 1C */ stb r12, 0x1c(r3) /* 8008AD70 00086BB0 7C 1F 50 AE */ lbzx r0, r31, r10 /* 8008AD74 00086BB4 98 03 00 1D */ stb r0, 0x1d(r3) /* 8008AD78 00086BB8 7C 1F 40 AE */ lbzx r0, r31, r8 /* 8008AD7C 00086BBC 98 03 00 1E */ stb r0, 0x1e(r3) /* 8008AD80 00086BC0 7C 1F 30 AE */ lbzx r0, r31, r6 /* 8008AD84 00086BC4 98 03 00 1F */ stb r0, 0x1f(r3) /* 8008AD88 00086BC8 7C 1F 20 AE */ lbzx r0, r31, r4 /* 8008AD8C 00086BCC 98 03 00 20 */ stb r0, 0x20(r3) /* 8008AD90 00086BD0 4B FF DA 55 */ bl btu_hcif_send_cmd /* 8008AD94 00086BD4 38 60 00 01 */ li r3, 0x1 .global lbl_8008AD98 lbl_8008AD98: /* 8008AD98 00086BD8 39 61 00 30 */ addi r11, r1, 0x30 /* 8008AD9C 00086BDC 4B F7 C5 DD */ bl lbl_80007378 /* 8008ADA0 00086BE0 80 01 00 34 */ lwz r0, 0x34(r1) /* 8008ADA4 00086BE4 7C 08 03 A6 */ mtlr r0 /* 8008ADA8 00086BE8 38 21 00 30 */ addi r1, r1, 0x30 /* 8008ADAC 00086BEC 4E 80 00 20 */ blr .global btsnd_hcic_link_key_neg_reply btsnd_hcic_link_key_neg_reply: /* 8008ADB0 00086BF0 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008ADB4 00086BF4 7C 08 02 A6 */ mflr r0 /* 8008ADB8 00086BF8 90 01 00 14 */ stw r0, 0x14(r1) /* 8008ADBC 00086BFC 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008ADC0 00086C00 7C 7F 1B 78 */ mr r31, r3 /* 8008ADC4 00086C04 38 60 00 02 */ li r3, 0x2 /* 8008ADC8 00086C08 4B FE A0 59 */ bl GKI_getpoolbuf /* 8008ADCC 00086C0C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008ADD0 00086C10 40 82 00 0C */ bne lbl_8008ADDC /* 8008ADD4 00086C14 38 60 00 00 */ li r3, 0x0 /* 8008ADD8 00086C18 48 00 00 64 */ b lbl_8008AE3C .global lbl_8008ADDC lbl_8008ADDC: /* 8008ADDC 00086C1C 38 00 00 09 */ li r0, 0x9 /* 8008ADE0 00086C20 38 C0 00 00 */ li r6, 0x0 /* 8008ADE4 00086C24 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008ADE8 00086C28 38 A0 00 0C */ li r5, 0xc /* 8008ADEC 00086C2C 38 80 00 04 */ li r4, 0x4 /* 8008ADF0 00086C30 38 00 00 06 */ li r0, 0x6 /* 8008ADF4 00086C34 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008ADF8 00086C38 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008ADFC 00086C3C 98 83 00 09 */ stb r4, 0x9(r3) /* 8008AE00 00086C40 98 03 00 0A */ stb r0, 0xa(r3) /* 8008AE04 00086C44 88 1F 00 05 */ lbz r0, 0x5(r31) /* 8008AE08 00086C48 98 03 00 0B */ stb r0, 0xb(r3) /* 8008AE0C 00086C4C 88 1F 00 04 */ lbz r0, 0x4(r31) /* 8008AE10 00086C50 98 03 00 0C */ stb r0, 0xc(r3) /* 8008AE14 00086C54 88 1F 00 03 */ lbz r0, 0x3(r31) /* 8008AE18 00086C58 98 03 00 0D */ stb r0, 0xd(r3) /* 8008AE1C 00086C5C 88 1F 00 02 */ lbz r0, 0x2(r31) /* 8008AE20 00086C60 98 03 00 0E */ stb r0, 0xe(r3) /* 8008AE24 00086C64 88 1F 00 01 */ lbz r0, 0x1(r31) /* 8008AE28 00086C68 98 03 00 0F */ stb r0, 0xf(r3) /* 8008AE2C 00086C6C 88 1F 00 00 */ lbz r0, 0x0(r31) /* 8008AE30 00086C70 98 03 00 10 */ stb r0, 0x10(r3) /* 8008AE34 00086C74 4B FF D9 B1 */ bl btu_hcif_send_cmd /* 8008AE38 00086C78 38 60 00 01 */ li r3, 0x1 .global lbl_8008AE3C lbl_8008AE3C: /* 8008AE3C 00086C7C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008AE40 00086C80 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008AE44 00086C84 7C 08 03 A6 */ mtlr r0 /* 8008AE48 00086C88 38 21 00 10 */ addi r1, r1, 0x10 /* 8008AE4C 00086C8C 4E 80 00 20 */ blr .global btsnd_hcic_pin_code_req_reply btsnd_hcic_pin_code_req_reply: /* 8008AE50 00086C90 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008AE54 00086C94 7C 08 02 A6 */ mflr r0 /* 8008AE58 00086C98 90 01 00 24 */ stw r0, 0x24(r1) /* 8008AE5C 00086C9C 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008AE60 00086CA0 7C BF 2B 78 */ mr r31, r5 /* 8008AE64 00086CA4 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008AE68 00086CA8 7C 9E 23 78 */ mr r30, r4 /* 8008AE6C 00086CAC 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008AE70 00086CB0 7C 7D 1B 78 */ mr r29, r3 /* 8008AE74 00086CB4 38 60 00 02 */ li r3, 0x2 /* 8008AE78 00086CB8 4B FE 9F A9 */ bl GKI_getpoolbuf /* 8008AE7C 00086CBC 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008AE80 00086CC0 40 82 00 0C */ bne lbl_8008AE8C /* 8008AE84 00086CC4 38 60 00 00 */ li r3, 0x0 /* 8008AE88 00086CC8 48 00 01 90 */ b lbl_8008B018 .global lbl_8008AE8C lbl_8008AE8C: /* 8008AE8C 00086CCC 38 00 00 1A */ li r0, 0x1a /* 8008AE90 00086CD0 38 80 00 00 */ li r4, 0x0 /* 8008AE94 00086CD4 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008AE98 00086CD8 38 E0 00 0D */ li r7, 0xd /* 8008AE9C 00086CDC 38 C0 00 04 */ li r6, 0x4 /* 8008AEA0 00086CE0 38 00 00 17 */ li r0, 0x17 /* 8008AEA4 00086CE4 B0 83 00 04 */ sth r4, 0x4(r3) /* 8008AEA8 00086CE8 2C 9E 00 00 */ cmpwi cr1, r30, 0x0 /* 8008AEAC 00086CEC 38 83 00 12 */ addi r4, r3, 0x12 /* 8008AEB0 00086CF0 38 A0 00 00 */ li r5, 0x0 /* 8008AEB4 00086CF4 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008AEB8 00086CF8 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008AEBC 00086CFC 98 03 00 0A */ stb r0, 0xa(r3) /* 8008AEC0 00086D00 88 1D 00 05 */ lbz r0, 0x5(r29) /* 8008AEC4 00086D04 98 03 00 0B */ stb r0, 0xb(r3) /* 8008AEC8 00086D08 88 1D 00 04 */ lbz r0, 0x4(r29) /* 8008AECC 00086D0C 98 03 00 0C */ stb r0, 0xc(r3) /* 8008AED0 00086D10 88 1D 00 03 */ lbz r0, 0x3(r29) /* 8008AED4 00086D14 98 03 00 0D */ stb r0, 0xd(r3) /* 8008AED8 00086D18 88 1D 00 02 */ lbz r0, 0x2(r29) /* 8008AEDC 00086D1C 98 03 00 0E */ stb r0, 0xe(r3) /* 8008AEE0 00086D20 88 1D 00 01 */ lbz r0, 0x1(r29) /* 8008AEE4 00086D24 98 03 00 0F */ stb r0, 0xf(r3) /* 8008AEE8 00086D28 88 1D 00 00 */ lbz r0, 0x0(r29) /* 8008AEEC 00086D2C 98 03 00 10 */ stb r0, 0x10(r3) /* 8008AEF0 00086D30 9B C3 00 11 */ stb r30, 0x11(r3) /* 8008AEF4 00086D34 40 85 00 C0 */ ble cr1, lbl_8008AFB4 /* 8008AEF8 00086D38 2C 1E 00 08 */ cmpwi r30, 0x8 /* 8008AEFC 00086D3C 38 FE FF F8 */ addi r7, r30, -0x8 /* 8008AF00 00086D40 40 81 00 8C */ ble lbl_8008AF8C /* 8008AF04 00086D44 39 00 00 00 */ li r8, 0x0 /* 8008AF08 00086D48 41 84 00 18 */ blt cr1, lbl_8008AF20 /* 8008AF0C 00086D4C 3C C0 80 00 */ lis r6, 0x8000 /* 8008AF10 00086D50 38 06 FF FE */ addi r0, r6, -0x2 /* 8008AF14 00086D54 7C 1E 00 00 */ cmpw r30, r0 /* 8008AF18 00086D58 41 81 00 08 */ bgt lbl_8008AF20 /* 8008AF1C 00086D5C 39 00 00 01 */ li r8, 0x1 .global lbl_8008AF20 lbl_8008AF20: /* 8008AF20 00086D60 2C 08 00 00 */ cmpwi r8, 0x0 /* 8008AF24 00086D64 41 82 00 68 */ beq lbl_8008AF8C /* 8008AF28 00086D68 38 07 00 07 */ addi r0, r7, 0x7 /* 8008AF2C 00086D6C 54 00 E8 FE */ srwi r0, r0, 3 /* 8008AF30 00086D70 7C 09 03 A6 */ mtctr r0 /* 8008AF34 00086D74 2C 07 00 00 */ cmpwi r7, 0x0 /* 8008AF38 00086D78 40 81 00 54 */ ble lbl_8008AF8C .global lbl_8008AF3C lbl_8008AF3C: /* 8008AF3C 00086D7C 88 1F 00 00 */ lbz r0, 0x0(r31) /* 8008AF40 00086D80 38 A5 00 08 */ addi r5, r5, 0x8 /* 8008AF44 00086D84 98 04 00 00 */ stb r0, 0x0(r4) /* 8008AF48 00086D88 88 1F 00 01 */ lbz r0, 0x1(r31) /* 8008AF4C 00086D8C 98 04 00 01 */ stb r0, 0x1(r4) /* 8008AF50 00086D90 88 1F 00 02 */ lbz r0, 0x2(r31) /* 8008AF54 00086D94 98 04 00 02 */ stb r0, 0x2(r4) /* 8008AF58 00086D98 88 1F 00 03 */ lbz r0, 0x3(r31) /* 8008AF5C 00086D9C 98 04 00 03 */ stb r0, 0x3(r4) /* 8008AF60 00086DA0 88 1F 00 04 */ lbz r0, 0x4(r31) /* 8008AF64 00086DA4 98 04 00 04 */ stb r0, 0x4(r4) /* 8008AF68 00086DA8 88 1F 00 05 */ lbz r0, 0x5(r31) /* 8008AF6C 00086DAC 98 04 00 05 */ stb r0, 0x5(r4) /* 8008AF70 00086DB0 88 1F 00 06 */ lbz r0, 0x6(r31) /* 8008AF74 00086DB4 98 04 00 06 */ stb r0, 0x6(r4) /* 8008AF78 00086DB8 88 1F 00 07 */ lbz r0, 0x7(r31) /* 8008AF7C 00086DBC 3B FF 00 08 */ addi r31, r31, 0x8 /* 8008AF80 00086DC0 98 04 00 07 */ stb r0, 0x7(r4) /* 8008AF84 00086DC4 38 84 00 08 */ addi r4, r4, 0x8 /* 8008AF88 00086DC8 42 00 FF B4 */ bdnz lbl_8008AF3C .global lbl_8008AF8C lbl_8008AF8C: /* 8008AF8C 00086DCC 7C 05 F0 50 */ subf r0, r5, r30 /* 8008AF90 00086DD0 7C 09 03 A6 */ mtctr r0 /* 8008AF94 00086DD4 7C 05 F0 00 */ cmpw r5, r30 /* 8008AF98 00086DD8 40 80 00 1C */ bge lbl_8008AFB4 .global lbl_8008AF9C lbl_8008AF9C: /* 8008AF9C 00086DDC 88 1F 00 00 */ lbz r0, 0x0(r31) /* 8008AFA0 00086DE0 38 A5 00 01 */ addi r5, r5, 0x1 /* 8008AFA4 00086DE4 3B FF 00 01 */ addi r31, r31, 0x1 /* 8008AFA8 00086DE8 98 04 00 00 */ stb r0, 0x0(r4) /* 8008AFAC 00086DEC 38 84 00 01 */ addi r4, r4, 0x1 /* 8008AFB0 00086DF0 42 00 FF EC */ bdnz lbl_8008AF9C .global lbl_8008AFB4 lbl_8008AFB4: /* 8008AFB4 00086DF4 2C 05 00 10 */ cmpwi r5, 0x10 /* 8008AFB8 00086DF8 20 A5 00 10 */ subfic r5, r5, 0x10 /* 8008AFBC 00086DFC 38 C0 00 00 */ li r6, 0x0 /* 8008AFC0 00086E00 40 80 00 50 */ bge lbl_8008B010 /* 8008AFC4 00086E04 54 A0 E8 FF */ srwi. r0, r5, 3 /* 8008AFC8 00086E08 7C 09 03 A6 */ mtctr r0 /* 8008AFCC 00086E0C 41 82 00 34 */ beq lbl_8008B000 .global lbl_8008AFD0 lbl_8008AFD0: /* 8008AFD0 00086E10 98 C4 00 00 */ stb r6, 0x0(r4) /* 8008AFD4 00086E14 98 C4 00 01 */ stb r6, 0x1(r4) /* 8008AFD8 00086E18 98 C4 00 02 */ stb r6, 0x2(r4) /* 8008AFDC 00086E1C 98 C4 00 03 */ stb r6, 0x3(r4) /* 8008AFE0 00086E20 98 C4 00 04 */ stb r6, 0x4(r4) /* 8008AFE4 00086E24 98 C4 00 05 */ stb r6, 0x5(r4) /* 8008AFE8 00086E28 98 C4 00 06 */ stb r6, 0x6(r4) /* 8008AFEC 00086E2C 98 C4 00 07 */ stb r6, 0x7(r4) /* 8008AFF0 00086E30 38 84 00 08 */ addi r4, r4, 0x8 /* 8008AFF4 00086E34 42 00 FF DC */ bdnz lbl_8008AFD0 /* 8008AFF8 00086E38 70 A5 00 07 */ andi. r5, r5, 0x7 /* 8008AFFC 00086E3C 41 82 00 14 */ beq lbl_8008B010 .global lbl_8008B000 lbl_8008B000: /* 8008B000 00086E40 7C A9 03 A6 */ mtctr r5 .global lbl_8008B004 lbl_8008B004: /* 8008B004 00086E44 98 C4 00 00 */ stb r6, 0x0(r4) /* 8008B008 00086E48 38 84 00 01 */ addi r4, r4, 0x1 /* 8008B00C 00086E4C 42 00 FF F8 */ bdnz lbl_8008B004 .global lbl_8008B010 lbl_8008B010: /* 8008B010 00086E50 4B FF D7 D5 */ bl btu_hcif_send_cmd /* 8008B014 00086E54 38 60 00 01 */ li r3, 0x1 .global lbl_8008B018 lbl_8008B018: /* 8008B018 00086E58 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008B01C 00086E5C 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008B020 00086E60 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008B024 00086E64 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008B028 00086E68 7C 08 03 A6 */ mtlr r0 /* 8008B02C 00086E6C 38 21 00 20 */ addi r1, r1, 0x20 /* 8008B030 00086E70 4E 80 00 20 */ blr .global btsnd_hcic_pin_code_neg_reply btsnd_hcic_pin_code_neg_reply: /* 8008B034 00086E74 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B038 00086E78 7C 08 02 A6 */ mflr r0 /* 8008B03C 00086E7C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B040 00086E80 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B044 00086E84 7C 7F 1B 78 */ mr r31, r3 /* 8008B048 00086E88 38 60 00 02 */ li r3, 0x2 /* 8008B04C 00086E8C 4B FE 9D D5 */ bl GKI_getpoolbuf /* 8008B050 00086E90 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B054 00086E94 40 82 00 0C */ bne lbl_8008B060 /* 8008B058 00086E98 38 60 00 00 */ li r3, 0x0 /* 8008B05C 00086E9C 48 00 00 64 */ b lbl_8008B0C0 .global lbl_8008B060 lbl_8008B060: /* 8008B060 00086EA0 38 00 00 09 */ li r0, 0x9 /* 8008B064 00086EA4 38 C0 00 00 */ li r6, 0x0 /* 8008B068 00086EA8 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B06C 00086EAC 38 A0 00 0E */ li r5, 0xe /* 8008B070 00086EB0 38 80 00 04 */ li r4, 0x4 /* 8008B074 00086EB4 38 00 00 06 */ li r0, 0x6 /* 8008B078 00086EB8 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008B07C 00086EBC 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008B080 00086EC0 98 83 00 09 */ stb r4, 0x9(r3) /* 8008B084 00086EC4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008B088 00086EC8 88 1F 00 05 */ lbz r0, 0x5(r31) /* 8008B08C 00086ECC 98 03 00 0B */ stb r0, 0xb(r3) /* 8008B090 00086ED0 88 1F 00 04 */ lbz r0, 0x4(r31) /* 8008B094 00086ED4 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B098 00086ED8 88 1F 00 03 */ lbz r0, 0x3(r31) /* 8008B09C 00086EDC 98 03 00 0D */ stb r0, 0xd(r3) /* 8008B0A0 00086EE0 88 1F 00 02 */ lbz r0, 0x2(r31) /* 8008B0A4 00086EE4 98 03 00 0E */ stb r0, 0xe(r3) /* 8008B0A8 00086EE8 88 1F 00 01 */ lbz r0, 0x1(r31) /* 8008B0AC 00086EEC 98 03 00 0F */ stb r0, 0xf(r3) /* 8008B0B0 00086EF0 88 1F 00 00 */ lbz r0, 0x0(r31) /* 8008B0B4 00086EF4 98 03 00 10 */ stb r0, 0x10(r3) /* 8008B0B8 00086EF8 4B FF D7 2D */ bl btu_hcif_send_cmd /* 8008B0BC 00086EFC 38 60 00 01 */ li r3, 0x1 .global lbl_8008B0C0 lbl_8008B0C0: /* 8008B0C0 00086F00 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B0C4 00086F04 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B0C8 00086F08 7C 08 03 A6 */ mtlr r0 /* 8008B0CC 00086F0C 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B0D0 00086F10 4E 80 00 20 */ blr .global btsnd_hcic_change_conn_type btsnd_hcic_change_conn_type: /* 8008B0D4 00086F14 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B0D8 00086F18 7C 08 02 A6 */ mflr r0 /* 8008B0DC 00086F1C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B0E0 00086F20 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B0E4 00086F24 7C 9F 23 78 */ mr r31, r4 /* 8008B0E8 00086F28 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008B0EC 00086F2C 7C 7E 1B 78 */ mr r30, r3 /* 8008B0F0 00086F30 38 60 00 02 */ li r3, 0x2 /* 8008B0F4 00086F34 4B FE 9D 2D */ bl GKI_getpoolbuf /* 8008B0F8 00086F38 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B0FC 00086F3C 40 82 00 0C */ bne lbl_8008B108 /* 8008B100 00086F40 38 60 00 00 */ li r3, 0x0 /* 8008B104 00086F44 48 00 00 48 */ b lbl_8008B14C .global lbl_8008B108 lbl_8008B108: /* 8008B108 00086F48 38 80 00 07 */ li r4, 0x7 /* 8008B10C 00086F4C 38 00 00 00 */ li r0, 0x0 /* 8008B110 00086F50 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B114 00086F54 38 C0 00 0F */ li r6, 0xf /* 8008B118 00086F58 38 A0 00 04 */ li r5, 0x4 /* 8008B11C 00086F5C 7F C4 46 70 */ srawi r4, r30, 8 /* 8008B120 00086F60 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B124 00086F64 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B128 00086F68 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B12C 00086F6C 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B130 00086F70 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008B134 00086F74 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008B138 00086F78 98 83 00 0C */ stb r4, 0xc(r3) /* 8008B13C 00086F7C 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008B140 00086F80 98 03 00 0E */ stb r0, 0xe(r3) /* 8008B144 00086F84 4B FF D6 A1 */ bl btu_hcif_send_cmd /* 8008B148 00086F88 38 60 00 01 */ li r3, 0x1 .global lbl_8008B14C lbl_8008B14C: /* 8008B14C 00086F8C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B150 00086F90 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B154 00086F94 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008B158 00086F98 7C 08 03 A6 */ mtlr r0 /* 8008B15C 00086F9C 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B160 00086FA0 4E 80 00 20 */ blr .global btsnd_hcic_auth_request btsnd_hcic_auth_request: /* 8008B164 00086FA4 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B168 00086FA8 7C 08 02 A6 */ mflr r0 /* 8008B16C 00086FAC 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B170 00086FB0 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B174 00086FB4 7C 7F 1B 78 */ mr r31, r3 /* 8008B178 00086FB8 38 60 00 02 */ li r3, 0x2 /* 8008B17C 00086FBC 4B FE 9C A5 */ bl GKI_getpoolbuf /* 8008B180 00086FC0 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B184 00086FC4 40 82 00 0C */ bne lbl_8008B190 /* 8008B188 00086FC8 38 60 00 00 */ li r3, 0x0 /* 8008B18C 00086FCC 48 00 00 40 */ b lbl_8008B1CC .global lbl_8008B190 lbl_8008B190: /* 8008B190 00086FD0 38 80 00 05 */ li r4, 0x5 /* 8008B194 00086FD4 38 00 00 00 */ li r0, 0x0 /* 8008B198 00086FD8 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B19C 00086FDC 38 C0 00 11 */ li r6, 0x11 /* 8008B1A0 00086FE0 38 A0 00 04 */ li r5, 0x4 /* 8008B1A4 00086FE4 38 80 00 02 */ li r4, 0x2 /* 8008B1A8 00086FE8 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B1AC 00086FEC 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B1B0 00086FF0 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B1B4 00086FF4 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B1B8 00086FF8 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B1BC 00086FFC 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008B1C0 00087000 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B1C4 00087004 4B FF D6 21 */ bl btu_hcif_send_cmd /* 8008B1C8 00087008 38 60 00 01 */ li r3, 0x1 .global lbl_8008B1CC lbl_8008B1CC: /* 8008B1CC 0008700C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B1D0 00087010 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B1D4 00087014 7C 08 03 A6 */ mtlr r0 /* 8008B1D8 00087018 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B1DC 0008701C 4E 80 00 20 */ blr .global btsnd_hcic_set_conn_encrypt btsnd_hcic_set_conn_encrypt: /* 8008B1E0 00087020 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B1E4 00087024 7C 08 02 A6 */ mflr r0 /* 8008B1E8 00087028 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B1EC 0008702C 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B1F0 00087030 7C 9F 23 78 */ mr r31, r4 /* 8008B1F4 00087034 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008B1F8 00087038 7C 7E 1B 78 */ mr r30, r3 /* 8008B1FC 0008703C 38 60 00 02 */ li r3, 0x2 /* 8008B200 00087040 4B FE 9C 21 */ bl GKI_getpoolbuf /* 8008B204 00087044 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B208 00087048 40 82 00 0C */ bne lbl_8008B214 /* 8008B20C 0008704C 38 60 00 00 */ li r3, 0x0 /* 8008B210 00087050 48 00 00 44 */ b lbl_8008B254 .global lbl_8008B214 lbl_8008B214: /* 8008B214 00087054 38 80 00 06 */ li r4, 0x6 /* 8008B218 00087058 38 00 00 00 */ li r0, 0x0 /* 8008B21C 0008705C B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B220 00087060 38 C0 00 13 */ li r6, 0x13 /* 8008B224 00087064 38 A0 00 04 */ li r5, 0x4 /* 8008B228 00087068 38 80 00 03 */ li r4, 0x3 /* 8008B22C 0008706C B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B230 00087070 57 C0 C6 3E */ extrwi r0, r30, 8, 16 /* 8008B234 00087074 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B238 00087078 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B23C 0008707C 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B240 00087080 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008B244 00087084 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B248 00087088 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008B24C 0008708C 4B FF D5 99 */ bl btu_hcif_send_cmd /* 8008B250 00087090 38 60 00 01 */ li r3, 0x1 .global lbl_8008B254 lbl_8008B254: /* 8008B254 00087094 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B258 00087098 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B25C 0008709C 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008B260 000870A0 7C 08 03 A6 */ mtlr r0 /* 8008B264 000870A4 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B268 000870A8 4E 80 00 20 */ blr .global btsnd_hcic_rmt_name_req btsnd_hcic_rmt_name_req: /* 8008B26C 000870AC 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008B270 000870B0 7C 08 02 A6 */ mflr r0 /* 8008B274 000870B4 90 01 00 24 */ stw r0, 0x24(r1) /* 8008B278 000870B8 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008B27C 000870BC 7C DF 33 78 */ mr r31, r6 /* 8008B280 000870C0 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008B284 000870C4 7C BE 2B 78 */ mr r30, r5 /* 8008B288 000870C8 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008B28C 000870CC 7C 9D 23 78 */ mr r29, r4 /* 8008B290 000870D0 93 81 00 10 */ stw r28, 0x10(r1) /* 8008B294 000870D4 7C 7C 1B 78 */ mr r28, r3 /* 8008B298 000870D8 38 60 00 02 */ li r3, 0x2 /* 8008B29C 000870DC 4B FE 9B 85 */ bl GKI_getpoolbuf /* 8008B2A0 000870E0 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B2A4 000870E4 40 82 00 0C */ bne lbl_8008B2B0 /* 8008B2A8 000870E8 38 60 00 00 */ li r3, 0x0 /* 8008B2AC 000870EC 48 00 00 78 */ b lbl_8008B324 .global lbl_8008B2B0 lbl_8008B2B0: /* 8008B2B0 000870F0 38 80 00 0D */ li r4, 0xd /* 8008B2B4 000870F4 38 00 00 00 */ li r0, 0x0 /* 8008B2B8 000870F8 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B2BC 000870FC 38 C0 00 19 */ li r6, 0x19 /* 8008B2C0 00087100 38 A0 00 04 */ li r5, 0x4 /* 8008B2C4 00087104 38 80 00 0A */ li r4, 0xa /* 8008B2C8 00087108 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B2CC 0008710C 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B2D0 00087110 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B2D4 00087114 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B2D8 00087118 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B2DC 0008711C 88 9C 00 05 */ lbz r4, 0x5(r28) /* 8008B2E0 00087120 98 83 00 0B */ stb r4, 0xb(r3) /* 8008B2E4 00087124 88 9C 00 04 */ lbz r4, 0x4(r28) /* 8008B2E8 00087128 98 83 00 0C */ stb r4, 0xc(r3) /* 8008B2EC 0008712C 88 9C 00 03 */ lbz r4, 0x3(r28) /* 8008B2F0 00087130 98 83 00 0D */ stb r4, 0xd(r3) /* 8008B2F4 00087134 88 9C 00 02 */ lbz r4, 0x2(r28) /* 8008B2F8 00087138 98 83 00 0E */ stb r4, 0xe(r3) /* 8008B2FC 0008713C 88 9C 00 01 */ lbz r4, 0x1(r28) /* 8008B300 00087140 98 83 00 0F */ stb r4, 0xf(r3) /* 8008B304 00087144 88 9C 00 00 */ lbz r4, 0x0(r28) /* 8008B308 00087148 98 83 00 10 */ stb r4, 0x10(r3) /* 8008B30C 0008714C 9B A3 00 11 */ stb r29, 0x11(r3) /* 8008B310 00087150 9B C3 00 12 */ stb r30, 0x12(r3) /* 8008B314 00087154 9B E3 00 13 */ stb r31, 0x13(r3) /* 8008B318 00087158 98 03 00 14 */ stb r0, 0x14(r3) /* 8008B31C 0008715C 4B FF D4 C9 */ bl btu_hcif_send_cmd /* 8008B320 00087160 38 60 00 01 */ li r3, 0x1 .global lbl_8008B324 lbl_8008B324: /* 8008B324 00087164 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008B328 00087168 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008B32C 0008716C 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008B330 00087170 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008B334 00087174 83 81 00 10 */ lwz r28, 0x10(r1) /* 8008B338 00087178 7C 08 03 A6 */ mtlr r0 /* 8008B33C 0008717C 38 21 00 20 */ addi r1, r1, 0x20 /* 8008B340 00087180 4E 80 00 20 */ blr .global btsnd_hcic_rmt_name_req_cancel btsnd_hcic_rmt_name_req_cancel: /* 8008B344 00087184 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B348 00087188 7C 08 02 A6 */ mflr r0 /* 8008B34C 0008718C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B350 00087190 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B354 00087194 7C 7F 1B 78 */ mr r31, r3 /* 8008B358 00087198 38 60 00 02 */ li r3, 0x2 /* 8008B35C 0008719C 4B FE 9A C5 */ bl GKI_getpoolbuf /* 8008B360 000871A0 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B364 000871A4 40 82 00 0C */ bne lbl_8008B370 /* 8008B368 000871A8 38 60 00 00 */ li r3, 0x0 /* 8008B36C 000871AC 48 00 00 64 */ b lbl_8008B3D0 .global lbl_8008B370 lbl_8008B370: /* 8008B370 000871B0 38 00 00 09 */ li r0, 0x9 /* 8008B374 000871B4 38 C0 00 00 */ li r6, 0x0 /* 8008B378 000871B8 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B37C 000871BC 38 A0 00 1A */ li r5, 0x1a /* 8008B380 000871C0 38 80 00 04 */ li r4, 0x4 /* 8008B384 000871C4 38 00 00 06 */ li r0, 0x6 /* 8008B388 000871C8 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008B38C 000871CC 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008B390 000871D0 98 83 00 09 */ stb r4, 0x9(r3) /* 8008B394 000871D4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008B398 000871D8 88 1F 00 05 */ lbz r0, 0x5(r31) /* 8008B39C 000871DC 98 03 00 0B */ stb r0, 0xb(r3) /* 8008B3A0 000871E0 88 1F 00 04 */ lbz r0, 0x4(r31) /* 8008B3A4 000871E4 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B3A8 000871E8 88 1F 00 03 */ lbz r0, 0x3(r31) /* 8008B3AC 000871EC 98 03 00 0D */ stb r0, 0xd(r3) /* 8008B3B0 000871F0 88 1F 00 02 */ lbz r0, 0x2(r31) /* 8008B3B4 000871F4 98 03 00 0E */ stb r0, 0xe(r3) /* 8008B3B8 000871F8 88 1F 00 01 */ lbz r0, 0x1(r31) /* 8008B3BC 000871FC 98 03 00 0F */ stb r0, 0xf(r3) /* 8008B3C0 00087200 88 1F 00 00 */ lbz r0, 0x0(r31) /* 8008B3C4 00087204 98 03 00 10 */ stb r0, 0x10(r3) /* 8008B3C8 00087208 4B FF D4 1D */ bl btu_hcif_send_cmd /* 8008B3CC 0008720C 38 60 00 01 */ li r3, 0x1 .global lbl_8008B3D0 lbl_8008B3D0: /* 8008B3D0 00087210 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B3D4 00087214 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B3D8 00087218 7C 08 03 A6 */ mtlr r0 /* 8008B3DC 0008721C 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B3E0 00087220 4E 80 00 20 */ blr .global btsnd_hcic_rmt_features_req btsnd_hcic_rmt_features_req: /* 8008B3E4 00087224 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B3E8 00087228 7C 08 02 A6 */ mflr r0 /* 8008B3EC 0008722C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B3F0 00087230 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B3F4 00087234 7C 7F 1B 78 */ mr r31, r3 /* 8008B3F8 00087238 38 60 00 02 */ li r3, 0x2 /* 8008B3FC 0008723C 4B FE 9A 25 */ bl GKI_getpoolbuf /* 8008B400 00087240 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B404 00087244 40 82 00 0C */ bne lbl_8008B410 /* 8008B408 00087248 38 60 00 00 */ li r3, 0x0 /* 8008B40C 0008724C 48 00 00 40 */ b lbl_8008B44C .global lbl_8008B410 lbl_8008B410: /* 8008B410 00087250 38 80 00 05 */ li r4, 0x5 /* 8008B414 00087254 38 00 00 00 */ li r0, 0x0 /* 8008B418 00087258 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B41C 0008725C 38 C0 00 1B */ li r6, 0x1b /* 8008B420 00087260 38 A0 00 04 */ li r5, 0x4 /* 8008B424 00087264 38 80 00 02 */ li r4, 0x2 /* 8008B428 00087268 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B42C 0008726C 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B430 00087270 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B434 00087274 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B438 00087278 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B43C 0008727C 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008B440 00087280 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B444 00087284 4B FF D3 A1 */ bl btu_hcif_send_cmd /* 8008B448 00087288 38 60 00 01 */ li r3, 0x1 .global lbl_8008B44C lbl_8008B44C: /* 8008B44C 0008728C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B450 00087290 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B454 00087294 7C 08 03 A6 */ mtlr r0 /* 8008B458 00087298 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B45C 0008729C 4E 80 00 20 */ blr .global btsnd_hcic_rmt_ver_req btsnd_hcic_rmt_ver_req: /* 8008B460 000872A0 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B464 000872A4 7C 08 02 A6 */ mflr r0 /* 8008B468 000872A8 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B46C 000872AC 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B470 000872B0 7C 7F 1B 78 */ mr r31, r3 /* 8008B474 000872B4 38 60 00 02 */ li r3, 0x2 /* 8008B478 000872B8 4B FE 99 A9 */ bl GKI_getpoolbuf /* 8008B47C 000872BC 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B480 000872C0 40 82 00 0C */ bne lbl_8008B48C /* 8008B484 000872C4 38 60 00 00 */ li r3, 0x0 /* 8008B488 000872C8 48 00 00 40 */ b lbl_8008B4C8 .global lbl_8008B48C lbl_8008B48C: /* 8008B48C 000872CC 38 80 00 05 */ li r4, 0x5 /* 8008B490 000872D0 38 00 00 00 */ li r0, 0x0 /* 8008B494 000872D4 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B498 000872D8 38 C0 00 1D */ li r6, 0x1d /* 8008B49C 000872DC 38 A0 00 04 */ li r5, 0x4 /* 8008B4A0 000872E0 38 80 00 02 */ li r4, 0x2 /* 8008B4A4 000872E4 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B4A8 000872E8 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B4AC 000872EC 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B4B0 000872F0 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B4B4 000872F4 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B4B8 000872F8 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008B4BC 000872FC 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B4C0 00087300 4B FF D3 25 */ bl btu_hcif_send_cmd /* 8008B4C4 00087304 38 60 00 01 */ li r3, 0x1 .global lbl_8008B4C8 lbl_8008B4C8: /* 8008B4C8 00087308 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B4CC 0008730C 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B4D0 00087310 7C 08 03 A6 */ mtlr r0 /* 8008B4D4 00087314 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B4D8 00087318 4E 80 00 20 */ blr .global btsnd_hcic_read_rmt_clk_offset btsnd_hcic_read_rmt_clk_offset: /* 8008B4DC 0008731C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B4E0 00087320 7C 08 02 A6 */ mflr r0 /* 8008B4E4 00087324 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B4E8 00087328 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B4EC 0008732C 7C 7F 1B 78 */ mr r31, r3 /* 8008B4F0 00087330 38 60 00 02 */ li r3, 0x2 /* 8008B4F4 00087334 4B FE 99 2D */ bl GKI_getpoolbuf /* 8008B4F8 00087338 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B4FC 0008733C 40 82 00 0C */ bne lbl_8008B508 /* 8008B500 00087340 38 60 00 00 */ li r3, 0x0 /* 8008B504 00087344 48 00 00 40 */ b lbl_8008B544 .global lbl_8008B508 lbl_8008B508: /* 8008B508 00087348 38 80 00 05 */ li r4, 0x5 /* 8008B50C 0008734C 38 00 00 00 */ li r0, 0x0 /* 8008B510 00087350 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B514 00087354 38 C0 00 1F */ li r6, 0x1f /* 8008B518 00087358 38 A0 00 04 */ li r5, 0x4 /* 8008B51C 0008735C 38 80 00 02 */ li r4, 0x2 /* 8008B520 00087360 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B524 00087364 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B528 00087368 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B52C 0008736C 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B530 00087370 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B534 00087374 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008B538 00087378 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B53C 0008737C 4B FF D2 A9 */ bl btu_hcif_send_cmd /* 8008B540 00087380 38 60 00 01 */ li r3, 0x1 .global lbl_8008B544 lbl_8008B544: /* 8008B544 00087384 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B548 00087388 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B54C 0008738C 7C 08 03 A6 */ mtlr r0 /* 8008B550 00087390 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B554 00087394 4E 80 00 20 */ blr .global btsnd_hcic_setup_esco_conn btsnd_hcic_setup_esco_conn: /* 8008B558 00087398 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8008B55C 0008739C 7C 08 02 A6 */ mflr r0 /* 8008B560 000873A0 90 01 00 34 */ stw r0, 0x34(r1) /* 8008B564 000873A4 39 61 00 30 */ addi r11, r1, 0x30 /* 8008B568 000873A8 4B F7 BD CD */ bl lbl_80007334 /* 8008B56C 000873AC 7C 79 1B 78 */ mr r25, r3 /* 8008B570 000873B0 7C 9A 23 78 */ mr r26, r4 /* 8008B574 000873B4 7C BB 2B 78 */ mr r27, r5 /* 8008B578 000873B8 7C DC 33 78 */ mr r28, r6 /* 8008B57C 000873BC 7C FD 3B 78 */ mr r29, r7 /* 8008B580 000873C0 7D 1E 43 78 */ mr r30, r8 /* 8008B584 000873C4 7D 3F 4B 78 */ mr r31, r9 /* 8008B588 000873C8 38 60 00 02 */ li r3, 0x2 /* 8008B58C 000873CC 4B FE 98 95 */ bl GKI_getpoolbuf /* 8008B590 000873D0 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B594 000873D4 40 82 00 0C */ bne lbl_8008B5A0 /* 8008B598 000873D8 38 60 00 00 */ li r3, 0x0 /* 8008B59C 000873DC 48 00 00 A0 */ b lbl_8008B63C .global lbl_8008B5A0 lbl_8008B5A0: /* 8008B5A0 000873E0 38 00 00 14 */ li r0, 0x14 /* 8008B5A4 000873E4 7F 2C 46 70 */ srawi r12, r25, 8 /* 8008B5A8 000873E8 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B5AC 000873EC 38 00 00 00 */ li r0, 0x0 /* 8008B5B0 000873F0 38 C0 00 28 */ li r6, 0x28 /* 8008B5B4 000873F4 38 80 00 04 */ li r4, 0x4 /* 8008B5B8 000873F8 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B5BC 000873FC 38 00 00 11 */ li r0, 0x11 /* 8008B5C0 00087400 57 4B C6 3E */ extrwi r11, r26, 8, 16 /* 8008B5C4 00087404 57 4A 86 3E */ extrwi r10, r26, 8, 8 /* 8008B5C8 00087408 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B5CC 0008740C 57 49 46 3E */ srwi r9, r26, 24 /* 8008B5D0 00087410 57 68 C6 3E */ extrwi r8, r27, 8, 16 /* 8008B5D4 00087414 57 67 86 3E */ extrwi r7, r27, 8, 8 /* 8008B5D8 00087418 98 83 00 09 */ stb r4, 0x9(r3) /* 8008B5DC 0008741C 7F 85 46 70 */ srawi r5, r28, 8 /* 8008B5E0 00087420 57 66 46 3E */ srwi r6, r27, 24 /* 8008B5E4 00087424 7F A4 46 70 */ srawi r4, r29, 8 /* 8008B5E8 00087428 98 03 00 0A */ stb r0, 0xa(r3) /* 8008B5EC 0008742C 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B5F0 00087430 9B 23 00 0B */ stb r25, 0xb(r3) /* 8008B5F4 00087434 99 83 00 0C */ stb r12, 0xc(r3) /* 8008B5F8 00087438 9B 43 00 0D */ stb r26, 0xd(r3) /* 8008B5FC 0008743C 99 63 00 0E */ stb r11, 0xe(r3) /* 8008B600 00087440 99 43 00 0F */ stb r10, 0xf(r3) /* 8008B604 00087444 99 23 00 10 */ stb r9, 0x10(r3) /* 8008B608 00087448 9B 63 00 11 */ stb r27, 0x11(r3) /* 8008B60C 0008744C 99 03 00 12 */ stb r8, 0x12(r3) /* 8008B610 00087450 98 E3 00 13 */ stb r7, 0x13(r3) /* 8008B614 00087454 98 C3 00 14 */ stb r6, 0x14(r3) /* 8008B618 00087458 9B 83 00 15 */ stb r28, 0x15(r3) /* 8008B61C 0008745C 98 A3 00 16 */ stb r5, 0x16(r3) /* 8008B620 00087460 9B A3 00 17 */ stb r29, 0x17(r3) /* 8008B624 00087464 98 83 00 18 */ stb r4, 0x18(r3) /* 8008B628 00087468 9B C3 00 19 */ stb r30, 0x19(r3) /* 8008B62C 0008746C 9B E3 00 1A */ stb r31, 0x1a(r3) /* 8008B630 00087470 98 03 00 1B */ stb r0, 0x1b(r3) /* 8008B634 00087474 4B FF D1 B1 */ bl btu_hcif_send_cmd /* 8008B638 00087478 38 60 00 01 */ li r3, 0x1 .global lbl_8008B63C lbl_8008B63C: /* 8008B63C 0008747C 39 61 00 30 */ addi r11, r1, 0x30 /* 8008B640 00087480 4B F7 BD 41 */ bl lbl_80007380 /* 8008B644 00087484 80 01 00 34 */ lwz r0, 0x34(r1) /* 8008B648 00087488 7C 08 03 A6 */ mtlr r0 /* 8008B64C 0008748C 38 21 00 30 */ addi r1, r1, 0x30 /* 8008B650 00087490 4E 80 00 20 */ blr .global btsnd_hcic_accept_esco_conn btsnd_hcic_accept_esco_conn: /* 8008B654 00087494 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8008B658 00087498 7C 08 02 A6 */ mflr r0 /* 8008B65C 0008749C 90 01 00 34 */ stw r0, 0x34(r1) /* 8008B660 000874A0 39 61 00 30 */ addi r11, r1, 0x30 /* 8008B664 000874A4 4B F7 BC D1 */ bl lbl_80007334 /* 8008B668 000874A8 3B 40 00 18 */ li r26, 0x18 /* 8008B66C 000874AC 39 80 00 00 */ li r12, 0x0 /* 8008B670 000874B0 39 60 00 29 */ li r11, 0x29 /* 8008B674 000874B4 38 00 00 04 */ li r0, 0x4 /* 8008B678 000874B8 3B 20 00 15 */ li r25, 0x15 /* 8008B67C 000874BC B3 43 00 02 */ sth r26, 0x2(r3) /* 8008B680 000874C0 54 BA C6 3E */ extrwi r26, r5, 8, 16 /* 8008B684 000874C4 54 BB 86 3E */ extrwi r27, r5, 8, 8 /* 8008B688 000874C8 B1 83 00 04 */ sth r12, 0x4(r3) /* 8008B68C 000874CC 54 BC 46 3E */ srwi r28, r5, 24 /* 8008B690 000874D0 54 DD C6 3E */ extrwi r29, r6, 8, 16 /* 8008B694 000874D4 54 DE 86 3E */ extrwi r30, r6, 8, 8 /* 8008B698 000874D8 99 63 00 08 */ stb r11, 0x8(r3) /* 8008B69C 000874DC 54 DF 46 3E */ srwi r31, r6, 24 /* 8008B6A0 000874E0 7C EC 46 70 */ srawi r12, r7, 8 /* 8008B6A4 000874E4 55 0B C6 3E */ extrwi r11, r8, 8, 16 /* 8008B6A8 000874E8 98 03 00 09 */ stb r0, 0x9(r3) /* 8008B6AC 000874EC 55 40 C6 3E */ extrwi r0, r10, 8, 16 /* 8008B6B0 000874F0 9B 23 00 0A */ stb r25, 0xa(r3) /* 8008B6B4 000874F4 8B 24 00 05 */ lbz r25, 0x5(r4) /* 8008B6B8 000874F8 9B 23 00 0B */ stb r25, 0xb(r3) /* 8008B6BC 000874FC 8B 24 00 04 */ lbz r25, 0x4(r4) /* 8008B6C0 00087500 9B 23 00 0C */ stb r25, 0xc(r3) /* 8008B6C4 00087504 8B 24 00 03 */ lbz r25, 0x3(r4) /* 8008B6C8 00087508 9B 23 00 0D */ stb r25, 0xd(r3) /* 8008B6CC 0008750C 8B 24 00 02 */ lbz r25, 0x2(r4) /* 8008B6D0 00087510 9B 23 00 0E */ stb r25, 0xe(r3) /* 8008B6D4 00087514 8B 24 00 01 */ lbz r25, 0x1(r4) /* 8008B6D8 00087518 9B 23 00 0F */ stb r25, 0xf(r3) /* 8008B6DC 0008751C 88 84 00 00 */ lbz r4, 0x0(r4) /* 8008B6E0 00087520 98 83 00 10 */ stb r4, 0x10(r3) /* 8008B6E4 00087524 98 A3 00 11 */ stb r5, 0x11(r3) /* 8008B6E8 00087528 9B 43 00 12 */ stb r26, 0x12(r3) /* 8008B6EC 0008752C 9B 63 00 13 */ stb r27, 0x13(r3) /* 8008B6F0 00087530 9B 83 00 14 */ stb r28, 0x14(r3) /* 8008B6F4 00087534 98 C3 00 15 */ stb r6, 0x15(r3) /* 8008B6F8 00087538 9B A3 00 16 */ stb r29, 0x16(r3) /* 8008B6FC 0008753C 9B C3 00 17 */ stb r30, 0x17(r3) /* 8008B700 00087540 9B E3 00 18 */ stb r31, 0x18(r3) /* 8008B704 00087544 98 E3 00 19 */ stb r7, 0x19(r3) /* 8008B708 00087548 99 83 00 1A */ stb r12, 0x1a(r3) /* 8008B70C 0008754C 99 03 00 1B */ stb r8, 0x1b(r3) /* 8008B710 00087550 99 63 00 1C */ stb r11, 0x1c(r3) /* 8008B714 00087554 99 23 00 1D */ stb r9, 0x1d(r3) /* 8008B718 00087558 99 43 00 1E */ stb r10, 0x1e(r3) /* 8008B71C 0008755C 98 03 00 1F */ stb r0, 0x1f(r3) /* 8008B720 00087560 4B FF D0 C5 */ bl btu_hcif_send_cmd /* 8008B724 00087564 39 61 00 30 */ addi r11, r1, 0x30 /* 8008B728 00087568 4B F7 BC 59 */ bl lbl_80007380 /* 8008B72C 0008756C 80 01 00 34 */ lwz r0, 0x34(r1) /* 8008B730 00087570 7C 08 03 A6 */ mtlr r0 /* 8008B734 00087574 38 21 00 30 */ addi r1, r1, 0x30 /* 8008B738 00087578 4E 80 00 20 */ blr .global btsnd_hcic_reject_esco_conn btsnd_hcic_reject_esco_conn: /* 8008B73C 0008757C 39 20 00 0A */ li r9, 0xa /* 8008B740 00087580 39 00 00 00 */ li r8, 0x0 /* 8008B744 00087584 38 E0 00 2A */ li r7, 0x2a /* 8008B748 00087588 38 C0 00 04 */ li r6, 0x4 /* 8008B74C 0008758C 38 00 00 07 */ li r0, 0x7 /* 8008B750 00087590 B1 23 00 02 */ sth r9, 0x2(r3) /* 8008B754 00087594 B1 03 00 04 */ sth r8, 0x4(r3) /* 8008B758 00087598 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008B75C 0008759C 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008B760 000875A0 98 03 00 0A */ stb r0, 0xa(r3) /* 8008B764 000875A4 88 04 00 05 */ lbz r0, 0x5(r4) /* 8008B768 000875A8 98 03 00 0B */ stb r0, 0xb(r3) /* 8008B76C 000875AC 88 04 00 04 */ lbz r0, 0x4(r4) /* 8008B770 000875B0 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B774 000875B4 88 04 00 03 */ lbz r0, 0x3(r4) /* 8008B778 000875B8 98 03 00 0D */ stb r0, 0xd(r3) /* 8008B77C 000875BC 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008B780 000875C0 98 03 00 0E */ stb r0, 0xe(r3) /* 8008B784 000875C4 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008B788 000875C8 98 03 00 0F */ stb r0, 0xf(r3) /* 8008B78C 000875CC 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008B790 000875D0 98 03 00 10 */ stb r0, 0x10(r3) /* 8008B794 000875D4 98 A3 00 11 */ stb r5, 0x11(r3) /* 8008B798 000875D8 4B FF D0 4C */ b btu_hcif_send_cmd .global btsnd_hcic_hold_mode btsnd_hcic_hold_mode: /* 8008B79C 000875DC 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008B7A0 000875E0 7C 08 02 A6 */ mflr r0 /* 8008B7A4 000875E4 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B7A8 000875E8 90 01 00 24 */ stw r0, 0x24(r1) /* 8008B7AC 000875EC 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008B7B0 000875F0 7C DF 33 78 */ mr r31, r6 /* 8008B7B4 000875F4 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008B7B8 000875F8 7C BE 2B 78 */ mr r30, r5 /* 8008B7BC 000875FC 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008B7C0 00087600 7C 9D 23 78 */ mr r29, r4 /* 8008B7C4 00087604 40 82 00 1C */ bne lbl_8008B7E0 /* 8008B7C8 00087608 38 60 00 02 */ li r3, 0x2 /* 8008B7CC 0008760C 4B FE 96 55 */ bl GKI_getpoolbuf /* 8008B7D0 00087610 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B7D4 00087614 40 82 00 0C */ bne lbl_8008B7E0 /* 8008B7D8 00087618 38 60 00 00 */ li r3, 0x0 /* 8008B7DC 0008761C 48 00 00 58 */ b lbl_8008B834 .global lbl_8008B7E0 lbl_8008B7E0: /* 8008B7E0 00087620 38 00 00 09 */ li r0, 0x9 /* 8008B7E4 00087624 7F A5 46 70 */ srawi r5, r29, 8 /* 8008B7E8 00087628 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B7EC 0008762C 38 00 00 00 */ li r0, 0x0 /* 8008B7F0 00087630 39 00 00 01 */ li r8, 0x1 /* 8008B7F4 00087634 38 E0 00 08 */ li r7, 0x8 /* 8008B7F8 00087638 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B7FC 0008763C 38 C0 00 06 */ li r6, 0x6 /* 8008B800 00087640 7F C4 46 70 */ srawi r4, r30, 8 /* 8008B804 00087644 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B808 00087648 99 03 00 08 */ stb r8, 0x8(r3) /* 8008B80C 0008764C 98 E3 00 09 */ stb r7, 0x9(r3) /* 8008B810 00087650 98 C3 00 0A */ stb r6, 0xa(r3) /* 8008B814 00087654 9B A3 00 0B */ stb r29, 0xb(r3) /* 8008B818 00087658 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008B81C 0008765C 9B C3 00 0D */ stb r30, 0xd(r3) /* 8008B820 00087660 98 83 00 0E */ stb r4, 0xe(r3) /* 8008B824 00087664 9B E3 00 0F */ stb r31, 0xf(r3) /* 8008B828 00087668 98 03 00 10 */ stb r0, 0x10(r3) /* 8008B82C 0008766C 4B FF CF B9 */ bl btu_hcif_send_cmd /* 8008B830 00087670 38 60 00 01 */ li r3, 0x1 .global lbl_8008B834 lbl_8008B834: /* 8008B834 00087674 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008B838 00087678 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008B83C 0008767C 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008B840 00087680 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008B844 00087684 7C 08 03 A6 */ mtlr r0 /* 8008B848 00087688 38 21 00 20 */ addi r1, r1, 0x20 /* 8008B84C 0008768C 4E 80 00 20 */ blr .global btsnd_hcic_sniff_mode btsnd_hcic_sniff_mode: /* 8008B850 00087690 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008B854 00087694 7C 08 02 A6 */ mflr r0 /* 8008B858 00087698 90 01 00 24 */ stw r0, 0x24(r1) /* 8008B85C 0008769C 39 61 00 20 */ addi r11, r1, 0x20 /* 8008B860 000876A0 4B F7 BA DD */ bl lbl_8000733C /* 8008B864 000876A4 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B868 000876A8 7C 9B 23 78 */ mr r27, r4 /* 8008B86C 000876AC 7C BC 2B 78 */ mr r28, r5 /* 8008B870 000876B0 7C DD 33 78 */ mr r29, r6 /* 8008B874 000876B4 7C FE 3B 78 */ mr r30, r7 /* 8008B878 000876B8 7D 1F 43 78 */ mr r31, r8 /* 8008B87C 000876BC 40 82 00 1C */ bne lbl_8008B898 /* 8008B880 000876C0 38 60 00 02 */ li r3, 0x2 /* 8008B884 000876C4 4B FE 95 9D */ bl GKI_getpoolbuf /* 8008B888 000876C8 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B88C 000876CC 40 82 00 0C */ bne lbl_8008B898 /* 8008B890 000876D0 38 60 00 00 */ li r3, 0x0 /* 8008B894 000876D4 48 00 00 70 */ b lbl_8008B904 .global lbl_8008B898 lbl_8008B898: /* 8008B898 000876D8 38 00 00 0D */ li r0, 0xd /* 8008B89C 000876DC 7F 67 46 70 */ srawi r7, r27, 8 /* 8008B8A0 000876E0 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B8A4 000876E4 38 80 00 00 */ li r4, 0x0 /* 8008B8A8 000876E8 7F 86 46 70 */ srawi r6, r28, 8 /* 8008B8AC 000876EC 38 00 00 03 */ li r0, 0x3 /* 8008B8B0 000876F0 B0 83 00 04 */ sth r4, 0x4(r3) /* 8008B8B4 000876F4 7F A5 46 70 */ srawi r5, r29, 8 /* 8008B8B8 000876F8 39 20 00 08 */ li r9, 0x8 /* 8008B8BC 000876FC 39 00 00 0A */ li r8, 0xa /* 8008B8C0 00087700 98 03 00 08 */ stb r0, 0x8(r3) /* 8008B8C4 00087704 7F C4 46 70 */ srawi r4, r30, 8 /* 8008B8C8 00087708 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B8CC 0008770C 99 23 00 09 */ stb r9, 0x9(r3) /* 8008B8D0 00087710 99 03 00 0A */ stb r8, 0xa(r3) /* 8008B8D4 00087714 9B 63 00 0B */ stb r27, 0xb(r3) /* 8008B8D8 00087718 98 E3 00 0C */ stb r7, 0xc(r3) /* 8008B8DC 0008771C 9B 83 00 0D */ stb r28, 0xd(r3) /* 8008B8E0 00087720 98 C3 00 0E */ stb r6, 0xe(r3) /* 8008B8E4 00087724 9B A3 00 0F */ stb r29, 0xf(r3) /* 8008B8E8 00087728 98 A3 00 10 */ stb r5, 0x10(r3) /* 8008B8EC 0008772C 9B C3 00 11 */ stb r30, 0x11(r3) /* 8008B8F0 00087730 98 83 00 12 */ stb r4, 0x12(r3) /* 8008B8F4 00087734 9B E3 00 13 */ stb r31, 0x13(r3) /* 8008B8F8 00087738 98 03 00 14 */ stb r0, 0x14(r3) /* 8008B8FC 0008773C 4B FF CE E9 */ bl btu_hcif_send_cmd /* 8008B900 00087740 38 60 00 01 */ li r3, 0x1 .global lbl_8008B904 lbl_8008B904: /* 8008B904 00087744 39 61 00 20 */ addi r11, r1, 0x20 /* 8008B908 00087748 4B F7 BA 81 */ bl lbl_80007388 /* 8008B90C 0008774C 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008B910 00087750 7C 08 03 A6 */ mtlr r0 /* 8008B914 00087754 38 21 00 20 */ addi r1, r1, 0x20 /* 8008B918 00087758 4E 80 00 20 */ blr .global btsnd_hcic_exit_sniff_mode btsnd_hcic_exit_sniff_mode: /* 8008B91C 0008775C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008B920 00087760 7C 08 02 A6 */ mflr r0 /* 8008B924 00087764 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B928 00087768 90 01 00 14 */ stw r0, 0x14(r1) /* 8008B92C 0008776C 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008B930 00087770 7C 9F 23 78 */ mr r31, r4 /* 8008B934 00087774 40 82 00 1C */ bne lbl_8008B950 /* 8008B938 00087778 38 60 00 02 */ li r3, 0x2 /* 8008B93C 0008777C 4B FE 94 E5 */ bl GKI_getpoolbuf /* 8008B940 00087780 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B944 00087784 40 82 00 0C */ bne lbl_8008B950 /* 8008B948 00087788 38 60 00 00 */ li r3, 0x0 /* 8008B94C 0008778C 48 00 00 40 */ b lbl_8008B98C .global lbl_8008B950 lbl_8008B950: /* 8008B950 00087790 38 80 00 05 */ li r4, 0x5 /* 8008B954 00087794 38 00 00 00 */ li r0, 0x0 /* 8008B958 00087798 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008B95C 0008779C 38 C0 00 04 */ li r6, 0x4 /* 8008B960 000877A0 38 A0 00 08 */ li r5, 0x8 /* 8008B964 000877A4 38 80 00 02 */ li r4, 0x2 /* 8008B968 000877A8 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008B96C 000877AC 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008B970 000877B0 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008B974 000877B4 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008B978 000877B8 98 83 00 0A */ stb r4, 0xa(r3) /* 8008B97C 000877BC 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008B980 000877C0 98 03 00 0C */ stb r0, 0xc(r3) /* 8008B984 000877C4 4B FF CE 61 */ bl btu_hcif_send_cmd /* 8008B988 000877C8 38 60 00 01 */ li r3, 0x1 .global lbl_8008B98C lbl_8008B98C: /* 8008B98C 000877CC 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008B990 000877D0 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008B994 000877D4 7C 08 03 A6 */ mtlr r0 /* 8008B998 000877D8 38 21 00 10 */ addi r1, r1, 0x10 /* 8008B99C 000877DC 4E 80 00 20 */ blr .global btsnd_hcic_park_mode btsnd_hcic_park_mode: /* 8008B9A0 000877E0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008B9A4 000877E4 7C 08 02 A6 */ mflr r0 /* 8008B9A8 000877E8 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B9AC 000877EC 90 01 00 24 */ stw r0, 0x24(r1) /* 8008B9B0 000877F0 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008B9B4 000877F4 7C DF 33 78 */ mr r31, r6 /* 8008B9B8 000877F8 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008B9BC 000877FC 7C BE 2B 78 */ mr r30, r5 /* 8008B9C0 00087800 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008B9C4 00087804 7C 9D 23 78 */ mr r29, r4 /* 8008B9C8 00087808 40 82 00 1C */ bne lbl_8008B9E4 /* 8008B9CC 0008780C 38 60 00 02 */ li r3, 0x2 /* 8008B9D0 00087810 4B FE 94 51 */ bl GKI_getpoolbuf /* 8008B9D4 00087814 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008B9D8 00087818 40 82 00 0C */ bne lbl_8008B9E4 /* 8008B9DC 0008781C 38 60 00 00 */ li r3, 0x0 /* 8008B9E0 00087820 48 00 00 58 */ b lbl_8008BA38 .global lbl_8008B9E4 lbl_8008B9E4: /* 8008B9E4 00087824 38 00 00 09 */ li r0, 0x9 /* 8008B9E8 00087828 7F A5 46 70 */ srawi r5, r29, 8 /* 8008B9EC 0008782C B0 03 00 02 */ sth r0, 0x2(r3) /* 8008B9F0 00087830 38 00 00 00 */ li r0, 0x0 /* 8008B9F4 00087834 39 00 00 05 */ li r8, 0x5 /* 8008B9F8 00087838 38 E0 00 08 */ li r7, 0x8 /* 8008B9FC 0008783C B0 03 00 04 */ sth r0, 0x4(r3) /* 8008BA00 00087840 38 C0 00 06 */ li r6, 0x6 /* 8008BA04 00087844 7F C4 46 70 */ srawi r4, r30, 8 /* 8008BA08 00087848 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008BA0C 0008784C 99 03 00 08 */ stb r8, 0x8(r3) /* 8008BA10 00087850 98 E3 00 09 */ stb r7, 0x9(r3) /* 8008BA14 00087854 98 C3 00 0A */ stb r6, 0xa(r3) /* 8008BA18 00087858 9B A3 00 0B */ stb r29, 0xb(r3) /* 8008BA1C 0008785C 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008BA20 00087860 9B C3 00 0D */ stb r30, 0xd(r3) /* 8008BA24 00087864 98 83 00 0E */ stb r4, 0xe(r3) /* 8008BA28 00087868 9B E3 00 0F */ stb r31, 0xf(r3) /* 8008BA2C 0008786C 98 03 00 10 */ stb r0, 0x10(r3) /* 8008BA30 00087870 4B FF CD B5 */ bl btu_hcif_send_cmd /* 8008BA34 00087874 38 60 00 01 */ li r3, 0x1 .global lbl_8008BA38 lbl_8008BA38: /* 8008BA38 00087878 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008BA3C 0008787C 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008BA40 00087880 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008BA44 00087884 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008BA48 00087888 7C 08 03 A6 */ mtlr r0 /* 8008BA4C 0008788C 38 21 00 20 */ addi r1, r1, 0x20 /* 8008BA50 00087890 4E 80 00 20 */ blr .global btsnd_hcic_exit_park_mode btsnd_hcic_exit_park_mode: /* 8008BA54 00087894 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008BA58 00087898 7C 08 02 A6 */ mflr r0 /* 8008BA5C 0008789C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BA60 000878A0 90 01 00 14 */ stw r0, 0x14(r1) /* 8008BA64 000878A4 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008BA68 000878A8 7C 9F 23 78 */ mr r31, r4 /* 8008BA6C 000878AC 40 82 00 1C */ bne lbl_8008BA88 /* 8008BA70 000878B0 38 60 00 02 */ li r3, 0x2 /* 8008BA74 000878B4 4B FE 93 AD */ bl GKI_getpoolbuf /* 8008BA78 000878B8 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BA7C 000878BC 40 82 00 0C */ bne lbl_8008BA88 /* 8008BA80 000878C0 38 60 00 00 */ li r3, 0x0 /* 8008BA84 000878C4 48 00 00 40 */ b lbl_8008BAC4 .global lbl_8008BA88 lbl_8008BA88: /* 8008BA88 000878C8 38 80 00 05 */ li r4, 0x5 /* 8008BA8C 000878CC 38 00 00 00 */ li r0, 0x0 /* 8008BA90 000878D0 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008BA94 000878D4 38 C0 00 06 */ li r6, 0x6 /* 8008BA98 000878D8 38 A0 00 08 */ li r5, 0x8 /* 8008BA9C 000878DC 38 80 00 02 */ li r4, 0x2 /* 8008BAA0 000878E0 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008BAA4 000878E4 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008BAA8 000878E8 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008BAAC 000878EC 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008BAB0 000878F0 98 83 00 0A */ stb r4, 0xa(r3) /* 8008BAB4 000878F4 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008BAB8 000878F8 98 03 00 0C */ stb r0, 0xc(r3) /* 8008BABC 000878FC 4B FF CD 29 */ bl btu_hcif_send_cmd /* 8008BAC0 00087900 38 60 00 01 */ li r3, 0x1 .global lbl_8008BAC4 lbl_8008BAC4: /* 8008BAC4 00087904 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008BAC8 00087908 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008BACC 0008790C 7C 08 03 A6 */ mtlr r0 /* 8008BAD0 00087910 38 21 00 10 */ addi r1, r1, 0x10 /* 8008BAD4 00087914 4E 80 00 20 */ blr .global btsnd_hcic_switch_role btsnd_hcic_switch_role: /* 8008BAD8 00087918 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008BADC 0008791C 7C 08 02 A6 */ mflr r0 /* 8008BAE0 00087920 90 01 00 14 */ stw r0, 0x14(r1) /* 8008BAE4 00087924 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008BAE8 00087928 7C 9F 23 78 */ mr r31, r4 /* 8008BAEC 0008792C 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008BAF0 00087930 7C 7E 1B 78 */ mr r30, r3 /* 8008BAF4 00087934 38 60 00 02 */ li r3, 0x2 /* 8008BAF8 00087938 4B FE 93 29 */ bl GKI_getpoolbuf /* 8008BAFC 0008793C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BB00 00087940 40 82 00 0C */ bne lbl_8008BB0C /* 8008BB04 00087944 38 60 00 00 */ li r3, 0x0 /* 8008BB08 00087948 48 00 00 68 */ b lbl_8008BB70 .global lbl_8008BB0C lbl_8008BB0C: /* 8008BB0C 0008794C 38 00 00 0A */ li r0, 0xa /* 8008BB10 00087950 38 C0 00 00 */ li r6, 0x0 /* 8008BB14 00087954 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008BB18 00087958 38 A0 00 0B */ li r5, 0xb /* 8008BB1C 0008795C 38 80 00 08 */ li r4, 0x8 /* 8008BB20 00087960 38 00 00 07 */ li r0, 0x7 /* 8008BB24 00087964 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008BB28 00087968 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008BB2C 0008796C 98 83 00 09 */ stb r4, 0x9(r3) /* 8008BB30 00087970 98 03 00 0A */ stb r0, 0xa(r3) /* 8008BB34 00087974 88 1E 00 05 */ lbz r0, 0x5(r30) /* 8008BB38 00087978 98 03 00 0B */ stb r0, 0xb(r3) /* 8008BB3C 0008797C 88 1E 00 04 */ lbz r0, 0x4(r30) /* 8008BB40 00087980 98 03 00 0C */ stb r0, 0xc(r3) /* 8008BB44 00087984 88 1E 00 03 */ lbz r0, 0x3(r30) /* 8008BB48 00087988 98 03 00 0D */ stb r0, 0xd(r3) /* 8008BB4C 0008798C 88 1E 00 02 */ lbz r0, 0x2(r30) /* 8008BB50 00087990 98 03 00 0E */ stb r0, 0xe(r3) /* 8008BB54 00087994 88 1E 00 01 */ lbz r0, 0x1(r30) /* 8008BB58 00087998 98 03 00 0F */ stb r0, 0xf(r3) /* 8008BB5C 0008799C 88 1E 00 00 */ lbz r0, 0x0(r30) /* 8008BB60 000879A0 98 03 00 10 */ stb r0, 0x10(r3) /* 8008BB64 000879A4 9B E3 00 11 */ stb r31, 0x11(r3) /* 8008BB68 000879A8 4B FF CC 7D */ bl btu_hcif_send_cmd /* 8008BB6C 000879AC 38 60 00 01 */ li r3, 0x1 .global lbl_8008BB70 lbl_8008BB70: /* 8008BB70 000879B0 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008BB74 000879B4 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008BB78 000879B8 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008BB7C 000879BC 7C 08 03 A6 */ mtlr r0 /* 8008BB80 000879C0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008BB84 000879C4 4E 80 00 20 */ blr .global btsnd_hcic_write_policy_set btsnd_hcic_write_policy_set: /* 8008BB88 000879C8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008BB8C 000879CC 7C 08 02 A6 */ mflr r0 /* 8008BB90 000879D0 90 01 00 14 */ stw r0, 0x14(r1) /* 8008BB94 000879D4 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008BB98 000879D8 7C 9F 23 78 */ mr r31, r4 /* 8008BB9C 000879DC 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008BBA0 000879E0 7C 7E 1B 78 */ mr r30, r3 /* 8008BBA4 000879E4 38 60 00 02 */ li r3, 0x2 /* 8008BBA8 000879E8 4B FE 92 79 */ bl GKI_getpoolbuf /* 8008BBAC 000879EC 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BBB0 000879F0 40 82 00 0C */ bne lbl_8008BBBC /* 8008BBB4 000879F4 38 60 00 00 */ li r3, 0x0 /* 8008BBB8 000879F8 48 00 00 4C */ b lbl_8008BC04 .global lbl_8008BBBC lbl_8008BBBC: /* 8008BBBC 000879FC 38 80 00 07 */ li r4, 0x7 /* 8008BBC0 00087A00 38 00 00 00 */ li r0, 0x0 /* 8008BBC4 00087A04 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008BBC8 00087A08 38 E0 00 0D */ li r7, 0xd /* 8008BBCC 00087A0C 38 C0 00 08 */ li r6, 0x8 /* 8008BBD0 00087A10 38 A0 00 04 */ li r5, 0x4 /* 8008BBD4 00087A14 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008BBD8 00087A18 7F C4 46 70 */ srawi r4, r30, 8 /* 8008BBDC 00087A1C 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008BBE0 00087A20 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008BBE4 00087A24 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008BBE8 00087A28 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008BBEC 00087A2C 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008BBF0 00087A30 98 83 00 0C */ stb r4, 0xc(r3) /* 8008BBF4 00087A34 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008BBF8 00087A38 98 03 00 0E */ stb r0, 0xe(r3) /* 8008BBFC 00087A3C 4B FF CB E9 */ bl btu_hcif_send_cmd /* 8008BC00 00087A40 38 60 00 01 */ li r3, 0x1 .global lbl_8008BC04 lbl_8008BC04: /* 8008BC04 00087A44 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008BC08 00087A48 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008BC0C 00087A4C 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008BC10 00087A50 7C 08 03 A6 */ mtlr r0 /* 8008BC14 00087A54 38 21 00 10 */ addi r1, r1, 0x10 /* 8008BC18 00087A58 4E 80 00 20 */ blr .global btsnd_hcic_reset btsnd_hcic_reset: /* 8008BC1C 00087A5C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008BC20 00087A60 7C 08 02 A6 */ mflr r0 /* 8008BC24 00087A64 38 60 00 02 */ li r3, 0x2 /* 8008BC28 00087A68 90 01 00 14 */ stw r0, 0x14(r1) /* 8008BC2C 00087A6C 4B FE 91 F5 */ bl GKI_getpoolbuf /* 8008BC30 00087A70 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BC34 00087A74 40 82 00 0C */ bne lbl_8008BC40 /* 8008BC38 00087A78 38 60 00 00 */ li r3, 0x0 /* 8008BC3C 00087A7C 48 00 00 2C */ b lbl_8008BC68 .global lbl_8008BC40 lbl_8008BC40: /* 8008BC40 00087A80 38 A0 00 03 */ li r5, 0x3 /* 8008BC44 00087A84 38 80 00 00 */ li r4, 0x0 /* 8008BC48 00087A88 B0 A3 00 02 */ sth r5, 0x2(r3) /* 8008BC4C 00087A8C 38 00 00 0C */ li r0, 0xc /* 8008BC50 00087A90 B0 83 00 04 */ sth r4, 0x4(r3) /* 8008BC54 00087A94 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008BC58 00087A98 98 03 00 09 */ stb r0, 0x9(r3) /* 8008BC5C 00087A9C 98 83 00 0A */ stb r4, 0xa(r3) /* 8008BC60 00087AA0 4B FF CB 85 */ bl btu_hcif_send_cmd /* 8008BC64 00087AA4 38 60 00 01 */ li r3, 0x1 .global lbl_8008BC68 lbl_8008BC68: /* 8008BC68 00087AA8 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008BC6C 00087AAC 7C 08 03 A6 */ mtlr r0 /* 8008BC70 00087AB0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008BC74 00087AB4 4E 80 00 20 */ blr .global btsnd_hcic_set_event_filter btsnd_hcic_set_event_filter: /* 8008BC78 00087AB8 38 00 00 00 */ li r0, 0x0 /* 8008BC7C 00087ABC 39 20 00 05 */ li r9, 0x5 /* 8008BC80 00087AC0 39 00 00 0C */ li r8, 0xc /* 8008BC84 00087AC4 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008BC88 00087AC8 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008BC8C 00087ACC 7C C0 33 78 */ mr r0, r6 /* 8008BC90 00087AD0 99 23 00 08 */ stb r9, 0x8(r3) /* 8008BC94 00087AD4 99 03 00 09 */ stb r8, 0x9(r3) /* 8008BC98 00087AD8 41 82 01 84 */ beq lbl_8008BE1C /* 8008BC9C 00087ADC 39 07 00 05 */ addi r8, r7, 0x5 /* 8008BCA0 00087AE0 39 27 00 02 */ addi r9, r7, 0x2 /* 8008BCA4 00087AE4 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008BCA8 00087AE8 28 05 00 01 */ cmplwi r5, 0x1 /* 8008BCAC 00087AEC 39 03 00 0D */ addi r8, r3, 0xd /* 8008BCB0 00087AF0 99 23 00 0A */ stb r9, 0xa(r3) /* 8008BCB4 00087AF4 98 83 00 0B */ stb r4, 0xb(r3) /* 8008BCB8 00087AF8 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008BCBC 00087AFC 40 82 00 48 */ bne lbl_8008BD04 /* 8008BCC0 00087B00 88 86 00 02 */ lbz r4, 0x2(r6) /* 8008BCC4 00087B04 38 07 FF FA */ addi r0, r7, -0x6 /* 8008BCC8 00087B08 54 07 06 3E */ clrlwi r7, r0, 24 /* 8008BCCC 00087B0C 98 88 00 00 */ stb r4, 0x0(r8) /* 8008BCD0 00087B10 38 06 00 06 */ addi r0, r6, 0x6 /* 8008BCD4 00087B14 88 86 00 01 */ lbz r4, 0x1(r6) /* 8008BCD8 00087B18 98 88 00 01 */ stb r4, 0x1(r8) /* 8008BCDC 00087B1C 88 86 00 00 */ lbz r4, 0x0(r6) /* 8008BCE0 00087B20 98 88 00 02 */ stb r4, 0x2(r8) /* 8008BCE4 00087B24 88 86 00 05 */ lbz r4, 0x5(r6) /* 8008BCE8 00087B28 98 88 00 03 */ stb r4, 0x3(r8) /* 8008BCEC 00087B2C 88 86 00 04 */ lbz r4, 0x4(r6) /* 8008BCF0 00087B30 98 88 00 04 */ stb r4, 0x4(r8) /* 8008BCF4 00087B34 88 86 00 03 */ lbz r4, 0x3(r6) /* 8008BCF8 00087B38 98 88 00 05 */ stb r4, 0x5(r8) /* 8008BCFC 00087B3C 39 08 00 06 */ addi r8, r8, 0x6 /* 8008BD00 00087B40 48 00 00 4C */ b lbl_8008BD4C .global lbl_8008BD04 lbl_8008BD04: /* 8008BD04 00087B44 28 05 00 02 */ cmplwi r5, 0x2 /* 8008BD08 00087B48 40 82 00 44 */ bne lbl_8008BD4C /* 8008BD0C 00087B4C 88 86 00 05 */ lbz r4, 0x5(r6) /* 8008BD10 00087B50 38 07 FF FA */ addi r0, r7, -0x6 /* 8008BD14 00087B54 54 07 06 3E */ clrlwi r7, r0, 24 /* 8008BD18 00087B58 98 88 00 00 */ stb r4, 0x0(r8) /* 8008BD1C 00087B5C 38 06 00 06 */ addi r0, r6, 0x6 /* 8008BD20 00087B60 88 86 00 04 */ lbz r4, 0x4(r6) /* 8008BD24 00087B64 98 88 00 01 */ stb r4, 0x1(r8) /* 8008BD28 00087B68 88 86 00 03 */ lbz r4, 0x3(r6) /* 8008BD2C 00087B6C 98 88 00 02 */ stb r4, 0x2(r8) /* 8008BD30 00087B70 88 86 00 02 */ lbz r4, 0x2(r6) /* 8008BD34 00087B74 98 88 00 03 */ stb r4, 0x3(r8) /* 8008BD38 00087B78 88 86 00 01 */ lbz r4, 0x1(r6) /* 8008BD3C 00087B7C 98 88 00 04 */ stb r4, 0x4(r8) /* 8008BD40 00087B80 88 86 00 00 */ lbz r4, 0x0(r6) /* 8008BD44 00087B84 98 88 00 05 */ stb r4, 0x5(r8) /* 8008BD48 00087B88 39 08 00 06 */ addi r8, r8, 0x6 .global lbl_8008BD4C lbl_8008BD4C: /* 8008BD4C 00087B8C 2C 87 00 00 */ cmpwi cr1, r7, 0x0 /* 8008BD50 00087B90 41 86 00 E0 */ beq cr1, lbl_8008BE30 /* 8008BD54 00087B94 39 20 00 00 */ li r9, 0x0 /* 8008BD58 00087B98 40 85 00 D8 */ ble cr1, lbl_8008BE30 /* 8008BD5C 00087B9C 2C 07 00 08 */ cmpwi r7, 0x8 /* 8008BD60 00087BA0 38 A7 FF F8 */ addi r5, r7, -0x8 /* 8008BD64 00087BA4 40 81 00 8C */ ble lbl_8008BDF0 /* 8008BD68 00087BA8 38 C0 00 00 */ li r6, 0x0 /* 8008BD6C 00087BAC 41 84 00 18 */ blt cr1, lbl_8008BD84 /* 8008BD70 00087BB0 3C 80 80 00 */ lis r4, 0x8000 /* 8008BD74 00087BB4 38 84 FF FE */ addi r4, r4, -0x2 /* 8008BD78 00087BB8 7C 07 20 00 */ cmpw r7, r4 /* 8008BD7C 00087BBC 41 81 00 08 */ bgt lbl_8008BD84 /* 8008BD80 00087BC0 38 C0 00 01 */ li r6, 0x1 .global lbl_8008BD84 lbl_8008BD84: /* 8008BD84 00087BC4 2C 06 00 00 */ cmpwi r6, 0x0 /* 8008BD88 00087BC8 41 82 00 68 */ beq lbl_8008BDF0 /* 8008BD8C 00087BCC 38 85 00 07 */ addi r4, r5, 0x7 /* 8008BD90 00087BD0 54 84 E8 FE */ srwi r4, r4, 3 /* 8008BD94 00087BD4 7C 89 03 A6 */ mtctr r4 /* 8008BD98 00087BD8 2C 05 00 00 */ cmpwi r5, 0x0 /* 8008BD9C 00087BDC 40 81 00 54 */ ble lbl_8008BDF0 .global lbl_8008BDA0 lbl_8008BDA0: /* 8008BDA0 00087BE0 7C 89 00 AE */ lbzx r4, r9, r0 /* 8008BDA4 00087BE4 7C A0 4A 14 */ add r5, r0, r9 /* 8008BDA8 00087BE8 39 29 00 08 */ addi r9, r9, 0x8 /* 8008BDAC 00087BEC 98 88 00 00 */ stb r4, 0x0(r8) /* 8008BDB0 00087BF0 88 85 00 01 */ lbz r4, 0x1(r5) /* 8008BDB4 00087BF4 98 88 00 01 */ stb r4, 0x1(r8) /* 8008BDB8 00087BF8 88 85 00 02 */ lbz r4, 0x2(r5) /* 8008BDBC 00087BFC 98 88 00 02 */ stb r4, 0x2(r8) /* 8008BDC0 00087C00 88 85 00 03 */ lbz r4, 0x3(r5) /* 8008BDC4 00087C04 98 88 00 03 */ stb r4, 0x3(r8) /* 8008BDC8 00087C08 88 85 00 04 */ lbz r4, 0x4(r5) /* 8008BDCC 00087C0C 98 88 00 04 */ stb r4, 0x4(r8) /* 8008BDD0 00087C10 88 85 00 05 */ lbz r4, 0x5(r5) /* 8008BDD4 00087C14 98 88 00 05 */ stb r4, 0x5(r8) /* 8008BDD8 00087C18 88 85 00 06 */ lbz r4, 0x6(r5) /* 8008BDDC 00087C1C 98 88 00 06 */ stb r4, 0x6(r8) /* 8008BDE0 00087C20 88 85 00 07 */ lbz r4, 0x7(r5) /* 8008BDE4 00087C24 98 88 00 07 */ stb r4, 0x7(r8) /* 8008BDE8 00087C28 39 08 00 08 */ addi r8, r8, 0x8 /* 8008BDEC 00087C2C 42 00 FF B4 */ bdnz lbl_8008BDA0 .global lbl_8008BDF0 lbl_8008BDF0: /* 8008BDF0 00087C30 7C 89 38 50 */ subf r4, r9, r7 /* 8008BDF4 00087C34 7C A0 4A 14 */ add r5, r0, r9 /* 8008BDF8 00087C38 7C 89 03 A6 */ mtctr r4 /* 8008BDFC 00087C3C 7C 09 38 00 */ cmpw r9, r7 /* 8008BE00 00087C40 40 80 00 30 */ bge lbl_8008BE30 .global lbl_8008BE04 lbl_8008BE04: /* 8008BE04 00087C44 88 05 00 00 */ lbz r0, 0x0(r5) /* 8008BE08 00087C48 38 A5 00 01 */ addi r5, r5, 0x1 /* 8008BE0C 00087C4C 98 08 00 00 */ stb r0, 0x0(r8) /* 8008BE10 00087C50 39 08 00 01 */ addi r8, r8, 0x1 /* 8008BE14 00087C54 42 00 FF F0 */ bdnz lbl_8008BE04 /* 8008BE18 00087C58 48 00 00 18 */ b lbl_8008BE30 .global lbl_8008BE1C lbl_8008BE1C: /* 8008BE1C 00087C5C 38 A0 00 04 */ li r5, 0x4 /* 8008BE20 00087C60 38 00 00 01 */ li r0, 0x1 /* 8008BE24 00087C64 B0 A3 00 02 */ sth r5, 0x2(r3) /* 8008BE28 00087C68 98 03 00 0A */ stb r0, 0xa(r3) /* 8008BE2C 00087C6C 98 83 00 0B */ stb r4, 0xb(r3) .global lbl_8008BE30 lbl_8008BE30: /* 8008BE30 00087C70 4B FF C9 B4 */ b btu_hcif_send_cmd .global btsnd_hcic_write_pin_type btsnd_hcic_write_pin_type: /* 8008BE34 00087C74 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008BE38 00087C78 7C 08 02 A6 */ mflr r0 /* 8008BE3C 00087C7C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008BE40 00087C80 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008BE44 00087C84 7C 7F 1B 78 */ mr r31, r3 /* 8008BE48 00087C88 38 60 00 02 */ li r3, 0x2 /* 8008BE4C 00087C8C 4B FE 8F D5 */ bl GKI_getpoolbuf /* 8008BE50 00087C90 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008BE54 00087C94 40 82 00 0C */ bne lbl_8008BE60 /* 8008BE58 00087C98 38 60 00 00 */ li r3, 0x0 /* 8008BE5C 00087C9C 48 00 00 38 */ b lbl_8008BE94 .global lbl_8008BE60 lbl_8008BE60: /* 8008BE60 00087CA0 38 00 00 04 */ li r0, 0x4 /* 8008BE64 00087CA4 38 C0 00 00 */ li r6, 0x0 /* 8008BE68 00087CA8 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008BE6C 00087CAC 38 A0 00 0A */ li r5, 0xa /* 8008BE70 00087CB0 38 80 00 0C */ li r4, 0xc /* 8008BE74 00087CB4 38 00 00 01 */ li r0, 0x1 /* 8008BE78 00087CB8 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008BE7C 00087CBC 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008BE80 00087CC0 98 83 00 09 */ stb r4, 0x9(r3) /* 8008BE84 00087CC4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008BE88 00087CC8 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008BE8C 00087CCC 4B FF C9 59 */ bl btu_hcif_send_cmd /* 8008BE90 00087CD0 38 60 00 01 */ li r3, 0x1 .global lbl_8008BE94 lbl_8008BE94: /* 8008BE94 00087CD4 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008BE98 00087CD8 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008BE9C 00087CDC 7C 08 03 A6 */ mtlr r0 /* 8008BEA0 00087CE0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008BEA4 00087CE4 4E 80 00 20 */ blr .global btsnd_hcic_read_stored_key btsnd_hcic_read_stored_key: /* 8008BEA8 00087CE8 39 20 00 0A */ li r9, 0xa /* 8008BEAC 00087CEC 39 00 00 00 */ li r8, 0x0 /* 8008BEB0 00087CF0 38 E0 00 0D */ li r7, 0xd /* 8008BEB4 00087CF4 38 C0 00 0C */ li r6, 0xc /* 8008BEB8 00087CF8 38 00 00 07 */ li r0, 0x7 /* 8008BEBC 00087CFC B1 23 00 02 */ sth r9, 0x2(r3) /* 8008BEC0 00087D00 B1 03 00 04 */ sth r8, 0x4(r3) /* 8008BEC4 00087D04 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008BEC8 00087D08 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008BECC 00087D0C 98 03 00 0A */ stb r0, 0xa(r3) /* 8008BED0 00087D10 88 04 00 05 */ lbz r0, 0x5(r4) /* 8008BED4 00087D14 98 03 00 0B */ stb r0, 0xb(r3) /* 8008BED8 00087D18 88 04 00 04 */ lbz r0, 0x4(r4) /* 8008BEDC 00087D1C 98 03 00 0C */ stb r0, 0xc(r3) /* 8008BEE0 00087D20 88 04 00 03 */ lbz r0, 0x3(r4) /* 8008BEE4 00087D24 98 03 00 0D */ stb r0, 0xd(r3) /* 8008BEE8 00087D28 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008BEEC 00087D2C 98 03 00 0E */ stb r0, 0xe(r3) /* 8008BEF0 00087D30 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008BEF4 00087D34 98 03 00 0F */ stb r0, 0xf(r3) /* 8008BEF8 00087D38 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008BEFC 00087D3C 98 03 00 10 */ stb r0, 0x10(r3) /* 8008BF00 00087D40 98 A3 00 11 */ stb r5, 0x11(r3) /* 8008BF04 00087D44 4B FF C8 E0 */ b btu_hcif_send_cmd .global btsnd_hcic_write_stored_key btsnd_hcic_write_stored_key: /* 8008BF08 00087D48 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8008BF0C 00087D4C 7C 08 02 A6 */ mflr r0 /* 8008BF10 00087D50 90 01 00 34 */ stw r0, 0x34(r1) /* 8008BF14 00087D54 39 61 00 30 */ addi r11, r1, 0x30 /* 8008BF18 00087D58 4B F7 B4 11 */ bl lbl_80007328 /* 8008BF1C 00087D5C 1C E4 00 16 */ mulli r7, r4, 0x16 /* 8008BF20 00087D60 38 00 00 00 */ li r0, 0x0 /* 8008BF24 00087D64 39 20 00 11 */ li r9, 0x11 /* 8008BF28 00087D68 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008BF2C 00087D6C 39 00 00 0C */ li r8, 0xc /* 8008BF30 00087D70 39 47 00 04 */ addi r10, r7, 0x4 /* 8008BF34 00087D74 55 47 04 3E */ clrlwi r7, r10, 16 /* 8008BF38 00087D78 28 04 00 0B */ cmplwi r4, 0xb /* 8008BF3C 00087D7C 38 07 FF FD */ addi r0, r7, -0x3 /* 8008BF40 00087D80 B1 43 00 02 */ sth r10, 0x2(r3) /* 8008BF44 00087D84 99 23 00 08 */ stb r9, 0x8(r3) /* 8008BF48 00087D88 99 03 00 09 */ stb r8, 0x9(r3) /* 8008BF4C 00087D8C 98 03 00 0A */ stb r0, 0xa(r3) /* 8008BF50 00087D90 40 81 00 08 */ ble lbl_8008BF58 /* 8008BF54 00087D94 38 80 00 0B */ li r4, 0xb .global lbl_8008BF58 lbl_8008BF58: /* 8008BF58 00087D98 98 83 00 0B */ stb r4, 0xb(r3) /* 8008BF5C 00087D9C 38 E3 00 0C */ addi r7, r3, 0xc /* 8008BF60 00087DA0 7C 89 03 A6 */ mtctr r4 /* 8008BF64 00087DA4 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008BF68 00087DA8 40 81 01 44 */ ble lbl_8008C0AC .global lbl_8008BF6C lbl_8008BF6C: /* 8008BF6C 00087DAC 88 05 00 05 */ lbz r0, 0x5(r5) /* 8008BF70 00087DB0 3A C0 00 00 */ li r22, 0x0 /* 8008BF74 00087DB4 22 F6 00 0F */ subfic r23, r22, 0xf /* 8008BF78 00087DB8 3B 00 00 01 */ li r24, 0x1 /* 8008BF7C 00087DBC 98 07 00 00 */ stb r0, 0x0(r7) /* 8008BF80 00087DC0 23 38 00 0F */ subfic r25, r24, 0xf /* 8008BF84 00087DC4 3B 40 00 02 */ li r26, 0x2 /* 8008BF88 00087DC8 3B 80 00 03 */ li r28, 0x3 /* 8008BF8C 00087DCC 88 05 00 04 */ lbz r0, 0x4(r5) /* 8008BF90 00087DD0 23 7A 00 0F */ subfic r27, r26, 0xf /* 8008BF94 00087DD4 23 BC 00 0F */ subfic r29, r28, 0xf /* 8008BF98 00087DD8 3B C0 00 04 */ li r30, 0x4 /* 8008BF9C 00087DDC 98 07 00 01 */ stb r0, 0x1(r7) /* 8008BFA0 00087DE0 23 FE 00 0F */ subfic r31, r30, 0xf /* 8008BFA4 00087DE4 39 80 00 05 */ li r12, 0x5 /* 8008BFA8 00087DE8 39 40 00 06 */ li r10, 0x6 /* 8008BFAC 00087DEC 88 05 00 03 */ lbz r0, 0x3(r5) /* 8008BFB0 00087DF0 21 6C 00 0F */ subfic r11, r12, 0xf /* 8008BFB4 00087DF4 21 2A 00 0F */ subfic r9, r10, 0xf /* 8008BFB8 00087DF8 39 00 00 07 */ li r8, 0x7 /* 8008BFBC 00087DFC 98 07 00 02 */ stb r0, 0x2(r7) /* 8008BFC0 00087E00 20 88 00 0F */ subfic r4, r8, 0xf /* 8008BFC4 00087E04 3A C0 00 08 */ li r22, 0x8 /* 8008BFC8 00087E08 3B 00 00 09 */ li r24, 0x9 /* 8008BFCC 00087E0C 88 05 00 02 */ lbz r0, 0x2(r5) /* 8008BFD0 00087E10 3B 40 00 0A */ li r26, 0xa /* 8008BFD4 00087E14 3B 80 00 0B */ li r28, 0xb /* 8008BFD8 00087E18 3B C0 00 0C */ li r30, 0xc /* 8008BFDC 00087E1C 98 07 00 03 */ stb r0, 0x3(r7) /* 8008BFE0 00087E20 39 80 00 0D */ li r12, 0xd /* 8008BFE4 00087E24 39 40 00 0E */ li r10, 0xe /* 8008BFE8 00087E28 39 00 00 0F */ li r8, 0xf /* 8008BFEC 00087E2C 88 05 00 01 */ lbz r0, 0x1(r5) /* 8008BFF0 00087E30 98 07 00 04 */ stb r0, 0x4(r7) /* 8008BFF4 00087E34 88 05 00 00 */ lbz r0, 0x0(r5) /* 8008BFF8 00087E38 38 A5 00 06 */ addi r5, r5, 0x6 /* 8008BFFC 00087E3C 98 07 00 05 */ stb r0, 0x5(r7) /* 8008C000 00087E40 7C 06 B8 AE */ lbzx r0, r6, r23 /* 8008C004 00087E44 22 F6 00 0F */ subfic r23, r22, 0xf /* 8008C008 00087E48 98 07 00 06 */ stb r0, 0x6(r7) /* 8008C00C 00087E4C 7C 06 C8 AE */ lbzx r0, r6, r25 /* 8008C010 00087E50 23 38 00 0F */ subfic r25, r24, 0xf /* 8008C014 00087E54 98 07 00 07 */ stb r0, 0x7(r7) /* 8008C018 00087E58 7C 06 D8 AE */ lbzx r0, r6, r27 /* 8008C01C 00087E5C 23 7A 00 0F */ subfic r27, r26, 0xf /* 8008C020 00087E60 98 07 00 08 */ stb r0, 0x8(r7) /* 8008C024 00087E64 7C 06 E8 AE */ lbzx r0, r6, r29 /* 8008C028 00087E68 23 BC 00 0F */ subfic r29, r28, 0xf /* 8008C02C 00087E6C 98 07 00 09 */ stb r0, 0x9(r7) /* 8008C030 00087E70 7C 06 F8 AE */ lbzx r0, r6, r31 /* 8008C034 00087E74 23 FE 00 0F */ subfic r31, r30, 0xf /* 8008C038 00087E78 98 07 00 0A */ stb r0, 0xa(r7) /* 8008C03C 00087E7C 7C 06 58 AE */ lbzx r0, r6, r11 /* 8008C040 00087E80 21 6C 00 0F */ subfic r11, r12, 0xf /* 8008C044 00087E84 98 07 00 0B */ stb r0, 0xb(r7) /* 8008C048 00087E88 7C 06 48 AE */ lbzx r0, r6, r9 /* 8008C04C 00087E8C 21 2A 00 0F */ subfic r9, r10, 0xf /* 8008C050 00087E90 98 07 00 0C */ stb r0, 0xc(r7) /* 8008C054 00087E94 7C 06 20 AE */ lbzx r0, r6, r4 /* 8008C058 00087E98 20 88 00 0F */ subfic r4, r8, 0xf /* 8008C05C 00087E9C 98 07 00 0D */ stb r0, 0xd(r7) /* 8008C060 00087EA0 7C 06 B8 AE */ lbzx r0, r6, r23 /* 8008C064 00087EA4 98 07 00 0E */ stb r0, 0xe(r7) /* 8008C068 00087EA8 7C 06 C8 AE */ lbzx r0, r6, r25 /* 8008C06C 00087EAC 98 07 00 0F */ stb r0, 0xf(r7) /* 8008C070 00087EB0 7C 06 D8 AE */ lbzx r0, r6, r27 /* 8008C074 00087EB4 98 07 00 10 */ stb r0, 0x10(r7) /* 8008C078 00087EB8 7C 06 E8 AE */ lbzx r0, r6, r29 /* 8008C07C 00087EBC 98 07 00 11 */ stb r0, 0x11(r7) /* 8008C080 00087EC0 7C 06 F8 AE */ lbzx r0, r6, r31 /* 8008C084 00087EC4 98 07 00 12 */ stb r0, 0x12(r7) /* 8008C088 00087EC8 7C 06 58 AE */ lbzx r0, r6, r11 /* 8008C08C 00087ECC 98 07 00 13 */ stb r0, 0x13(r7) /* 8008C090 00087ED0 7C 06 48 AE */ lbzx r0, r6, r9 /* 8008C094 00087ED4 98 07 00 14 */ stb r0, 0x14(r7) /* 8008C098 00087ED8 7C 06 20 AE */ lbzx r0, r6, r4 /* 8008C09C 00087EDC 38 C6 00 10 */ addi r6, r6, 0x10 /* 8008C0A0 00087EE0 98 07 00 15 */ stb r0, 0x15(r7) /* 8008C0A4 00087EE4 38 E7 00 16 */ addi r7, r7, 0x16 /* 8008C0A8 00087EE8 42 00 FE C4 */ bdnz lbl_8008BF6C .global lbl_8008C0AC lbl_8008C0AC: /* 8008C0AC 00087EEC 4B FF C7 39 */ bl btu_hcif_send_cmd /* 8008C0B0 00087EF0 39 61 00 30 */ addi r11, r1, 0x30 /* 8008C0B4 00087EF4 4B F7 B2 C1 */ bl lbl_80007374 /* 8008C0B8 00087EF8 80 01 00 34 */ lwz r0, 0x34(r1) /* 8008C0BC 00087EFC 7C 08 03 A6 */ mtlr r0 /* 8008C0C0 00087F00 38 21 00 30 */ addi r1, r1, 0x30 /* 8008C0C4 00087F04 4E 80 00 20 */ blr .global btsnd_hcic_delete_stored_key btsnd_hcic_delete_stored_key: /* 8008C0C8 00087F08 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C0CC 00087F0C 7C 08 02 A6 */ mflr r0 /* 8008C0D0 00087F10 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C0D4 00087F14 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C0D8 00087F18 7C 9F 23 78 */ mr r31, r4 /* 8008C0DC 00087F1C 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008C0E0 00087F20 7C 7E 1B 78 */ mr r30, r3 /* 8008C0E4 00087F24 38 60 00 02 */ li r3, 0x2 /* 8008C0E8 00087F28 4B FE 8D 39 */ bl GKI_getpoolbuf /* 8008C0EC 00087F2C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C0F0 00087F30 40 82 00 0C */ bne lbl_8008C0FC /* 8008C0F4 00087F34 38 60 00 00 */ li r3, 0x0 /* 8008C0F8 00087F38 48 00 00 68 */ b lbl_8008C160 .global lbl_8008C0FC lbl_8008C0FC: /* 8008C0FC 00087F3C 38 00 00 0A */ li r0, 0xa /* 8008C100 00087F40 38 C0 00 00 */ li r6, 0x0 /* 8008C104 00087F44 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C108 00087F48 38 A0 00 12 */ li r5, 0x12 /* 8008C10C 00087F4C 38 80 00 0C */ li r4, 0xc /* 8008C110 00087F50 38 00 00 07 */ li r0, 0x7 /* 8008C114 00087F54 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008C118 00087F58 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008C11C 00087F5C 98 83 00 09 */ stb r4, 0x9(r3) /* 8008C120 00087F60 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C124 00087F64 88 1E 00 05 */ lbz r0, 0x5(r30) /* 8008C128 00087F68 98 03 00 0B */ stb r0, 0xb(r3) /* 8008C12C 00087F6C 88 1E 00 04 */ lbz r0, 0x4(r30) /* 8008C130 00087F70 98 03 00 0C */ stb r0, 0xc(r3) /* 8008C134 00087F74 88 1E 00 03 */ lbz r0, 0x3(r30) /* 8008C138 00087F78 98 03 00 0D */ stb r0, 0xd(r3) /* 8008C13C 00087F7C 88 1E 00 02 */ lbz r0, 0x2(r30) /* 8008C140 00087F80 98 03 00 0E */ stb r0, 0xe(r3) /* 8008C144 00087F84 88 1E 00 01 */ lbz r0, 0x1(r30) /* 8008C148 00087F88 98 03 00 0F */ stb r0, 0xf(r3) /* 8008C14C 00087F8C 88 1E 00 00 */ lbz r0, 0x0(r30) /* 8008C150 00087F90 98 03 00 10 */ stb r0, 0x10(r3) /* 8008C154 00087F94 9B E3 00 11 */ stb r31, 0x11(r3) /* 8008C158 00087F98 4B FF C6 8D */ bl btu_hcif_send_cmd /* 8008C15C 00087F9C 38 60 00 01 */ li r3, 0x1 .global lbl_8008C160 lbl_8008C160: /* 8008C160 00087FA0 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C164 00087FA4 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C168 00087FA8 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008C16C 00087FAC 7C 08 03 A6 */ mtlr r0 /* 8008C170 00087FB0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C174 00087FB4 4E 80 00 20 */ blr .global btsnd_hcic_change_name btsnd_hcic_change_name: /* 8008C178 00087FB8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C17C 00087FBC 7C 08 02 A6 */ mflr r0 /* 8008C180 00087FC0 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C184 00087FC4 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C188 00087FC8 7C 7F 1B 78 */ mr r31, r3 /* 8008C18C 00087FCC 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008C190 00087FD0 7C 9E 23 78 */ mr r30, r4 /* 8008C194 00087FD4 7F C3 F3 78 */ mr r3, r30 /* 8008C198 00087FD8 4B F7 A8 F5 */ bl strlen /* 8008C19C 00087FDC 38 03 00 01 */ addi r0, r3, 0x1 /* 8008C1A0 00087FE0 38 C0 00 FB */ li r6, 0xfb /* 8008C1A4 00087FE4 54 07 04 3E */ clrlwi r7, r0, 16 /* 8008C1A8 00087FE8 38 A0 00 00 */ li r5, 0x0 /* 8008C1AC 00087FEC 38 80 00 13 */ li r4, 0x13 /* 8008C1B0 00087FF0 38 60 00 0C */ li r3, 0xc /* 8008C1B4 00087FF4 38 00 00 F8 */ li r0, 0xf8 /* 8008C1B8 00087FF8 B0 DF 00 02 */ sth r6, 0x2(r31) /* 8008C1BC 00087FFC 2C 87 00 00 */ cmpwi cr1, r7, 0x0 /* 8008C1C0 00088000 38 DF 00 0B */ addi r6, r31, 0xb /* 8008C1C4 00088004 B0 BF 00 04 */ sth r5, 0x4(r31) /* 8008C1C8 00088008 39 00 00 00 */ li r8, 0x0 /* 8008C1CC 0008800C 98 9F 00 08 */ stb r4, 0x8(r31) /* 8008C1D0 00088010 98 7F 00 09 */ stb r3, 0x9(r31) /* 8008C1D4 00088014 98 1F 00 0A */ stb r0, 0xa(r31) /* 8008C1D8 00088018 40 85 00 C0 */ ble cr1, lbl_8008C298 /* 8008C1DC 0008801C 2C 07 00 08 */ cmpwi r7, 0x8 /* 8008C1E0 00088020 38 87 FF F8 */ addi r4, r7, -0x8 /* 8008C1E4 00088024 40 81 00 8C */ ble lbl_8008C270 /* 8008C1E8 00088028 38 A0 00 00 */ li r5, 0x0 /* 8008C1EC 0008802C 41 84 00 18 */ blt cr1, lbl_8008C204 /* 8008C1F0 00088030 3C 60 80 00 */ lis r3, 0x8000 /* 8008C1F4 00088034 38 03 FF FE */ addi r0, r3, -0x2 /* 8008C1F8 00088038 7C 07 00 00 */ cmpw r7, r0 /* 8008C1FC 0008803C 41 81 00 08 */ bgt lbl_8008C204 /* 8008C200 00088040 38 A0 00 01 */ li r5, 0x1 .global lbl_8008C204 lbl_8008C204: /* 8008C204 00088044 2C 05 00 00 */ cmpwi r5, 0x0 /* 8008C208 00088048 41 82 00 68 */ beq lbl_8008C270 /* 8008C20C 0008804C 38 04 00 07 */ addi r0, r4, 0x7 /* 8008C210 00088050 54 00 E8 FE */ srwi r0, r0, 3 /* 8008C214 00088054 7C 09 03 A6 */ mtctr r0 /* 8008C218 00088058 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008C21C 0008805C 40 81 00 54 */ ble lbl_8008C270 .global lbl_8008C220 lbl_8008C220: /* 8008C220 00088060 7C 1E 40 AE */ lbzx r0, r30, r8 /* 8008C224 00088064 7C 7E 42 14 */ add r3, r30, r8 /* 8008C228 00088068 39 08 00 08 */ addi r8, r8, 0x8 /* 8008C22C 0008806C 98 06 00 00 */ stb r0, 0x0(r6) /* 8008C230 00088070 88 03 00 01 */ lbz r0, 0x1(r3) /* 8008C234 00088074 98 06 00 01 */ stb r0, 0x1(r6) /* 8008C238 00088078 88 03 00 02 */ lbz r0, 0x2(r3) /* 8008C23C 0008807C 98 06 00 02 */ stb r0, 0x2(r6) /* 8008C240 00088080 88 03 00 03 */ lbz r0, 0x3(r3) /* 8008C244 00088084 98 06 00 03 */ stb r0, 0x3(r6) /* 8008C248 00088088 88 03 00 04 */ lbz r0, 0x4(r3) /* 8008C24C 0008808C 98 06 00 04 */ stb r0, 0x4(r6) /* 8008C250 00088090 88 03 00 05 */ lbz r0, 0x5(r3) /* 8008C254 00088094 98 06 00 05 */ stb r0, 0x5(r6) /* 8008C258 00088098 88 03 00 06 */ lbz r0, 0x6(r3) /* 8008C25C 0008809C 98 06 00 06 */ stb r0, 0x6(r6) /* 8008C260 000880A0 88 03 00 07 */ lbz r0, 0x7(r3) /* 8008C264 000880A4 98 06 00 07 */ stb r0, 0x7(r6) /* 8008C268 000880A8 38 C6 00 08 */ addi r6, r6, 0x8 /* 8008C26C 000880AC 42 00 FF B4 */ bdnz lbl_8008C220 .global lbl_8008C270 lbl_8008C270: /* 8008C270 000880B0 7C 08 38 50 */ subf r0, r8, r7 /* 8008C274 000880B4 7C 7E 42 14 */ add r3, r30, r8 /* 8008C278 000880B8 7C 09 03 A6 */ mtctr r0 /* 8008C27C 000880BC 7C 08 38 00 */ cmpw r8, r7 /* 8008C280 000880C0 40 80 00 18 */ bge lbl_8008C298 .global lbl_8008C284 lbl_8008C284: /* 8008C284 000880C4 88 03 00 00 */ lbz r0, 0x0(r3) /* 8008C288 000880C8 38 63 00 01 */ addi r3, r3, 0x1 /* 8008C28C 000880CC 98 06 00 00 */ stb r0, 0x0(r6) /* 8008C290 000880D0 38 C6 00 01 */ addi r6, r6, 0x1 /* 8008C294 000880D4 42 00 FF F0 */ bdnz lbl_8008C284 .global lbl_8008C298 lbl_8008C298: /* 8008C298 000880D8 7F E3 FB 78 */ mr r3, r31 /* 8008C29C 000880DC 4B FF C5 49 */ bl btu_hcif_send_cmd /* 8008C2A0 000880E0 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C2A4 000880E4 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C2A8 000880E8 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008C2AC 000880EC 7C 08 03 A6 */ mtlr r0 /* 8008C2B0 000880F0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C2B4 000880F4 4E 80 00 20 */ blr .global btsnd_hcic_write_page_tout btsnd_hcic_write_page_tout: /* 8008C2B8 000880F8 54 80 C6 3E */ extrwi r0, r4, 8, 16 /* 8008C2BC 000880FC 39 20 00 05 */ li r9, 0x5 /* 8008C2C0 00088100 39 00 00 00 */ li r8, 0x0 /* 8008C2C4 00088104 38 E0 00 18 */ li r7, 0x18 /* 8008C2C8 00088108 38 C0 00 0C */ li r6, 0xc /* 8008C2CC 0008810C 38 A0 00 02 */ li r5, 0x2 /* 8008C2D0 00088110 B1 23 00 02 */ sth r9, 0x2(r3) /* 8008C2D4 00088114 B1 03 00 04 */ sth r8, 0x4(r3) /* 8008C2D8 00088118 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008C2DC 0008811C 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008C2E0 00088120 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008C2E4 00088124 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C2E8 00088128 98 03 00 0C */ stb r0, 0xc(r3) /* 8008C2EC 0008812C 4B FF C4 F8 */ b btu_hcif_send_cmd .global btsnd_hcic_write_scan_enable btsnd_hcic_write_scan_enable: /* 8008C2F0 00088130 39 00 00 04 */ li r8, 0x4 /* 8008C2F4 00088134 38 E0 00 00 */ li r7, 0x0 /* 8008C2F8 00088138 38 C0 00 1A */ li r6, 0x1a /* 8008C2FC 0008813C 38 A0 00 0C */ li r5, 0xc /* 8008C300 00088140 38 00 00 01 */ li r0, 0x1 /* 8008C304 00088144 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008C308 00088148 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008C30C 0008814C 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008C310 00088150 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008C314 00088154 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C318 00088158 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C31C 0008815C 4B FF C4 C8 */ b btu_hcif_send_cmd .global btsnd_hcic_write_pagescan_cfg btsnd_hcic_write_pagescan_cfg: /* 8008C320 00088160 54 86 C6 3E */ extrwi r6, r4, 8, 16 /* 8008C324 00088164 54 A0 C6 3E */ extrwi r0, r5, 8, 16 /* 8008C328 00088168 39 60 00 07 */ li r11, 0x7 /* 8008C32C 0008816C 39 40 00 00 */ li r10, 0x0 /* 8008C330 00088170 39 20 00 1C */ li r9, 0x1c /* 8008C334 00088174 39 00 00 0C */ li r8, 0xc /* 8008C338 00088178 38 E0 00 04 */ li r7, 0x4 /* 8008C33C 0008817C B1 63 00 02 */ sth r11, 0x2(r3) /* 8008C340 00088180 B1 43 00 04 */ sth r10, 0x4(r3) /* 8008C344 00088184 99 23 00 08 */ stb r9, 0x8(r3) /* 8008C348 00088188 99 03 00 09 */ stb r8, 0x9(r3) /* 8008C34C 0008818C 98 E3 00 0A */ stb r7, 0xa(r3) /* 8008C350 00088190 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C354 00088194 98 C3 00 0C */ stb r6, 0xc(r3) /* 8008C358 00088198 98 A3 00 0D */ stb r5, 0xd(r3) /* 8008C35C 0008819C 98 03 00 0E */ stb r0, 0xe(r3) /* 8008C360 000881A0 4B FF C4 84 */ b btu_hcif_send_cmd .global btsnd_hcic_write_inqscan_cfg btsnd_hcic_write_inqscan_cfg: /* 8008C364 000881A4 54 86 C6 3E */ extrwi r6, r4, 8, 16 /* 8008C368 000881A8 54 A0 C6 3E */ extrwi r0, r5, 8, 16 /* 8008C36C 000881AC 39 60 00 07 */ li r11, 0x7 /* 8008C370 000881B0 39 40 00 00 */ li r10, 0x0 /* 8008C374 000881B4 39 20 00 1E */ li r9, 0x1e /* 8008C378 000881B8 39 00 00 0C */ li r8, 0xc /* 8008C37C 000881BC 38 E0 00 04 */ li r7, 0x4 /* 8008C380 000881C0 B1 63 00 02 */ sth r11, 0x2(r3) /* 8008C384 000881C4 B1 43 00 04 */ sth r10, 0x4(r3) /* 8008C388 000881C8 99 23 00 08 */ stb r9, 0x8(r3) /* 8008C38C 000881CC 99 03 00 09 */ stb r8, 0x9(r3) /* 8008C390 000881D0 98 E3 00 0A */ stb r7, 0xa(r3) /* 8008C394 000881D4 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C398 000881D8 98 C3 00 0C */ stb r6, 0xc(r3) /* 8008C39C 000881DC 98 A3 00 0D */ stb r5, 0xd(r3) /* 8008C3A0 000881E0 98 03 00 0E */ stb r0, 0xe(r3) /* 8008C3A4 000881E4 4B FF C4 40 */ b btu_hcif_send_cmd .global btsnd_hcic_write_auth_enable btsnd_hcic_write_auth_enable: /* 8008C3A8 000881E8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C3AC 000881EC 7C 08 02 A6 */ mflr r0 /* 8008C3B0 000881F0 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C3B4 000881F4 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C3B8 000881F8 7C 7F 1B 78 */ mr r31, r3 /* 8008C3BC 000881FC 38 60 00 02 */ li r3, 0x2 /* 8008C3C0 00088200 4B FE 8A 61 */ bl GKI_getpoolbuf /* 8008C3C4 00088204 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C3C8 00088208 40 82 00 0C */ bne lbl_8008C3D4 /* 8008C3CC 0008820C 38 60 00 00 */ li r3, 0x0 /* 8008C3D0 00088210 48 00 00 38 */ b lbl_8008C408 .global lbl_8008C3D4 lbl_8008C3D4: /* 8008C3D4 00088214 38 00 00 04 */ li r0, 0x4 /* 8008C3D8 00088218 38 C0 00 00 */ li r6, 0x0 /* 8008C3DC 0008821C B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C3E0 00088220 38 A0 00 20 */ li r5, 0x20 /* 8008C3E4 00088224 38 80 00 0C */ li r4, 0xc /* 8008C3E8 00088228 38 00 00 01 */ li r0, 0x1 /* 8008C3EC 0008822C B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008C3F0 00088230 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008C3F4 00088234 98 83 00 09 */ stb r4, 0x9(r3) /* 8008C3F8 00088238 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C3FC 0008823C 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008C400 00088240 4B FF C3 E5 */ bl btu_hcif_send_cmd /* 8008C404 00088244 38 60 00 01 */ li r3, 0x1 .global lbl_8008C408 lbl_8008C408: /* 8008C408 00088248 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C40C 0008824C 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C410 00088250 7C 08 03 A6 */ mtlr r0 /* 8008C414 00088254 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C418 00088258 4E 80 00 20 */ blr .global btsnd_hcic_write_encr_mode btsnd_hcic_write_encr_mode: /* 8008C41C 0008825C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C420 00088260 7C 08 02 A6 */ mflr r0 /* 8008C424 00088264 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C428 00088268 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C42C 0008826C 7C 7F 1B 78 */ mr r31, r3 /* 8008C430 00088270 38 60 00 02 */ li r3, 0x2 /* 8008C434 00088274 4B FE 89 ED */ bl GKI_getpoolbuf /* 8008C438 00088278 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C43C 0008827C 40 82 00 0C */ bne lbl_8008C448 /* 8008C440 00088280 38 60 00 00 */ li r3, 0x0 /* 8008C444 00088284 48 00 00 38 */ b lbl_8008C47C .global lbl_8008C448 lbl_8008C448: /* 8008C448 00088288 38 00 00 04 */ li r0, 0x4 /* 8008C44C 0008828C 38 C0 00 00 */ li r6, 0x0 /* 8008C450 00088290 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C454 00088294 38 A0 00 22 */ li r5, 0x22 /* 8008C458 00088298 38 80 00 0C */ li r4, 0xc /* 8008C45C 0008829C 38 00 00 01 */ li r0, 0x1 /* 8008C460 000882A0 B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008C464 000882A4 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008C468 000882A8 98 83 00 09 */ stb r4, 0x9(r3) /* 8008C46C 000882AC 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C470 000882B0 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008C474 000882B4 4B FF C3 71 */ bl btu_hcif_send_cmd /* 8008C478 000882B8 38 60 00 01 */ li r3, 0x1 .global lbl_8008C47C lbl_8008C47C: /* 8008C47C 000882BC 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C480 000882C0 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C484 000882C4 7C 08 03 A6 */ mtlr r0 /* 8008C488 000882C8 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C48C 000882CC 4E 80 00 20 */ blr .global btsnd_hcic_write_dev_class btsnd_hcic_write_dev_class: /* 8008C490 000882D0 39 00 00 06 */ li r8, 0x6 /* 8008C494 000882D4 38 E0 00 00 */ li r7, 0x0 /* 8008C498 000882D8 38 C0 00 24 */ li r6, 0x24 /* 8008C49C 000882DC 38 A0 00 0C */ li r5, 0xc /* 8008C4A0 000882E0 38 00 00 03 */ li r0, 0x3 /* 8008C4A4 000882E4 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008C4A8 000882E8 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008C4AC 000882EC 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008C4B0 000882F0 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008C4B4 000882F4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C4B8 000882F8 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008C4BC 000882FC 98 03 00 0B */ stb r0, 0xb(r3) /* 8008C4C0 00088300 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008C4C4 00088304 98 03 00 0C */ stb r0, 0xc(r3) /* 8008C4C8 00088308 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008C4CC 0008830C 98 03 00 0D */ stb r0, 0xd(r3) /* 8008C4D0 00088310 4B FF C3 14 */ b btu_hcif_send_cmd .global btsnd_hcic_write_auto_flush_tout btsnd_hcic_write_auto_flush_tout: /* 8008C4D4 00088314 54 86 C6 3E */ extrwi r6, r4, 8, 16 /* 8008C4D8 00088318 54 A0 C6 3E */ extrwi r0, r5, 8, 16 /* 8008C4DC 0008831C 39 60 00 07 */ li r11, 0x7 /* 8008C4E0 00088320 39 40 00 00 */ li r10, 0x0 /* 8008C4E4 00088324 39 20 00 28 */ li r9, 0x28 /* 8008C4E8 00088328 39 00 00 0C */ li r8, 0xc /* 8008C4EC 0008832C 38 E0 00 04 */ li r7, 0x4 /* 8008C4F0 00088330 B1 63 00 02 */ sth r11, 0x2(r3) /* 8008C4F4 00088334 B1 43 00 04 */ sth r10, 0x4(r3) /* 8008C4F8 00088338 99 23 00 08 */ stb r9, 0x8(r3) /* 8008C4FC 0008833C 99 03 00 09 */ stb r8, 0x9(r3) /* 8008C500 00088340 98 E3 00 0A */ stb r7, 0xa(r3) /* 8008C504 00088344 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C508 00088348 98 C3 00 0C */ stb r6, 0xc(r3) /* 8008C50C 0008834C 98 A3 00 0D */ stb r5, 0xd(r3) /* 8008C510 00088350 98 03 00 0E */ stb r0, 0xe(r3) /* 8008C514 00088354 4B FF C2 D0 */ b btu_hcif_send_cmd .global btsnd_hcic_set_host_buf_size btsnd_hcic_set_host_buf_size: /* 8008C518 00088358 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8008C51C 0008835C 7C 08 02 A6 */ mflr r0 /* 8008C520 00088360 90 01 00 24 */ stw r0, 0x24(r1) /* 8008C524 00088364 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8008C528 00088368 7C DF 33 78 */ mr r31, r6 /* 8008C52C 0008836C 93 C1 00 18 */ stw r30, 0x18(r1) /* 8008C530 00088370 7C BE 2B 78 */ mr r30, r5 /* 8008C534 00088374 93 A1 00 14 */ stw r29, 0x14(r1) /* 8008C538 00088378 7C 9D 23 78 */ mr r29, r4 /* 8008C53C 0008837C 93 81 00 10 */ stw r28, 0x10(r1) /* 8008C540 00088380 7C 7C 1B 78 */ mr r28, r3 /* 8008C544 00088384 38 60 00 02 */ li r3, 0x2 /* 8008C548 00088388 4B FE 88 D9 */ bl GKI_getpoolbuf /* 8008C54C 0008838C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C550 00088390 40 82 00 0C */ bne lbl_8008C55C /* 8008C554 00088394 38 60 00 00 */ li r3, 0x0 /* 8008C558 00088398 48 00 00 5C */ b lbl_8008C5B4 .global lbl_8008C55C lbl_8008C55C: /* 8008C55C 0008839C 38 00 00 0A */ li r0, 0xa /* 8008C560 000883A0 7F 85 46 70 */ srawi r5, r28, 8 /* 8008C564 000883A4 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C568 000883A8 38 00 00 00 */ li r0, 0x0 /* 8008C56C 000883AC 39 00 00 33 */ li r8, 0x33 /* 8008C570 000883B0 38 E0 00 0C */ li r7, 0xc /* 8008C574 000883B4 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008C578 000883B8 38 C0 00 07 */ li r6, 0x7 /* 8008C57C 000883BC 7F C4 46 70 */ srawi r4, r30, 8 /* 8008C580 000883C0 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008C584 000883C4 99 03 00 08 */ stb r8, 0x8(r3) /* 8008C588 000883C8 98 E3 00 09 */ stb r7, 0x9(r3) /* 8008C58C 000883CC 98 C3 00 0A */ stb r6, 0xa(r3) /* 8008C590 000883D0 9B 83 00 0B */ stb r28, 0xb(r3) /* 8008C594 000883D4 98 A3 00 0C */ stb r5, 0xc(r3) /* 8008C598 000883D8 9B A3 00 0D */ stb r29, 0xd(r3) /* 8008C59C 000883DC 9B C3 00 0E */ stb r30, 0xe(r3) /* 8008C5A0 000883E0 98 83 00 0F */ stb r4, 0xf(r3) /* 8008C5A4 000883E4 9B E3 00 10 */ stb r31, 0x10(r3) /* 8008C5A8 000883E8 98 03 00 11 */ stb r0, 0x11(r3) /* 8008C5AC 000883EC 4B FF C2 39 */ bl btu_hcif_send_cmd /* 8008C5B0 000883F0 38 60 00 01 */ li r3, 0x1 .global lbl_8008C5B4 lbl_8008C5B4: /* 8008C5B4 000883F4 80 01 00 24 */ lwz r0, 0x24(r1) /* 8008C5B8 000883F8 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8008C5BC 000883FC 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8008C5C0 00088400 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8008C5C4 00088404 83 81 00 10 */ lwz r28, 0x10(r1) /* 8008C5C8 00088408 7C 08 03 A6 */ mtlr r0 /* 8008C5CC 0008840C 38 21 00 20 */ addi r1, r1, 0x20 /* 8008C5D0 00088410 4E 80 00 20 */ blr .global btsnd_hcic_write_link_super_tout btsnd_hcic_write_link_super_tout: /* 8008C5D4 00088414 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C5D8 00088418 7C 08 02 A6 */ mflr r0 /* 8008C5DC 0008841C 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C5E0 00088420 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C5E4 00088424 7C 9F 23 78 */ mr r31, r4 /* 8008C5E8 00088428 93 C1 00 08 */ stw r30, 0x8(r1) /* 8008C5EC 0008842C 7C 7E 1B 78 */ mr r30, r3 /* 8008C5F0 00088430 38 60 00 02 */ li r3, 0x2 /* 8008C5F4 00088434 4B FE 88 2D */ bl GKI_getpoolbuf /* 8008C5F8 00088438 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C5FC 0008843C 40 82 00 0C */ bne lbl_8008C608 /* 8008C600 00088440 38 60 00 00 */ li r3, 0x0 /* 8008C604 00088444 48 00 00 4C */ b lbl_8008C650 .global lbl_8008C608 lbl_8008C608: /* 8008C608 00088448 38 80 00 07 */ li r4, 0x7 /* 8008C60C 0008844C 38 00 00 00 */ li r0, 0x0 /* 8008C610 00088450 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008C614 00088454 38 E0 00 37 */ li r7, 0x37 /* 8008C618 00088458 38 C0 00 0C */ li r6, 0xc /* 8008C61C 0008845C 38 A0 00 04 */ li r5, 0x4 /* 8008C620 00088460 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008C624 00088464 7F C4 46 70 */ srawi r4, r30, 8 /* 8008C628 00088468 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008C62C 0008846C 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008C630 00088470 98 C3 00 09 */ stb r6, 0x9(r3) /* 8008C634 00088474 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008C638 00088478 9B C3 00 0B */ stb r30, 0xb(r3) /* 8008C63C 0008847C 98 83 00 0C */ stb r4, 0xc(r3) /* 8008C640 00088480 9B E3 00 0D */ stb r31, 0xd(r3) /* 8008C644 00088484 98 03 00 0E */ stb r0, 0xe(r3) /* 8008C648 00088488 4B FF C1 9D */ bl btu_hcif_send_cmd /* 8008C64C 0008848C 38 60 00 01 */ li r3, 0x1 .global lbl_8008C650 lbl_8008C650: /* 8008C650 00088490 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C654 00088494 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C658 00088498 83 C1 00 08 */ lwz r30, 0x8(r1) /* 8008C65C 0008849C 7C 08 03 A6 */ mtlr r0 /* 8008C660 000884A0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C664 000884A4 4E 80 00 20 */ blr .global btsnd_hcic_write_cur_iac_lap btsnd_hcic_write_cur_iac_lap: /* 8008C668 000884A8 54 80 15 BA */ rlwinm r0, r4, 2, 22, 29 /* 8008C66C 000884AC 39 20 00 00 */ li r9, 0x0 /* 8008C670 000884B0 7C C4 00 50 */ subf r6, r4, r0 /* 8008C674 000884B4 39 00 00 3A */ li r8, 0x3a /* 8008C678 000884B8 39 46 00 04 */ addi r10, r6, 0x4 /* 8008C67C 000884BC 38 E0 00 0C */ li r7, 0xc /* 8008C680 000884C0 55 46 04 3E */ clrlwi r6, r10, 16 /* 8008C684 000884C4 B1 43 00 02 */ sth r10, 0x2(r3) /* 8008C688 000884C8 38 06 FF FD */ addi r0, r6, -0x3 /* 8008C68C 000884CC 38 C3 00 0C */ addi r6, r3, 0xc /* 8008C690 000884D0 B1 23 00 04 */ sth r9, 0x4(r3) /* 8008C694 000884D4 99 03 00 08 */ stb r8, 0x8(r3) /* 8008C698 000884D8 98 E3 00 09 */ stb r7, 0x9(r3) /* 8008C69C 000884DC 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C6A0 000884E0 98 83 00 0B */ stb r4, 0xb(r3) /* 8008C6A4 000884E4 7C 89 03 A6 */ mtctr r4 /* 8008C6A8 000884E8 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008C6AC 000884EC 40 81 00 28 */ ble lbl_8008C6D4 .global lbl_8008C6B0 lbl_8008C6B0: /* 8008C6B0 000884F0 88 05 00 02 */ lbz r0, 0x2(r5) /* 8008C6B4 000884F4 98 06 00 00 */ stb r0, 0x0(r6) /* 8008C6B8 000884F8 88 05 00 01 */ lbz r0, 0x1(r5) /* 8008C6BC 000884FC 98 06 00 01 */ stb r0, 0x1(r6) /* 8008C6C0 00088500 88 05 00 00 */ lbz r0, 0x0(r5) /* 8008C6C4 00088504 38 A5 00 03 */ addi r5, r5, 0x3 /* 8008C6C8 00088508 98 06 00 02 */ stb r0, 0x2(r6) /* 8008C6CC 0008850C 38 C6 00 03 */ addi r6, r6, 0x3 /* 8008C6D0 00088510 42 00 FF E0 */ bdnz lbl_8008C6B0 .global lbl_8008C6D4 lbl_8008C6D4: /* 8008C6D4 00088514 4B FF C1 10 */ b btu_hcif_send_cmd .global btsnd_hcic_read_local_ver btsnd_hcic_read_local_ver: /* 8008C6D8 00088518 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C6DC 0008851C 7C 08 02 A6 */ mflr r0 /* 8008C6E0 00088520 38 60 00 02 */ li r3, 0x2 /* 8008C6E4 00088524 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C6E8 00088528 4B FE 87 39 */ bl GKI_getpoolbuf /* 8008C6EC 0008852C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C6F0 00088530 40 82 00 0C */ bne lbl_8008C6FC /* 8008C6F4 00088534 38 60 00 00 */ li r3, 0x0 /* 8008C6F8 00088538 48 00 00 30 */ b lbl_8008C728 .global lbl_8008C6FC lbl_8008C6FC: /* 8008C6FC 0008853C 38 00 00 03 */ li r0, 0x3 /* 8008C700 00088540 38 A0 00 00 */ li r5, 0x0 /* 8008C704 00088544 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C708 00088548 38 80 00 01 */ li r4, 0x1 /* 8008C70C 0008854C 38 00 00 10 */ li r0, 0x10 /* 8008C710 00088550 B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008C714 00088554 98 83 00 08 */ stb r4, 0x8(r3) /* 8008C718 00088558 98 03 00 09 */ stb r0, 0x9(r3) /* 8008C71C 0008855C 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008C720 00088560 4B FF C0 C5 */ bl btu_hcif_send_cmd /* 8008C724 00088564 38 60 00 01 */ li r3, 0x1 .global lbl_8008C728 lbl_8008C728: /* 8008C728 00088568 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C72C 0008856C 7C 08 03 A6 */ mtlr r0 /* 8008C730 00088570 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C734 00088574 4E 80 00 20 */ blr .global btsnd_hcic_read_local_features btsnd_hcic_read_local_features: /* 8008C738 00088578 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C73C 0008857C 7C 08 02 A6 */ mflr r0 /* 8008C740 00088580 38 60 00 02 */ li r3, 0x2 /* 8008C744 00088584 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C748 00088588 4B FE 86 D9 */ bl GKI_getpoolbuf /* 8008C74C 0008858C 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C750 00088590 40 82 00 0C */ bne lbl_8008C75C /* 8008C754 00088594 38 60 00 00 */ li r3, 0x0 /* 8008C758 00088598 48 00 00 2C */ b lbl_8008C784 .global lbl_8008C75C lbl_8008C75C: /* 8008C75C 0008859C 38 A0 00 03 */ li r5, 0x3 /* 8008C760 000885A0 38 80 00 00 */ li r4, 0x0 /* 8008C764 000885A4 B0 A3 00 02 */ sth r5, 0x2(r3) /* 8008C768 000885A8 38 00 00 10 */ li r0, 0x10 /* 8008C76C 000885AC B0 83 00 04 */ sth r4, 0x4(r3) /* 8008C770 000885B0 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008C774 000885B4 98 03 00 09 */ stb r0, 0x9(r3) /* 8008C778 000885B8 98 83 00 0A */ stb r4, 0xa(r3) /* 8008C77C 000885BC 4B FF C0 69 */ bl btu_hcif_send_cmd /* 8008C780 000885C0 38 60 00 01 */ li r3, 0x1 .global lbl_8008C784 lbl_8008C784: /* 8008C784 000885C4 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C788 000885C8 7C 08 03 A6 */ mtlr r0 /* 8008C78C 000885CC 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C790 000885D0 4E 80 00 20 */ blr .global btsnd_hcic_read_buffer_size btsnd_hcic_read_buffer_size: /* 8008C794 000885D4 38 A0 00 00 */ li r5, 0x0 /* 8008C798 000885D8 38 C0 00 03 */ li r6, 0x3 /* 8008C79C 000885DC 38 80 00 05 */ li r4, 0x5 /* 8008C7A0 000885E0 38 00 00 10 */ li r0, 0x10 /* 8008C7A4 000885E4 B0 C3 00 02 */ sth r6, 0x2(r3) /* 8008C7A8 000885E8 B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008C7AC 000885EC 98 83 00 08 */ stb r4, 0x8(r3) /* 8008C7B0 000885F0 98 03 00 09 */ stb r0, 0x9(r3) /* 8008C7B4 000885F4 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008C7B8 000885F8 4B FF C0 2C */ b btu_hcif_send_cmd .global btsnd_hcic_read_bd_addr btsnd_hcic_read_bd_addr: /* 8008C7BC 000885FC 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C7C0 00088600 7C 08 02 A6 */ mflr r0 /* 8008C7C4 00088604 38 60 00 02 */ li r3, 0x2 /* 8008C7C8 00088608 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C7CC 0008860C 4B FE 86 55 */ bl GKI_getpoolbuf /* 8008C7D0 00088610 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C7D4 00088614 40 82 00 0C */ bne lbl_8008C7E0 /* 8008C7D8 00088618 38 60 00 00 */ li r3, 0x0 /* 8008C7DC 0008861C 48 00 00 30 */ b lbl_8008C80C .global lbl_8008C7E0 lbl_8008C7E0: /* 8008C7E0 00088620 38 00 00 03 */ li r0, 0x3 /* 8008C7E4 00088624 38 A0 00 00 */ li r5, 0x0 /* 8008C7E8 00088628 B0 03 00 02 */ sth r0, 0x2(r3) /* 8008C7EC 0008862C 38 80 00 09 */ li r4, 0x9 /* 8008C7F0 00088630 38 00 00 10 */ li r0, 0x10 /* 8008C7F4 00088634 B0 A3 00 04 */ sth r5, 0x4(r3) /* 8008C7F8 00088638 98 83 00 08 */ stb r4, 0x8(r3) /* 8008C7FC 0008863C 98 03 00 09 */ stb r0, 0x9(r3) /* 8008C800 00088640 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008C804 00088644 4B FF BF E1 */ bl btu_hcif_send_cmd /* 8008C808 00088648 38 60 00 01 */ li r3, 0x1 .global lbl_8008C80C lbl_8008C80C: /* 8008C80C 0008864C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C810 00088650 7C 08 03 A6 */ mtlr r0 /* 8008C814 00088654 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C818 00088658 4E 80 00 20 */ blr .global btsnd_hcic_get_link_quality btsnd_hcic_get_link_quality: /* 8008C81C 0008865C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C820 00088660 7C 08 02 A6 */ mflr r0 /* 8008C824 00088664 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C828 00088668 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C82C 0008866C 7C 7F 1B 78 */ mr r31, r3 /* 8008C830 00088670 38 60 00 02 */ li r3, 0x2 /* 8008C834 00088674 4B FE 85 ED */ bl GKI_getpoolbuf /* 8008C838 00088678 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C83C 0008867C 40 82 00 0C */ bne lbl_8008C848 /* 8008C840 00088680 38 60 00 00 */ li r3, 0x0 /* 8008C844 00088684 48 00 00 40 */ b lbl_8008C884 .global lbl_8008C848 lbl_8008C848: /* 8008C848 00088688 38 80 00 05 */ li r4, 0x5 /* 8008C84C 0008868C 38 00 00 00 */ li r0, 0x0 /* 8008C850 00088690 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008C854 00088694 38 C0 00 03 */ li r6, 0x3 /* 8008C858 00088698 38 A0 00 14 */ li r5, 0x14 /* 8008C85C 0008869C 38 80 00 02 */ li r4, 0x2 /* 8008C860 000886A0 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008C864 000886A4 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008C868 000886A8 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008C86C 000886AC 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008C870 000886B0 98 83 00 0A */ stb r4, 0xa(r3) /* 8008C874 000886B4 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008C878 000886B8 98 03 00 0C */ stb r0, 0xc(r3) /* 8008C87C 000886BC 4B FF BF 69 */ bl btu_hcif_send_cmd /* 8008C880 000886C0 38 60 00 01 */ li r3, 0x1 .global lbl_8008C884 lbl_8008C884: /* 8008C884 000886C4 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C888 000886C8 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C88C 000886CC 7C 08 03 A6 */ mtlr r0 /* 8008C890 000886D0 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C894 000886D4 4E 80 00 20 */ blr .global btsnd_hcic_read_rssi btsnd_hcic_read_rssi: /* 8008C898 000886D8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8008C89C 000886DC 7C 08 02 A6 */ mflr r0 /* 8008C8A0 000886E0 90 01 00 14 */ stw r0, 0x14(r1) /* 8008C8A4 000886E4 93 E1 00 0C */ stw r31, 0xc(r1) /* 8008C8A8 000886E8 7C 7F 1B 78 */ mr r31, r3 /* 8008C8AC 000886EC 38 60 00 02 */ li r3, 0x2 /* 8008C8B0 000886F0 4B FE 85 71 */ bl GKI_getpoolbuf /* 8008C8B4 000886F4 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C8B8 000886F8 40 82 00 0C */ bne lbl_8008C8C4 /* 8008C8BC 000886FC 38 60 00 00 */ li r3, 0x0 /* 8008C8C0 00088700 48 00 00 3C */ b lbl_8008C8FC .global lbl_8008C8C4 lbl_8008C8C4: /* 8008C8C4 00088704 38 E0 00 05 */ li r7, 0x5 /* 8008C8C8 00088708 38 C0 00 00 */ li r6, 0x0 /* 8008C8CC 0008870C B0 E3 00 02 */ sth r7, 0x2(r3) /* 8008C8D0 00088710 38 A0 00 14 */ li r5, 0x14 /* 8008C8D4 00088714 38 80 00 02 */ li r4, 0x2 /* 8008C8D8 00088718 57 E0 C6 3E */ extrwi r0, r31, 8, 16 /* 8008C8DC 0008871C B0 C3 00 04 */ sth r6, 0x4(r3) /* 8008C8E0 00088720 98 E3 00 08 */ stb r7, 0x8(r3) /* 8008C8E4 00088724 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008C8E8 00088728 98 83 00 0A */ stb r4, 0xa(r3) /* 8008C8EC 0008872C 9B E3 00 0B */ stb r31, 0xb(r3) /* 8008C8F0 00088730 98 03 00 0C */ stb r0, 0xc(r3) /* 8008C8F4 00088734 4B FF BE F1 */ bl btu_hcif_send_cmd /* 8008C8F8 00088738 38 60 00 01 */ li r3, 0x1 .global lbl_8008C8FC lbl_8008C8FC: /* 8008C8FC 0008873C 80 01 00 14 */ lwz r0, 0x14(r1) /* 8008C900 00088740 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8008C904 00088744 7C 08 03 A6 */ mtlr r0 /* 8008C908 00088748 38 21 00 10 */ addi r1, r1, 0x10 /* 8008C90C 0008874C 4E 80 00 20 */ blr .global btsnd_hcic_set_afh_channels btsnd_hcic_set_afh_channels: /* 8008C910 00088750 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8008C914 00088754 7C 08 02 A6 */ mflr r0 /* 8008C918 00088758 90 01 00 34 */ stw r0, 0x34(r1) /* 8008C91C 0008875C 93 E1 00 2C */ stw r31, 0x2c(r1) /* 8008C920 00088760 7C 9F 23 78 */ mr r31, r4 /* 8008C924 00088764 93 C1 00 28 */ stw r30, 0x28(r1) /* 8008C928 00088768 7C 7E 1B 78 */ mr r30, r3 /* 8008C92C 0008876C 38 60 00 02 */ li r3, 0x2 /* 8008C930 00088770 93 A1 00 24 */ stw r29, 0x24(r1) /* 8008C934 00088774 3F A0 80 41 */ lis r29, "@1618_80408118"@ha /* 8008C938 00088778 8D 9D 81 18 */ lbzu r12, "@1618_80408118"@l(r29) /* 8008C93C 0008877C 89 7D 00 01 */ lbz r11, 0x1(r29) /* 8008C940 00088780 89 5D 00 02 */ lbz r10, 0x2(r29) /* 8008C944 00088784 89 3D 00 03 */ lbz r9, 0x3(r29) /* 8008C948 00088788 89 1D 00 04 */ lbz r8, 0x4(r29) /* 8008C94C 0008878C 88 FD 00 05 */ lbz r7, 0x5(r29) /* 8008C950 00088790 88 DD 00 06 */ lbz r6, 0x6(r29) /* 8008C954 00088794 88 BD 00 07 */ lbz r5, 0x7(r29) /* 8008C958 00088798 88 9D 00 08 */ lbz r4, 0x8(r29) /* 8008C95C 0008879C 88 1D 00 09 */ lbz r0, 0x9(r29) /* 8008C960 000887A0 99 81 00 08 */ stb r12, 0x8(r1) /* 8008C964 000887A4 99 61 00 09 */ stb r11, 0x9(r1) /* 8008C968 000887A8 99 41 00 0A */ stb r10, 0xa(r1) /* 8008C96C 000887AC 99 21 00 0B */ stb r9, 0xb(r1) /* 8008C970 000887B0 99 01 00 0C */ stb r8, 0xc(r1) /* 8008C974 000887B4 98 E1 00 0D */ stb r7, 0xd(r1) /* 8008C978 000887B8 98 C1 00 0E */ stb r6, 0xe(r1) /* 8008C97C 000887BC 98 A1 00 0F */ stb r5, 0xf(r1) /* 8008C980 000887C0 98 81 00 10 */ stb r4, 0x10(r1) /* 8008C984 000887C4 98 01 00 11 */ stb r0, 0x11(r1) /* 8008C988 000887C8 4B FE 84 99 */ bl GKI_getpoolbuf /* 8008C98C 000887CC 2C 03 00 00 */ cmpwi r3, 0x0 /* 8008C990 000887D0 40 82 00 0C */ bne lbl_8008C99C /* 8008C994 000887D4 38 60 00 00 */ li r3, 0x0 /* 8008C998 000887D8 48 00 03 7C */ b lbl_8008CD14 .global lbl_8008C99C lbl_8008C99C: /* 8008C99C 000887DC 38 80 00 0D */ li r4, 0xd /* 8008C9A0 000887E0 38 00 00 00 */ li r0, 0x0 /* 8008C9A4 000887E4 B0 83 00 02 */ sth r4, 0x2(r3) /* 8008C9A8 000887E8 38 A0 00 3F */ li r5, 0x3f /* 8008C9AC 000887EC 38 80 00 0C */ li r4, 0xc /* 8008C9B0 000887F0 7C 1E F8 40 */ cmplw r30, r31 /* 8008C9B4 000887F4 B0 03 00 04 */ sth r0, 0x4(r3) /* 8008C9B8 000887F8 38 00 00 0A */ li r0, 0xa /* 8008C9BC 000887FC 98 A3 00 08 */ stb r5, 0x8(r3) /* 8008C9C0 00088800 98 83 00 09 */ stb r4, 0x9(r3) /* 8008C9C4 00088804 98 03 00 0A */ stb r0, 0xa(r3) /* 8008C9C8 00088808 41 81 02 F4 */ bgt lbl_8008CCBC /* 8008C9CC 0008880C 28 1F 00 4E */ cmplwi r31, 0x4e /* 8008C9D0 00088810 41 81 02 EC */ bgt lbl_8008CCBC /* 8008C9D4 00088814 7C 9E F8 00 */ cmpw cr1, r30, r31 /* 8008C9D8 00088818 41 85 02 E4 */ bgt cr1, lbl_8008CCBC /* 8008C9DC 0008881C 7D 7E F8 50 */ subf r11, r30, r31 /* 8008C9E0 00088820 38 FF FF F8 */ addi r7, r31, -0x8 /* 8008C9E4 00088824 39 8B 00 01 */ addi r12, r11, 0x1 /* 8008C9E8 00088828 2C 0C 00 08 */ cmpwi r12, 0x8 /* 8008C9EC 0008882C 40 81 02 80 */ ble lbl_8008CC6C /* 8008C9F0 00088830 38 A0 00 00 */ li r5, 0x0 /* 8008C9F4 00088834 38 C0 00 00 */ li r6, 0x0 /* 8008C9F8 00088838 39 00 00 00 */ li r8, 0x0 /* 8008C9FC 0008883C 39 20 00 00 */ li r9, 0x0 /* 8008CA00 00088840 39 40 00 00 */ li r10, 0x0 /* 8008CA04 00088844 41 85 00 18 */ bgt cr1, lbl_8008CA1C /* 8008CA08 00088848 3C 80 80 00 */ lis r4, 0x8000 /* 8008CA0C 0008884C 38 04 FF FE */ addi r0, r4, -0x2 /* 8008CA10 00088850 7C 1F 00 00 */ cmpw r31, r0 /* 8008CA14 00088854 41 81 00 08 */ bgt lbl_8008CA1C /* 8008CA18 00088858 39 40 00 01 */ li r10, 0x1 .global lbl_8008CA1C lbl_8008CA1C: /* 8008CA1C 0008885C 2C 0A 00 00 */ cmpwi r10, 0x0 /* 8008CA20 00088860 41 82 00 18 */ beq lbl_8008CA38 /* 8008CA24 00088864 3C 80 80 00 */ lis r4, 0x8000 /* 8008CA28 00088868 38 04 FF FE */ addi r0, r4, -0x2 /* 8008CA2C 0008886C 7C 1E 00 00 */ cmpw r30, r0 /* 8008CA30 00088870 41 81 00 08 */ bgt lbl_8008CA38 /* 8008CA34 00088874 39 20 00 01 */ li r9, 0x1 .global lbl_8008CA38 lbl_8008CA38: /* 8008CA38 00088878 2C 09 00 00 */ cmpwi r9, 0x0 /* 8008CA3C 0008887C 41 82 00 14 */ beq lbl_8008CA50 /* 8008CA40 00088880 3C 1E 80 00 */ addis r0, r30, 0x8000 /* 8008CA44 00088884 28 00 00 00 */ cmplwi r0, 0x0 /* 8008CA48 00088888 41 82 00 08 */ beq lbl_8008CA50 /* 8008CA4C 0008888C 39 00 00 01 */ li r8, 0x1 .global lbl_8008CA50 lbl_8008CA50: /* 8008CA50 00088890 2C 08 00 00 */ cmpwi r8, 0x0 /* 8008CA54 00088894 41 82 00 38 */ beq lbl_8008CA8C /* 8008CA58 00088898 7C 1E 00 D0 */ neg r0, r30 /* 8008CA5C 0008889C 57 E8 00 00 */ clrrwi r8, r31, 31 /* 8008CA60 000888A0 54 00 00 00 */ clrrwi r0, r0, 31 /* 8008CA64 000888A4 38 80 00 01 */ li r4, 0x1 /* 8008CA68 000888A8 7C 08 00 00 */ cmpw r8, r0 /* 8008CA6C 000888AC 40 82 00 14 */ bne lbl_8008CA80 /* 8008CA70 000888B0 55 60 00 00 */ clrrwi r0, r11, 31 /* 8008CA74 000888B4 7C 08 00 00 */ cmpw r8, r0 /* 8008CA78 000888B8 41 82 00 08 */ beq lbl_8008CA80 /* 8008CA7C 000888BC 38 80 00 00 */ li r4, 0x0 .global lbl_8008CA80 lbl_8008CA80: /* 8008CA80 000888C0 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008CA84 000888C4 41 82 00 08 */ beq lbl_8008CA8C /* 8008CA88 000888C8 38 C0 00 01 */ li r6, 0x1 .global lbl_8008CA8C lbl_8008CA8C: /* 8008CA8C 000888CC 2C 06 00 00 */ cmpwi r6, 0x0 /* 8008CA90 000888D0 41 82 00 28 */ beq lbl_8008CAB8 /* 8008CA94 000888D4 55 60 00 01 */ clrrwi. r0, r11, 31 /* 8008CA98 000888D8 38 80 00 01 */ li r4, 0x1 /* 8008CA9C 000888DC 40 82 00 10 */ bne lbl_8008CAAC /* 8008CAA0 000888E0 55 80 00 01 */ clrrwi. r0, r12, 31 /* 8008CAA4 000888E4 41 82 00 08 */ beq lbl_8008CAAC /* 8008CAA8 000888E8 38 80 00 00 */ li r4, 0x0 .global lbl_8008CAAC lbl_8008CAAC: /* 8008CAAC 000888EC 2C 04 00 00 */ cmpwi r4, 0x0 /* 8008CAB0 000888F0 41 82 00 08 */ beq lbl_8008CAB8 /* 8008CAB4 000888F4 38 A0 00 01 */ li r5, 0x1 .global lbl_8008CAB8 lbl_8008CAB8: /* 8008CAB8 000888F8 2C 05 00 00 */ cmpwi r5, 0x0 /* 8008CABC 000888FC 41 82 01 B0 */ beq lbl_8008CC6C /* 8008CAC0 00088900 38 A7 00 08 */ addi r5, r7, 0x8 /* 8008CAC4 00088904 7F C0 1E 70 */ srawi r0, r30, 3 /* 8008CAC8 00088908 7C BE 28 50 */ subf r5, r30, r5 /* 8008CACC 0008890C 38 81 00 08 */ addi r4, r1, 0x8 /* 8008CAD0 00088910 7C C0 01 94 */ addze r6, r0 /* 8008CAD4 00088914 38 00 00 01 */ li r0, 0x1 /* 8008CAD8 00088918 54 A5 E8 FE */ srwi r5, r5, 3 /* 8008CADC 0008891C 7C C4 32 14 */ add r6, r4, r6 /* 8008CAE0 00088920 7C A9 03 A6 */ mtctr r5 /* 8008CAE4 00088924 7C 1E 38 00 */ cmpw r30, r7 /* 8008CAE8 00088928 41 81 01 84 */ bgt lbl_8008CC6C .global lbl_8008CAEC lbl_8008CAEC: /* 8008CAEC 0008892C 57 C5 E8 04 */ slwi r5, r30, 29 /* 8008CAF0 00088930 57 C8 0F FE */ srwi r8, r30, 31 /* 8008CAF4 00088934 7C A8 28 50 */ subf r5, r8, r5 /* 8008CAF8 00088938 89 46 00 00 */ lbz r10, 0x0(r6) /* 8008CAFC 0008893C 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CB00 00088940 38 FE 00 01 */ addi r7, r30, 0x1 /* 8008CB04 00088944 7C A5 42 14 */ add r5, r5, r8 /* 8008CB08 00088948 39 3E 00 02 */ addi r9, r30, 0x2 /* 8008CB0C 0008894C 7C 05 28 30 */ slw r5, r0, r5 /* 8008CB10 00088950 39 1E 00 03 */ addi r8, r30, 0x3 /* 8008CB14 00088954 7D 4B 28 78 */ andc r11, r10, r5 /* 8008CB18 00088958 54 EA 0F FE */ srwi r10, r7, 31 /* 8008CB1C 0008895C 99 66 00 00 */ stb r11, 0x0(r6) /* 8008CB20 00088960 54 E5 E8 04 */ slwi r5, r7, 29 /* 8008CB24 00088964 7C EB 1E 70 */ srawi r11, r7, 3 /* 8008CB28 00088968 38 FE 00 04 */ addi r7, r30, 0x4 /* 8008CB2C 0008896C 7C AA 28 50 */ subf r5, r10, r5 /* 8008CB30 00088970 38 C6 00 01 */ addi r6, r6, 0x1 /* 8008CB34 00088974 7F AB 01 94 */ addze r29, r11 /* 8008CB38 00088978 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CB3C 0008897C 7D 84 E8 AE */ lbzx r12, r4, r29 /* 8008CB40 00088980 7D 45 52 14 */ add r10, r5, r10 /* 8008CB44 00088984 7C 0B 50 30 */ slw r11, r0, r10 /* 8008CB48 00088988 55 25 E8 04 */ slwi r5, r9, 29 /* 8008CB4C 0008898C 55 2A 0F FE */ srwi r10, r9, 31 /* 8008CB50 00088990 7D 29 1E 70 */ srawi r9, r9, 3 /* 8008CB54 00088994 7D 8B 58 78 */ andc r11, r12, r11 /* 8008CB58 00088998 7C AA 28 50 */ subf r5, r10, r5 /* 8008CB5C 0008899C 7D 64 E9 AE */ stbx r11, r4, r29 /* 8008CB60 000889A0 7F A9 01 94 */ addze r29, r9 /* 8008CB64 000889A4 39 3E 00 05 */ addi r9, r30, 0x5 /* 8008CB68 000889A8 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CB6C 000889AC 7D 84 E8 AE */ lbzx r12, r4, r29 /* 8008CB70 000889B0 7C A5 52 14 */ add r5, r5, r10 /* 8008CB74 000889B4 7D 0A 1E 70 */ srawi r10, r8, 3 /* 8008CB78 000889B8 7C 0B 28 30 */ slw r11, r0, r5 /* 8008CB7C 000889BC 7D 8C 58 78 */ andc r12, r12, r11 /* 8008CB80 000889C0 55 05 E8 04 */ slwi r5, r8, 29 /* 8008CB84 000889C4 55 08 0F FE */ srwi r8, r8, 31 /* 8008CB88 000889C8 7D 84 E9 AE */ stbx r12, r4, r29 /* 8008CB8C 000889CC 7C A8 28 50 */ subf r5, r8, r5 /* 8008CB90 000889D0 7D 6A 01 94 */ addze r11, r10 /* 8008CB94 000889D4 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CB98 000889D8 7D 44 58 AE */ lbzx r10, r4, r11 /* 8008CB9C 000889DC 7D 05 42 14 */ add r8, r5, r8 /* 8008CBA0 000889E0 7C E5 1E 70 */ srawi r5, r7, 3 /* 8008CBA4 000889E4 7C 08 40 30 */ slw r8, r0, r8 /* 8008CBA8 000889E8 7D 4A 40 78 */ andc r10, r10, r8 /* 8008CBAC 000889EC 7F A5 01 94 */ addze r29, r5 /* 8008CBB0 000889F0 7D 44 59 AE */ stbx r10, r4, r11 /* 8008CBB4 000889F4 54 E5 E8 04 */ slwi r5, r7, 29 /* 8008CBB8 000889F8 54 E8 0F FE */ srwi r8, r7, 31 /* 8008CBBC 000889FC 7D 27 1E 70 */ srawi r7, r9, 3 /* 8008CBC0 00088A00 7C A8 28 50 */ subf r5, r8, r5 /* 8008CBC4 00088A04 7D 64 E8 AE */ lbzx r11, r4, r29 /* 8008CBC8 00088A08 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CBCC 00088A0C 7D 87 01 94 */ addze r12, r7 /* 8008CBD0 00088A10 7C A5 42 14 */ add r5, r5, r8 /* 8008CBD4 00088A14 39 1E 00 06 */ addi r8, r30, 0x6 /* 8008CBD8 00088A18 7C 0A 28 30 */ slw r10, r0, r5 /* 8008CBDC 00088A1C 55 25 E8 04 */ slwi r5, r9, 29 /* 8008CBE0 00088A20 55 29 0F FE */ srwi r9, r9, 31 /* 8008CBE4 00088A24 7D 6A 50 78 */ andc r10, r11, r10 /* 8008CBE8 00088A28 7D 44 E9 AE */ stbx r10, r4, r29 /* 8008CBEC 00088A2C 7C A9 28 50 */ subf r5, r9, r5 /* 8008CBF0 00088A30 54 A7 18 3E */ rotlwi r7, r5, 3 /* 8008CBF4 00088A34 7D 27 4A 14 */ add r9, r7, r9 /* 8008CBF8 00088A38 7D 05 1E 70 */ srawi r5, r8, 3 /* 8008CBFC 00088A3C 7D 65 01 94 */ addze r11, r5 /* 8008CC00 00088A40 38 FE 00 07 */ addi r7, r30, 0x7 /* 8008CC04 00088A44 7D 44 60 AE */ lbzx r10, r4, r12 /* 8008CC08 00088A48 7C 09 48 30 */ slw r9, r0, r9 /* 8008CC0C 00088A4C 55 05 E8 04 */ slwi r5, r8, 29 /* 8008CC10 00088A50 3B DE 00 08 */ addi r30, r30, 0x8 /* 8008CC14 00088A54 7D 4A 48 78 */ andc r10, r10, r9 /* 8008CC18 00088A58 55 09 0F FE */ srwi r9, r8, 31 /* 8008CC1C 00088A5C 7D 44 61 AE */ stbx r10, r4, r12 /* 8008CC20 00088A60 7C A9 28 50 */ subf r5, r9, r5 /* 8008CC24 00088A64 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CC28 00088A68 7C E8 1E 70 */ srawi r8, r7, 3 /* 8008CC2C 00088A6C 7C A5 4A 14 */ add r5, r5, r9 /* 8008CC30 00088A70 7D 44 58 AE */ lbzx r10, r4, r11 /* 8008CC34 00088A74 7C 09 28 30 */ slw r9, r0, r5 /* 8008CC38 00088A78 54 E5 E8 04 */ slwi r5, r7, 29 /* 8008CC3C 00088A7C 54 E7 0F FE */ srwi r7, r7, 31 /* 8008CC40 00088A80 7D 49 48 78 */ andc r9, r10, r9 /* 8008CC44 00088A84 7C A7 28 50 */ subf r5, r7, r5 /* 8008CC48 00088A88 7D 24 59 AE */ stbx r9, r4, r11 /* 8008CC4C 00088A8C 7D 28 01 94 */ addze r9, r8 /* 8008CC50 00088A90 54 A5 18 3E */ rotlwi r5, r5, 3 /* 8008CC54 00088A94 7D 04 48 AE */ lbzx r8, r4, r9 /* 8008CC58 00088A98 7C A5 3A 14 */ add r5, r5, r7 /* 8008CC5C 00088A9C 7C 05 28 30 */ slw r5, r0, r5 /* 8008CC60 00088AA0 7D 05 28 78 */ andc r5, r8, r5 /* 8008CC64 00088AA4 7C A4 49 AE */ stbx r5, r4, r9 /* 8008CC68 00088AA8 42 00 FE 84 */ bdnz lbl_8008CAEC .global lbl_8008CC6C lbl_8008CC6C: /* 8008CC6C 00088AAC 38 1F 00 01 */ addi r0, r31, 0x1 /* 8008CC70 00088AB0 38 E1 00 08 */ addi r7, r1, 0x8 /* 8008CC74 00088AB4 7C 1E 00 50 */ subf r0, r30, r0 /* 8008CC78 00088AB8 38 A0 00 01 */ li r5, 0x1 /* 8008CC7C 00088ABC 7C 09 03 A6 */ mtctr r0 /* 8008CC80 00088AC0 7C 1E F8 00 */ cmpw r30, r31 /* 8008CC84 00088AC4 41 81 00 38 */ bgt lbl_8008CCBC .global lbl_8008CC88 lbl_8008CC88: /* 8008CC88 00088AC8 57 C0 E8 04 */ slwi r0, r30, 29 /* 8008CC8C 00088ACC 57 C4 0F FE */ srwi r4, r30, 31 /* 8008CC90 00088AD0 7F C6 1E 70 */ srawi r6, r30, 3 /* 8008CC94 00088AD4 3B DE 00 01 */ addi r30, r30, 0x1 /* 8008CC98 00088AD8 7C 04 00 50 */ subf r0, r4, r0 /* 8008CC9C 00088ADC 7D 06 01 94 */ addze r8, r6 /* 8008CCA0 00088AE0 54 00 18 3E */ rotlwi r0, r0, 3 /* 8008CCA4 00088AE4 7C C7 40 AE */ lbzx r6, r7, r8 /* 8008CCA8 00088AE8 7C 00 22 14 */ add r0, r0, r4 /* 8008CCAC 00088AEC 7C A0 00 30 */ slw r0, r5, r0 /* 8008CCB0 00088AF0 7C C0 00 78 */ andc r0, r6, r0 /* 8008CCB4 00088AF4 7C 07 41 AE */ stbx r0, r7, r8 /* 8008CCB8 00088AF8 42 00 FF D0 */ bdnz lbl_8008CC88 .global lbl_8008CCBC lbl_8008CCBC: /* 8008CCBC 00088AFC 88 01 00 08 */ lbz r0, 0x8(r1) /* 8008CCC0 00088B00 98 03 00 0B */ stb r0, 0xb(r3) /* 8008CCC4 00088B04 88 01 00 09 */ lbz r0, 0x9(r1) /* 8008CCC8 00088B08 98 03 00 0C */ stb r0, 0xc(r3) /* 8008CCCC 00088B0C 88 01 00 0A */ lbz r0, 0xa(r1) /* 8008CCD0 00088B10 98 03 00 0D */ stb r0, 0xd(r3) /* 8008CCD4 00088B14 88 01 00 0B */ lbz r0, 0xb(r1) /* 8008CCD8 00088B18 98 03 00 0E */ stb r0, 0xe(r3) /* 8008CCDC 00088B1C 88 01 00 0C */ lbz r0, 0xc(r1) /* 8008CCE0 00088B20 98 03 00 0F */ stb r0, 0xf(r3) /* 8008CCE4 00088B24 88 01 00 0D */ lbz r0, 0xd(r1) /* 8008CCE8 00088B28 98 03 00 10 */ stb r0, 0x10(r3) /* 8008CCEC 00088B2C 88 01 00 0E */ lbz r0, 0xe(r1) /* 8008CCF0 00088B30 98 03 00 11 */ stb r0, 0x11(r3) /* 8008CCF4 00088B34 88 01 00 0F */ lbz r0, 0xf(r1) /* 8008CCF8 00088B38 98 03 00 12 */ stb r0, 0x12(r3) /* 8008CCFC 00088B3C 88 01 00 10 */ lbz r0, 0x10(r1) /* 8008CD00 00088B40 98 03 00 13 */ stb r0, 0x13(r3) /* 8008CD04 00088B44 88 01 00 11 */ lbz r0, 0x11(r1) /* 8008CD08 00088B48 98 03 00 14 */ stb r0, 0x14(r3) /* 8008CD0C 00088B4C 4B FF BA D9 */ bl btu_hcif_send_cmd /* 8008CD10 00088B50 38 60 00 01 */ li r3, 0x1 .global lbl_8008CD14 lbl_8008CD14: /* 8008CD14 00088B54 80 01 00 34 */ lwz r0, 0x34(r1) /* 8008CD18 00088B58 83 E1 00 2C */ lwz r31, 0x2c(r1) /* 8008CD1C 00088B5C 83 C1 00 28 */ lwz r30, 0x28(r1) /* 8008CD20 00088B60 83 A1 00 24 */ lwz r29, 0x24(r1) /* 8008CD24 00088B64 7C 08 03 A6 */ mtlr r0 /* 8008CD28 00088B68 38 21 00 30 */ addi r1, r1, 0x30 /* 8008CD2C 00088B6C 4E 80 00 20 */ blr .global btsnd_hcic_write_inqscan_type btsnd_hcic_write_inqscan_type: /* 8008CD30 00088B70 39 00 00 04 */ li r8, 0x4 /* 8008CD34 00088B74 38 E0 00 00 */ li r7, 0x0 /* 8008CD38 00088B78 38 C0 00 43 */ li r6, 0x43 /* 8008CD3C 00088B7C 38 A0 00 0C */ li r5, 0xc /* 8008CD40 00088B80 38 00 00 01 */ li r0, 0x1 /* 8008CD44 00088B84 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008CD48 00088B88 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008CD4C 00088B8C 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008CD50 00088B90 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008CD54 00088B94 98 03 00 0A */ stb r0, 0xa(r3) /* 8008CD58 00088B98 98 83 00 0B */ stb r4, 0xb(r3) /* 8008CD5C 00088B9C 4B FF BA 88 */ b btu_hcif_send_cmd .global btsnd_hcic_write_inquiry_mode btsnd_hcic_write_inquiry_mode: /* 8008CD60 00088BA0 39 00 00 04 */ li r8, 0x4 /* 8008CD64 00088BA4 38 E0 00 00 */ li r7, 0x0 /* 8008CD68 00088BA8 38 C0 00 45 */ li r6, 0x45 /* 8008CD6C 00088BAC 38 A0 00 0C */ li r5, 0xc /* 8008CD70 00088BB0 38 00 00 01 */ li r0, 0x1 /* 8008CD74 00088BB4 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008CD78 00088BB8 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008CD7C 00088BBC 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008CD80 00088BC0 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008CD84 00088BC4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008CD88 00088BC8 98 83 00 0B */ stb r4, 0xb(r3) /* 8008CD8C 00088BCC 4B FF BA 58 */ b btu_hcif_send_cmd .global btsnd_hcic_write_pagescan_type btsnd_hcic_write_pagescan_type: /* 8008CD90 00088BD0 39 00 00 04 */ li r8, 0x4 /* 8008CD94 00088BD4 38 E0 00 00 */ li r7, 0x0 /* 8008CD98 00088BD8 38 C0 00 47 */ li r6, 0x47 /* 8008CD9C 00088BDC 38 A0 00 0C */ li r5, 0xc /* 8008CDA0 00088BE0 38 00 00 01 */ li r0, 0x1 /* 8008CDA4 00088BE4 B1 03 00 02 */ sth r8, 0x2(r3) /* 8008CDA8 00088BE8 B0 E3 00 04 */ sth r7, 0x4(r3) /* 8008CDAC 00088BEC 98 C3 00 08 */ stb r6, 0x8(r3) /* 8008CDB0 00088BF0 98 A3 00 09 */ stb r5, 0x9(r3) /* 8008CDB4 00088BF4 98 03 00 0A */ stb r0, 0xa(r3) /* 8008CDB8 00088BF8 98 83 00 0B */ stb r4, 0xb(r3) /* 8008CDBC 00088BFC 4B FF BA 28 */ b btu_hcif_send_cmd .global btsnd_hcic_vendor_spec_cmd btsnd_hcic_vendor_spec_cmd: /* 8008CDC0 00088C00 60 88 FC 00 */ ori r8, r4, 0xfc00 /* 8008CDC4 00088C04 38 E5 00 03 */ addi r7, r5, 0x3 /* 8008CDC8 00088C08 7D 00 46 70 */ srawi r0, r8, 8 /* 8008CDCC 00088C0C 38 80 00 00 */ li r4, 0x0 /* 8008CDD0 00088C10 2C 85 00 00 */ cmpwi cr1, r5, 0x0 /* 8008CDD4 00088C14 B0 E3 00 02 */ sth r7, 0x2(r3) /* 8008CDD8 00088C18 39 23 00 0B */ addi r9, r3, 0xb /* 8008CDDC 00088C1C 39 40 00 00 */ li r10, 0x0 /* 8008CDE0 00088C20 B0 83 00 04 */ sth r4, 0x4(r3) /* 8008CDE4 00088C24 99 03 00 08 */ stb r8, 0x8(r3) /* 8008CDE8 00088C28 98 03 00 09 */ stb r0, 0x9(r3) /* 8008CDEC 00088C2C 98 A3 00 0A */ stb r5, 0xa(r3) /* 8008CDF0 00088C30 40 85 00 C0 */ ble cr1, lbl_8008CEB0 /* 8008CDF4 00088C34 2C 05 00 08 */ cmpwi r5, 0x8 /* 8008CDF8 00088C38 38 E5 FF F8 */ addi r7, r5, -0x8 /* 8008CDFC 00088C3C 40 81 00 8C */ ble lbl_8008CE88 /* 8008CE00 00088C40 39 00 00 00 */ li r8, 0x0 /* 8008CE04 00088C44 41 84 00 18 */ blt cr1, lbl_8008CE1C /* 8008CE08 00088C48 3C 80 80 00 */ lis r4, 0x8000 /* 8008CE0C 00088C4C 38 04 FF FE */ addi r0, r4, -0x2 /* 8008CE10 00088C50 7C 05 00 00 */ cmpw r5, r0 /* 8008CE14 00088C54 41 81 00 08 */ bgt lbl_8008CE1C /* 8008CE18 00088C58 39 00 00 01 */ li r8, 0x1 .global lbl_8008CE1C lbl_8008CE1C: /* 8008CE1C 00088C5C 2C 08 00 00 */ cmpwi r8, 0x0 /* 8008CE20 00088C60 41 82 00 68 */ beq lbl_8008CE88 /* 8008CE24 00088C64 38 07 00 07 */ addi r0, r7, 0x7 /* 8008CE28 00088C68 54 00 E8 FE */ srwi r0, r0, 3 /* 8008CE2C 00088C6C 7C 09 03 A6 */ mtctr r0 /* 8008CE30 00088C70 2C 07 00 00 */ cmpwi r7, 0x0 /* 8008CE34 00088C74 40 81 00 54 */ ble lbl_8008CE88 .global lbl_8008CE38 lbl_8008CE38: /* 8008CE38 00088C78 7C 06 50 AE */ lbzx r0, r6, r10 /* 8008CE3C 00088C7C 7C 86 52 14 */ add r4, r6, r10 /* 8008CE40 00088C80 39 4A 00 08 */ addi r10, r10, 0x8 /* 8008CE44 00088C84 98 09 00 00 */ stb r0, 0x0(r9) /* 8008CE48 00088C88 88 04 00 01 */ lbz r0, 0x1(r4) /* 8008CE4C 00088C8C 98 09 00 01 */ stb r0, 0x1(r9) /* 8008CE50 00088C90 88 04 00 02 */ lbz r0, 0x2(r4) /* 8008CE54 00088C94 98 09 00 02 */ stb r0, 0x2(r9) /* 8008CE58 00088C98 88 04 00 03 */ lbz r0, 0x3(r4) /* 8008CE5C 00088C9C 98 09 00 03 */ stb r0, 0x3(r9) /* 8008CE60 00088CA0 88 04 00 04 */ lbz r0, 0x4(r4) /* 8008CE64 00088CA4 98 09 00 04 */ stb r0, 0x4(r9) /* 8008CE68 00088CA8 88 04 00 05 */ lbz r0, 0x5(r4) /* 8008CE6C 00088CAC 98 09 00 05 */ stb r0, 0x5(r9) /* 8008CE70 00088CB0 88 04 00 06 */ lbz r0, 0x6(r4) /* 8008CE74 00088CB4 98 09 00 06 */ stb r0, 0x6(r9) /* 8008CE78 00088CB8 88 04 00 07 */ lbz r0, 0x7(r4) /* 8008CE7C 00088CBC 98 09 00 07 */ stb r0, 0x7(r9) /* 8008CE80 00088CC0 39 29 00 08 */ addi r9, r9, 0x8 /* 8008CE84 00088CC4 42 00 FF B4 */ bdnz lbl_8008CE38 .global lbl_8008CE88 lbl_8008CE88: /* 8008CE88 00088CC8 7C 0A 28 50 */ subf r0, r10, r5 /* 8008CE8C 00088CCC 7C 86 52 14 */ add r4, r6, r10 /* 8008CE90 00088CD0 7C 09 03 A6 */ mtctr r0 /* 8008CE94 00088CD4 7C 0A 28 00 */ cmpw r10, r5 /* 8008CE98 00088CD8 40 80 00 18 */ bge lbl_8008CEB0 .global lbl_8008CE9C lbl_8008CE9C: /* 8008CE9C 00088CDC 88 04 00 00 */ lbz r0, 0x0(r4) /* 8008CEA0 00088CE0 38 84 00 01 */ addi r4, r4, 0x1 /* 8008CEA4 00088CE4 98 09 00 00 */ stb r0, 0x0(r9) /* 8008CEA8 00088CE8 39 29 00 01 */ addi r9, r9, 0x1 /* 8008CEAC 00088CEC 42 00 FF F0 */ bdnz lbl_8008CE9C .global lbl_8008CEB0 lbl_8008CEB0: /* 8008CEB0 00088CF0 4B FF B9 34 */ b btu_hcif_send_cmd .include "macros.inc" .section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0 .global "@1618_80408118" "@1618_80408118": .4byte 0xFFFFFFFF .4byte 0xFFFFFFFF .4byte 0xFF7F0000 .4byte 0