	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_mac_add_txs_skb
_mt7603_mac_add_txs_skb:                ## @mt7603_mac_add_txs_skb
	.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	_MT_PACKET_ID_FIRST@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	%edx, (%rax)
	jg	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rcx, %r15
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_mt76_tx_status_lock
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_mt76_tx_status_skb_get
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_mt7603_fill_txs
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ieee80211_tx_info_clear_status
	movq	(%rbx), %rax
	movl	$-1, (%rax)
LBB0_4:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mt76_tx_status_skb_done
LBB0_5:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	setne	%r15b
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mt76_tx_status_unlock
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_PACKET_ID_FIRST,4,2         ## @MT_PACKET_ID_FIRST
	.no_dead_strip	_mt7603_mac_add_txs_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_mac_add_txs_skb
_mt7603_mac_add_txs_skb:                ; @mt7603_mac_add_txs_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _MT_PACKET_ID_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_PACKET_ID_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_7
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_mt76_tx_status_lock
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mt76_tx_status_skb_get
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_mt7603_fill_txs
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_ieee80211_tx_info_clear_status
	ldr	x8, [x23]
	mov	w9, #-1
	str	w9, [x8]
LBB0_5:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_tx_status_skb_done
LBB0_6:
	cmp	x20, #0
	cset	w20, ne
	add	x1, sp, #8
	mov	x0, x19
	bl	_mt76_tx_status_unlock
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_PACKET_ID_FIRST,4,2         ; @MT_PACKET_ID_FIRST
	.no_dead_strip	_mt7603_mac_add_txs_skb
.subsections_via_symbols
