	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_dma_tx_queue_skb_raw
_mt76_dma_tx_queue_skb_raw:             ## @mt76_dma_tx_queue_skb_raw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r14
	movl	(%rdi), %edi
	movl	(%rdx), %edx
	movl	4(%r15), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%r13d, -44(%rbp)
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	$0, (%rsp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	%r12d, %r8d
	movq	%r15, %r9
	callq	_mt76_dma_add_buf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mt76_dma_kick_queue
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mt76_dma_tx_queue_skb_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_dma_tx_queue_skb_raw
_mt76_dma_tx_queue_skb_raw:             ; @mt76_dma_tx_queue_skb_raw
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, w1, uxtw #3]
	ldr	w0, [x0]
	ldp	w2, w1, [x2]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x20]
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	stp	w8, w23, [sp, #8]
	mov	x0, x19
	bl	_spin_lock_bh
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	x4, x22
	mov	x5, x21
	mov	x6, #0
	bl	_mt76_dma_add_buf
	mov	x0, x20
	mov	x1, x19
	bl	_mt76_dma_kick_queue
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mt76_dma_tx_queue_skb_raw
.subsections_via_symbols
