	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_dm_bt_balance         ## -- Begin function rtl8723e_dm_bt_balance
	.p2align	4, 0x90
_rtl8723e_dm_bt_balance:                ## @rtl8723e_dm_bt_balance
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_rtl_priv
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movl	$1, -48(%rbp)
	movl	%r14d, -52(%rbp)
	movl	%r15d, -56(%rbp)
	movl	$0, (%rax)
	movl	-56(%rbp), %ecx
	shll	$16, %ecx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.2(%rip), %r8
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ebx, 4(%rax)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	-52(%rbp), %ebx
	shll	$8, %ebx
	orl	%ecx, %ebx
	orl	-48(%rbp), %ebx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movl	%r15d, %r9d
	pushq	%rbx
	pushq	%r14
	callq	_RT_TRACE
	addq	$16, %rsp
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	$12, %esi
	movl	$3, %edx
	callq	_rtl8723e_fill_h2c_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DM][BT], Balance=[%s:%dms:%dms], write 0xc=0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"ON"

L_.str.2:                               ## @.str.2
	.asciz	"OFF"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_dm_bt_balance         ; -- Begin function rtl8723e_dm_bt_balance
	.p2align	2
_rtl8723e_dm_bt_balance:                ; @rtl8723e_dm_bt_balance
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_rtl_priv
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	w22, LBB0_2
; %bb.1:
	mov	w8, #1
	stp	w20, w8, [sp, #12]
	str	w21, [sp, #8]
	str	wzr, [x0]
	ldr	w8, [sp, #8]
	lsl	w8, w8, #16
Lloh3:
	adrp	x4, l_.str.1@PAGE
Lloh4:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	w8, #0
Lloh5:
	adrp	x4, l_.str.2@PAGE
Lloh6:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_3:
	str	w22, [x0, #4]
Lloh7:
	adrp	x9, _COMP_BT_COEXIST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh9:
	adrp	x10, _DBG_TRACE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DBG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
Lloh12:
	ldr	w2, [x10]
	ldp	w9, w10, [sp, #12]
	orr	w8, w8, w9, lsl #8
	orr	w7, w8, w10
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x5, x21
	mov	x6, x20
	bl	_RT_TRACE
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #12
	mov	w2, #3
	bl	_rtl8723e_fill_h2c_cmd
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DM][BT], Balance=[%s:%dms:%dms], write 0xc=0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"ON"

l_.str.2:                               ; @.str.2
	.asciz	"OFF"

.subsections_via_symbols
