	.file	"extr_acx.c_wl1251_acx_sg_cfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"acx sg cfg"
.LC1:
	.string	"failed to set sg config: %d"
	.text
	.p2align 4
	.globl	wl1251_acx_sg_cfg
	.type	wl1251_acx_sg_cfg, @function
wl1251_acx_sg_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR DEBUG_ACX[rip]
	call	wl1251_debug@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 112
	call	kzalloc@PLT
	test	rax, rax
	je	.L7
	mov	rbp, rax
	mov	eax, DWORD PTR RATE_INDEX_24MBPS[rip]
	mov	rdi, r12
	mov	ecx, 112
	mov	rdx, rbp
	mov	DWORD PTR 108[rbp], eax
	mov	eax, DWORD PTR PTA_BT_HP_MAXTIME_DEF[rip]
	mov	DWORD PTR 104[rbp], eax
	mov	eax, DWORD PTR PTA_WLAN_HP_MAX_TIME_DEF[rip]
	mov	DWORD PTR 100[rbp], eax
	mov	eax, DWORD PTR PTA_SENSE_DISABLE_TIMER_DEF[rip]
	mov	DWORD PTR 96[rbp], eax
	mov	eax, DWORD PTR PTA_PROTECTIVE_RX_TIME_DEF[rip]
	mov	DWORD PTR 92[rbp], eax
	mov	eax, DWORD PTR PTA_PROTECTIVE_TX_TIME_DEF[rip]
	mov	DWORD PTR 88[rbp], eax
	mov	eax, DWORD PTR PTA_PROTECTIVE_RX_TIME_FAST_DEF[rip]
	mov	DWORD PTR 84[rbp], eax
	mov	eax, DWORD PTR PTA_PROTECTIVE_TX_TIME_FAST_DEF[rip]
	mov	DWORD PTR 80[rbp], eax
	mov	eax, DWORD PTR PTA_CYCLE_TIME_FAST_DEF[rip]
	mov	DWORD PTR 76[rbp], eax
	mov	eax, DWORD PTR PTA_ANTI_STARVE_PERIOD_DEF[rip]
	mov	DWORD PTR 72[rbp], eax
	mov	eax, DWORD PTR PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF[rip]
	mov	DWORD PTR 68[rbp], eax
	mov	eax, DWORD PTR PTA_TIME_BEFORE_BEACON_DEF[rip]
	mov	DWORD PTR 64[rbp], eax
	mov	eax, DWORD PTR PTA_HPDM_MAX_TIME_DEF[rip]
	mov	DWORD PTR 60[rbp], eax
	mov	eax, DWORD PTR PTA_TIME_OUT_NEXT_WLAN_DEF[rip]
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR PTA_ANTENNA_TYPE_DEF[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR PTA_SIGNALING_TYPE_DEF[rip]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR PTA_AFH_LEVERAGE_ON_DEF[rip]
	mov	esi, DWORD PTR ACX_SG_CFG[rip]
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR PTA_NUMBER_QUIET_CYCLE_DEF[rip]
	mov	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR PTA_MAX_NUM_CTS_DEF[rip]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR PTA_NUMBER_OF_WLAN_PACKETS_DEF[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR PTA_NUMBER_OF_BT_PACKETS_DEF[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR PTA_RX_FOR_AVALANCHE_DEF[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR PTA_ELP_HP_DEF[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR PTA_ANTI_STARVE_NUM_CYCLE_DEF[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR PTA_ACK_MODE_DEF[rip]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR PTA_ALLOW_PA_SD_DEF[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR PTA_AUTO_MODE_NO_CTS_DEF[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR PTA_BT_HP_RESPECTED_DEF[rip]
	mov	DWORD PTR 0[rbp], eax
	call	wl1251_cmd_configure@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L8
.L4:
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	wl1251_warning@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	wl1251_acx_sg_cfg, .-wl1251_acx_sg_cfg
	.comm	RATE_INDEX_24MBPS,4,4
	.comm	PTA_WLAN_HP_MAX_TIME_DEF,4,4
	.comm	PTA_TIME_OUT_NEXT_WLAN_DEF,4,4
	.comm	PTA_TIME_BEFORE_BEACON_DEF,4,4
	.comm	PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF,4,4
	.comm	PTA_SIGNALING_TYPE_DEF,4,4
	.comm	PTA_SENSE_DISABLE_TIMER_DEF,4,4
	.comm	PTA_RX_FOR_AVALANCHE_DEF,4,4
	.comm	PTA_PROTECTIVE_TX_TIME_FAST_DEF,4,4
	.comm	PTA_PROTECTIVE_TX_TIME_DEF,4,4
	.comm	PTA_PROTECTIVE_RX_TIME_FAST_DEF,4,4
	.comm	PTA_PROTECTIVE_RX_TIME_DEF,4,4
	.comm	PTA_NUMBER_QUIET_CYCLE_DEF,4,4
	.comm	PTA_NUMBER_OF_WLAN_PACKETS_DEF,4,4
	.comm	PTA_NUMBER_OF_BT_PACKETS_DEF,4,4
	.comm	PTA_MAX_NUM_CTS_DEF,4,4
	.comm	PTA_HPDM_MAX_TIME_DEF,4,4
	.comm	PTA_ELP_HP_DEF,4,4
	.comm	PTA_CYCLE_TIME_FAST_DEF,4,4
	.comm	PTA_BT_HP_RESPECTED_DEF,4,4
	.comm	PTA_BT_HP_MAXTIME_DEF,4,4
	.comm	PTA_AUTO_MODE_NO_CTS_DEF,4,4
	.comm	PTA_ANTI_STARVE_PERIOD_DEF,4,4
	.comm	PTA_ANTI_STARVE_NUM_CYCLE_DEF,4,4
	.comm	PTA_ANTENNA_TYPE_DEF,4,4
	.comm	PTA_ALLOW_PA_SD_DEF,4,4
	.comm	PTA_AFH_LEVERAGE_ON_DEF,4,4
	.comm	PTA_ACK_MODE_DEF,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_ACX,4,4
	.comm	ACX_SG_CFG,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_acx.c_wl1251_acx_sg_cfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"acx sg cfg\000"
	.align	2
.LC1:
	.ascii	"failed to set sg config: %d\000"
	.text
	.align	2
	.global	wl1251_acx_sg_cfg
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1251_acx_sg_cfg, %function
wl1251_acx_sg_cfg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L9
	push	{r4, r5, r6, lr}
	ldr	r1, .L9+4
	mov	r5, r0
	ldr	r0, [r2]
	bl	wl1251_debug
	ldr	r3, .L9+8
	mov	r0, #112
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L7
	ldr	ip, .L9+12
	ldr	r0, .L9+16
	ldr	r1, .L9+20
	ldr	r3, .L9+24
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r3, .L9+28
	str	lr, [r4, #108]
	ldr	r2, .L9+32
	ldr	lr, [r3]
	ldr	r3, .L9+36
	ldr	r2, [r2]
	str	ip, [r4, #104]
	ldr	ip, [r3]
	ldr	r3, .L9+40
	str	r2, [r4, #100]
	ldr	r2, [r3]
	ldr	r3, .L9+44
	str	r0, [r4, #96]
	ldr	r0, [r3]
	ldr	r3, .L9+48
	str	r1, [r4, #92]
	ldr	r1, [r3]
	ldr	r3, .L9+52
	str	lr, [r4, #88]
	str	r2, [r4, #80]
	ldr	lr, [r3]
	ldr	r2, .L9+56
	ldr	r3, .L9+60
	str	ip, [r4, #84]
	str	r0, [r4, #76]
	ldr	ip, [r3]
	ldr	r0, [r2]
	ldr	r3, .L9+64
	ldr	r2, .L9+68
	ldr	r3, [r3]
	str	r1, [r4, #72]
	ldr	r1, [r2]
	ldr	r2, .L9+72
	str	r3, [r4, #60]
	ldr	r2, [r2]
	ldr	r3, .L9+76
	str	lr, [r4, #68]
	str	ip, [r4, #64]
	str	r0, [r4, #56]
	str	r1, [r4, #52]
	str	r2, [r4, #48]
	ldr	r3, [r3]
	ldr	r2, .L9+80
	ldr	ip, .L9+84
	ldr	r2, [r2]
	ldr	r0, .L9+88
	ldr	r1, .L9+92
	str	r3, [r4, #44]
	ldr	r3, .L9+96
	ldr	lr, [r0]
	ldr	r6, [ip]
	mov	r0, r5
	ldr	ip, [r1]
	ldr	r5, [r3]
	str	r2, [r4, #32]
	ldr	r3, .L9+100
	ldr	r2, .L9+104
	ldr	r1, .L9+108
	str	lr, [r4, #36]
	ldr	r1, [r1]
	ldr	lr, [r3]
	str	ip, [r4, #28]
	ldr	r3, .L9+112
	ldr	ip, [r2]
	ldr	r2, .L9+116
	ldr	r3, [r3]
	str	r1, [r4, #24]
	ldr	r1, [r2]
	ldr	r2, .L9+120
	str	r3, [r4, #12]
	ldr	r2, [r2]
	ldr	r3, .L9+124
	stmib	r4, {r1, ip}
	str	r5, [r4, #20]
	ldr	r1, [r3]
	str	r2, [r4]
	mov	r3, #112
	mov	r2, r4
	str	r6, [r4, #40]
	str	lr, [r4, #16]
	bl	wl1251_cmd_configure
	subs	r5, r0, #0
	blt	.L8
.L4:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+128
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, r5
	ldr	r0, .L9+132
	bl	wl1251_warning
	b	.L4
.L10:
	.align	2
.L9:
	.word	DEBUG_ACX
	.word	.LC0
	.word	GFP_KERNEL
	.word	RATE_INDEX_24MBPS
	.word	PTA_BT_HP_MAXTIME_DEF
	.word	PTA_SENSE_DISABLE_TIMER_DEF
	.word	PTA_PROTECTIVE_RX_TIME_DEF
	.word	PTA_PROTECTIVE_TX_TIME_DEF
	.word	PTA_WLAN_HP_MAX_TIME_DEF
	.word	PTA_PROTECTIVE_RX_TIME_FAST_DEF
	.word	PTA_PROTECTIVE_TX_TIME_FAST_DEF
	.word	PTA_CYCLE_TIME_FAST_DEF
	.word	PTA_ANTI_STARVE_PERIOD_DEF
	.word	PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF
	.word	PTA_TIME_OUT_NEXT_WLAN_DEF
	.word	PTA_TIME_BEFORE_BEACON_DEF
	.word	PTA_HPDM_MAX_TIME_DEF
	.word	PTA_ANTENNA_TYPE_DEF
	.word	PTA_SIGNALING_TYPE_DEF
	.word	PTA_AFH_LEVERAGE_ON_DEF
	.word	PTA_NUMBER_OF_WLAN_PACKETS_DEF
	.word	PTA_NUMBER_QUIET_CYCLE_DEF
	.word	PTA_MAX_NUM_CTS_DEF
	.word	PTA_NUMBER_OF_BT_PACKETS_DEF
	.word	PTA_ELP_HP_DEF
	.word	PTA_ANTI_STARVE_NUM_CYCLE_DEF
	.word	PTA_ALLOW_PA_SD_DEF
	.word	PTA_RX_FOR_AVALANCHE_DEF
	.word	PTA_ACK_MODE_DEF
	.word	PTA_AUTO_MODE_NO_CTS_DEF
	.word	PTA_BT_HP_RESPECTED_DEF
	.word	ACX_SG_CFG
	.word	ENOMEM
	.word	.LC1
	.size	wl1251_acx_sg_cfg, .-wl1251_acx_sg_cfg
	.comm	RATE_INDEX_24MBPS,4,4
	.comm	PTA_WLAN_HP_MAX_TIME_DEF,4,4
	.comm	PTA_TIME_OUT_NEXT_WLAN_DEF,4,4
	.comm	PTA_TIME_BEFORE_BEACON_DEF,4,4
	.comm	PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF,4,4
	.comm	PTA_SIGNALING_TYPE_DEF,4,4
	.comm	PTA_SENSE_DISABLE_TIMER_DEF,4,4
	.comm	PTA_RX_FOR_AVALANCHE_DEF,4,4
	.comm	PTA_PROTECTIVE_TX_TIME_FAST_DEF,4,4
	.comm	PTA_PROTECTIVE_TX_TIME_DEF,4,4
	.comm	PTA_PROTECTIVE_RX_TIME_FAST_DEF,4,4
	.comm	PTA_PROTECTIVE_RX_TIME_DEF,4,4
	.comm	PTA_NUMBER_QUIET_CYCLE_DEF,4,4
	.comm	PTA_NUMBER_OF_WLAN_PACKETS_DEF,4,4
	.comm	PTA_NUMBER_OF_BT_PACKETS_DEF,4,4
	.comm	PTA_MAX_NUM_CTS_DEF,4,4
	.comm	PTA_HPDM_MAX_TIME_DEF,4,4
	.comm	PTA_ELP_HP_DEF,4,4
	.comm	PTA_CYCLE_TIME_FAST_DEF,4,4
	.comm	PTA_BT_HP_RESPECTED_DEF,4,4
	.comm	PTA_BT_HP_MAXTIME_DEF,4,4
	.comm	PTA_AUTO_MODE_NO_CTS_DEF,4,4
	.comm	PTA_ANTI_STARVE_PERIOD_DEF,4,4
	.comm	PTA_ANTI_STARVE_NUM_CYCLE_DEF,4,4
	.comm	PTA_ANTENNA_TYPE_DEF,4,4
	.comm	PTA_ALLOW_PA_SD_DEF,4,4
	.comm	PTA_AFH_LEVERAGE_ON_DEF,4,4
	.comm	PTA_ACK_MODE_DEF,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_ACX,4,4
	.comm	ACX_SG_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
