	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8723b1ant_tdma_dur_adj_for_acl
_btc8723b1ant_tdma_dur_adj_for_acl:     ## @btc8723b1ant_tdma_dur_adj_for_acl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	_BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN@GOTPCREL(%rip), %rcx
	movq	_coex_dm@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	cmpq	%rbx, (%rcx)
	je	LBB0_13
## %bb.1:
	movq	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_13
## %bb.2:
	movq	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_13
## %bb.3:
	cmpl	$0, 8(%rax)
	je	LBB0_16
## %bb.4:
	movq	_coex_sta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	cmpl	$1050, 16(%rcx)                 ## imm = 0x41A
	jg	LBB0_6
## %bb.5:
	cmpl	$1251, 20(%rcx)                 ## imm = 0x4E3
	jl	LBB0_7
LBB0_6:
	incq	%rdx
LBB0_7:
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.wait_count(%rip), %ecx
	leal	1(%rcx), %esi
	movl	%esi, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count(%rip)
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.8:
	cmpq	$3, %rdx
	jg	LBB0_23
## %bb.9:
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.up(%rip), %esi
	leal	-1(%rsi), %edx
	movl	%edx, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip), %edx
	incl	%edx
	movl	%edx, _btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip)
	cmpl	$1, %esi
	jg	LBB0_11
## %bb.10:
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
LBB0_11:
	cmpl	$2, %edx
	jne	LBB0_33
## %bb.12:
	movq	%r8, %rbx
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.m(%rip), %eax
	cmpl	$19, %eax
	movl	$19, %edx
	cmovll	%eax, %edx
	incl	%edx
	cmpl	$2, %ecx
	movl	$1, %eax
	cmovll	%edx, %eax
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_24
LBB0_13:
	movl	(%rax), %eax
	cmpl	$9, %eax
	ja	LBB0_15
## %bb.14:
	movl	$526, %ecx                      ## imm = 0x20E
	btl	%eax, %ecx
	jb	LBB0_35
LBB0_15:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$9, %ecx
	movq	%r8, %rbx
	callq	_halbtc8723b1ant_ps_tdma
	movq	(%rbx), %rax
	movl	$9, 4(%rax)
	jmp	LBB0_17
LBB0_16:
	movl	$1, 8(%rax)
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r8, %rbx
	callq	_RT_TRACE
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	(%rbx), %rax
	movl	$2, 4(%rax)
LBB0_17:
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip)
	movl	$1, _btc8723b1ant_tdma_dur_adj_for_acl.m(%rip)
	movl	$3, _btc8723b1ant_tdma_dur_adj_for_acl.n(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count(%rip)
	jmp	LBB0_35
LBB0_18:
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.up(%rip), %ecx
	incl	%ecx
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip), %edx
	leal	-1(%rdx), %esi
	xorl	%edi, %edi
	cmpl	$2, %edx
	cmovgel	%esi, %edi
	movl	%ecx, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
	movl	%edi, _btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip)
	cmpl	_btc8723b1ant_tdma_dur_adj_for_acl.n(%rip), %ecx
	jl	LBB0_33
## %bb.19:
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count(%rip)
	movl	$3, _btc8723b1ant_tdma_dur_adj_for_acl.n(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip)
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r8, %r15
	callq	_RT_TRACE
	movq	%r15, %rax
	movq	(%r15), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	je	LBB0_30
## %bb.20:
	cmpl	$11, %ecx
	je	LBB0_31
## %bb.21:
	cmpl	$9, %ecx
	jne	LBB0_33
## %bb.22:
	movl	$2, %ebx
	jmp	LBB0_32
LBB0_23:
	movq	%r8, %rbx
	movl	_btc8723b1ant_tdma_dur_adj_for_acl.m(%rip), %eax
	cmpl	$19, %eax
	movl	$19, %edx
	cmovll	%eax, %edx
	incl	%edx
	testl	%ecx, %ecx
	movl	$1, %eax
	cmovel	%edx, %eax
	leaq	L_.str.4(%rip), %rcx
