	.file	"extr_adm8211.c_adm8211_add_interface.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adm8211_add_interface, @function
adm8211_add_interface:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR NL80211_IFTYPE_MONITOR[rip]
	cmp	QWORD PTR [rdx], rax
	je	.L2
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	cmp	DWORD PTR [rsi], 128
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR [rdx], 128
	xor	eax, eax
	mov	rbp, rdi
	call	ADM8211_IDLE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR PAR0[rip]
	mov	esi, eax
	call	ADM8211_CSR_WRITE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[rax]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR PAR1[rip]
	mov	esi, eax
	call	ADM8211_CSR_WRITE@PLT
	mov	rdi, rbp
	call	adm8211_update_mode@PLT
	xor	eax, eax
	call	ADM8211_RESTORE@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	adm8211_add_interface, .-adm8211_add_interface
	.comm	PAR1,4,4
	.comm	PAR0,4,4
	.comm	NL80211_IFTYPE_MONITOR,8,8
	.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_adm8211.c_adm8211_add_interface.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adm8211_add_interface, %function
adm8211_add_interface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, .L8
	push	{r4, r5, r6, lr}
	ldr	r2, [r2]
	mov	r4, r0
	ldr	r0, [r3]
	cmp	r0, r2
	bne	.L4
	ldr	r2, [r1]
	mov	r5, r1
	cmp	r2, #128
	beq	.L7
.L4:
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	str	r2, [r3]
	bl	ADM8211_IDLE
	ldr	r3, [r5, #4]
	ldr	r2, .L8+8
	ldr	r0, [r3]
	ldr	r6, [r2]
	bl	le32_to_cpu
	mov	r1, r0
	mov	r0, r6
	bl	ADM8211_CSR_WRITE
	ldr	r2, [r5, #4]
	ldr	r3, .L8+12
	ldr	r0, [r2, #4]
	ldr	r5, [r3]
	bl	le16_to_cpu
	mov	r1, r0
	mov	r0, r5
	bl	ADM8211_CSR_WRITE
	mov	r0, r4
	bl	adm8211_update_mode
	bl	ADM8211_RESTORE
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	NL80211_IFTYPE_MONITOR
	.word	EOPNOTSUPP
	.word	PAR0
	.word	PAR1
	.size	adm8211_add_interface, .-adm8211_add_interface
	.comm	PAR1,4,4
	.comm	PAR0,4,4
	.comm	NL80211_IFTYPE_MONITOR,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
