	.file	"extr_halbtc8192e2ant.c_btc8192e2ant_action_a2dp_pan_hs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btc8192e2ant_action_a2dp_pan_hs, @function
btc8192e2ant_action_a2dp_pan_hs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r8d, r8d
	xor	esi, esi
	mov	ecx, 15
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	edx, 2
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	btc8192e2ant_wifi_rssi_state@PLT
	mov	ecx, 42
	mov	edx, 34
	mov	rdi, rbp
	mov	esi, 3
	mov	r12, rax
	call	btc8192e2ant_bt_rssi_state@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	rbx, rax
	call	btc8192e2ant_switch_ss_type@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	r8d, 8
	mov	rdi, rbp
	call	btc8192e2ant_limited_rx@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 6
	mov	rdi, rbp
	call	btc8192e2ant_fw_dac_swing_lvl@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	btc8192e2ant_coex_table_with_type@PLT
	cmp	QWORD PTR BTC_RSSI_STATE_LOW[rip], rbx
	je	.L2
	cmp	QWORD PTR BTC_RSSI_STATE_STAY_LOW[rip], rbx
	je	.L2
	cmp	QWORD PTR BTC_RSSI_STATE_MEDIUM[rip], rbx
	je	.L5
	cmp	QWORD PTR BTC_RSSI_STATE_STAY_MEDIUM[rip], rbx
	je	.L5
	cmp	QWORD PTR BTC_RSSI_STATE_HIGH[rip], rbx
	je	.L7
	cmp	QWORD PTR BTC_RSSI_STATE_STAY_HIGH[rip], rbx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, rsp
	mov	esi, DWORD PTR BTC_GET_U4_WIFI_BW[rip]
	mov	rdi, rbp
	call	[QWORD PTR 0[rbp]]
	mov	rax, QWORD PTR [rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	cmp	QWORD PTR BTC_WIFI_BW_HT40[rip], rax
	je	.L19
	xor	esi, esi
	cmp	QWORD PTR BTC_RSSI_STATE_HIGH[rip], r12
	mov	rdi, rbp
	je	.L12
.L17:
	cmp	QWORD PTR BTC_RSSI_STATE_STAY_HIGH[rip], r12
	je	.L12
	call	btc8192e2ant_sw_mechanism1@PLT
	mov	r8d, 6
	xor	edx, edx
	xor	esi, esi
	mov	ecx, 1
	mov	rdi, rbp
	call	btc8192e2ant_sw_mechanism2@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L5:
	.cfi_restore_state
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	mov	ecx, 2
	call	btc8192e2ant_tdma_duration_adjust@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	btc8192e2ant_dec_bt_pwr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	QWORD PTR BTC_RSSI_STATE_HIGH[rip], r12
	mov	esi, 1
	mov	rdi, rbp
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L12:
	call	btc8192e2ant_sw_mechanism1@PLT
	mov	r8d, 6
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 1
	mov	esi, 1
	call	btc8192e2ant_sw_mechanism2@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	esi, esi
	mov	rdi, rbp
	mov	ecx, 2
	mov	edx, 1
	call	btc8192e2ant_tdma_duration_adjust@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	btc8192e2ant_dec_bt_pwr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	mov	ecx, 2
	call	btc8192e2ant_tdma_duration_adjust@PLT
	mov	esi, DWORD PTR NORMAL_EXEC[rip]
	mov	edx, 4
	mov	rdi, rbp
	call	btc8192e2ant_dec_bt_pwr@PLT
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btc8192e2ant_action_a2dp_pan_hs, .-btc8192e2ant_action_a2dp_pan_hs
	.comm	NORMAL_EXEC,4,4
	.comm	BTC_WIFI_BW_HT40,8,8
	.comm	BTC_RSSI_STATE_STAY_MEDIUM,8,8
	.comm	BTC_RSSI_STATE_STAY_LOW,8,8
	.comm	BTC_RSSI_STATE_STAY_HIGH,8,8
	.comm	BTC_RSSI_STATE_MEDIUM,8,8
	.comm	BTC_RSSI_STATE_LOW,8,8
	.comm	BTC_RSSI_STATE_HIGH,8,8
	.comm	BTC_GET_U4_WIFI_BW,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_halbtc8192e2ant.c_btc8192e2ant_action_a2dp_pan_hs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc8192e2ant_action_a2dp_pan_hs, %function
btc8192e2ant_action_a2dp_pan_hs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, #0
	sub	sp, sp, #16
	ldr	ip, .L21
	mov	r1, r8
	mov	r3, #15
	mov	r2, #2
	str	r8, [sp]
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	btc8192e2ant_wifi_rssi_state
	mov	r3, #42
	mov	r2, #34
	mov	r1, #3
	mov	r7, r0
	mov	r0, r4
	bl	btc8192e2ant_bt_rssi_state
	ldr	r6, .L21+4
	mov	r5, r0
	mov	r2, #1
	ldr	r1, [r6]
	mov	r0, r4
	bl	btc8192e2ant_switch_ss_type
	mov	ip, #8
	mov	r3, r8
	str	ip, [sp]
	mov	r2, r8
	ldr	r1, [r6]
	mov	r0, r4
	bl	btc8192e2ant_limited_rx
	mov	r2, #6
	ldr	r1, [r6]
	mov	r0, r4
	bl	btc8192e2ant_fw_dac_swing_lvl
	mov	r0, r4
	mov	r2, #2
	ldr	r1, [r6]
	bl	btc8192e2ant_coex_table_with_type
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L2
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L2
	ldr	r3, .L21+16
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L5
	ldr	r3, .L21+20
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L5
	ldr	r8, .L21+24
	ldr	r3, [r8]
	cmp	r3, r5
	beq	.L7
	ldr	r3, .L21+28
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L7
.L4:
	ldr	r2, .L21+32
	ldr	r3, [r4]
	ldr	r1, [r2]
	mov	r0, r4
	add	r2, sp, #8
	blx	r3
	ldr	r2, .L21+36
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	mov	r5, #0
	cmp	r2, r3
	ldr	r3, [r8]
	beq	.L19
	cmp	r3, r7
	mov	r0, r4
	beq	.L12
	ldr	r3, .L21+28
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L12
	mov	r3, r5
	mov	r2, r5
	mov	r1, r5
	str	r5, [sp]
.L16:
	bl	btc8192e2ant_sw_mechanism1
	mov	r3, #6
	mov	r0, r4
	str	r3, [sp]
	mov	r2, r5
	mov	r1, r5
	mov	r3, #1
	bl	btc8192e2ant_sw_mechanism2
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, #0
	mov	r3, #2
	mov	r1, r2
	mov	r0, r4
	bl	btc8192e2ant_tdma_duration_adjust
	mov	r2, #2
	mov	r0, r4
	ldr	r1, [r6]
	bl	btc8192e2ant_dec_bt_pwr
	ldr	r8, .L21+24
	b	.L4
.L2:
	mov	r3, #2
	mov	r2, #1
	mov	r1, #0
	mov	r0, r4
	bl	btc8192e2ant_tdma_duration_adjust
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r6]
	bl	btc8192e2ant_dec_bt_pwr
	ldr	r8, .L21+24
	b	.L4