LBB0_24:
	movl	%eax, _btc8723b1ant_tdma_dur_adj_for_acl.m(%rip)
	leal	(%rax,%rax,2), %eax
	movl	%eax, _btc8723b1ant_tdma_dur_adj_for_acl.n(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.up(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.dn(%rip)
	movl	$0, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count(%rip)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	je	LBB0_28
## %bb.25:
	cmpl	$9, %ecx
	je	LBB0_29
## %bb.26:
	cmpl	$2, %ecx
	jne	LBB0_33
## %bb.27:
	movq	%rbx, %r15
LBB0_31:
	movl	$9, %ebx
	jmp	LBB0_32
LBB0_28:
	movq	%rbx, %r15
	movl	$2, %ebx
	jmp	LBB0_32
LBB0_29:
	movq	%rbx, %r15
	movl	$11, %ebx
	jmp	LBB0_32
LBB0_30:
	movl	$1, %ebx
LBB0_32:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	(%r15), %rax
	movl	%ebx, 4(%rax)
LBB0_33:
	movl	(%rax), %ecx
	cmpl	$11, %ecx
	ja	LBB0_36
## %bb.34:
	movl	$2566, %edx                     ## imm = 0xA06
	btl	%ecx, %edx
	jae	LBB0_36
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_halbtc8723b1ant_ps_tdma        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.up,4,2 ## @btc8723b1ant_tdma_dur_adj_for_acl.up
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.dn,4,2 ## @btc8723b1ant_tdma_dur_adj_for_acl.dn
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.m,4,2 ## @btc8723b1ant_tdma_dur_adj_for_acl.m
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.n,4,2 ## @btc8723b1ant_tdma_dur_adj_for_acl.n
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.wait_count,4,2 ## @btc8723b1ant_tdma_dur_adj_for_acl.wait_count
	.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], TdmaDurationAdjustForAcl()\n"

	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY,8,3 ## @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
	.comm	_BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN,8,3 ## @BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN
	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN,8,3 ## @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT,8,3 ## @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], first run TdmaDurationAdjust()!!\n"

	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], Increase wifi duration!!\n"

L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], Decrease wifi duration for retryCounter<3!!\n"

L_.str.4:                               ## @.str.4
	.asciz	"[BTCoex], Decrease wifi duration for retryCounter>3!!\n"

	.no_dead_strip	_btc8723b1ant_tdma_dur_adj_for_acl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8723b1ant_tdma_dur_adj_for_acl
_btc8723b1ant_tdma_dur_adj_for_acl:     ; @btc8723b1ant_tdma_dur_adj_for_acl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x24, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh6:
	adrp	x8, _BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
Lloh9:
	adrp	x8, _BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x8]
Lloh12:
	adrp	x8, _BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x8]
Lloh15:
	adrp	x22, _coex_dm@GOTPAGE
