	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8192e2ant_tdma_duration_adjust
_btc8192e2ant_tdma_duration_adjust:     ## @btc8192e2ant_tdma_duration_adjust
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.10:
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %esi
	movl	(%r14), %edx
	movl	_btc8192e2ant_tdma_duration_adjust.up(%rip), %r8d
	movl	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %r9d
	movl	_btc8192e2ant_tdma_duration_adjust.m(%rip), %r10d
	movl	_btc8192e2ant_tdma_duration_adjust.n(%rip), %r11d
	movl	_btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip), %ebx
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_RT_TRACE
	addq	$32, %rsp
	movl	_btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip)
	testl	%r13d, %r13d
	movq	%r14, %r15
	je	LBB0_11
## %bb.13:
	cmpl	$3, %r13d
	jg	LBB0_18
## %bb.14:
	movl	_btc8192e2ant_tdma_duration_adjust.up(%rip), %edx
	leal	-1(%rdx), %ecx
	movl	%ecx, _btc8192e2ant_tdma_duration_adjust.up(%rip)
	movl	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %ecx
	incl	%ecx
	movl	%ecx, _btc8192e2ant_tdma_duration_adjust.dn(%rip)
	cmpl	$1, %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_coex_dm@GOTPCREL(%rip), %r13
	jg	LBB0_16
## %bb.15:
	movl	$0, _btc8192e2ant_tdma_duration_adjust.up(%rip)
LBB0_16:
	cmpl	$2, %ecx
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rbx
	jne	LBB0_20
## %bb.17:
	movl	_btc8192e2ant_tdma_duration_adjust.m(%rip), %ecx
	cmpl	$19, %ecx
	movl	$19, %edx
	cmovll	%ecx, %edx
	incl	%edx
	cmpl	$2, %eax
	movl	$1, %eax
	cmovll	%edx, %eax
	movl	%eax, _btc8192e2ant_tdma_duration_adjust.m(%rip)
	leal	(%rax,%rax,2), %eax
	movl	%eax, _btc8192e2ant_tdma_duration_adjust.n(%rip)
	movl	$0, _btc8192e2ant_tdma_duration_adjust.up(%rip)
	leaq	L_.str.5(%rip), %rcx
	leaq	_btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip), %rax
	leaq	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %rdx
	jmp	LBB0_19
LBB0_1:
	movl	$1, (%rax)
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	testl	%ebx, %ebx
	movq	%r14, %r15
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	sete	%al
	xorl	$15, %eax
	cmpl	$1, %ecx
	movl	$13, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_9
LBB0_11:
	movl	_btc8192e2ant_tdma_duration_adjust.up(%rip), %eax
	incl	%eax
	movl	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %ecx
	leal	-1(%rcx), %edx
	cmpl	$2, %ecx
	movl	$0, %ecx
	cmovll	%ecx, %edx
	movl	%eax, _btc8192e2ant_tdma_duration_adjust.up(%rip)
	movl	%edx, _btc8192e2ant_tdma_duration_adjust.dn(%rip)
	cmpl	_btc8192e2ant_tdma_duration_adjust.n(%rip), %eax
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_coex_dm@GOTPCREL(%rip), %r13
	jl	LBB0_20
## %bb.12:
	movl	$0, _btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip)
	movl	$3, _btc8192e2ant_tdma_duration_adjust.n(%rip)
	leaq	L_.str.4(%rip), %rcx
	leaq	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %rax
	leaq	_btc8192e2ant_tdma_duration_adjust.up(%rip), %rdx
	jmp	LBB0_19
