	.file	"extr_init.c_ath6kl_target_config_wlan_params.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unable to set the rx frame format: %d\n"
	.align 8
.LC1:
	.string	"unable to set power save fail event policy: %d\n"
	.align 8
.LC2:
	.string	"unable to set barker preamble policy: %d\n"
	.align 8
.LC3:
	.string	"unable to set keep alive interval: %d\n"
	.align 8
.LC4:
	.string	"unable to set disconnect timeout: %d\n"
	.align 8
.LC5:
	.string	"unable to set txop bursting: %d\n"
	.align 8
.LC6:
	.string	"failed to request P2P capabilities (%d) - assuming P2P not supported\n"
	.align 8
.LC7:
	.string	"failed to enable Probe Request reporting (%d)\n"
	.text
	.p2align 4
	.type	ath6kl_target_config_wlan_params, @function
ath6kl_target_config_wlan_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r8d, r8d
	xor	ecx, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR 16[rdi]
	mov	edi, DWORD PTR 12[rdi]
	call	ath6kl_wmi_set_rx_frame_format_cmd@PLT
	test	eax, eax
	jne	.L39
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 12[rbx]
	test	DWORD PTR ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN[rip], eax
	jne	.L40
.L4:
	test	DWORD PTR ATH6KL_CONF_IGNORE_ERP_BARKER[rip], eax
	jne	.L6
	mov	ecx, DWORD PTR WMI_FOLLOW_BARKER_IN_ERP[rip]
	xor	edx, edx
	mov	esi, ebp
	call	ath6kl_wmi_set_lpreamble_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	edi, DWORD PTR 12[rbx]
.L6:
	mov	edx, DWORD PTR WLAN_CONFIG_KEEP_ALIVE_INTERVAL[rip]
	mov	esi, ebp
	call	ath6kl_wmi_set_keepalive_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L41
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR WLAN_CONFIG_DISCONNECT_TIMEOUT[rip]
	mov	esi, ebp
	call	ath6kl_wmi_disctimeout_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ATH6KL_CONF_ENABLE_TX_BURST[rip], eax
	je	.L43
.L10:
	mov	r12d, DWORD PTR 4[rbx]
	test	r12d, r12d
	je	.L1
	test	ebp, ebp
	setne	r13b
	cmp	DWORD PTR 8[rbx], 1
	je	.L17
	test	r13b, r13b
	jne	.L17
