	.file	"extr_halbtc8821a1ant.c_btc8821a1ant_action_wifi_connected.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[BTCoex], CoexForWifiConnect()===>\n"
	.align 8
.LC1:
	.string	"[BTCoex], CoexForWifiConnect(), return for wifi is under 4way<===\n"
	.align 8
.LC2:
	.string	"[BTCoex], CoexForWifiConnect(), return for wifi is under scan<===\n"
	.text
	.p2align 4
	.type	btc8821a1ant_action_wifi_connected, @function
btc8821a1ant_action_wifi_connected:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rcx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR 24[rdi]
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR COMP_BT_COEXIST[rip]
	mov	DWORD PTR [rsp], 0
	mov	rdi, r12
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 20[rsp], 0
	call	RT_TRACE@PLT
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_4_WAY_PROGRESS[rip]
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	r10d, DWORD PTR 16[rsp]
	test	r10d, r10d
	jne	.L21
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_SCAN[rip]
	lea	rdx, 4[rsp]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_LINK[rip]
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_ROAM[rip]
	lea	rdx, 12[rsp]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	r9d, DWORD PTR 4[rsp]
	test	r9d, r9d
	jne	.L4
	mov	eax, DWORD PTR 8[rsp]
	or	eax, DWORD PTR 12[rsp]
	jne	.L22
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_AP_MODE_ENABLE[rip]
	lea	rdx, 20[rsp]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	esi, DWORD PTR BTC_GET_BL_WIFI_BUSY[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	rax, QWORD PTR coex_dm[rip]
	mov	rcx, QWORD PTR BT_8821A_1ANT_BT_STATUS_ACL_BUSY[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L8
	mov	r8d, DWORD PTR 20[rsp]
	test	r8d, r8d
	jne	.L8
	mov	edi, DWORD PTR 8[rbp]
	test	edi, edi
	jne	.L8
	mov	esi, DWORD PTR [rsp]
	test	esi, esi
	jne	.L9
	cmp	QWORD PTR 0[rbp], 0
	jne	.L8
.L9:
	mov	esi, DWORD PTR BTC_PS_LPS_ON[rip]
	mov	ecx, 4
	mov	edx, 80
	mov	rdi, rbp
	call	btc8821a1ant_power_save_state@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	btc8821a1ant_act_wifi_conn_sp_pkt@PLT
.L7:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_BT_COEXIST[rip]
	lea	rcx, .LC2[rip]
	mov	rdi, r12
	call	RT_TRACE@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR BTC_PS_WIFI_NATIVE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	btc8821a1ant_power_save_state@PLT
.L10:
	mov	rax, QWORD PTR coex_dm[rip]
	mov	ecx, DWORD PTR [rsp]
	mov	rdx, QWORD PTR BT_8821A_1ANT_BT_STATUS_ACL_BUSY[rip]
	mov	rax, QWORD PTR [rax]
	test	ecx, ecx
	jne	.L11
	cmp	rax, rdx
	je	.L24
	cmp	QWORD PTR BT_8821A_1ANT_BT_STATUS_SCO_BUSY[rip], rax
	je	.L13
	cmp	QWORD PTR BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY[rip], rax
	jne	.L14
.L13:
	mov	esi, DWORD PTR BT_8821A_1ANT_WIFI_STATUS_CONNECTED_IDLE[rip]
	mov	rdi, rbp
	call	btc8821a1ant_act_bt_sco_hid_only_busy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	btc8821a1ant_action_wifi_connected_scan@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	btc8821a1ant_act_wifi_conn_sp_pkt@PLT
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_BT_COEXIST[rip]
	mov	rdi, r12
	lea	rcx, .LC1[rip]
	call	RT_TRACE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	rax, rdx
	je	.L25
	cmp	QWORD PTR BT_8821A_1ANT_BT_STATUS_SCO_BUSY[rip], rax
	je	.L16
	cmp	QWORD PTR BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY[rip], rax
	jne	.L14
.L16:
	mov	esi, DWORD PTR BT_8821A_1ANT_WIFI_STATUS_CONNECTED_BUSY[rip]
	mov	rdi, rbp
	call	btc8821a1ant_act_bt_sco_hid_only_busy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 8
	call	btc8821a1ant_ps_tdma@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	btc8821a1ant_coex_table_with_type@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR BT_8821A_1ANT_WIFI_STATUS_CONNECTED_IDLE[rip]
	mov	rdi, rbp
	call	btc8821a1ant_act_wifi_con_bt_acl_busy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR BT_8821A_1ANT_WIFI_STATUS_CONNECTED_BUSY[rip]
	mov	rdi, rbp
	call	btc8821a1ant_act_wifi_con_bt_acl_busy@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btc8821a1ant_action_wifi_connected, .-btc8821a1ant_action_wifi_connected
	.comm	coex_dm,8,8
	.comm	NORMAL_EXEC,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_BT_COEXIST,4,4
	.comm	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_IDLE,4,4
	.comm	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_BUSY,4,4
	.comm	BT_8821A_1ANT_BT_STATUS_SCO_BUSY,8,8
	.comm	BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY,8,8
	.comm	BT_8821A_1ANT_BT_STATUS_ACL_BUSY,8,8
	.comm	BTC_PS_WIFI_NATIVE,4,4
	.comm	BTC_PS_LPS_ON,4,4
	.comm	BTC_GET_BL_WIFI_SCAN,4,4
	.comm	BTC_GET_BL_WIFI_ROAM,4,4
	.comm	BTC_GET_BL_WIFI_LINK,4,4
	.comm	BTC_GET_BL_WIFI_BUSY,4,4
	.comm	BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,4
	.comm	BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_halbtc8821a1ant.c_btc8821a1ant_action_wifi_connected.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[BTCoex], CoexForWifiConnect()===>\012\000"
	.align	2
.LC1:
	.ascii	"[BTCoex], CoexForWifiConnect(), return for wifi is "
	.ascii	"under 4way<===\012\000"
	.align	2
.LC2:
	.ascii	"[BTCoex], CoexForWifiConnect(), return for wifi is "
	.ascii	"under scan<===\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc8821a1ant_action_wifi_connected, %function
btc8821a1ant_action_wifi_connected:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, [r0, #12]
	ldr	r7, .L29
	ldr	r6, .L29+4
	ldr	lr, .L29+8
	sub	sp, sp, #32
	ldr	r2, [r7]
	ldr	r1, [r6]
	ldr	r3, .L29+12
	mov	r0, r5
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	str	ip, [sp, #4]
	str	ip, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	bl	RT_TRACE
	ldr	r2, .L29+16
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #20
	blx	r3
	ldr	r3, [sp, #20]
	cmp	r3, #0
	bne	.L24
	ldr	r2, .L29+20
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #8
	blx	r3
	ldr	r2, .L29+24
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #12
	blx	r3
	ldr	r2, .L29+28
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #16
	blx	r3
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	orrs	r3, r2, r3
	bne	.L25
	ldr	r2, .L29+32
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #24
	blx	r3
	ldr	r3, .L29+36
	ldr	r6, .L29+40
	ldr	r1, [r3]
	add	r2, sp, #4
	ldr	r3, [r4, #8]
	mov	r0, r4
	blx	r3
	ldr	r5, .L29+44
	ldr	r2, [r6]
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [sp, #24]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L8
.L9:
	ldr	r2, .L29+48
	mov	r3, #4
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #80
	bl	btc8821a1ant_power_save_state
	b	.L10
.L25:
	mov	r0, r4
	bl	btc8821a1ant_act_wifi_conn_sp_pkt
.L7:
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r6]
	ldr	r3, .L29+52
	bl	RT_TRACE
.L1:
	ldr	r3, .L29+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r3, #0
	ldr	r1, .L29+56
	mov	r2, r3
	mov	r0, r4
	ldr	r1, [r1]
	bl	btc8821a1ant_power_save_state
.L10:
	ldr	r2, [sp, #4]
	ldr	r3, [r6]
	cmp	r2, #0
	ldr	r3, [r3]
	ldr	r2, [r5]
	bne	.L11
	cmp	r3, r2
	beq	.L27
	ldr	r2, .L29+60
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L13
	ldr	r2, .L29+64
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L14
.L13:
	ldr	r3, .L29+68
	mov	r0, r4
	ldr	r1, [r3]
	bl	btc8821a1ant_act_bt_sco_hid_only_busy
	b	.L1
.L4:
	mov	r0, r4
	bl	btc8821a1ant_action_wifi_connected_scan
	b	.L7
.L24:
	mov	r0, r4
	bl	btc8821a1ant_act_wifi_conn_sp_pkt
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r6]
	ldr	r3, .L29+72
	bl	RT_TRACE
	b	.L1
.L11:
	cmp	r3, r2
	beq	.L28
	ldr	r2, .L29+60
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L16
	ldr	r2, .L29+64
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L14
.L16:
	ldr	r3, .L29+76
	mov	r0, r4
	ldr	r1, [r3]
	bl	btc8821a1ant_act_bt_sco_hid_only_busy
	b	.L1
.L14:
	ldr	r5, .L29+80
	mov	r3, #8
	ldr	r1, [r5]
	mov	r2, #0
	mov	r0, r4
	bl	btc8821a1ant_ps_tdma
	mov	r0, r4
	mov	r2, #2
	ldr	r1, [r5]
	bl	btc8821a1ant_coex_table_with_type
	b	.L1
.L27:
	ldr	r3, .L29+68
	mov	r0, r4
	ldr	r1, [r3]
	bl	btc8821a1ant_act_wifi_con_bt_acl_busy
	b	.L1
.L28:
	ldr	r3, .L29+76
	mov	r0, r4
	ldr	r1, [r3]
	bl	btc8821a1ant_act_wifi_con_bt_acl_busy
	b	.L1
.L26:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	DBG_LOUD
	.word	COMP_BT_COEXIST
	.word	.LC3
	.word	.LC0
	.word	BTC_GET_BL_WIFI_4_WAY_PROGRESS
	.word	BTC_GET_BL_WIFI_SCAN
	.word	BTC_GET_BL_WIFI_LINK
	.word	BTC_GET_BL_WIFI_ROAM
	.word	BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.word	BTC_GET_BL_WIFI_BUSY
	.word	coex_dm
	.word	BT_8821A_1ANT_BT_STATUS_ACL_BUSY
	.word	BTC_PS_LPS_ON
	.word	.LC2
	.word	BTC_PS_WIFI_NATIVE
	.word	BT_8821A_1ANT_BT_STATUS_SCO_BUSY
	.word	BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY
	.word	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_IDLE
	.word	.LC1
	.word	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_BUSY
	.word	NORMAL_EXEC
	.size	btc8821a1ant_action_wifi_connected, .-btc8821a1ant_action_wifi_connected
	.comm	coex_dm,4,4
	.comm	NORMAL_EXEC,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_BT_COEXIST,4,4
	.comm	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_IDLE,4,4
	.comm	BT_8821A_1ANT_WIFI_STATUS_CONNECTED_BUSY,4,4
	.comm	BT_8821A_1ANT_BT_STATUS_SCO_BUSY,4,4
	.comm	BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY,4,4
	.comm	BT_8821A_1ANT_BT_STATUS_ACL_BUSY,4,4
	.comm	BTC_PS_WIFI_NATIVE,4,4
	.comm	BTC_PS_LPS_ON,4,4
	.comm	BTC_GET_BL_WIFI_SCAN,4,4
	.comm	BTC_GET_BL_WIFI_ROAM,4,4
	.comm	BTC_GET_BL_WIFI_LINK,4,4
	.comm	BTC_GET_BL_WIFI_BUSY,4,4
	.comm	BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,4
	.comm	BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
