	.file	"extr_cmd.c_wl12xx_cmd_role_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cmd role enable"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to initiate cmd role enable"
	.text
	.p2align 4
	.globl	wl12xx_cmd_role_enable
	.type	wl12xx_cmd_role_enable, @function
wl12xx_cmd_role_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	wl1271_debug@PLT
	xor	edi, edi
	mov	rax, QWORD PTR WL12XX_INVALID_ROLE_ID[rip]
	cmp	QWORD PTR [rbx], rax
	setne	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L10
	mov	rsi, QWORD PTR WL12XX_MAX_ROLES[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	find_first_zero_bit@PLT
	cmp	rax, QWORD PTR WL12XX_MAX_ROLES[rip]
	mov	QWORD PTR 0[r13], rax
	jl	.L5
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L6:
	mov	rdi, r13
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[r13]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, r14
	call	memcpy@PLT
	mov	QWORD PTR 8[r13], r12
	xor	r8d, r8d
	mov	rdx, r13
	mov	esi, DWORD PTR CMD_ROLE_ENABLE[rip]
	mov	ecx, 24
	mov	rdi, rbp
	call	wl1271_cmd_send@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 0[r13]
	call	__set_bit@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR [rbx], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	wl1271_error@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wl12xx_cmd_role_enable, .-wl12xx_cmd_role_enable
	.comm	WL12XX_MAX_ROLES,8,8
	.comm	WL12XX_INVALID_ROLE_ID,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_ROLE_ENABLE,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_cmd.c_wl12xx_cmd_role_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd role enable\000"
	.align	2
.LC1:
	.ascii	"failed to initiate cmd role enable\000"
	.text
	.align	2
	.global	wl12xx_cmd_role_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl12xx_cmd_role_enable, %function
wl12xx_cmd_role_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r6, r0
	mov	r9, r1
	ldr	r0, [r3]
	ldr	r1, .L12+4
	mov	r8, r2
	bl	wl1271_debug
	ldr	r3, .L12+8
	ldr	r0, [r5]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	WARN_ON
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L12+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L12+16
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r7, r0, #0
	beq	.L10
	ldr	r10, .L12+20
	ldr	r0, [r6]
	ldr	r1, [r10]
	bl	find_first_zero_bit
	ldr	r3, [r10]
	str	r0, [r7]
	cmp	r0, r3
	blt	.L5
	ldr	r3, .L12+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	mov	r0, r7
	bl	kfree
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L12+24
	mov	r1, r9
	ldr	r2, [r3]
	ldr	r0, [r7, #8]
	bl	memcpy
	ldr	r3, .L12+28
	str	r8, [r7, #4]
	ldr	r1, [r3]
	mov	r2, r7
	str	r4, [sp]
	mov	r3, #12
	mov	r0, r6
	bl	wl1271_cmd_send
	subs	r4, r0, #0
	blt	.L11
	ldr	r1, [r6]
	ldr	r0, [r7]
	bl	__set_bit
	ldr	r3, [r7]
	str	r3, [r5]
	b	.L6
.L10:
	ldr	r3, .L12+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r0, .L12+36
	bl	wl1271_error
	b	.L6
.L13:
	.align	2
.L12:
	.word	DEBUG_CMD
	.word	.LC0
	.word	WL12XX_INVALID_ROLE_ID
	.word	EBUSY
	.word	GFP_KERNEL
	.word	WL12XX_MAX_ROLES
	.word	ETH_ALEN
	.word	CMD_ROLE_ENABLE
	.word	ENOMEM
	.word	.LC1
	.size	wl12xx_cmd_role_enable, .-wl12xx_cmd_role_enable
	.comm	WL12XX_MAX_ROLES,4,4
	.comm	WL12XX_INVALID_ROLE_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_ROLE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