Lloh16:
	ldr	x22, [x22, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x9, x21
	ccmp	x10, x21, #4, ne
	ccmp	x11, x21, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, #9
	mov	w20, #1
	lsl	w8, w20, w8
	mov	w9, #526
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.ne	LBB0_29
; %bb.2:
Lloh17:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w21, #9
	mov	x0, x19
	mov	w2, #1
	mov	w3, #9
	bl	_halbtc8723b1ant_ps_tdma
	ldr	x8, [x22]
	str	w21, [x8, #4]
Lloh20:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGE
	str	wzr, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
Lloh21:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGE
	str	wzr, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
Lloh22:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGE
	str	w20, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGEOFF]
	b	LBB0_14
LBB0_3:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_13
; %bb.4:
Lloh23:
	adrp	x9, _coex_sta@GOTPAGE
Lloh24:
	ldr	x9, [x9, _coex_sta@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x14, [x9]
	ldr	w10, [x9, #16]
	cmp	w10, #1050
	b.gt	LBB0_6
; %bb.5:
	ldr	w9, [x9, #20]
	cmp	w9, #1251
	b.lt	LBB0_7
LBB0_6:
	add	x14, x14, #1
LBB0_7:
	adrp	x9, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGE
	ldr	w13, [x9, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGEOFF]
	add	w10, w13, #1
	str	w10, [x9, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGEOFF]
	cbz	x14, LBB0_15
; %bb.8:
	adrp	x12, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGE
	adrp	x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGE
	adrp	x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGE
	cmp	x14, #3
	b.gt	LBB0_19
; %bb.9:
	ldr	w15, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	ldr	w14, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	add	w14, w14, #1
	str	w14, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	subs	w15, w15, #1
	str	w15, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	b.gt	LBB0_11
; %bb.10:
	str	wzr, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
LBB0_11:
	cmp	w14, #2
	b.ne	LBB0_28
; %bb.12:
	ldr	w8, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGEOFF]
	mov	w14, #19
	cmp	w8, #19
	csel	w8, w8, w14, lt
	cmp	w13, #1
	mov	w13, #1
	csinc	w8, w13, w8, gt
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_13:
	mov	w21, #1
	str	w21, [x8, #8]
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh30:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w20, #2
	mov	x0, x19
	mov	w2, #1
	mov	w3, #2
	bl	_halbtc8723b1ant_ps_tdma
	ldr	x8, [x22]
	str	w20, [x8, #4]
Lloh33:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGE
	str	wzr, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
Lloh34:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGE
	str	wzr, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
Lloh35:
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGE
	str	w21, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGEOFF]
LBB0_14:
	mov	w8, #3
	adrp	x9, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGE
	str	w8, [x9, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGEOFF]
	adrp	x8, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGE
	str	wzr, [x8, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGEOFF]
	b	LBB0_29
LBB0_15:
	adrp	x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGE
	ldr	w11, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	add	w13, w11, #1
	str	w13, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	adrp	x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGE
	ldr	w12, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	sub	w14, w12, #1
	cmp	w12, #2
	csel	w12, wzr, w14, lt
	str	w12, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	adrp	x12, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGE
	ldr	w14, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGEOFF]
	cmp	w13, w14
	b.lt	LBB0_28
; %bb.16:
	str	wzr, [x9, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGEOFF]
	mov	w8, #3
	str	w8, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGEOFF]
	str	wzr, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	str	wzr, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh36:
	adrp	x3, l_.str.2@PAGE
Lloh37:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_26
; %bb.17:
	cmp	w9, #11
	b.eq	LBB0_23
; %bb.18:
	cmp	w9, #9
	b.ne	LBB0_28
	b	LBB0_24
LBB0_19:
	ldr	w8, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGEOFF]
	mov	w14, #19
	cmp	w8, #19
	csel	w8, w8, w14, lt
	cmp	w13, #0
	mov	w13, #1
	csinc	w8, w13, w8, ne
Lloh38:
	adrp	x3, l_.str.4@PAGE
Lloh39:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_20:
	str	w8, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.m@PAGEOFF]
	add	w8, w8, w8, lsl #1
	adrp	x12, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGE
	str	w8, [x12, _btc8723b1ant_tdma_dur_adj_for_acl.n@PAGEOFF]
	str	wzr, [x10, _btc8723b1ant_tdma_dur_adj_for_acl.up@PAGEOFF]
	str	wzr, [x11, _btc8723b1ant_tdma_dur_adj_for_acl.dn@PAGEOFF]
	str	wzr, [x9, _btc8723b1ant_tdma_dur_adj_for_acl.wait_count@PAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_24
; %bb.21:
	cmp	w9, #9
	b.eq	LBB0_25
; %bb.22:
	cmp	w9, #2
	b.ne	LBB0_28
LBB0_23:
	mov	w20, #9
	b	LBB0_27
LBB0_24:
	mov	w20, #2
	b	LBB0_27
LBB0_25:
	mov	w20, #11
	b	LBB0_27
LBB0_26:
	mov	w20, #1
LBB0_27:
Lloh40:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x20
	bl	_halbtc8723b1ant_ps_tdma
	ldr	x8, [x22]
	str	w20, [x8, #4]
LBB0_28:
	ldr	w9, [x8]
	cmp	w9, #11
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #2566
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.eq	LBB0_30
LBB0_29:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_30:
Lloh43:
	adrp	x9, _NORMAL_EXEC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NORMAL_EXEC@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x9]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w2, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_halbtc8723b1ant_ps_tdma
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdrp	Lloh21, Lloh22
	.loh AdrpAdrp	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdrp	Lloh34, Lloh35
	.loh AdrpAdrp	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.up,4,2 ; @btc8723b1ant_tdma_dur_adj_for_acl.up
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.dn,4,2 ; @btc8723b1ant_tdma_dur_adj_for_acl.dn
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.m,4,2 ; @btc8723b1ant_tdma_dur_adj_for_acl.m
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.n,4,2 ; @btc8723b1ant_tdma_dur_adj_for_acl.n
.zerofill __DATA,__bss,_btc8723b1ant_tdma_dur_adj_for_acl.wait_count,4,2 ; @btc8723b1ant_tdma_dur_adj_for_acl.wait_count
	.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], TdmaDurationAdjustForAcl()\n"

	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY,8,3 ; @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
	.comm	_BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN,8,3 ; @BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN
	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN,8,3 ; @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
	.comm	_BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT,8,3 ; @BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], first run TdmaDurationAdjust()!!\n"

	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], Increase wifi duration!!\n"

l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], Decrease wifi duration for retryCounter<3!!\n"

l_.str.4:                               ; @.str.4
	.asciz	"[BTCoex], Decrease wifi duration for retryCounter>3!!\n"

	.no_dead_strip	_btc8723b1ant_tdma_dur_adj_for_acl
.subsections_via_symbols
