	.file	"extr_r8180_core.c_rtl8180_prepare_beacon.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtl8180_prepare_beacon
	.type	rtl8180_prepare_beacon, @function
rtl8180_prepare_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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ieee80211_priv@PLT
	mov	esi, DWORD PTR BcnItv[rip]
	mov	rdi, rbp
	mov	r13, rax
	call	read_nic_word@PLT
	mov	ebx, DWORD PTR BcnItv_BcnItv[rip]
	not	ebx
	and	ebx, eax
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR 4[rax]
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR BcnItv[rip]
	mov	edx, ebx
	mov	rdi, rbp
	or	edx, eax
	call	write_nic_word@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	ieee80211_get_beacon@PLT
	test	rax, rax
	je	.L1
	mov	r12, rax
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	ieeerate2rtlrate@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	xor	r9d, r9d
	mov	esi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR BEACON_PRIORITY[rip]
	push	rax
	.cfi_def_cfa_offset 64
	xor	r8d, r8d
	mov	edx, DWORD PTR [r12]
	call	rtl8180_tx@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	dev_kfree_skb_any@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_def_cfa_offset 48
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	rtl8180_prepare_beacon, .-rtl8180_prepare_beacon
	.comm	BcnItv_BcnItv,4,4
	.comm	BcnItv,4,4
	.comm	BEACON_PRIORITY,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_r8180_core.c_rtl8180_prepare_beacon.c"
	.text
	.align	2
	.global	rtl8180_prepare_beacon
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8180_prepare_beacon, %function
rtl8180_prepare_beacon:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #16
	mov	r5, r0
	bl	ieee80211_priv
	ldr	r7, .L5
	mov	r6, r0
	ldr	r1, [r7]
	mov	r0, r5
	bl	read_nic_word
	mov	r4, r0
	ldr	r2, .L5+4
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r0, [r3, #4]
	bic	r4, r4, r2
	bl	cpu_to_le16
	ldr	r1, [r7]
	orr	r2, r4, r0
	mov	r0, r5
	bl	write_nic_word
	ldr	r0, [r6]
	bl	ieee80211_get_beacon
	subs	r4, r0, #0
	beq	.L1
	ldr	r2, [r6]
	ldr	r3, .L5+8
	ldr	r0, [r2]
	ldr	r8, [r3]
	ldr	r6, [r4, #4]
	ldr	r7, [r4]
	bl	ieeerate2rtlrate
	mov	ip, #0
	str	r0, [sp, #8]
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	str	ip, [sp, #4]
	str	ip, [sp]
	bl	rtl8180_tx
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	dev_kfree_skb_any
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	BcnItv
	.word	BcnItv_BcnItv
	.word	BEACON_PRIORITY
	.size	rtl8180_prepare_beacon, .-rtl8180_prepare_beacon
	.comm	BcnItv_BcnItv,4,4
	.comm	BcnItv,4,4
	.comm	BEACON_PRIORITY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
