	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_add_buffered_bc
_mt7603_add_buffered_bc:                ## @mt7603_add_buffered_bc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	movq	(%rdx), %r12
	movl	(%rbx), %r13d
	movq	(%r12), %rdi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mt76_hw
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_ieee80211_get_buffered_bc
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%r15, 8(%rax)
	movq	_IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mt76_skb_set_moredata
	leaq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	___skb_queue_tail
	movq	8(%r14), %rax
	movq	(%r12), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	(%r14), %rax
	incl	(%rax,%rcx,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ## @IEEE80211_TX_CTL_ASSIGN_SEQ
	.no_dead_strip	_mt7603_add_buffered_bc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_add_buffered_bc
_mt7603_add_buffered_bc:                ; @mt7603_add_buffered_bc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	x22, [x2]
	ldr	w23, [x21]
	ldr	x0, [x22]
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_mt76_hw
	mov	x1, x20
	bl	_ieee80211_get_buffered_bc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	bl	_IEEE80211_SKB_CB
	str	x20, [x0, #8]
Lloh0:
	adrp	x8, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x0, x21
	mov	w1, #1
	bl	_mt76_skb_set_moredata
	add	x0, x19, #16
	mov	x1, x21
	bl	___skb_queue_tail
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	str	x21, [x8, x9, lsl #3]
	ldr	x8, [x19]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ; @IEEE80211_TX_CTL_ASSIGN_SEQ
	.no_dead_strip	_mt7603_add_buffered_bc
.subsections_via_symbols
