	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723e_dm_bt_need_to_dec_bt_pwr
_rtl8723e_dm_bt_need_to_dec_bt_pwr:     ## @rtl8723e_dm_bt_need_to_dec_bt_pwr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mgnt_link_status_query
	movq	_RT_MEDIA_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_BT_COEX_STATE_DEC_BT_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_BT_COEX_STATE_DEC_BT_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_MEDIA_CONNECT,8,3           ## @RT_MEDIA_CONNECT
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need to decrease bt power\n"

	.comm	_BT_COEX_STATE_DEC_BT_POWER,4,2 ## @BT_COEX_STATE_DEC_BT_POWER
	.no_dead_strip	_rtl8723e_dm_bt_need_to_dec_bt_pwr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723e_dm_bt_need_to_dec_bt_pwr
_rtl8723e_dm_bt_need_to_dec_bt_pwr:     ; @rtl8723e_dm_bt_need_to_dec_bt_pwr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_mgnt_link_status_query
Lloh0:
	adrp	x8, _RT_MEDIA_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_MEDIA_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh11:
	adrp	x8, _BT_COEX_STATE_DEC_BT_POWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT_COEX_STATE_DEC_BT_POWER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
Lloh14:
	adrp	x8, _BT_COEX_STATE_DEC_BT_POWER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BT_COEX_STATE_DEC_BT_POWER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_MEDIA_CONNECT,8,3           ; @RT_MEDIA_CONNECT
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need to decrease bt power\n"

	.comm	_BT_COEX_STATE_DEC_BT_POWER,4,2 ; @BT_COEX_STATE_DEC_BT_POWER
	.no_dead_strip	_rtl8723e_dm_bt_need_to_dec_bt_pwr
.subsections_via_symbols