LBB0_18:
	movl	_btc8192e2ant_tdma_duration_adjust.m(%rip), %ecx
	cmpl	$19, %ecx
	movl	$19, %edx
	cmovll	%ecx, %edx
	incl	%edx
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%edx, %eax
	movl	%eax, _btc8192e2ant_tdma_duration_adjust.m(%rip)
	leal	(%rax,%rax,2), %eax
	movl	%eax, _btc8192e2ant_tdma_duration_adjust.n(%rip)
	movl	$0, _btc8192e2ant_tdma_duration_adjust.up(%rip)
	leaq	L_.str.6(%rip), %rcx
	leaq	_btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip), %rax
	leaq	_btc8192e2ant_tdma_duration_adjust.dn(%rip), %rdx
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_coex_dm@GOTPCREL(%rip), %r13
LBB0_19:
	movl	$0, (%rdx)
	movl	$0, (%rax)
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_20:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%r13), %rax
	jmp	LBB0_21
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	sete	%al
	xorl	$7, %eax
	cmpl	$1, %ecx
	movl	$5, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	sete	%al
	xorl	$11, %eax
	cmpl	$1, %ecx
	movl	$9, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	sete	%bl
	xorl	$3, %ebx
	cmpl	$1, %eax
	cmovel	%eax, %ebx
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_coex_dm@GOTPCREL(%rip), %r13
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_btc8192e2ant_ps_tdma
	movq	(%r13), %rax
	movl	%ebx, 4(%rax)
	movl	$0, _btc8192e2ant_tdma_duration_adjust.up(%rip)
	movl	$0, _btc8192e2ant_tdma_duration_adjust.dn(%rip)
	movl	$1, _btc8192e2ant_tdma_duration_adjust.m(%rip)
	movl	$3, _btc8192e2ant_tdma_duration_adjust.n(%rip)
	movl	$0, _btc8192e2ant_tdma_duration_adjust.wait_cnt(%rip)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rbx
LBB0_21:
	movl	8(%rax), %ecx
	cmpl	4(%rax), %ecx
	je	LBB0_27
## %bb.22:
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str.8(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	(%r13), %rax
	movl	4(%rax), %r9d
	movl	8(%rax), %r8d
	leaq	L_.str.9(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_BTC_GET_BL_WIFI_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_ROAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	cmpl	$0, -68(%rbp)
	jne	LBB0_26
## %bb.23:
	cmpl	$0, -64(%rbp)
	jne	LBB0_26
## %bb.24:
	cmpl	$0, -60(%rbp)
	jne	LBB0_26
## %bb.25:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movl	4(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_btc8192e2ant_ps_tdma
	jmp	LBB0_27
LBB0_26:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str.10(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.up,4,2 ## @btc8192e2ant_tdma_duration_adjust.up
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.dn,4,2 ## @btc8192e2ant_tdma_duration_adjust.dn
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.m,4,2 ## @btc8192e2ant_tdma_duration_adjust.m
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.n,4,2 ## @btc8192e2ant_tdma_duration_adjust.n
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.wait_cnt,4,2 ## @btc8192e2ant_tdma_duration_adjust.wait_cnt
	.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], TdmaDurationAdjust()\n"

	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], first run TdmaDurationAdjust()!!\n"

	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], retry_cnt = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], up=%d, dn=%d, m=%d, n=%d, wait_cnt=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"[BTCoex]Increase wifi duration!!\n"

L_.str.5:                               ## @.str.5
	.asciz	"Reduce wifi duration for retry<3\n"

L_.str.6:                               ## @.str.6
	.asciz	"Decrease wifi duration for retryCounter>3!!\n"

L_.str.7:                               ## @.str.7
	.asciz	"[BTCoex], max Interval = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"[BTCoex], PsTdma type mismatch!!!, "

L_.str.9:                               ## @.str.9
	.asciz	"curPsTdma=%d, recordPsTdma=%d\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ## @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ## @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ## @BTC_GET_BL_WIFI_ROAM
L_.str.10:                              ## @.str.10
	.asciz	"[BTCoex], roaming/link/scan is under progress, will adjust next time!!!\n"

	.no_dead_strip	_btc8192e2ant_tdma_duration_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8192e2ant_tdma_duration_adjust
_btc8192e2ant_tdma_duration_adjust:     ; @btc8192e2ant_tdma_duration_adjust
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x26, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x25, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh6:
	adrp	x28, _coex_dm@GOTPAGE
