	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8192e2ant_monitor_bt_enable_disable
_btc8192e2ant_monitor_bt_enable_disable: ## @btc8192e2ant_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), %r14
	movl	$0, -28(%rbp)
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %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	_btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt(%rip), %r8d
	incl	%r8d
	movl	%r8d, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt(%rip)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$2, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt(%rip)
	jl	LBB0_12
## %bb.6:
	movl	$1, -28(%rbp)
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_11
LBB0_10:
	movl	$0, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt(%rip)
	leaq	L_.str(%rip), %rbx
LBB0_11:
	movq	_BTC_SET_BL_BT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_12:
	movl	_btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled(%rip), %ecx
	movl	-28(%rbp), %eax
	cmpl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %r9
	movq	%r9, %r8
	cmoveq	%rcx, %r8
	movl	(%rdx), %edx
	testl	%eax, %eax
	cmoveq	%rcx, %r9
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	-28(%rbp), %eax
	movl	%eax, _btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled(%rip)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled,4,2 ## @btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled
.zerofill __DATA,__bss,_btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt,4,2 ## @btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_SET_BL_BT_DISABLE,4,2      ## @BTC_SET_BL_BT_DISABLE
	.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 enabled !!\n"

L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], bt all counters = 0, %d times!!\n"

L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], BT is disabled !!\n"

L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], BT is from %s to %s!!\n"

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

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

	.no_dead_strip	_btc8192e2ant_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 btc8192e2ant_monitor_bt_enable_disable
_btc8192e2ant_monitor_bt_enable_disable: ; @btc8192e2ant_monitor_bt_enable_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _coex_sta@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	mov	w10, #65535
Lloh3:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh4:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh5:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	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	w8, [x8, #12]
	cbnz	w8, 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	w8, [x8, #12]
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_8:
	adrp	x21, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGE
	ldr	w8, [x21, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x21, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x21, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.9:
	mov	w8, #1
	str	w8, [sp, #28]
Lloh9:
	adrp	x21, l_.str.2@PAGE
Lloh10:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	adrp	x8, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGE
	str	wzr, [x8, _btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt@PAGEOFF]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
LBB0_11:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _BTC_SET_BL_BT_DISABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BTC_SET_BL_BT_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x20
	blr	x8
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x21
	bl	_RT_TRACE
LBB0_12:
	adrp	x20, _btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled@PAGE
	ldr	w9, [x20, _btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled@PAGEOFF]
	ldr	w8, [sp, #28]
	cmp	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh16:
	adrp	x10, l_.str.4@PAGE
Lloh17:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh18:
	adrp	x11, l_.str.5@PAGE
Lloh19:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	w9, #0
	csel	x9, x11, x10, eq
	cmp	w8, #0
	csel	x8, x11, x10, eq
	stp	x9, x8, [sp]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [sp, #28]
	str	w8, [x20, _btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled@PAGEOFF]
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled,4,2 ; @btc8192e2ant_monitor_bt_enable_disable.pre_bt_disabled
.zerofill __DATA,__bss,_btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt,4,2 ; @btc8192e2ant_monitor_bt_enable_disable.bt_disable_cnt
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_SET_BL_BT_DISABLE,4,2      ; @BTC_SET_BL_BT_DISABLE
	.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 enabled !!\n"

l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], bt all counters = 0, %d times!!\n"

l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], BT is disabled !!\n"

l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], BT is from %s to %s!!\n"

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

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

	.no_dead_strip	_btc8192e2ant_monitor_bt_enable_disable
.subsections_via_symbols
