	.file	"extr_beacon.c_ath9k_beacon_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ath9k_beacon_config
	.type	ath9k_beacon_config, @function
ath9k_beacon_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 8[rdi]
	call	ath9k_hw_common@PLT
	mov	r14, rax
	test	ebx, ebx
	je	.L14
	xor	edi, edi
	test	r13, r13
	sete	dil
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[r13]
	mov	rcx, QWORD PTR NL80211_IFTYPE_STATION[rip]
	mov	rdx, r13
	mov	rdi, rbp
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rbp]
	mov	r15d, DWORD PTR [r12]
	mov	rsi, r12
	mov	DWORD PTR [r12], ebx
	cmp	QWORD PTR [rax], rcx
	je	.L16
	call	ath9k_cache_beacon_config@PLT
	cmp	QWORD PTR 8[r12], 0
	je	.L14
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR NL80211_IFTYPE_ADHOC[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L6
	test	r15d, r15d
	je	.L17
.L6:
	mov	edi, DWORD PTR ATH_OP_BEACONS[rip]
	mov	rsi, r14
	call	set_bit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ath9k_set_beacon@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jne	.L6
	lea	r12, 4[rbp]
	xor	r13d, r13d
	mov	rsi, r13
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR PS_BEACON_SYNC[rip]
	mov	rsi, r13
	mov	rdi, r12
	or	eax, DWORD PTR PS_WAIT_FOR_BEACON[rip]
	or	DWORD PTR 0[rbp], eax
	call	spin_unlock_irqrestore@PLT
.L14:
	mov	edi, DWORD PTR ATH_OP_BEACONS[rip]
	mov	rsi, r14
	call	clear_bit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ath9k_beacon_stop@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	ath9k_cache_beacon_config@PLT
	mov	rdi, rbp
	call	ath9k_set_beacon@PLT
	mov	edi, DWORD PTR ATH_OP_BEACONS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rsi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	set_bit@PLT
	.cfi_endproc
.LFE0:
	.size	ath9k_beacon_config, .-ath9k_beacon_config
	.comm	PS_WAIT_FOR_BEACON,4,4
	.comm	PS_BEACON_SYNC,4,4
	.comm	NL80211_IFTYPE_STATION,8,8
	.comm	NL80211_IFTYPE_ADHOC,8,8
	.comm	ATH_OP_BEACONS,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_beacon.c_ath9k_beacon_config.c"
	.text
	.align	2
	.global	ath9k_beacon_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_beacon_config, %function
ath9k_beacon_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r2
	mov	r4, r0
	ldr	r0, [r0, #8]
	mov	r5, r1
	bl	ath9k_hw_common
	cmp	r8, #0
	mov	r7, r0
	beq	.L11
	clz	r0, r5
	lsr	r0, r0, #5
	bl	WARN_ON
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r4, #8]
	ldr	r3, .L15
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r6, [r1]
	cmp	r2, r3
	ldr	r9, [r6]
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	str	r8, [r6]
	beq	.L13
	bl	ath9k_cache_beacon_config
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r2, [r4, #8]
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	cmpeq	r9, #0
	beq	.L14
.L6:
	ldr	r3, .L15+8
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ath9k_set_beacon
.L14:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L6
	mov	r6, #0
	add	r5, r4, #4
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, .L15+12
	ldr	r2, .L15+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	orr	r2, r2, r1
	orr	r3, r3, r2
	mov	r1, r6
	mov	r0, r5
	str	r3, [r4]
	bl	spin_unlock_irqrestore
.L11:
	ldr	r3, .L15+8
	mov	r1, r7
	ldr	r0, [r3]
	bl	clear_bit
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ath9k_beacon_stop
.L13:
	bl	ath9k_cache_beacon_config
	mov	r0, r4
	bl	ath9k_set_beacon
	ldr	r3, .L15+8
	mov	r1, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	b	set_bit
.L16:
	.align	2
.L15:
	.word	NL80211_IFTYPE_STATION
	.word	NL80211_IFTYPE_ADHOC
	.word	ATH_OP_BEACONS
	.word	PS_WAIT_FOR_BEACON
	.word	PS_BEACON_SYNC
	.size	ath9k_beacon_config, .-ath9k_beacon_config
	.comm	PS_WAIT_FOR_BEACON,4,4
	.comm	PS_BEACON_SYNC,4,4
	.comm	NL80211_IFTYPE_STATION,4,4
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	ATH_OP_BEACONS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
