	.file	"extr_main.c_wlcore_alloc_hw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"could not alloc ieee80211_hw"
.LC1:
	.string	"could not alloc wl priv"
.LC2:
	.string	"wl12xx_wq"
	.text
	.p2align 4
	.globl	wlcore_alloc_hw
	.type	wlcore_alloc_hw, @function
wlcore_alloc_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	lea	rsi, wl1271_ops[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, 296
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdx
	call	ieee80211_alloc_hw@PLT
	test	rax, rax
	je	.L31
	mov	r15, QWORD PTR [rax]
	mov	edx, 296
	xor	esi, esi
	mov	r13, rax
	mov	rdi, r15
	call	memset@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	kzalloc@PLT
	mov	QWORD PTR 16[r15], rax
	test	rax, rax
	je	.L32
	lea	rdi, 288[r15]
	xor	r12d, r12d
	call	INIT_LIST_HEAD@PLT
	mov	edx, DWORD PTR NUM_TX_QUEUES[rip]
	mov	QWORD PTR 280[r15], r13
	test	edx, edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR WLCORE_MAX_LINKS[rip]
	lea	rbp, 0[0+r12*4]
	xor	ebx, ebx
	test	eax, eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 272[r15]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	add	rdi, rbp
	call	skb_queue_head_init@PLT
	cmp	DWORD PTR WLCORE_MAX_LINKS[rip], ebx
	jg	.L8
.L10:
	add	r12, 1
	cmp	DWORD PTR NUM_TX_QUEUES[rip], r12d
	jg	.L6
.L7:
	lea	rdi, 268[r15]
	call	skb_queue_head_init@PLT
	lea	rdi, 264[r15]
	call	skb_queue_head_init@PLT
	mov	esi, DWORD PTR wl1271_netstack_work[rip]
	lea	rdi, 260[r15]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR wl1271_tx_work[rip]
	lea	rdi, 256[r15]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR wl1271_recovery_work[rip]
	lea	rdi, 252[r15]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR wl1271_scan_complete_work[rip]
	lea	rdi, 248[r15]
	call	INIT_DELAYED_WORK@PLT
	mov	esi, DWORD PTR wlcore_roc_complete_work[rip]
	lea	rdi, 244[r15]
	call	INIT_DELAYED_WORK@PLT
	mov	esi, DWORD PTR wl12xx_tx_watchdog_work[rip]
	lea	rdi, 240[r15]
	call	INIT_DELAYED_WORK@PLT
	lea	rdi, .LC2[rip]
	call	create_freezable_workqueue@PLT
	mov	DWORD PTR 24[r15], eax
	test	eax, eax
	jne	.L11
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
.L12:
	mov	rdi, r15
	call	wl1271_debugfs_exit@PLT
	mov	rdi, QWORD PTR 16[r15]
	call	kfree@PLT
.L5:
	mov	rdi, r13
	call	ieee80211_free_hw@PLT
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, ebp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR WL1271_DEFAULT_POWER_LEVEL[rip]
	mov	esi, DWORD PTR 120[r15]
	mov	QWORD PTR 232[r15], 0
	mov	QWORD PTR 224[r15], 0
	mov	DWORD PTR 216[r15], eax
	mov	eax, DWORD PTR NL80211_BAND_2GHZ[rip]
	mov	QWORD PTR 200[r15], 0
	mov	DWORD PTR 212[r15], eax
	mov	eax, DWORD PTR NL80211_CHAN_NO_HT[rip]
	mov	QWORD PTR 184[r15], 0
	mov	DWORD PTR 208[r15], eax
	mov	eax, DWORD PTR WL1271_PSM_ILLEGAL[rip]
	mov	QWORD PTR 176[r15], 0
	mov	DWORD PTR 192[r15], eax
	movabs	rax, -4294967295
	mov	QWORD PTR [r15], rax
	mov	edi, DWORD PTR WL12XX_SYSTEM_HLID[rip]
	mov	QWORD PTR 168[r15], 0
	mov	DWORD PTR 152[r15], edi
	mov	QWORD PTR 160[r15], 0
	mov	QWORD PTR 144[r15], 0
	mov	QWORD PTR 136[r15], 0
	mov	QWORD PTR 128[r15], 0
	call	__set_bit@PLT
	mov	rdi, QWORD PTR 112[r15]
	mov	edx, 8
	xor	esi, esi
	call	memset@PLT
	mov	eax, DWORD PTR 8[r15]
	test	eax, eax
	jle	.L13
	mov	rdx, QWORD PTR 104[r15]
	lea	esi, -1[rax]
	lea	rax, 8[rdx]
	lea	rsi, [rax+rsi*8]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L33:
	add	rax, 8
.L14:
	mov	QWORD PTR [rdx], 0
	mov	rdx, rax
	cmp	rsi, rax
	jne	.L33
.L13:
	lea	rdi, 100[r15]
	call	spin_lock_init@PLT
	mov	eax, DWORD PTR WLCORE_STATE_OFF[rip]
	lea	rdi, 88[r15]
	mov	DWORD PTR 96[r15], eax
	mov	eax, DWORD PTR WL12XX_FW_TYPE_NONE[rip]
	mov	DWORD PTR 92[r15], eax
	call	mutex_init@PLT
	lea	rdi, 84[r15]
	call	mutex_init@PLT
	lea	rdi, 80[r15]
	call	init_completion@PLT
	mov	rdi, r14
	call	get_order@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	mov	esi, eax
	mov	r12d, eax
	call	__get_free_pages@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 32[r15], rax
	neg	ebp
	test	rax, rax
	je	.L16
	mov	QWORD PTR 72[r15], r14
	mov	rdi, r15
	call	wl12xx_alloc_dummy_packet@PLT
	mov	DWORD PTR 40[r15], eax
	test	eax, eax
	jne	.L17
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
.L18:
	mov	rdi, QWORD PTR 32[r15]
	mov	esi, r12d
	call	free_pages@PLT
.L16:
	mov	edi, DWORD PTR 24[r15]
	call	destroy_workqueue@PLT
	jmp	.L12
.L17:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	get_zeroed_page@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 48[r15], rax
	neg	ebp
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	or	esi, DWORD PTR GFP_DMA[rip]
	mov	DWORD PTR 12[r15], eax
	mov	edi, eax
	call	kmalloc@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 56[r15], rax
	neg	ebp
	test	rax, rax
	je	.L22
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 1
	call	kmalloc@PLT
	mov	QWORD PTR 64[r15], rax
	test	rax, rax
	je	.L34
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	wl1271_error@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
	jmp	.L3
.L32:
	lea	rdi, .LC1[rip]
	call	wl1271_error@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
	jmp	.L5
.L34:
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	rdi, QWORD PTR 56[r15]
	neg	ebp
	call	kfree@PLT
.L22:
	mov	rdi, QWORD PTR 48[r15]
	call	free_page@PLT
.L20:
	mov	edi, DWORD PTR 40[r15]
	call	dev_kfree_skb@PLT
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	wlcore_alloc_hw, .-wlcore_alloc_hw
	.comm	wlcore_roc_complete_work,4,4
	.comm	wl12xx_tx_watchdog_work,4,4
	.comm	wl1271_tx_work,4,4
	.comm	wl1271_scan_complete_work,4,4
	.comm	wl1271_recovery_work,4,4
	.comm	wl1271_ops,4,4
	.comm	wl1271_netstack_work,4,4
	.comm	WLCORE_STATE_OFF,4,4
	.comm	WLCORE_MAX_LINKS,4,4
	.comm	WL12XX_SYSTEM_HLID,4,4
	.comm	WL12XX_FW_TYPE_NONE,4,4
	.comm	WL1271_PSM_ILLEGAL,4,4
	.comm	WL1271_DEFAULT_POWER_LEVEL,4,4
	.comm	NUM_TX_QUEUES,4,4
	.comm	NL80211_CHAN_NO_HT,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	ENOMEM,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_main.c_wlcore_alloc_hw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not alloc ieee80211_hw\000"
	.align	2
.LC1:
	.ascii	"could not alloc wl priv\000"
	.align	2
.LC2:
	.ascii	"wl12xx_wq\000"
	.text
	.align	2
	.global	wlcore_alloc_hw
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlcore_alloc_hw, %function
wlcore_alloc_hw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r1, .L35
	mov	r0, #188
	str	r9, [sp]
	str	r2, [sp, #4]
	bl	ieee80211_alloc_hw
	subs	r8, r0, #0
	beq	.L29
	ldr	r10, [r8]
	ldr	fp, .L35+4
	mov	r2, #188
	mov	r1, #0
	mov	r0, r10
	bl	memset
	mov	r0, r4
	ldr	r1, [fp]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r10, #16]
	beq	.L30
	ldr	r7, .L35+8
	add	r0, r10, #184
	bl	INIT_LIST_HEAD
	ldr	r2, [r7]
	str	r8, [r10, #180]
	cmp	r2, #0
	movgt	r6, #0
	ldrgt	r9, .L35+12
	ble	.L7
.L6:
	ldr	r2, [r9]
	cmp	r2, #0
	movgt	r4, #0
	lslgt	r5, r6, #2
	ble	.L10
.L8:
	ldr	r2, [r10, #176]
	ldr	r0, [r2, r4, lsl #2]
	add	r4, r4, #1
	add	r0, r0, r5
	bl	skb_queue_head_init
	ldr	r2, [r9]
	cmp	r2, r4
	bgt	.L8
.L10:
	ldr	r2, [r7]
	add	r6, r6, #1
	cmp	r2, r6
	bgt	.L6
.L7:
	add	r0, r10, #172
	bl	skb_queue_head_init
	add	r0, r10, #168
	bl	skb_queue_head_init
	ldr	r2, .L35+16
	add	r0, r10, #164
	ldr	r1, [r2]
	bl	INIT_WORK
	ldr	r2, .L35+20
	add	r0, r10, #160
	ldr	r1, [r2]
	bl	INIT_WORK
	ldr	r2, .L35+24
	add	r0, r10, #156
	ldr	r1, [r2]
	bl	INIT_WORK
	ldr	r2, .L35+28
	add	r0, r10, #152
	ldr	r1, [r2]
	bl	INIT_DELAYED_WORK
	ldr	r2, .L35+32
	add	r0, r10, #148
	ldr	r1, [r2]
	bl	INIT_DELAYED_WORK
	ldr	r2, .L35+36
	add	r0, r10, #144
	ldr	r1, [r2]
	bl	INIT_DELAYED_WORK
	ldr	r0, .L35+40
	bl	create_freezable_workqueue
	cmp	r0, #0
	str	r0, [r10, #20]
	bne	.L11
	ldr	r2, .L35+44
	ldr	r4, [r2]
	rsb	r4, r4, #0
.L12:
	mov	r0, r10
	bl	wl1271_debugfs_exit
	ldr	r0, [r10, #16]
	bl	kfree
.L5:
.L3:
	mov	r0, r8
	bl	ieee80211_free_hw
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L11:
	mov	r4, #0
	mvn	r2, #0
	mov	r1, #1
	ldr	ip, .L35+48
	ldr	r0, .L35+52
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L35+56
	str	lr, [r10, #132]
	ldr	lr, [r0]
	ldr	r0, .L35+60
	str	ip, [r10, #128]
	ldr	ip, [r0]
	ldr	r0, .L35+64
	str	lr, [r10, #124]
	ldr	r0, [r0]
	str	ip, [r10, #116]
	stm	r10, {r1, r2}
	str	r0, [r10, #96]
	ldr	r1, [r10, #80]
	str	r4, [r10, #140]
	str	r4, [r10, #136]
	str	r4, [r10, #120]
	str	r4, [r10, #112]
	str	r4, [r10, #108]
	str	r4, [r10, #104]
	str	r4, [r10, #100]
	str	r4, [r10, #92]
	str	r4, [r10, #88]
	str	r4, [r10, #84]
	bl	__set_bit
	ldr	r2, [r10, #76]
	strb	r4, [r2]
	strb	r4, [r2, #1]
	strb	r4, [r2, #2]
	strb	r4, [r2, #3]
	ldr	r1, [r10, #8]
	cmp	r1, r4
	ble	.L13
	ldr	r2, [r10, #72]
	sub	r2, r2, #4
	add	r1, r2, r1, lsl #2
.L14:
	str	r4, [r2, #4]!
	cmp	r1, r2
	bne	.L14
.L13:
	add	r0, r10, #68
	bl	spin_lock_init
	ldr	r1, .L35+68
	ldr	r2, .L35+72
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [r10, #64]
	str	r2, [r10, #60]
	add	r0, r10, #56
	bl	mutex_init
	add	r0, r10, #52
	bl	mutex_init
	add	r0, r10, #48
	bl	init_completion
	ldr	r0, [sp]
	bl	get_order
	mov	r5, r0
	ldr	r0, [fp]
	mov	r1, r5
	bl	__get_free_pages
	cmp	r0, #0
	str	r0, [r10, #24]
	beq	.L31
	ldr	r3, [sp]
	mov	r0, r10
	str	r3, [r10, #44]
	bl	wl12xx_alloc_dummy_packet
	cmp	r0, #0
	str	r0, [r10, #28]
	bne	.L17
	ldr	r2, .L35+44
	ldr	r4, [r2]
	rsb	r4, r4, #0
.L18:
	mov	r1, r5
	ldr	r0, [r10, #24]
	bl	free_pages
.L16:
	ldr	r0, [r10, #20]
	bl	destroy_workqueue
	b	.L12
.L17:
	ldr	r0, [fp]
	bl	get_zeroed_page
	cmp	r0, #0
	str	r0, [r10, #32]
	beq	.L32
	ldr	r2, .L35+76
	ldr	r3, [sp, #4]
	ldr	r1, [fp]
	ldr	r2, [r2]
	mov	r0, r3
	str	r3, [r10, #12]
	orr	r1, r1, r2
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r10, #36]
	beq	.L33
	mov	r0, #1
	ldr	r1, [fp]
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r10, #40]
	beq	.L34
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r0, .L35+80
	bl	wl1271_error
	ldr	r3, .L35+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L30:
	ldr	r0, .L35+84
	bl	wl1271_error
	ldr	r3, .L35+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L31:
	ldr	r2, .L35+44
	ldr	r4, [r2]
	rsb	r4, r4, #0
	b	.L16
.L34:
	ldr	r2, .L35+44
	ldr	r0, [r10, #36]
	ldr	r4, [r2]
	rsb	r4, r4, #0
	bl	kfree
.L22:
	ldr	r0, [r10, #32]
	bl	free_page
.L20:
	ldr	r0, [r10, #28]
	bl	dev_kfree_skb
	b	.L18
.L32:
	ldr	r2, .L35+44
	ldr	r4, [r2]
	rsb	r4, r4, #0
	b	.L20
.L33:
	ldr	r2, .L35+44
	ldr	r4, [r2]
	rsb	r4, r4, #0
	b	.L22
.L36:
	.align	2
.L35:
	.word	wl1271_ops
	.word	GFP_KERNEL
	.word	NUM_TX_QUEUES
	.word	WLCORE_MAX_LINKS
	.word	wl1271_netstack_work
	.word	wl1271_tx_work
	.word	wl1271_recovery_work
	.word	wl1271_scan_complete_work
	.word	wlcore_roc_complete_work
	.word	wl12xx_tx_watchdog_work
	.word	.LC2
	.word	ENOMEM
	.word	WL1271_DEFAULT_POWER_LEVEL
	.word	NL80211_BAND_2GHZ
	.word	NL80211_CHAN_NO_HT
	.word	WL1271_PSM_ILLEGAL
	.word	WL12XX_SYSTEM_HLID
	.word	WLCORE_STATE_OFF
	.word	WL12XX_FW_TYPE_NONE
	.word	GFP_DMA
	.word	.LC0
	.word	.LC1
	.size	wlcore_alloc_hw, .-wlcore_alloc_hw
	.comm	wlcore_roc_complete_work,4,4
	.comm	wl12xx_tx_watchdog_work,4,4
	.comm	wl1271_tx_work,4,4
	.comm	wl1271_scan_complete_work,4,4
	.comm	wl1271_recovery_work,4,4
	.comm	wl1271_ops,4,4
	.comm	wl1271_netstack_work,4,4
	.comm	WLCORE_STATE_OFF,4,4
	.comm	WLCORE_MAX_LINKS,4,4
	.comm	WL12XX_SYSTEM_HLID,4,4
	.comm	WL12XX_FW_TYPE_NONE,4,4
	.comm	WL1271_PSM_ILLEGAL,4,4
	.comm	WL1271_DEFAULT_POWER_LEVEL,4,4
	.comm	NUM_TX_QUEUES,4,4
	.comm	NL80211_CHAN_NO_HT,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
