	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_send_txreq                ## -- Begin function sdma_send_txreq
	.p2align	4, 0x90
_sdma_send_txreq:                       ## @sdma_send_txreq
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_iowait_ioww_to_iow
	movl	%eax, 40(%r12)
	leaq	32(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	___sdma_running
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setg	%dil
	callq	_unlikely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_sdma_check_progress
	movl	%eax, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_4
## %bb.14:
	incl	8(%rbx)
	jmp	LBB0_9
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_iowait_ioww_to_iow
	movl	%eax, %edi
	callq	_iowait_sdma_inc
LBB0_12:
	movq	$0, 32(%r12)
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	16(%r12), %rdi
	leaq	24(%rbx), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_iowait_inc_wait_count
	movl	16(%rbx), %edi
	movq	_system_highpri_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$12, %rbx
	movq	%rbx, %rdx
	callq	_queue_work_on
	movq	_ECOMM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rsi
	callq	_submit_tx
	movl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_iowait_ioww_to_iow
	movl	%eax, %edi
	callq	_iowait_sdma_inc
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sdma_update_tail
	xorl	%r14d, %r14d
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_system_highpri_wq,4,2          ## @system_highpri_wq
	.comm	_ECOMM,4,2                      ## @ECOMM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_send_txreq                ; -- Begin function sdma_send_txreq
	.p2align	2
_sdma_send_txreq:                       ; @sdma_send_txreq
	.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	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x2]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_2:
	mov	x0, x21
	bl	_iowait_ioww_to_iow
	str	w0, [x22, #40]
	add	x19, x20, #32
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___sdma_running
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_sdma_check_progress
	ldr	w8, [x25]
	cmn	w0, w8
	b.eq	LBB0_3
; %bb.6:
	mov	x24, x0
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_13
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_iowait_ioww_to_iow
	bl	_iowait_sdma_inc
LBB0_9:
	str	xzr, [x22, #32]
	add	x23, x20, #20
	mov	x0, x23
	bl	_spin_lock
	add	x0, x22, #16
	add	x1, x20, #24
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock
	ldr	x1, [x22, #8]
	mov	x0, x21
	bl	_iowait_inc_wait_count
	ldr	w0, [x20, #16]
Lloh5:
	adrp	x8, _system_highpri_wq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _system_highpri_wq@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, x20, #12
	bl	_queue_work_on
Lloh8:
	adrp	x8, _ECOMM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECOMM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_submit_tx
	mov	x22, x0
	cbz	x21, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_iowait_ioww_to_iow
	bl	_iowait_sdma_inc
LBB0_12:
	mov	x0, x20
	mov	x1, x22
	bl	_sdma_update_tail
	mov	w24, #0
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_14:
	mov	x0, x24
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_system_highpri_wq,4,2          ; @system_highpri_wq
	.comm	_ECOMM,4,2                      ; @ECOMM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
