	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsxx_queue_dma
_rsxx_queue_dma:                        ## @rsxx_queue_dma
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_rsxx_dma_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %rax
	movl	32(%rbp), %ecx
	movl	24(%rbp), %edx
	movq	16(%rbp), %rsi
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	setne	%r15b
	jne	LBB0_3
## %bb.4:
	movq	_HW_CMD_BLK_READ@GOTPCREL(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_HW_CMD_BLK_WRITE@GOTPCREL(%rip), %rdi
LBB0_5:
	movl	(%rdi), %edi
	movl	%edi, 44(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, (%rbx)
	shrl	$9, %r13d
	movl	%r13d, 24(%rbx)
	shrl	$9, %r12d
	movl	%r12d, 28(%rbx)
	movq	%rsi, 16(%rbx)
	movl	%edx, 4(%rbx)
	movl	%ecx, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_CARD_TO_DEV
	movl	24(%rbx), %r8d
	movl	28(%rbx), %r9d
	movl	(%rbx), %ecx
	movl	4(%rbx), %r10d
	movb	%r15b, %r14b
	leal	82(%r14,%r14,4), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	pushq	%r10
	pushq	16(%rbx)
	callq	_dev_dbg
	addq	$16, %rsp
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rsxx_dma_pool,4,2              ## @rsxx_dma_pool
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HW_CMD_BLK_WRITE,4,2           ## @HW_CMD_BLK_WRITE
	.comm	_HW_CMD_BLK_READ,4,2            ## @HW_CMD_BLK_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Queuing[%c] laddr %x off %d cnt %d page %p pg_off %d\n"

	.no_dead_strip	_rsxx_queue_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsxx_queue_dma
_rsxx_queue_dma:                        ; @rsxx_queue_dma
	.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	x22, x7
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _rsxx_dma_pool@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rsxx_dma_pool@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x29, #24]
	ldr	w9, [x29, #16]
Lloh6:
	adrp	x10, _HW_CMD_BLK_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HW_CMD_BLK_WRITE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _HW_CMD_BLK_READ@GOTPAGE
Lloh9:
	ldr	x11, [x11, _HW_CMD_BLK_READ@GOTPAGEOFF]
	cmp	w27, #0
	csel	x10, x11, x10, eq
	ldr	w10, [x10]
	lsr	w11, w26, #9
	lsr	w12, w25, #9
	stp	w11, w12, [x0, #24]
	str	x23, [x0, #16]
	stp	w24, w22, [x0]
	stp	w9, w10, [x0, #40]
	str	x8, [x0, #32]
	mov	w8, #87
	mov	w9, #82
	csel	w22, w9, w8, eq
	mov	x0, x21
	bl	_CARD_TO_DEV
	ldp	w4, w5, [x20, #24]
	ldr	x6, [x20, #16]
	ldp	w3, w7, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	add	x0, x20, #8
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_rsxx_dma_pool,4,2              ; @rsxx_dma_pool
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HW_CMD_BLK_WRITE,4,2           ; @HW_CMD_BLK_WRITE
	.comm	_HW_CMD_BLK_READ,4,2            ; @HW_CMD_BLK_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Queuing[%c] laddr %x off %d cnt %d page %p pg_off %d\n"

	.no_dead_strip	_rsxx_queue_dma
.subsections_via_symbols
