	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_monitor_wifi_ctr
_halbtc8723b1ant_monitor_wifi_ctr:      ## @halbtc8723b1ant_monitor_wifi_ctr
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movq	_BTC_GET_BL_WIFI_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	*24(%rdi)
	movq	_BTC_GET_S4_WIFI_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_coex_sta@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, 80(%rax)
	je	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rax)
	movups	%xmm0, 32(%rax)
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	$3976, %esi                     ## imm = 0xF88
	callq	*(%rbx)
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movl	$3988, %esi                     ## imm = 0xF94
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	movl	$3984, %esi                     ## imm = 0xF90
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	movl	$4024, %esi                     ## imm = 0xFB8
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	movl	$3972, %esi                     ## imm = 0xF84
	callq	*(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 32(%rcx)
	movq	%rbx, %rdi
	movl	$3990, %esi                     ## imm = 0xF96
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 40(%rcx)
	movq	%rbx, %rdi
	movl	$3986, %esi                     ## imm = 0xF92
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 48(%rcx)
	movq	%rbx, %rdi
	movl	$4026, %esi                     ## imm = 0xFBA
	callq	*8(%rbx)
	movq	(%r14), %rcx
	movq	%rax, 56(%rcx)
LBB0_3:
	movq	%rbx, %rdi
	movl	$3862, %esi                     ## imm = 0xF16
	movl	$1, %edx
	movl	$1, %ecx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$3862, %esi                     ## imm = 0xF16
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	*16(%rbx)
	cmpl	$0, -24(%rbp)
	je	LBB0_12
## %bb.4:
	cmpl	$30, -28(%rbp)
	jl	LBB0_12
## %bb.5:
	cmpl	$0, -20(%rbp)
	jne	LBB0_12
## %bb.6:
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_12:
	movl	_halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter(%rip), %eax
LBB0_13:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	decl	%eax
LBB0_15:
	movl	%eax, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter(%rip)
LBB0_16:
	movq	(%r14), %rcx
	cmpl	$0, 64(%rcx)
	je	LBB0_17
## %bb.19:
	testl	%eax, %eax
	je	LBB0_18
LBB0_20:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 68(%rcx)
	movl	$1, %eax
	jmp	LBB0_21
LBB0_17:
	cmpl	$2, %eax
	jg	LBB0_20
LBB0_18:
	movl	$0, 68(%rcx)
	xorl	%eax, %eax
LBB0_21:
	movl	%eax, 64(%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %rcx
	movq	16(%rcx), %rdx
	addq	8(%rcx), %rdx
	addq	24(%rcx), %rdx
	movl	_halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter(%rip), %eax
	cmpq	%rdx, (%rcx)
	jle	LBB0_13
## %bb.10:
	cmpl	$2, %eax
	jg	LBB0_16
## %bb.11:
	incl	%eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter,4,2 ## @halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ## @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_GET_S4_WIFI_RSSI,4,2       ## @BTC_GET_S4_WIFI_RSSI
	.comm	_BTC_GET_BL_WIFI_UNDER_B_MODE,4,2 ## @BTC_GET_BL_WIFI_UNDER_B_MODE
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_ACL_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_SCO_BUSY
	.no_dead_strip	_halbtc8723b1ant_monitor_wifi_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc8723b1ant_monitor_wifi_ctr
_halbtc8723b1ant_monitor_wifi_ctr:      ; @halbtc8723b1ant_monitor_wifi_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _BTC_GET_S4_WIFI_RSSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_S4_WIFI_RSSI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x20, _coex_sta@GOTPAGE
Lloh10:
	ldr	x20, [x20, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x8, #80]
	cbz	x9, LBB0_2
; %bb.1:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #32]
	stp	q0, q0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #3976
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3988
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3984
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #16]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #4024
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #24]
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #3972
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #32]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3990
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #40]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3986
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #48]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #4026
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8, #56]
LBB0_3:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #3862
	mov	w2, #1
	mov	w3, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #3862
	mov	w2, #1
	mov	w3, #0
	blr	x8
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #30
	b.lt	LBB0_9
; %bb.5:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _coex_dm@GOTPAGE
Lloh12:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.7:
Lloh17:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.8:
Lloh20:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_9:
Lloh23:
	adrp	x8, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGE
Lloh24:
	ldr	w8, [x8, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGEOFF]
LBB0_10:
	subs	w9, w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x8, x9
LBB0_12:
	adrp	x9, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGE
	str	w8, [x9, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGEOFF]
LBB0_13:
	ldr	x9, [x20]
	ldr	w10, [x9, #64]
	cbz	w10, LBB0_15
; %bb.14:
	cbnz	w8, LBB0_16
	b	LBB0_21
LBB0_15:
	cmp	w8, #2
	b.le	LBB0_20
LBB0_16:
	mov	x8, #4294967297
	stur	x8, [x9, #68]
	mov	w8, #1
	b	LBB0_22
LBB0_17:
	ldr	x8, [x20]
	ldp	x9, x10, [x8]
	ldp	x11, x8, [x8, #16]
	add	x10, x11, x10
	add	x10, x10, x8
Lloh25:
	adrp	x8, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGE
Lloh26:
	ldr	w8, [x8, _halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter@PAGEOFF]
	cmp	x9, x10
	b.le	LBB0_10
; %bb.18:
	cmp	w8, #2
	b.gt	LBB0_13
; %bb.19:
	add	w8, w8, #1
	b	LBB0_12
LBB0_20:
	mov	w8, #0
LBB0_21:
	str	wzr, [x9, #68]
LBB0_22:
	str	w8, [x9, #64]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdr	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter,4,2 ; @halbtc8723b1ant_monitor_wifi_ctr.cck_lock_counter
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ; @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_GET_S4_WIFI_RSSI,4,2       ; @BTC_GET_S4_WIFI_RSSI
	.comm	_BTC_GET_BL_WIFI_UNDER_B_MODE,4,2 ; @BTC_GET_BL_WIFI_UNDER_B_MODE
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_ACL_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_SCO_BUSY
	.no_dead_strip	_halbtc8723b1ant_monitor_wifi_ctr
.subsections_via_symbols