.L12:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	esi, eax
	lea	rdi, .LC3[rip]
	call	ath6kl_err@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	mov	eax, DWORD PTR IGNORE_PS_FAIL_DURING_SCAN[rip]
	mov	ecx, 1
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, ebp
	push	rax
	.cfi_def_cfa_offset 56
	push	1
	.cfi_def_cfa_offset 64
	call	ath6kl_wmi_pmparams_cmd@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 12[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L39:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	ath6kl_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR WMI_TXOP_DISABLED[rip]
	mov	esi, ebp
	call	ath6kl_wmi_set_wmm_txop@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
	mov	esi, eax
	lea	rdi, .LC5[rip]
	call	ath6kl_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR P2P_FLAG_CAPABILITIES_REQ[rip]
	mov	esi, ebp
	or	edx, DWORD PTR P2P_FLAG_MACADDR_REQ[rip]
	or	edx, DWORD PTR P2P_FLAG_HMODEL_REQ[rip]
	call	ath6kl_wmi_info_req_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L44
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	je	.L12
	cmp	DWORD PTR 8[rbx], 1
	jne	.L45
.L18:
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, 1
	mov	esi, ebp
	call	ath6kl_wmi_probe_report_req_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR ATH6KL_DBG_TRC[rip]
	mov	edx, eax
	lea	rsi, .LC7[rip]
	call	ath6kl_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	esi, eax
	lea	rdi, .LC4[rip]
	call	ath6kl_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	ath6kl_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	ath6kl_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	test	r13b, r13b
	jne	.L18
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR ATH6KL_DBG_TRC[rip]
	mov	edx, eax
	lea	rsi, .LC6[rip]
	call	ath6kl_dbg@PLT
	mov	DWORD PTR 4[rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ath6kl_target_config_wlan_params, .-ath6kl_target_config_wlan_params
	.comm	WMI_TXOP_DISABLED,4,4
	.comm	WMI_FOLLOW_BARKER_IN_ERP,4,4
	.comm	WLAN_CONFIG_KEEP_ALIVE_INTERVAL,4,4
	.comm	WLAN_CONFIG_DISCONNECT_TIMEOUT,4,4
	.comm	P2P_FLAG_MACADDR_REQ,4,4
	.comm	P2P_FLAG_HMODEL_REQ,4,4
	.comm	P2P_FLAG_CAPABILITIES_REQ,4,4
	.comm	IGNORE_PS_FAIL_DURING_SCAN,4,4
	.comm	ATH6KL_DBG_TRC,4,4
	.comm	ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN,4,4
	.comm	ATH6KL_CONF_IGNORE_ERP_BARKER,4,4
	.comm	ATH6KL_CONF_ENABLE_TX_BURST,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_init.c_ath6kl_target_config_wlan_params.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to set the rx frame format: %d\012\000"
	.align	2
.LC1:
	.ascii	"unable to set power save fail event policy: %d\012\000"
	.align	2
.LC2:
	.ascii	"unable to set barker preamble policy: %d\012\000"
	.align	2
.LC3:
	.ascii	"unable to set keep alive interval: %d\012\000"
	.align	2
.LC4:
	.ascii	"unable to set disconnect timeout: %d\012\000"
	.align	2
.LC5:
	.ascii	"unable to set txop bursting: %d\012\000"
	.align	2
.LC6:
	.ascii	"failed to request P2P capabilities (%d) - assuming "
	.ascii	"P2P not supported\012\000"
	.align	2
.LC7:
	.ascii	"failed to enable Probe Request reporting (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_target_config_wlan_params, %function
ath6kl_target_config_wlan_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	ldr	r2, [r0, #16]
	mov	r5, r0
	ldr	r0, [r0, #12]
	str	r3, [sp]
	mov	r6, r1
	bl	ath6kl_wmi_set_rx_frame_format_cmd
	subs	r4, r0, #0
	bne	.L35
	ldr	r3, .L41
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r0, [r5, #12]
	tst	r2, r3
	bne	.L36
.L4:
	ldr	r3, .L41+4
	ldr	r3, [r3]
	ands	r2, r2, r3
	bne	.L6
	ldr	r3, .L41+8
	mov	r1, r6
	ldr	r3, [r3]
	bl	ath6kl_wmi_set_lpreamble_cmd
	subs	r4, r0, #0
	bne	.L7
	ldr	r0, [r5, #12]
.L6:
	ldr	r3, .L41+12
	mov	r1, r6
	ldr	r2, [r3]
	bl	ath6kl_wmi_set_keepalive_cmd
	subs	r4, r0, #0
	bne	.L37
	ldr	r3, .L41+16
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r5, #12]
	bl	ath6kl_wmi_disctimeout_cmd
	subs	r1, r0, #0
	bne	.L38
	ldr	r3, .L41+20
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L39
.L10:
	ldr	r4, [r5, #4]
	cmp	r4, #0
	beq	.L1
	subs	r7, r6, #0
	movne	r7, #1
	ldr	r3, [r5, #8]
	cmp	r3, #1
	movne	r3, r7
	orreq	r3, r7, #1
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L41+24
	ldr	r1, .L41+28
	ldr	r2, .L41+32
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r0, [r5, #12]
	mov	r1, r6
	orr	r2, r3, r2
	bl	ath6kl_wmi_info_req_cmd
	subs	r4, r0, #0
	bne	.L40
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [r5, #8]
	cmp	r3, #1
	orreq	r7, r7, #1
	cmp	r7, #0
	beq	.L12
	mov	r1, r6
	mov	r2, #1
	ldr	r0, [r5, #12]
	bl	ath6kl_wmi_probe_report_req_cmd
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L41+36
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L41+40
	bl	ath6kl_dbg
	b	.L1
.L37:
	mov	r1, r4
	ldr	r0, .L41+44
	bl	ath6kl_err
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L36:
	mov	r3, #1
	ldr	r2, .L41+48
	str	r4, [sp, #4]
	ldr	r1, [r2]
	mov	r2, r4
	str	r4, [sp]
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	mov	r1, r6
	bl	ath6kl_wmi_pmparams_cmd
	subs	r4, r0, #0
	bne	.L5
	ldr	r2, [r5]
	ldr	r0, [r5, #12]
	b	.L4
.L35:
	mov	r1, r4
	ldr	r0, .L41+52
	bl	ath6kl_err
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L39:
	ldr	r3, .L41+56
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r5, #12]
	bl	ath6kl_wmi_set_wmm_txop
	subs	r4, r0, #0
	beq	.L10
	mov	r1, r4
	ldr	r0, .L41+60
	bl	ath6kl_err
	b	.L1
.L38:
	ldr	r0, .L41+64
	mov	r4, r1
	bl	ath6kl_err
	b	.L1
.L7:
	mov	r1, r4
	ldr	r0, .L41+68
	bl	ath6kl_err
	b	.L1
.L12:
	mov	r4, #0
	b	.L1
.L5:
	mov	r1, r4
	ldr	r0, .L41+72
	bl	ath6kl_err
	b	.L1
.L40:
	ldr	r3, .L41+36
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L41+76
	bl	ath6kl_dbg
	mov	r3, #0
	str	r3, [r5, #4]
	b	.L1
.L42:
	.align	2
.L41:
	.word	ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN
	.word	ATH6KL_CONF_IGNORE_ERP_BARKER
	.word	WMI_FOLLOW_BARKER_IN_ERP
	.word	WLAN_CONFIG_KEEP_ALIVE_INTERVAL
	.word	WLAN_CONFIG_DISCONNECT_TIMEOUT
	.word	ATH6KL_CONF_ENABLE_TX_BURST
	.word	P2P_FLAG_CAPABILITIES_REQ
	.word	P2P_FLAG_MACADDR_REQ
	.word	P2P_FLAG_HMODEL_REQ
	.word	ATH6KL_DBG_TRC
	.word	.LC7
	.word	.LC3
	.word	IGNORE_PS_FAIL_DURING_SCAN
	.word	.LC0
	.word	WMI_TXOP_DISABLED
	.word	.LC5
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.word	.LC6
	.size	ath6kl_target_config_wlan_params, .-ath6kl_target_config_wlan_params
	.comm	WMI_TXOP_DISABLED,4,4
	.comm	WMI_FOLLOW_BARKER_IN_ERP,4,4
	.comm	WLAN_CONFIG_KEEP_ALIVE_INTERVAL,4,4
	.comm	WLAN_CONFIG_DISCONNECT_TIMEOUT,4,4
	.comm	P2P_FLAG_MACADDR_REQ,4,4
	.comm	P2P_FLAG_HMODEL_REQ,4,4
	.comm	P2P_FLAG_CAPABILITIES_REQ,4,4
	.comm	IGNORE_PS_FAIL_DURING_SCAN,4,4
	.comm	ATH6KL_DBG_TRC,4,4
	.comm	ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN,4,4
	.comm	ATH6KL_CONF_IGNORE_ERP_BARKER,4,4
	.comm	ATH6KL_CONF_ENABLE_TX_BURST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
