	.file	"extr_mt76x02_beacon.c_mt76x02_add_buffered_bc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mt76x02_add_buffered_bc, @function
mt76x02_add_buffered_bc:
.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, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rdx]
	mov	rbx, rdx
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR 0[r13]
	mov	r14d, DWORD PTR [r12]
	call	BIT@PLT
	test	r14d, eax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	mov	rdi, r12
	call	mt76_hw@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	ieee80211_get_buffered_bc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	IEEE80211_SKB_CB@PLT
	mov	edx, DWORD PTR IEEE80211_TX_CTL_ASSIGN_SEQ[rip]
	mov	rdi, r12
	mov	esi, 1
	or	DWORD PTR [rax], edx
	mov	QWORD PTR 8[rax], rbx
	call	mt76_skb_set_moredata@PLT
	lea	rdi, 8[rbp]
	mov	rsi, r12
	call	__skb_queue_tail@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [rax+rdx*8], r12
	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
	.cfi_endproc
.LFE0:
	.size	mt76x02_add_buffered_bc, .-mt76x02_add_buffered_bc
	.comm	IEEE80211_TX_CTL_ASSIGN_SEQ,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_mt76x02_beacon.c_mt76x02_add_buffered_bc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt76x02_add_buffered_bc, %function
mt76x02_add_buffered_bc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r2]
	ldr	r6, [r0, #8]
	mov	r5, r0
	ldr	r0, [r7]
	ldr	r8, [r6]
	mov	r4, r2
	bl	BIT
	tst	r8, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	bl	mt76_hw
	mov	r1, r4
	bl	ieee80211_get_buffered_bc
	subs	r6, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	IEEE80211_SKB_CB
	ldr	r2, .L10
	ldr	r3, [r0]
	ldr	r2, [r2]
	mov	r1, #1
	orr	r3, r3, r2
	str	r3, [r0]
	str	r4, [r0, #4]
	mov	r0, r6
	bl	mt76_skb_set_moredata
	mov	r1, r6
	add	r0, r5, #4
	bl	__skb_queue_tail
	ldr	r2, [r7]
	ldr	r3, [r5]
	str	r6, [r3, r2, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	IEEE80211_TX_CTL_ASSIGN_SEQ
	.size	mt76x02_add_buffered_bc, .-mt76x02_add_buffered_bc
	.comm	IEEE80211_TX_CTL_ASSIGN_SEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
