	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_p2m_dma_desc              ## -- Begin function solo_p2m_dma_desc
	.p2align	4, 0x90
_solo_p2m_dma_desc:                     ## @solo_p2m_dma_desc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SOLO_DEV_6110@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_multi_p2m@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	24(%r14), %rdi
	callq	_atomic_inc_return
	movq	_SOLO_NR_P2M@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
LBB0_3:
	movq	16(%r14), %rbx
	movl	%edx, %r13d
	leaq	(,%r13,4), %r15
	addq	%r13, %r15
	leaq	(%rbx,%r15,8), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r15,8), %r13
	leaq	(%rbx,%r15,8), %rdi
	addq	$24, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movq	$0, 16(%rbx,%r15,8)
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_9
## %bb.6:
	movq	(%r14), %rax
	movq	_SOLO_DEV_6110@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_desc_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$0, 4(%rbx,%r15,8)
	movl	$0, (%r13)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_SOLO_P2M_CONFIG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_solo_reg_read
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_SOLO_P2M_DES_ADR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_solo_reg_write
	movl	%ebx, %edi
	callq	_SOLO_P2M_DESC_ID
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_solo_reg_write
	movl	%ebx, %edi
	callq	_SOLO_P2M_CONFIG
	movq	_SOLO_P2M_DESC_MODE@GOTPCREL(%rip), %rcx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	orl	(%rcx), %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_solo_reg_write
	jmp	LBB0_10
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	$1, 4(%rbx,%r15,8)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 32(%rbx,%r15,8)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_SOLO_P2M_TAR_ADR
	movl	16(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_solo_reg_write
	movl	%ebx, %edi
	callq	_SOLO_P2M_EXT_ADR
	movl	20(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_solo_reg_write
	movl	%ebx, %edi
	callq	_SOLO_P2M_EXT_CFG
	movl	24(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_solo_reg_write
	movl	%ebx, %edi
	callq	_SOLO_P2M_CONTROL
	movl	28(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_solo_reg_write
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	%r13, %rbx
	movl	12(%r14), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movl	%eax, %r13d
	movq	16(%rbx), %rdi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:
	incl	8(%r14)
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%r12d, %edi
	callq	_SOLO_P2M_CONTROL
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_solo_reg_write
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.15:
	movq	(%r14), %rax
	movq	_SOLO_DEV_6110@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.16:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movl	%r12d, %edi
	callq	_SOLO_P2M_CONFIG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_solo_reg_write
LBB0_18:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_DEV_6110,8,3              ## @SOLO_DEV_6110
	.comm	_multi_p2m,8,3                  ## @multi_p2m
	.comm	_SOLO_NR_P2M,4,2                ## @SOLO_NR_P2M
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_desc_mode,8,3                  ## @desc_mode
	.comm	_SOLO_P2M_DESC_MODE,4,2         ## @SOLO_P2M_DESC_MODE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_p2m_dma_desc              ; -- Begin function solo_p2m_dma_desc
	.p2align	2
_solo_p2m_dma_desc:                     ; @solo_p2m_dma_desc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOLO_DEV_6110@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOLO_DEV_6110@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _multi_p2m@GOTPAGE
Lloh4:
	ldr	x10, [x10, _multi_p2m@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:
	add	x0, x19, #24
	bl	_atomic_inc_return
Lloh6:
	adrp	x8, _SOLO_NR_P2M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOLO_NR_P2M@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	udiv	w9, w0, w8
	msub	w22, w9, w8, w0
LBB0_3:
	ldr	x28, [x19, #16]
	mov	w8, #40
	umaddl	x26, w22, w8, x28
	add	x21, x26, #8
	mov	x0, x21
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _EINTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_5:
	mov	w22, w22
	mov	w8, #40
	madd	x27, x22, x8, x28
	add	x23, x27, #24
	mov	x0, x23
	bl	_reinit_completion
	str	xzr, [x27, #16]!
	cmp	w20, #2
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _SOLO_DEV_6110@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOLO_DEV_6110@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _desc_mode@GOTPAGE
Lloh16:
	ldr	x10, [x10, _desc_mode@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_8
LBB0_7:
	str	w20, [x26]
	mov	w8, #40
	madd	x8, x22, x8, x28
	mov	w9, #1
	str	w9, [x8, #4]
	str	x24, [x8, #32]
	mov	x0, x22
	bl	_SOLO_P2M_TAR_ADR
	mov	x1, x0
	ldr	w2, [x24, #16]
	mov	x0, x19
	bl	_solo_reg_write
	mov	x0, x22
	bl	_SOLO_P2M_EXT_ADR
	mov	x1, x0
	ldr	w2, [x24, #20]
	mov	x0, x19
	bl	_solo_reg_write
	mov	x0, x22
	bl	_SOLO_P2M_EXT_CFG
	mov	x1, x0
	ldr	w2, [x24, #24]
	mov	x0, x19
	bl	_solo_reg_write
	mov	x0, x22
	bl	_SOLO_P2M_CONTROL
	mov	x1, x0
	ldr	w2, [x24, #28]
	mov	x0, x19
	bl	_solo_reg_write
	mov	w24, #0
	b	LBB0_9
LBB0_8:
	str	xzr, [x26]
	mov	x0, x22
	bl	_SOLO_P2M_CONFIG
	mov	x1, x0
	mov	x0, x19
	bl	_solo_reg_read
	mov	x24, x0
	mov	x0, x22
	bl	_SOLO_P2M_DES_ADR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_solo_reg_write
	mov	x0, x22
	bl	_SOLO_P2M_DESC_ID
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_solo_reg_write
	mov	x0, x22
	bl	_SOLO_P2M_CONFIG
	mov	x1, x0
Lloh18:
	adrp	x8, _SOLO_P2M_DESC_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOLO_P2M_DESC_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w2, w8, w24
	mov	x0, x19
	bl	_solo_reg_write
LBB0_9:
	ldr	w1, [x19, #12]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	mov	x23, x0
	ldr	x0, [x27]
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_12
; %bb.10:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_12:
	cbz	w23, LBB0_20
; %bb.13:
	mov	w23, #0
LBB0_14:
	mov	x0, x22
	bl	_SOLO_P2M_CONTROL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_solo_reg_write
	cmp	w20, #2
	b.lt	LBB0_18
; %bb.15:
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _SOLO_DEV_6110@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SOLO_DEV_6110@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.16:
	cbz	w24, LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_SOLO_P2M_CONFIG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_solo_reg_write
LBB0_18:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh26:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_DEV_6110,8,3              ; @SOLO_DEV_6110
	.comm	_multi_p2m,8,3                  ; @multi_p2m
	.comm	_SOLO_NR_P2M,4,2                ; @SOLO_NR_P2M
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_desc_mode,8,3                  ; @desc_mode
	.comm	_SOLO_P2M_DESC_MODE,4,2         ; @SOLO_P2M_DESC_MODE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
