	.file	"extr_mwl8k.c_mwl8k_cmd_set_new_stn_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mwl8k_cmd_set_new_stn_add, @function
mwl8k_cmd_set_new_stn_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 80
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR MWL8K_CMD_SET_NEW_STN[rip]
	mov	rbp, rax
	call	cpu_to_le16@PLT
	mov	edi, 80
	mov	QWORD PTR 16[rbp], rax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbp], rax
	call	cpu_to_le16@PLT
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	esi, DWORD PTR 48[rbx]
	mov	QWORD PTR 72[rbp], rax
	mov	edi, DWORD PTR 64[rbp]
	call	memcpy@PLT
	mov	edi, DWORD PTR [rbx]
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR MWL8K_STA_ACTION_ADD[rip]
	mov	QWORD PTR 56[rbp], rax
	call	cpu_to_le16@PLT
	mov	rdx, QWORD PTR [r12]
	mov	QWORD PTR 48[rbp], rax
	mov	rax, QWORD PTR NL80211_BAND_2GHZ[rip]
	cmp	QWORD PTR [rdx], rax
	je	.L10
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR NL80211_BAND_5GHZ[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	sal	edi, 5
	call	cpu_to_le32@PLT
	cmp	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 40[rbp], eax
	jne	.L11
.L6:
	lea	rdx, 8[rbp]
	mov	rsi, r13
	mov	rdi, r12
	call	mwl8k_post_pervif_cmd@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	kfree@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
.L10:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	cpu_to_le32@PLT
	cmp	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 40[rbp], eax
	je	.L6
.L11:
	mov	rdx, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 32[rbp]
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	mov	ecx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], ecx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	edx, DWORD PTR 12[rdx]
	mov	DWORD PTR 12[rax], edx
	mov	edi, DWORD PTR 16[rbx]
	call	cpu_to_le16@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR 24[rbx]
	and	edx, 3
	mov	DWORD PTR 4[rbp], 1
	sal	eax, 2
	and	eax, 28
	or	eax, edx
	mov	DWORD PTR 0[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mwl8k_cmd_set_new_stn_add, .-mwl8k_cmd_set_new_stn_add
	.comm	NL80211_BAND_5GHZ,8,8
	.comm	NL80211_BAND_2GHZ,8,8
	.comm	MWL8K_STA_ACTION_ADD,4,4
	.comm	MWL8K_CMD_SET_NEW_STN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,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_mwl8k.c_mwl8k_cmd_set_new_stn_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwl8k_cmd_set_new_stn_add, %function
mwl8k_cmd_set_new_stn_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	ldr	r1, .L14
	mov	r6, r0
	ldr	r1, [r1]
	mov	r0, #44
	mov	r5, r2
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L12
	ldr	r3, .L14+4
	ldr	r0, [r3]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, #44
	str	r3, [r4, #12]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r5]
	str	r3, [r4, #8]
	bl	cpu_to_le16
	ldr	r3, .L14+8
	ldr	r1, [r5, #28]
	ldr	r2, [r3]
	str	r0, [r4, #40]
	ldr	r0, [r4, #36]
	bl	memcpy
	ldr	r0, [r5]
	bl	cpu_to_le16
	ldr	r3, .L14+12
	str	r0, [r4, #32]
	ldr	r0, [r3]
	bl	cpu_to_le16
	ldr	r3, [r6]
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [r4, #28]
	cmp	r3, r2
	ldrne	r2, .L14+20
	ldrne	r3, [r5, #4]
	ldrne	r2, [r2]
	ldreq	r2, [r5, #4]
	ldrne	r3, [r3, r2, lsl #2]
	ldreq	r0, [r2, r3, lsl #2]
	lslne	r0, r3, #5
	bl	cpu_to_le32
	ldr	r3, [r5, #24]
	str	r0, [r4, #24]
	cmp	r3, #0
	bne	.L13
.L6:
	add	r2, r4, #8
	mov	r1, r7
	mov	r0, r6
	bl	mwl8k_post_pervif_cmd
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r2, [r5, #20]
	ldr	r3, [r4, #20]
	ldr	r1, [r2]
	str	r1, [r3]
	ldr	r1, [r2, #4]
	str	r1, [r3, #4]
	ldr	r1, [r2, #8]
	str	r1, [r3, #8]
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
	ldr	r0, [r5, #8]
	bl	cpu_to_le16
	mov	r1, #1
	ldr	r3, [r5, #16]
	ldr	r2, [r5, #12]
	lsl	r3, r3, #2
	and	r3, r3, #28
	and	r2, r2, #3
	orr	r3, r3, r2
	str	r0, [r4, #16]
	str	r3, [r4]
	str	r1, [r4, #4]
	b	.L6
.L12:
	ldr	r3, .L14+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	MWL8K_CMD_SET_NEW_STN
	.word	ETH_ALEN
	.word	MWL8K_STA_ACTION_ADD
	.word	NL80211_BAND_2GHZ
	.word	NL80211_BAND_5GHZ
	.word	ENOMEM
	.size	mwl8k_cmd_set_new_stn_add, .-mwl8k_cmd_set_new_stn_add
	.comm	NL80211_BAND_5GHZ,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	MWL8K_STA_ACTION_ADD,4,4
	.comm	MWL8K_CMD_SET_NEW_STN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
