	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_dma_enqueue_tx         ## -- Begin function mt7601u_dma_enqueue_tx
	.p2align	4, 0x90
_mt7601u_dma_enqueue_tx:                ## @mt7601u_dma_enqueue_tx
	.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, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%ecx, %edi
	callq	_q2ep
	movl	%eax, %r12d
	movq	_MT_TXD_PKT_INFO_80211@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$255, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	_MT_TXD_PKT_INFO_WIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_ep2dmaq
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt7601u_dma_skb_wrap_pkt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_mt7601u_dma_submit_tx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_ieee80211_free_txskb
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TXD_PKT_INFO_80211,4,2      ## @MT_TXD_PKT_INFO_80211
	.comm	_MT_TXD_PKT_INFO_WIV,4,2        ## @MT_TXD_PKT_INFO_WIV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_dma_enqueue_tx         ; -- Begin function mt7601u_dma_enqueue_tx
	.p2align	2
_mt7601u_dma_enqueue_tx:                ; @mt7601u_dma_enqueue_tx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_q2ep
	mov	x21, x0
Lloh0:
	adrp	x8, _MT_TXD_PKT_INFO_80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TXD_PKT_INFO_80211@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
Lloh3:
	adrp	x10, _MT_TXD_PKT_INFO_WIV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MT_TXD_PKT_INFO_WIV@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, #255
	csel	w9, w10, wzr, eq
	orr	w22, w9, w8
	bl	_ep2dmaq
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mt7601u_dma_skb_wrap_pkt
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mt7601u_dma_submit_tx
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_ieee80211_free_txskb
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXD_PKT_INFO_80211,4,2      ; @MT_TXD_PKT_INFO_80211
	.comm	_MT_TXD_PKT_INFO_WIV,4,2        ; @MT_TXD_PKT_INFO_WIV
.subsections_via_symbols