Lloh7:
	ldr	x28, [x28, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.1:
Lloh8:
	adrp	x8, _coex_sta@GOTPAGE
Lloh9:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w28, [x8]
	ldr	w1, [x26]
	ldr	w2, [x25]
	str	x28, [sp]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w1, [x26]
	ldr	w2, [x25]
	adrp	x23, _btc8192e2ant_tdma_duration_adjust.up@PAGE
	ldr	w8, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
	adrp	x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGE
	ldr	w9, [x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
	adrp	x27, _btc8192e2ant_tdma_duration_adjust.m@PAGE
	ldr	w10, [x27, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	adrp	x22, _btc8192e2ant_tdma_duration_adjust.n@PAGE
	ldr	w11, [x22, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
	adrp	x24, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGE
	ldr	w12, [x24, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x3, l_.str.3@PAGE
Lloh14:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [x24, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF]
	add	w9, w8, #1
	str	w9, [x24, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF]
	cbz	w28, LBB0_10
; %bb.2:
	cmp	w28, #3
	b.gt	LBB0_12
; %bb.3:
	ldr	w10, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
	ldr	w9, [x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
	add	w9, w9, #1
	str	w9, [x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
	subs	w10, w10, #1
	str	w10, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
	b.gt	LBB0_5
; %bb.4:
	str	wzr, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
LBB0_5:
	cmp	w9, #2
Lloh15:
	adrp	x26, _COMP_BT_COEXIST@GOTPAGE
Lloh16:
	ldr	x26, [x26, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh17:
	adrp	x28, _coex_dm@GOTPAGE
Lloh18:
	ldr	x28, [x28, _coex_dm@GOTPAGEOFF]
	b.ne	LBB0_14
; %bb.6:
	ldr	w9, [x27, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	mov	w10, #19
	cmp	w9, #19
	csel	w9, w9, w10, lt
	cmp	w8, #1
	mov	w8, #1
	csinc	w8, w8, w9, gt
	str	w8, [x27, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	add	w8, w8, w8, lsl #1
	str	w8, [x22, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
	str	wzr, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
Lloh19:
	adrp	x3, l_.str.5@PAGE
Lloh20:
	add	x3, x3, l_.str.5@PAGEOFF
Lloh21:
	adrp	x8, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGE
Lloh22:
	add	x8, x8, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF
Lloh23:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGE
Lloh24:
	add	x9, x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF
	b	LBB0_13
LBB0_7:
	mov	w9, #1
	str	w9, [x8]
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	cmp	w21, #2
	cbz	w23, LBB0_15
; %bb.8:
	cbz	w22, LBB0_17
; %bb.9:
	mov	w8, #14
	cinc	w8, w8, ne
	mov	w9, #13
	b	LBB0_18
LBB0_10:
	ldr	w8, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
	ldr	w9, [x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
	sub	w10, w9, #1
	cmp	w9, #2
	csel	w9, wzr, w10, lt
	str	w9, [x26, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
	ldr	w9, [x22, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
	cmp	w8, w9
Lloh27:
	adrp	x26, _COMP_BT_COEXIST@GOTPAGE
Lloh28:
	ldr	x26, [x26, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh29:
	adrp	x28, _coex_dm@GOTPAGE
Lloh30:
	ldr	x28, [x28, _coex_dm@GOTPAGEOFF]
	b.lt	LBB0_14
; %bb.11:
	str	wzr, [x24, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF]
	mov	w8, #3
	str	w8, [x22, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
Lloh31:
	adrp	x3, l_.str.4@PAGE
Lloh32:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh33:
	adrp	x8, _btc8192e2ant_tdma_duration_adjust.dn@PAGE
Lloh34:
	add	x8, x8, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF
Lloh35:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.up@PAGE
Lloh36:
	add	x9, x9, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w9, [x27, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	mov	w10, #19
	cmp	w9, #19
	csel	w9, w9, w10, lt
	cmp	w8, #0
	mov	w8, #1
	csinc	w8, w8, w9, ne
	str	w8, [x27, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	add	w8, w8, w8, lsl #1
	str	w8, [x22, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
	str	wzr, [x23, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
Lloh37:
	adrp	x3, l_.str.6@PAGE
Lloh38:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh39:
	adrp	x8, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGE
Lloh40:
	add	x8, x8, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF
Lloh41:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGE
Lloh42:
	add	x9, x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF
Lloh43:
	adrp	x26, _COMP_BT_COEXIST@GOTPAGE
Lloh44:
	ldr	x26, [x26, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh45:
	adrp	x28, _coex_dm@GOTPAGE
Lloh46:
	ldr	x28, [x28, _coex_dm@GOTPAGEOFF]
LBB0_13:
	str	wzr, [x9]
	str	wzr, [x8]
	ldr	w1, [x26]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_RT_TRACE
LBB0_14:
	ldr	w1, [x26]
	ldr	w2, [x25]
	str	x21, [sp]
Lloh47:
	adrp	x3, l_.str.7@PAGE
Lloh48:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x28]
	b	LBB0_20
LBB0_15:
	cbz	w22, LBB0_27
; %bb.16:
	mov	w8, #6
	cinc	w8, w8, ne
	mov	w9, #5
	b	LBB0_18
LBB0_17:
	mov	w8, #10
	cinc	w8, w8, ne
	mov	w9, #9
LBB0_18:
	cmp	w21, #1
	csel	w21, w9, w8, eq
LBB0_19:
Lloh49:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	w22, #1
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	bl	_btc8192e2ant_ps_tdma
	ldr	x8, [x28]
	str	w21, [x8, #4]
Lloh52:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.up@PAGE
	str	wzr, [x9, _btc8192e2ant_tdma_duration_adjust.up@PAGEOFF]
Lloh53:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGE
	str	wzr, [x9, _btc8192e2ant_tdma_duration_adjust.dn@PAGEOFF]
Lloh54:
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.m@PAGE
	str	w22, [x9, _btc8192e2ant_tdma_duration_adjust.m@PAGEOFF]
	mov	w9, #3
	adrp	x10, _btc8192e2ant_tdma_duration_adjust.n@PAGE
	str	w9, [x10, _btc8192e2ant_tdma_duration_adjust.n@PAGEOFF]
	adrp	x9, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGE
	str	wzr, [x9, _btc8192e2ant_tdma_duration_adjust.wait_cnt@PAGEOFF]
LBB0_20:
	ldp	w8, w9, [x8, #4]
	cmp	w9, w8
	b.eq	LBB0_26
; %bb.21:
	str	xzr, [sp, #56]
	str	wzr, [sp, #52]
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh55:
	adrp	x3, l_.str.8@PAGE
Lloh56:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x28]
	ldp	w8, w9, [x8, #4]
	stp	x9, x8, [sp]
Lloh57:
	adrp	x3, l_.str.9@PAGE
Lloh58:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
Lloh59:
	adrp	x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGE
Lloh60:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x9]
	add	x2, sp, #60
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh62:
	adrp	x9, _BTC_GET_BL_WIFI_LINK@GOTPAGE
Lloh63:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_LINK@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x9]
	add	x2, sp, #56
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh65:
	adrp	x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGE
Lloh66:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x9]
	add	x2, sp, #52
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #60]
	cbnz	w8, LBB0_25
; %bb.22:
	ldr	w8, [sp, #56]
	cbnz	w8, LBB0_25
; %bb.23:
	ldr	w8, [sp, #52]
	cbnz	w8, LBB0_25
; %bb.24:
Lloh68:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh69:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	ldr	x8, [x28]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w2, #1
	bl	_btc8192e2ant_ps_tdma
	b	LBB0_26
LBB0_25:
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh71:
	adrp	x3, l_.str.10@PAGE
Lloh72:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_27:
	mov	w8, #2
	cinc	w8, w8, ne
	cmp	w21, #1
	csinc	w21, w8, wzr, ne
	b	LBB0_19
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdrp	Lloh53, Lloh54
	.loh AdrpAdrp	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.up,4,2 ; @btc8192e2ant_tdma_duration_adjust.up
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.dn,4,2 ; @btc8192e2ant_tdma_duration_adjust.dn
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.m,4,2 ; @btc8192e2ant_tdma_duration_adjust.m
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.n,4,2 ; @btc8192e2ant_tdma_duration_adjust.n
.zerofill __DATA,__bss,_btc8192e2ant_tdma_duration_adjust.wait_cnt,4,2 ; @btc8192e2ant_tdma_duration_adjust.wait_cnt
	.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], TdmaDurationAdjust()\n"

	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], first run TdmaDurationAdjust()!!\n"

	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], retry_cnt = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], up=%d, dn=%d, m=%d, n=%d, wait_cnt=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"[BTCoex]Increase wifi duration!!\n"

l_.str.5:                               ; @.str.5
	.asciz	"Reduce wifi duration for retry<3\n"

l_.str.6:                               ; @.str.6
	.asciz	"Decrease wifi duration for retryCounter>3!!\n"

l_.str.7:                               ; @.str.7
	.asciz	"[BTCoex], max Interval = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"[BTCoex], PsTdma type mismatch!!!, "

l_.str.9:                               ; @.str.9
	.asciz	"curPsTdma=%d, recordPsTdma=%d\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ; @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ; @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ; @BTC_GET_BL_WIFI_ROAM
l_.str.10:                              ; @.str.10
	.asciz	"[BTCoex], roaming/link/scan is under progress, will adjust next time!!!\n"

	.no_dead_strip	_btc8192e2ant_tdma_duration_adjust
.subsections_via_symbols
