	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_monitor_bt_enable_disable
_halbtc8723b1ant_monitor_bt_enable_disable: ## @halbtc8723b1ant_monitor_bt_enable_disable
	.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	%rdi, %r15
	movq	8(%rdi), %rdi
	movl	$0, -28(%rbp)
	movq	_coex_sta@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	je	LBB0_7
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.2:
	cmpl	$0, 4(%rax)
	jne	LBB0_10
## %bb.3:
	cmpl	$0, 8(%rax)
	jne	LBB0_10
## %bb.4:
	cmpl	$0, 12(%rax)
	jne	LBB0_10
	jmp	LBB0_5
LBB0_7:
	cmpl	$65535, 4(%rax)                 ## imm = 0xFFFF
	jne	LBB0_10
## %bb.8:
	cmpl	$65535, 8(%rax)                 ## imm = 0xFFFF
	jne	LBB0_10
## %bb.9:
	cmpl	$65535, 12(%rax)                ## imm = 0xFFFF
	jne	LBB0_10
LBB0_5:
	movl	_halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt(%rip), %ecx
	leal	1(%rcx), %edx
	movl	%edx, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt(%rip)
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.6:
	movl	$1, -28(%rbp)
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %r9
	jmp	LBB0_12
LBB0_10:
	movl	$0, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt(%rip)
LBB0_11:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r9
LBB0_12:
	movl	16(%rax), %eax
	cmpl	%ebx, %eax
	je	LBB0_15
## %bb.13:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	callq	_RT_TRACE
	movq	(%r14), %rax
	movl	%ebx, 16(%rax)
	movq	_BTC_SET_BL_BT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	cmpl	$0, -28(%rbp)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_halbtc8723b1ant_action_wifi_only
	movq	_BTC_SET_ACT_LEAVE_LPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%r15)
	movq	_BTC_SET_ACT_NORMAL_LPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%r15)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt,4,2 ## @halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex], BT is from %s to %s!!\n"

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

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

	.comm	_BTC_SET_BL_BT_DISABLE,4,2      ## @BTC_SET_BL_BT_DISABLE
	.comm	_BTC_SET_ACT_LEAVE_LPS,4,2      ## @BTC_SET_ACT_LEAVE_LPS
	.comm	_BTC_SET_ACT_NORMAL_LPS,4,2     ## @BTC_SET_ACT_NORMAL_LPS
	.no_dead_strip	_halbtc8723b1ant_monitor_bt_enable_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc8723b1ant_monitor_bt_enable_disable
_halbtc8723b1ant_monitor_bt_enable_disable: ; @halbtc8723b1ant_monitor_bt_enable_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x0, [x0, #8]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _coex_sta@GOTPAGE
Lloh1:
	ldr	x20, [x20, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	mov	w10, #65535
	cmp	w9, w10
	b.eq	LBB0_5
; %bb.1:
	cbnz	w9, LBB0_10
; %bb.2:
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_10
; %bb.3:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_10
; %bb.4:
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_10
	b	LBB0_8
LBB0_5:
	ldr	w9, [x8, #4]
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.6:
	ldr	w10, [x8, #8]
	mov	w9, #65535
	cmp	w10, w9
	b.ne	LBB0_10
; %bb.7:
	ldr	w10, [x8, #12]
	cmp	w10, w9
	b.ne	LBB0_10
LBB0_8:
	adrp	x9, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt@PAGE
	ldr	w10, [x9, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
	add	w11, w10, #1
	str	w11, [x9, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_16
; %bb.9:
	mov	w21, #1
	str	w21, [sp, #12]
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	w21, #0
	adrp	x9, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt@PAGE
	str	wzr, [x9, _halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
LBB0_11:
Lloh4:
	adrp	x5, l_.str.2@PAGE
Lloh5:
	add	x5, x5, l_.str.2@PAGEOFF
LBB0_12:
	ldr	w8, [x8, #16]
	cmp	w8, w21
	b.eq	LBB0_15
; %bb.13:
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, _COMP_BT_COEXIST@GOTPAGE
Lloh9:
	ldr	x10, [x10, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh10:
	adrp	x11, _DBG_LOUD@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DBG_LOUD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x10]
Lloh13:
	ldr	w2, [x11]
Lloh14:
	adrp	x10, l_.str.1@PAGE
Lloh15:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x4, x9, x10, eq
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	ldr	x8, [x20]
	str	w21, [x8, #16]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _BTC_SET_BL_BT_DISABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTC_SET_BL_BT_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_wifi_only
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _BTC_SET_ACT_LEAVE_LPS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BTC_SET_ACT_LEAVE_LPS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, #0
	blr	x8
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _BTC_SET_ACT_NORMAL_LPS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BTC_SET_ACT_NORMAL_LPS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, #0
	blr	x8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt,4,2 ; @halbtc8723b1ant_monitor_bt_enable_disable.bt_disable_cnt
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex], BT is from %s to %s!!\n"

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

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

	.comm	_BTC_SET_BL_BT_DISABLE,4,2      ; @BTC_SET_BL_BT_DISABLE
	.comm	_BTC_SET_ACT_LEAVE_LPS,4,2      ; @BTC_SET_ACT_LEAVE_LPS
	.comm	_BTC_SET_ACT_NORMAL_LPS,4,2     ; @BTC_SET_ACT_NORMAL_LPS
	.no_dead_strip	_halbtc8723b1ant_monitor_bt_enable_disable
.subsections_via_symbols
