	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723bu_handle_c2h
_rtl8723bu_handle_c2h:                  ## @rtl8723bu_handle_c2h
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rbx
	movq	(%rdi), %r14
	movl	(%rsi), %r15d
	addl	$-2, %r15d
	movl	(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	44(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_9
## %bb.3:
	movl	44(%rbx), %eax
	movq	_BT_INFO_SRC_8723B_BT_ACTIVE_SEND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovgq	%rax, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 40(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	cmpl	$0, 36(%rbx)
	je	LBB0_10
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_8:
	movl	24(%rbx), %ecx
	movl	12(%rbx), %edx
	movl	16(%rbx), %r8d
	movl	20(%rbx), %r9d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_7:
	movl	28(%rbx), %ecx
	movl	32(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_9:
	movl	8(%rbx), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %r9d
	leaq	L_.str.8(%rip), %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	%r15
	callq	_print_hex_dump
	addq	$24, %rsp
	jmp	LBB0_11
LBB0_10:
	addq	$8, %rsp
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C2H ID %02x seq %02x, len %02x source %02x\n"

	.comm	_BT_INFO_SRC_8723B_BT_ACTIVE_SEND,4,2 ## @BT_INFO_SRC_8723B_BT_ACTIVE_SEND
L_.str.1:                               ## @.str.1
	.asciz	"C2H_BT_INFO WiFi only firmware\n"

L_.str.2:                               ## @.str.2
	.asciz	"C2H_BT_INFO BT/WiFi coexist firmware\n"

L_.str.3:                               ## @.str.3
	.asciz	"BT has been reset\n"

L_.str.4:                               ## @.str.4
	.asciz	"BT TRx mask\n"

L_.str.5:                               ## @.str.5
	.asciz	"C2H_MP_INFO ext ID %02x, status %02x\n"

L_.str.6:                               ## @.str.6
	.asciz	"C2H RA RPT: rate %02x, unk %i, macid %02x, noise %i\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unhandled C2H event %02x seq %02x\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.8:                               ## @.str.8
	.asciz	"C2H content: "

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.no_dead_strip	_rtl8723bu_handle_c2h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723bu_handle_c2h
_rtl8723bu_handle_c2h:                  ; @rtl8723bu_handle_c2h
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x1, #8]
	ldr	x19, [x0]
	ldr	w8, [x1]
	sub	w20, w8, #2
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	ldr	w10, [x21, #44]
	stp	x20, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w2, [x21]
	cmp	w2, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_11
; %bb.3:
	ldr	w8, [x21, #44]
Lloh2:
	adrp	x9, _BT_INFO_SRC_8723B_BT_ACTIVE_SEND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BT_INFO_SRC_8723B_BT_ACTIVE_SEND@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh7:
	adrp	x11, l_.str.1@PAGE
Lloh8:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w8, w9
	csel	x1, x11, x10, gt
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
	ldr	w8, [x21, #36]
	cbz	w8, LBB0_10
; %bb.6:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_dbg
LBB0_7:
	ldp	w8, w9, [x21, #12]
	ldp	w11, w10, [x21, #20]
	stp	x9, x11, [sp, #16]
	stp	x8, x10, [sp]
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldp	w9, w8, [x21, #28]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_dbg
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	w3, [x21, #8]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh19:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w5, [x21, #4]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w3, #16
	mov	w4, #1
	mov	x6, x20
	mov	w7, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_print_hex_dump
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C2H ID %02x seq %02x, len %02x source %02x\n"

	.comm	_BT_INFO_SRC_8723B_BT_ACTIVE_SEND,4,2 ; @BT_INFO_SRC_8723B_BT_ACTIVE_SEND
l_.str.1:                               ; @.str.1
	.asciz	"C2H_BT_INFO WiFi only firmware\n"

l_.str.2:                               ; @.str.2
	.asciz	"C2H_BT_INFO BT/WiFi coexist firmware\n"

l_.str.3:                               ; @.str.3
	.asciz	"BT has been reset\n"

l_.str.4:                               ; @.str.4
	.asciz	"BT TRx mask\n"

l_.str.5:                               ; @.str.5
	.asciz	"C2H_MP_INFO ext ID %02x, status %02x\n"

l_.str.6:                               ; @.str.6
	.asciz	"C2H RA RPT: rate %02x, unk %i, macid %02x, noise %i\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unhandled C2H event %02x seq %02x\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.8:                               ; @.str.8
	.asciz	"C2H content: "

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.no_dead_strip	_rtl8723bu_handle_c2h
.subsections_via_symbols