.L12:
	mov	r3, r5
	mov	r2, r5
	mov	r1, r5
	str	r5, [sp]
.L17:
	bl	btc8192e2ant_sw_mechanism1
	mov	r1, #6
	mov	r3, #1
	str	r1, [sp]
	mov	r2, r5
	mov	r0, r4
	mov	r1, r3
	bl	btc8192e2ant_sw_mechanism2
	b	.L1
.L19:
	cmp	r3, r7
	mov	r1, #1
	beq	.L9
	ldr	r3, .L21+28
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L10
.L9:
	mov	r3, r5
	mov	r2, r5
	mov	r0, r4
	str	r5, [sp]
	b	.L17
.L10:
	mov	r3, r5
	mov	r2, r5
	mov	r0, r4
	str	r5, [sp]
	b	.L16
.L7:
	mov	r2, #0
	mov	r3, #2
	mov	r1, r2
	mov	r0, r4
	bl	btc8192e2ant_tdma_duration_adjust
	mov	r2, #4
	mov	r0, r4
	ldr	r1, [r6]
	bl	btc8192e2ant_dec_bt_pwr
	b	.L4
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	NORMAL_EXEC
	.word	BTC_RSSI_STATE_LOW
	.word	BTC_RSSI_STATE_STAY_LOW
	.word	BTC_RSSI_STATE_MEDIUM
	.word	BTC_RSSI_STATE_STAY_MEDIUM
	.word	BTC_RSSI_STATE_HIGH
	.word	BTC_RSSI_STATE_STAY_HIGH
	.word	BTC_GET_U4_WIFI_BW
	.word	BTC_WIFI_BW_HT40
	.size	btc8192e2ant_action_a2dp_pan_hs, .-btc8192e2ant_action_a2dp_pan_hs
	.comm	NORMAL_EXEC,4,4
	.comm	BTC_WIFI_BW_HT40,4,4
	.comm	BTC_RSSI_STATE_STAY_MEDIUM,4,4
	.comm	BTC_RSSI_STATE_STAY_LOW,4,4
	.comm	BTC_RSSI_STATE_STAY_HIGH,4,4
	.comm	BTC_RSSI_STATE_MEDIUM,4,4
	.comm	BTC_RSSI_STATE_LOW,4,4
	.comm	BTC_RSSI_STATE_HIGH,4,4
	.comm	BTC_GET_U4_WIFI_BW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
