	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a2ant_action_wifi_idle_process
_btc8821a2ant_action_wifi_idle_process: ## @btc8821a2ant_action_wifi_idle_process
	.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, %rbx
	movq	8(%rdi), %r14
	movl	$0, -28(%rbp)
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_wifi_rssi_state
	movq	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$-20, %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_wifi_rssi_state
	movl	%eax, %r15d
	movq	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	callq	_btc8821a2ant_bt_rssi_state
	movq	_BTC_GET_U1_AP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movl	%r15d, %edi
	callq	_BTC_RSSI_HIGH
	movq	_coex_sta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 16(%rcx)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rcx)
	je	LBB0_5
## %bb.3:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	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
LBB0_4:
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$6, %ecx
	callq	_btc8821a2ant_dac_swing
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_btc8821a2ant_dec_bt_pwr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_sw_mechanism1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$24, %r8d
	callq	_btc8821a2ant_sw_mechanism2
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_btc8821a2ant_coex_table_with_type
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a2ant_power_save_state
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_btc8821a2ant_ps_tdma
	jmp	LBB0_8
LBB0_7:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$24, %ecx
	callq	_btc8821a2ant_dac_swing
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES
	.comm	_BTC_GET_U1_AP_NUM,4,2          ## @BTC_GET_U1_AP_NUM
	.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], Wifi  idle process for BT HID+A2DP exist!!\n"

	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ## @BTC_PS_WIFI_NATIVE
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], Wifi  idle process for BT PAN exist!!\n"

	.no_dead_strip	_btc8821a2ant_action_wifi_idle_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a2ant_action_wifi_idle_process
_btc8821a2ant_action_wifi_idle_process: ; @btc8821a2ant_action_wifi_idle_process
	.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	x20, [x0, #8]
	str	wzr, [sp, #12]
	mov	w1, #0
	mov	w2, #2
	mov	w3, #15
	mov	w4, #0
	bl	_btc8821a2ant_wifi_rssi_state
Lloh0:
	adrp	x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w3, w8, #20
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	w4, #0
	bl	_btc8821a2ant_wifi_rssi_state
	mov	x21, x0
Lloh3:
	adrp	x8, _BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #0
	bl	_btc8821a2ant_bt_rssi_state
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BTC_GET_U1_AP_NUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_GET_U1_AP_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x0, x21
	bl	_BTC_RSSI_HIGH
Lloh9:
	adrp	x8, _coex_sta@GOTPAGE
Lloh10:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh20:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_RT_TRACE
Lloh28:
	adrp	x21, _NORMAL_EXEC@GOTPAGE
Lloh29:
	ldr	x21, [x21, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #6
	bl	_btc8821a2ant_dac_swing
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a2ant_dec_bt_pwr
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_btc8821a2ant_sw_mechanism1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #24
	bl	_btc8821a2ant_sw_mechanism2
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a2ant_coex_table_with_type
Lloh30:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a2ant_power_save_state
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_btc8821a2ant_ps_tdma
	b	LBB0_8
LBB0_7:
Lloh33:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #24
	bl	_btc8821a2ant_dac_swing
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES
	.comm	_BTC_GET_U1_AP_NUM,4,2          ; @BTC_GET_U1_AP_NUM
	.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], Wifi  idle process for BT HID+A2DP exist!!\n"

	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ; @BTC_PS_WIFI_NATIVE
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], Wifi  idle process for BT PAN exist!!\n"

	.no_dead_strip	_btc8821a2ant_action_wifi_idle_process
.subsections_via_symbols
