	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_txenq
_dma_txenq:                             ## @dma_txenq
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movl	%r15d, %esi
	callq	_nexttxd
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rsi
	movl	8(%r14), %r12d
	movl	36(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edx
	callq	_dma_map_single
	movl	%eax, %r13d
	movl	36(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmu_pkt_buf_free_skb         ## TAILCALL
LBB0_2:
	movq	_D64_CTRL1_SOF@GOTPCREL(%rip), %rcx
	movq	_D64_CTRL1_IOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_D64_CTRL1_EOF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbx), %ecx
	decl	%ecx
	cmpl	%ecx, %r15d
	jne	LBB0_4
## %bb.3:
	movq	_D64_CTRL1_EOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
LBB0_4:
	movl	32(%rbx), %esi
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r9d
	callq	_dma64_dd_upd
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_nexttxd
	movq	%rax, %r15
	movq	24(%rbx), %r12
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_prevtxd
	movq	%r14, (%r12,%rax,8)
	movl	%r15d, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_D64_CTRL1_SOF,4,2              ## @D64_CTRL1_SOF
	.comm	_D64_CTRL1_IOC,4,2              ## @D64_CTRL1_IOC
	.comm	_D64_CTRL1_EOF,4,2              ## @D64_CTRL1_EOF
	.comm	_D64_CTRL1_EOT,4,2              ## @D64_CTRL1_EOT
	.no_dead_strip	_dma_txenq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_txenq
_dma_txenq:                             ; @dma_txenq
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	mov	x1, x21
	bl	_nexttxd
	ldr	x8, [x20, #8]
	cmp	x0, x8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x1, [x19]
	ldr	w22, [x19, #8]
	ldr	w0, [x20, #36]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x20, #36]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	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
	b	_brcmu_pkt_buf_free_skb
LBB0_4:
Lloh3:
	adrp	x8, _D64_CTRL1_SOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D64_CTRL1_SOF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _D64_CTRL1_IOC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _D64_CTRL1_IOC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _D64_CTRL1_EOF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _D64_CTRL1_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	ldr	w9, [x20, #16]
	sub	w9, w9, #1
	cmp	w21, w9
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x9, _D64_CTRL1_EOT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _D64_CTRL1_EOT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_6:
	ldr	w1, [x20, #32]
	add	x4, sp, #12
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	mov	x5, x22
	bl	_dma64_dd_upd
	mov	x0, x20
	mov	x1, x21
	bl	_nexttxd
	mov	x21, x0
	ldr	x22, [x20, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_prevtxd
	str	x19, [x22, x0, lsl #3]
	str	w21, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_D64_CTRL1_SOF,4,2              ; @D64_CTRL1_SOF
	.comm	_D64_CTRL1_IOC,4,2              ; @D64_CTRL1_IOC
	.comm	_D64_CTRL1_EOF,4,2              ; @D64_CTRL1_EOF
	.comm	_D64_CTRL1_EOT,4,2              ; @D64_CTRL1_EOT
	.no_dead_strip	_dma_txenq
.subsections_via_symbols
