	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_parse_cb_no_mmu
_goya_parse_cb_no_mmu:                  ## @goya_parse_cb_no_mmu
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edx, %edx
	callq	_goya_validate_cb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%r14), %edx
	movq	_HL_KERNEL_ASID_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_hl_cb_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_4:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	-36(%rbp), %edx
	sarl	%cl, %edx
	movl	%edx, -36(%rbp)
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_hl_cb_get
	movl	%eax, 4(%r14)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_goya_patch_cb
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_hl_cb_put
	jmp	LBB0_9
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	-36(%rbp), %edx
	movb	(%r12), %cl
	shll	%cl, %edx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_hl_cb_destroy
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_3:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_hl_userptr_delete_list
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HL_KERNEL_ASID_ID,4,2          ## @HL_KERNEL_ASID_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate patched CB for DMA CS %d\n"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"DMA CB handle invalid 0x%x\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_goya_parse_cb_no_mmu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_parse_cb_no_mmu
_goya_parse_cb_no_mmu:                  ; @goya_parse_cb_no_mmu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w2, #0
	bl	_goya_validate_cb
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w2, [x20, #8]
Lloh0:
	adrp	x8, _HL_KERNEL_ASID_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_KERNEL_ASID_ID@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x19
	bl	_hl_cb_create
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	asr	w2, w9, w8
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x19
	bl	_hl_cb_get
	str	w0, [x20, #4]
	cmp	w0, #0
	cset	w0, eq
	ldr	w2, [sp, #12]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_goya_patch_cb
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x20, #4]
	bl	_hl_cb_put
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	lsl	w2, w8, w9
	mov	x0, x19
	mov	x1, x19
	bl	_hl_cb_destroy
	cbz	w21, LBB0_9
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hl_userptr_delete_list
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HL_KERNEL_ASID_ID,4,2          ; @HL_KERNEL_ASID_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate patched CB for DMA CS %d\n"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"DMA CB handle invalid 0x%x\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_goya_parse_cb_no_mmu
.subsections_via_symbols
