	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_8723e_c2h_command_handle   ## -- Begin function rtl_8723e_c2h_command_handle
	.p2align	4, 0x90
_rtl_8723e_c2h_command_handle:          ## @rtl_8723e_c2h_command_handle
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, %r12
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_REG_C2HEVT_MSG_NORMAL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movq	%rax, %rbx
	movq	_COMP_FW@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%ebx, %eax
	andl	$15, %eax
	movl	%eax, -56(%rbp)
	shrl	$4, %ebx
	andl	$15, %ebx
	movl	%ebx, -52(%rbp)
	movq	%r14, %rbx
	movq	%r13, %r14
	movl	(%r13), %esi
	incl	%esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movl	%eax, -48(%rbp)
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r12, %rdi
	movl	$431, %esi                      ## imm = 0x1AF
	callq	_rtl_read_byte
	movq	_C2H_EVT_HOST_CLOSE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_12
## %bb.1:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_C2H_EVT_FW_CLOSE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_2
## %bb.3:
	movl	-52(%rbp), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r15
	cmpl	$0, -52(%rbp)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	leal	(%rbx,%rax), %esi
	addl	$2, %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	movslq	-52(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	cmpl	$130, -56(%rbp)
	jne	LBB0_10
## %bb.8:
	movq	%r13, %r14
	movq	_COMP_FW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	movl	$130, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movl	-48(%rbp), %r8d
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movl	(%r15), %r8d
	leaq	L_.str.5(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rtl8723e_dm_bt_parse_bt_info
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
	movq	_C2H_EVT_HOST_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$431, %esi                      ## imm = 0x1AF
	jmp	LBB0_11
LBB0_2:
	movq	%r12, %rdi
	movl	$431, %esi                      ## imm = 0x1AF
	xorl	%edx, %edx
LBB0_11:
	callq	_rtl_write_byte
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%rbx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_C2HEVT_MSG_NORMAL,4,2      ## @REG_C2HEVT_MSG_NORMAL
	.comm	_COMP_FW,4,2                    ## @COMP_FW
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"&&&&&&: REG_C2HEVT_MSG_NORMAL is 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"cmd_id: %d, cmd_len: %d, cmd_seq: %d\n"

	.comm	_C2H_EVT_HOST_CLOSE,4,2         ## @C2H_EVT_HOST_CLOSE
	.comm	_C2H_EVT_FW_CLOSE,4,2           ## @C2H_EVT_FW_CLOSE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
L_.str.2:                               ## @.str.2
	.asciz	"malloc cmd buf failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"BT info Byte[0] (ID) is 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"BT info Byte[1] (Seq) is 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"BT info Byte[2] (Data)= 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_8723e_c2h_command_handle   ; -- Begin function rtl_8723e_c2h_command_handle
	.p2align	2
_rtl_8723e_c2h_command_handle:          ; @rtl_8723e_c2h_command_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x24, _REG_C2HEVT_MSG_NORMAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _REG_C2HEVT_MSG_NORMAL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x21, x0
Lloh2:
	adrp	x22, _COMP_FW@GOTPAGE
Lloh3:
	ldr	x22, [x22, _COMP_FW@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x23, _DBG_DMESG@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DBG_DMESG@GOTPAGEOFF]
	ldr	w2, [x23]
	str	x0, [sp]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	and	w8, w21, #0xf
	ubfx	w9, w21, #4, #4
	stp	w8, w9, [sp, #32]
	ldr	w8, [x24]
	add	w1, w8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	str	w0, [sp, #40]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldp	w8, w9, [sp, #32]
	stp	x9, x0, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x19
	mov	w1, #431
	bl	_rtl_read_byte
Lloh10:
	adrp	x23, _C2H_EVT_HOST_CLOSE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _C2H_EVT_HOST_CLOSE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w0
	b.eq	LBB0_12
; %bb.1:
Lloh12:
	adrp	x8, _C2H_EVT_FW_CLOSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _C2H_EVT_FW_CLOSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [sp, #36]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w8, w25, w8
	add	w1, w8, #2
	mov	x0, x19
	bl	_rtl_read_byte
	str	w0, [x21, x25, lsl #2]
	add	x25, x25, #1
	ldrsw	x8, [sp, #36]
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w8, [sp, #32]
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.7:
	ldr	w1, [x22]
Lloh18:
	adrp	x24, _DBG_TRACE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w8, #130
	str	x8, [sp]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x22]
	ldr	w2, [x24]
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh22:
	adrp	x3, l_.str.4@PAGE
Lloh23:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x22]
	ldr	w2, [x24]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh24:
	adrp	x3, l_.str.5@PAGE
Lloh25:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w2, [sp, #36]
	mov	x0, x20
	mov	x1, x21
	bl	_rtl8723e_dm_bt_parse_bt_info
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	x0, x21
	bl	_kfree
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #431
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	w1, #431
	mov	w2, #0
LBB0_11:
	bl	_rtl_write_byte
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	ldr	w1, [x22]
Lloh26:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x3, l_.str.2@PAGE
Lloh30:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	b	LBB0_12
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_C2HEVT_MSG_NORMAL,4,2      ; @REG_C2HEVT_MSG_NORMAL
	.comm	_COMP_FW,4,2                    ; @COMP_FW
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"&&&&&&: REG_C2HEVT_MSG_NORMAL is 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"cmd_id: %d, cmd_len: %d, cmd_seq: %d\n"

	.comm	_C2H_EVT_HOST_CLOSE,4,2         ; @C2H_EVT_HOST_CLOSE
	.comm	_C2H_EVT_FW_CLOSE,4,2           ; @C2H_EVT_FW_CLOSE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
l_.str.2:                               ; @.str.2
	.asciz	"malloc cmd buf failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"BT info Byte[0] (ID) is 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"BT info Byte[1] (Seq) is 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"BT info Byte[2] (Data)= 0x%x\n"

.subsections_via_symbols
