	.file	"extr_rt2x00queue.c_rt2x00queue_update_beacon.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rt2x00queue_update_beacon
	.type	rt2x00queue_update_beacon, @function
rt2x00queue_update_beacon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	vif_to_intf@PLT
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	mov	rbx, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR ENOBUFS[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	rt2x00queue_free_skb@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	r13, QWORD PTR [rbx]
	mov	rsi, rbp
	call	ieee80211_beacon_get@PLT
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	jne	.L4
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rbp, 4[rsp]
	xor	ecx, ecx
	mov	rdi, r12
	mov	rdx, rbp
	call	rt2x00queue_create_tx_descriptor@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	get_skb_frame_desc@PLT
	mov	edx, 4
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	xor	eax, eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt2x00queue_update_beacon, .-rt2x00queue_update_beacon
	.comm	ENOMEM,4,4
	.comm	ENOBUFS,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_rt2x00queue.c_rt2x00queue_update_beacon.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rt2x00queue_update_beacon
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2x00queue_update_beacon, %function
rt2x00queue_update_beacon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L9
	sub	sp, sp, #12
	mov	r7, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	vif_to_intf
	mov	r6, r0
	ldr	r0, [r0]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L9+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r0, [r6]
	bl	rt2x00queue_free_skb
	mov	r1, r5
	ldr	r0, [r7, #4]
	ldr	r5, [r6]
	bl	ieee80211_beacon_get
	ldr	r3, [r6]
	str	r0, [r5]
	ldr	r1, [r3]
	cmp	r1, #0
	ldreq	r3, .L9+8
	ldreq	r4, [r3]
	rsbeq	r4, r4, #0
	beq	.L1
.L4:
	mov	r2, sp
	mov	r3, r4
	mov	r0, r7
	bl	rt2x00queue_create_tx_descriptor
	ldr	r3, [r6]
	ldr	r0, [r3]
	bl	get_skb_frame_desc
	strb	r4, [r0]
	strb	r4, [r0, #1]
	strb	r4, [r0, #2]
	strb	r4, [r0, #3]
	ldr	r3, [r7]
	mov	r1, sp
	ldr	r3, [r3]
	ldr	r0, [r6]
	ldr	r3, [r3]
	blx	r3
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	ENOBUFS
	.word	ENOMEM
	.size	rt2x00queue_update_beacon, .-rt2x00queue_update_beacon
	.comm	ENOMEM,4,4
	.comm	ENOBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
