	.file	"extr_main.c_b43legacy_op_add_interface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Adding Interface type %d\n"
	.text
	.p2align 4
	.type	b43legacy_op_add_interface, @function
b43legacy_op_add_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	hw_to_b43legacy_wl@PLT
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR 4[rbp]
	neg	r12d
	cmp	eax, DWORD PTR NL80211_IFTYPE_AP[rip]
	je	.L2
	cmp	eax, DWORD PTR NL80211_IFTYPE_STATION[rip]
	je	.L2
	cmp	eax, DWORD PTR NL80211_IFTYPE_WDS[rip]
	je	.L2
	cmp	eax, DWORD PTR NL80211_IFTYPE_ADHOC[rip]
	jne	.L1
.L2:
	lea	r13, 4[rbx]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L7
.L4:
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	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
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	xor	r14d, r14d
	call	b43legacydbg@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	QWORD PTR 24[rbx], rbp
	mov	DWORD PTR [rbx], 1
	mov	edx, DWORD PTR ETH_ALEN[rip]
	lea	rbp, 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	r12, QWORD PTR 32[rbx]
	mov	DWORD PTR 16[rbx], eax
	call	memcpy@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rdi, r12
	call	b43legacy_adjust_opmode@PLT
	mov	rdi, r12
	call	b43legacy_set_pretbtt@PLT
	xor	esi, esi
	mov	rdi, r12
	call	b43legacy_set_synth_pu_delay@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	b43legacy_upload_card_macaddress@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	b43legacy_op_add_interface, .-b43legacy_op_add_interface
	.comm	NL80211_IFTYPE_WDS,4,4
	.comm	NL80211_IFTYPE_STATION,4,4
	.comm	NL80211_IFTYPE_AP,4,4
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	ETH_ALEN,4,4
	.comm	EOPNOTSUPP,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_b43legacy_op_add_interface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Adding Interface type %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43legacy_op_add_interface, %function
b43legacy_op_add_interface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	bl	hw_to_b43legacy_wl
	ldr	r2, .L8
	ldr	r1, .L8+4
	ldr	r3, [r8, #4]
	ldr	r2, [r2]
	ldr	r5, [r1]
	cmp	r3, r2
	mov	r4, r0
	rsb	r5, r5, #0
	beq	.L2
	ldr	r2, .L8+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L8+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L8+16
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L1
.L2:
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r7, [r4]
	cmp	r7, #0
	beq	.L7
.L4:
	mov	r0, r6
	bl	mutex_unlock
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r2, [r8, #4]
	mov	r0, r4
	ldr	r1, .L8+20
	bl	b43legacydbg
	mov	r1, #1
	mov	r9, #0
	ldr	r3, .L8+24
	ldr	r2, [r8, #4]
	ldr	r5, [r4, #24]
	str	r1, [r4]
	str	r2, [r4, #16]
	ldr	r0, [r4, #12]
	ldr	r2, [r3]
	str	r8, [r4, #20]
	ldr	r1, [r8]
	add	r4, r4, #8
	bl	memcpy
	mov	r1, r9
	mov	r0, r4
	bl	spin_lock_irqsave
	mov	r0, r5
	bl	b43legacy_adjust_opmode
	mov	r0, r5
	bl	b43legacy_set_pretbtt
	mov	r1, r7
	mov	r0, r5
	bl	b43legacy_set_synth_pu_delay
	mov	r0, r5
	bl	b43legacy_upload_card_macaddress
	mov	r1, r9
	mov	r0, r4
	mov	r5, r7
	bl	spin_unlock_irqrestore
	b	.L4
.L9:
	.align	2
.L8:
	.word	NL80211_IFTYPE_AP
	.word	EOPNOTSUPP
	.word	NL80211_IFTYPE_STATION
	.word	NL80211_IFTYPE_WDS
	.word	NL80211_IFTYPE_ADHOC
	.word	.LC0
	.word	ETH_ALEN
	.size	b43legacy_op_add_interface, .-b43legacy_op_add_interface
	.comm	NL80211_IFTYPE_WDS,4,4
	.comm	NL80211_IFTYPE_STATION,4,4
	.comm	NL80211_IFTYPE_AP,4,4
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	ETH_ALEN,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
