	.file	"extr_cmd.c_wl12xx_cmd_role_start_ibss.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cmd role start ibss %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"role start: roleid=%d, hlid=%d, session=%d basic_rate_set: 0x%x, remote_rates: 0x%x"
	.section	.rodata.str1.1
.LC2:
	.string	"vif->bss_conf.bssid = %pM"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"failed to initiate cmd role enable"
	.text
	.p2align 4
	.globl	wl12xx_cmd_role_start_ibss
	.type	wl12xx_cmd_role_start_ibss, @function
wl12xx_cmd_role_start_ibss:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	wl12xx_wlvif_to_vif@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 80
	mov	rbx, rax
	call	kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR 24[r12]
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	mov	rbp, rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	wl1271_debug@PLT
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 72[rbp], eax
	mov	rax, QWORD PTR IEEE80211_BAND_5GHZ[rip]
	cmp	QWORD PTR [r12], rax
	je	.L9
.L4:
	mov	eax, DWORD PTR 40[r12]
	mov	edi, DWORD PTR 20[r12]
	mov	DWORD PTR 64[rbp], eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 36[r12]
	mov	QWORD PTR 56[rbp], rax
	call	cpu_to_le16@PLT
	mov	edx, DWORD PTR 28[r12]
	mov	esi, DWORD PTR 32[r12]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 40[rbp], edx
	mov	edi, DWORD PTR 36[rbp]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR WL12XX_SSID_TYPE_ANY[rip]
	mov	DWORD PTR 44[rbp], eax
	call	memcpy@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	esi, DWORD PTR [rbx]
	call	memcpy@PLT
	mov	edi, DWORD PTR 16[r12]
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 8[r12]
	cmp	rax, QWORD PTR WL12XX_INVALID_LINK_ID[rip]
	je	.L10
.L5:
	mov	QWORD PTR 16[rbp], rax
	mov	edi, DWORD PTR 16[r12]
	call	cpu_to_le32@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR 4[rbp]
	mov	r9d, DWORD PTR 20[r12]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR 16[r12]
	lea	rsi, .LC1[rip]
	mov	edx, DWORD PTR 24[r12]
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR 0[rbp]
	xor	eax, eax
	call	wl1271_debug@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	wl1271_debug@PLT
	mov	rdx, rbp
	xor	r8d, r8d
	mov	ecx, 80
	mov	esi, DWORD PTR CMD_ROLE_START[rip]
	mov	rdi, r14
	call	wl1271_cmd_send@PLT
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r13d, r13d
	js	.L11
.L6:
	mov	rdi, rbp
	call	kfree@PLT
.L3:
	endbr64
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	lea	rdx, 8[r12]
	mov	rsi, r12
	mov	rdi, r14
	call	wl12xx_allocate_link@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR 8[r12]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR WLCORE_BAND_5GHZ[rip]
	mov	DWORD PTR 68[rbp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC3[rip]
	call	wl1271_error@PLT
	lea	rdx, 8[r12]
	mov	rsi, r12
	mov	rdi, r14
	call	wl12xx_free_link@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wl12xx_cmd_role_start_ibss, .-wl12xx_cmd_role_start_ibss
	.comm	WLCORE_BAND_5GHZ,4,4
	.comm	WL12XX_SSID_TYPE_ANY,4,4
	.comm	WL12XX_INVALID_LINK_ID,8,8
	.comm	IEEE80211_BAND_5GHZ,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_ROLE_START,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_start_ibss.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd role start ibss %d\000"
	.align	2
.LC1:
	.ascii	"role start: roleid=%d, hlid=%d, session=%d basic_ra"
	.ascii	"te_set: 0x%x, remote_rates: 0x%x\000"
	.align	2
.LC2:
	.ascii	"vif->bss_conf.bssid = %pM\000"
	.align	2
.LC3:
	.ascii	"failed to initiate cmd role enable\000"
	.text
	.align	2
	.global	wl12xx_cmd_role_start_ibss
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl12xx_cmd_role_start_ibss, %function
wl12xx_cmd_role_start_ibss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r0
	sub	sp, sp, #20
	mov	r0, r1
	mov	r6, r1
	bl	wl12xx_wlvif_to_vif
	ldr	r3, .L12
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, #60
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L9
	ldr	r9, .L12+4
	ldr	r2, [r6, #16]
	ldr	r1, .L12+8
	ldr	r0, [r9]
	bl	wl1271_debug
	ldr	r3, .L12+12
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, [r6, #16]
	cmp	r1, r2
	str	r3, [r4, #56]
	ldreq	r3, .L12+16
	ldr	r0, [r6, #12]
	ldreq	r3, [r3]
	streq	r3, [r4, #52]
	ldr	r3, [r6, #32]
	str	r3, [r4, #48]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r6, #28]
	str	r3, [r4, #44]
	bl	cpu_to_le16
	ldr	r2, .L12+20
	ldr	r3, [r7, #4]
	ldr	r1, [r2]
	ldr	r2, [r6, #20]
	str	r0, [r4, #40]
	str	r1, [r4, #32]
	str	r3, [r4, #36]
	ldr	r1, [r6, #24]
	str	r2, [r4, #28]
	ldr	r0, [r4, #24]
	bl	memcpy
	ldr	r3, .L12+24
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r0, [r4, #20]
	bl	memcpy
	ldr	r0, [r6, #8]
	bl	cpu_to_le32
	ldr	r2, .L12+28
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	str	r0, [r4, #8]
	cmp	r3, r2
	beq	.L10
.L5:
	str	r3, [r4, #12]
	ldr	r0, [r6, #8]
	bl	cpu_to_le32
	ldr	r1, [r6, #8]
	ldr	r2, [r6, #12]
	ldr	r3, [r4, #4]
	str	r0, [r4, #16]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r2, [r4]
	ldr	r1, .L12+32
	str	r2, [sp]
	ldr	r2, [r6, #16]
	ldr	r0, [r9]
	bl	wl1271_debug
	ldr	r2, [r7]
	ldr	r1, .L12+36
	ldr	r0, [r9]
	bl	wl1271_debug
	mov	r2, #0
	ldr	r3, .L12+40
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r2, r4
	mov	r3, #60
	mov	r0, r8
	bl	wl1271_cmd_send
	subs	r5, r0, #0
	blt	.L11
.L6:
.L3:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	mov	r1, r6
	mov	r0, r8
	add	r2, r6, #4
	bl	wl12xx_allocate_link
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, [r6, #4]
	b	.L5
.L9:
	ldr	r3, .L12+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r0, .L12+48
	bl	wl1271_error
	mov	r0, r8
	mov	r1, r6
	add	r2, r6, #4
	bl	wl12xx_free_link
	b	.L6
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	DEBUG_CMD
	.word	.LC0
	.word	IEEE80211_BAND_5GHZ
	.word	WLCORE_BAND_5GHZ
	.word	WL12XX_SSID_TYPE_ANY
	.word	ETH_ALEN
	.word	WL12XX_INVALID_LINK_ID
	.word	.LC1
	.word	.LC2
	.word	CMD_ROLE_START
	.word	ENOMEM
	.word	.LC3
	.size	wl12xx_cmd_role_start_ibss, .-wl12xx_cmd_role_start_ibss
	.comm	WLCORE_BAND_5GHZ,4,4
	.comm	WL12XX_SSID_TYPE_ANY,4,4
	.comm	WL12XX_INVALID_LINK_ID,4,4
	.comm	IEEE80211_BAND_5GHZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_ROLE_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
