	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8723b2ant_action_wifi_idle_process
_btc8723b2ant_action_wifi_idle_process: ## @btc8723b2ant_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	%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	%rdi, %r12
	movq	8(%rdi), %r15
	movl	$0, -44(%rbp)
	movq	_BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_coex_dm@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	subl	%eax, %ebx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_btc8723b2ant_wifi_rssi_state
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_btc8723b2ant_wifi_rssi_state
	movl	%eax, %ebx
	movq	_BT_8723B_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r13), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movq	%r12, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	callq	_btc8723b2ant_bt_rssi_state
	movq	_BTC_GET_U1_AP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	*(%r12)
	movl	%ebx, %edi
	callq	_BTC_RSSI_HIGH
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_4
## %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
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %r14d
	movq	%r12, %rdi
	movl	$1, %edx
	movl	$6, %ecx
	callq	_btc8723b2ant_dac_swing
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_btc8723b2ant_dec_bt_pwr
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btc8723b2ant_sw_mechanism
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_btc8723b2ant_coex_table_with_type
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8723b2ant_power_save_state
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_btc8723b2ant_ps_tdma
	jmp	LBB0_5
LBB0_4:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	movl	$24, %ecx
	callq	_btc8723b2ant_dac_swing
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BT_8723B_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8723B_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
	.no_dead_strip	_btc8723b2ant_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 btc8723b2ant_action_wifi_idle_process
_btc8723b2ant_action_wifi_idle_process: ; @btc8723b2ant_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]
Lloh0:
	adrp	x8, _BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _coex_dm@GOTPAGE
Lloh4:
	ldr	x22, [x22, _coex_dm@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w9, [x9]
	sub	w21, w8, w9, lsl #1
	mov	w1, #0
	mov	w2, #2
	mov	w3, #15
	mov	w4, #0
	bl	_btc8723b2ant_wifi_rssi_state
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	x3, x21
	mov	w4, #0
	bl	_btc8723b2ant_wifi_rssi_state
	mov	x21, x0
Lloh5:
	adrp	x8, _BT_8723B_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT_8723B_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	w9, [x9]
	sub	w2, w8, w9, lsl #1
	mov	x0, x19
	mov	w1, #2
	mov	w3, #0
	bl	_btc8723b2ant_bt_rssi_state
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _BTC_GET_U1_AP_NUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BTC_GET_U1_AP_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x0, x21
	bl	_BTC_RSSI_HIGH
	cbz	x0, LBB0_4
; %bb.1:
Lloh11:
	adrp	x8, _coex_sta@GOTPAGE
Lloh12:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh22:
	adrp	x21, _NORMAL_EXEC@GOTPAGE
Lloh23:
	ldr	x21, [x21, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #6
	bl	_btc8723b2ant_dac_swing
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8723b2ant_dec_bt_pwr
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_btc8723b2ant_sw_mechanism
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8723b2ant_coex_table_with_type
Lloh24:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8723b2ant_power_save_state
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_btc8723b2ant_ps_tdma
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _NORMAL_EXEC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NORMAL_EXEC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #24
	bl	_btc8723b2ant_dac_swing
	mov	w20, #0
LBB0_5:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8723B_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BT_8723B_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8723B_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
	.no_dead_strip	_btc8723b2ant_action_wifi_idle_process
.subsections_via_symbols
