	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function talitos_submit
_talitos_submit:                        ## @talitos_submit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_DESC_HDR_DONE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	leaq	24(%rbx), %rdi
	callq	_atomic_inc_return
	movslq	(%rbx), %rcx
	decq	%rcx
	movslq	%eax, %r14
	andq	%rcx, %r14
	movq	8(%rbx), %rax
	leaq	(,%r14,8), %rcx
	leaq	(%rcx,%rcx,2), %r15
	leaq	(%rax,%r15), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	leaq	(%rax,%r15), %rdi
	addq	$16, %rdi
	callq	_atomic_inc_not_zero
	movq	8(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rcx,%r15), %r13
	movq	%r12, %rsi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx,%r15), %r12
	shlq	$5, %r13
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_dma_map_single
	movl	%eax, 8(%r12,%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12,%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12,%r13)
	movq	8(%rbx), %rax
	movl	(%rax,%r15), %ecx
	incl	%ecx
	movl	4(%rbx), %edx
	decl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax,%r15)
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12,%r13)
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%rbx), %r15
	movq	%r14, %rdi
	callq	_TALITOS_FF
	addq	%rax, %r15
	movl	8(%r12,%r13), %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_out_be32
	movq	16(%rbx), %r15
	movq	%r14, %rdi
	callq	_TALITOS_FF_LO
	addq	%rax, %r15
	movl	8(%r12,%r13), %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_out_be32
	movq	8(%rbx), %rcx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
LBB0_3:
	leaq	(%r14,%r14,2), %rax
	leaq	(%rcx,%rax,8), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	subl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_HDR_DONE_NOTIFY,4,2       ## @DESC_HDR_DONE_NOTIFY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_talitos_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function talitos_submit
_talitos_submit:                        ; @talitos_submit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _DESC_HDR_DONE_NOTIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESC_HDR_DONE_NOTIFY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	add	x0, x0, #24
	bl	_atomic_inc_return
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x20]
	sub	x8, x8, #1
	sxtw	x9, w0
	and	x19, x8, x9
	ldr	x8, [x20, #8]
	add	x9, x19, x19, lsl #1
	lsl	x26, x9, #3
	add	x8, x8, x26
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	add	x0, x8, #16
	bl	_atomic_inc_not_zero
	ldr	x8, [x20, #8]
	cbz	w0, LBB0_2
; %bb.1:
	add	x8, x8, x26
	ldrsw	x9, [x8]
	ldr	x8, [x8, #8]
	add	x25, x8, x9, lsl #5
Lloh3:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x21
	mov	w2, #4
	bl	_dma_map_single
	str	w0, [x25, #8]
	str	x23, [x25]
	str	x22, [x25, #24]
	ldr	x8, [x20, #8]
	ldr	w9, [x8, x26]
	add	w9, w9, #1
	ldr	w10, [x20, #4]
	sub	w10, w10, #1
	and	w9, w10, w9
	str	w9, [x8, x26]
	bl	_smp_wmb
	str	x21, [x25, #16]
	bl	_wmb
	ldr	x21, [x20, #16]
	mov	x0, x19
	bl	_TALITOS_FF
	add	x21, x0, x21
	ldr	w0, [x25, #8]
	bl	_upper_32_bits
	bl	_cpu_to_be32
	mov	x1, x0
	mov	x0, x21
	bl	_out_be32
	ldr	x21, [x20, #16]
	mov	x0, x19
	bl	_TALITOS_FF_LO
	add	x21, x0, x21
	ldr	w0, [x25, #8]
	bl	_lower_32_bits
	bl	_cpu_to_be32
	mov	x1, x0
	mov	x0, x21
	bl	_out_be32
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x20, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x20, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x20, [x20, _EAGAIN@GOTPAGEOFF]
LBB0_3:
	mov	w9, #24
	madd	x8, x19, x9, x8
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
	neg	w0, w8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_HDR_DONE_NOTIFY,4,2       ; @DESC_HDR_DONE_NOTIFY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_talitos_submit
.subsections_via_symbols
