	.file	"extr_rt73usb.c_rt73usb_write_beacon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failure padding beacon, aborting\n"
	.text
	.p2align 4
	.type	rt73usb_write_beacon, @function
rt73usb_write_beacon:
.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
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR TXRX_CSR9[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	lea	r13, 4[rsp]
	mov	rdx, r13
	mov	r12, QWORD PTR [rax]
	mov	rdi, r12
	call	rt2x00usb_register_read@PLT
	mov	esi, DWORD PTR TXRX_CSR9_BEACON_GEN[rip]
	xor	edx, edx
	mov	rdi, r13
	mov	r14d, DWORD PTR 4[rsp]
	call	rt2x00_set_field32@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TXRX_CSR9[rip]
	mov	rdi, r12
	call	rt2x00usb_register_write@PLT
	mov	esi, DWORD PTR TXD_DESC_SIZE[rip]
	mov	rdi, QWORD PTR [rbx]
	call	skb_push@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR TXD_DESC_SIZE[rip]
	xor	esi, esi
	mov	edi, DWORD PTR 4[rax]
	call	memset@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	rt73usb_write_tx_desc@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	esi, DWORD PTR DUMP_FRAME_BEACON[rip]
	mov	rdi, r12
	call	rt2x00debug_dump_frame@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, 4
	mov	edi, DWORD PTR [rax]
	call	roundup@PLT
	mov	rdi, QWORD PTR [rbx]
	sub	eax, DWORD PTR [rdi]
	mov	ebp, eax
	je	.L2
	mov	esi, eax
	call	skb_pad@PLT
	test	rax, rax
	jne	.L13
.L2:
	mov	edi, DWORD PTR 8[rbx]
	call	HW_BEACON_OFFSET@PLT
	mov	rdi, r12
	mov	esi, eax
	mov	rax, QWORD PTR [rbx]
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	add	ecx, ebp
	call	rt2x00usb_register_multiwrite@PLT
	mov	esi, DWORD PTR TXRX_CSR10[rip]
	mov	edx, 4104
	mov	rdi, r12
	call	rt2x00usb_register_write@PLT
	mov	esi, DWORD PTR TXRX_CSR9_BEACON_GEN[rip]
	mov	edx, 1
	mov	rdi, r13
	call	rt2x00_set_field32@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TXRX_CSR9[rip]
	mov	rdi, r12
	call	rt2x00usb_register_write@PLT
	mov	rdi, QWORD PTR [rbx]
	call	dev_kfree_skb@PLT
	mov	QWORD PTR [rbx], 0
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L13:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	rt2x00_err@PLT
	mov	QWORD PTR [rbx], 0
	mov	edx, r14d
	mov	rdi, r12
	mov	esi, DWORD PTR TXRX_CSR9[rip]
	call	rt2x00usb_register_write@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt73usb_write_beacon, .-rt73usb_write_beacon
	.comm	TXRX_CSR9_BEACON_GEN,4,4
	.comm	TXRX_CSR9,4,4
	.comm	TXRX_CSR10,4,4
	.comm	TXD_DESC_SIZE,4,4
	.comm	DUMP_FRAME_BEACON,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_rt73usb.c_rt73usb_write_beacon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failure padding beacon, aborting\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt73usb_write_beacon, %function
rt73usb_write_beacon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r3, [r0, #8]
	ldr	r7, .L15
	ldr	r5, [r3]
	sub	sp, sp, #8
	ldr	r3, .L15+4
	ldr	r8, .L15+8
	mov	r2, sp
	ldr	r1, [r7]
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r10, .L15+12
	bl	rt2x00usb_register_read
	mov	r2, #0
	ldr	r1, [r8]
	mov	r0, sp
	ldr	r9, [sp]
	bl	rt2x00_set_field32
	ldr	r2, [sp]
	ldr	r1, [r7]
	mov	r0, r5
	bl	rt2x00usb_register_write
	ldr	r1, [r10]
	ldr	r0, [r4]
	bl	skb_push
	ldr	r3, [r4]
	ldr	r2, [r10]
	ldr	r0, [r3, #4]
	mov	r1, #0
	bl	memset
	mov	r1, r6
	mov	r0, r4
	bl	rt73usb_write_tx_desc
	ldr	r3, .L15+16
	ldr	r2, [r4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	rt2x00debug_dump_frame
	ldr	r3, [r4]
	mov	r1, #4
	ldr	r0, [r3]
	bl	roundup
	ldr	r2, [r4]
	ldr	r3, [r2]
	subs	r6, r0, r3
	beq	.L2
	mov	r0, r2
	mov	r1, r6
	bl	skb_pad
	cmp	r0, #0
	bne	.L13
.L2:
	ldr	r0, [r4, #4]
	bl	HW_BEACON_OFFSET
	ldr	r2, [r4]
	mov	r1, r0
	ldr	r3, [r2]
	mov	r0, r5
	ldr	r2, [r2, #4]
	add	r3, r6, r3
	bl	rt2x00usb_register_multiwrite
	ldr	r3, .L15+20
	ldr	r2, .L15+24
	ldr	r1, [r3]
	mov	r0, r5
	bl	rt2x00usb_register_write
	mov	r2, #1
	ldr	r1, [r8]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r1, [r7]
	ldr	r2, [sp]
	mov	r0, r5
	bl	rt2x00usb_register_write
	ldr	r0, [r4]
	bl	dev_kfree_skb
	mov	r3, #0
	str	r3, [r4]
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r5
	ldr	r1, .L15+28
	bl	rt2x00_err
	mov	r3, #0
	ldr	r1, [r7]
	mov	r2, r9
	mov	r0, r5
	str	r3, [r4]
	bl	rt2x00usb_register_write
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	TXRX_CSR9
	.word	.LC1
	.word	TXRX_CSR9_BEACON_GEN
	.word	TXD_DESC_SIZE
	.word	DUMP_FRAME_BEACON
	.word	TXRX_CSR10
	.word	4104
	.word	.LC0
	.size	rt73usb_write_beacon, .-rt73usb_write_beacon
	.comm	TXRX_CSR9_BEACON_GEN,4,4
	.comm	TXRX_CSR9,4,4
	.comm	TXRX_CSR10,4,4
	.comm	TXD_DESC_SIZE,4,4
	.comm	DUMP_FRAME_BEACON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
