	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_cb_mmap
_goya_cb_mmap:                          ## @goya_cb_mmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VM_IO@GOTPCREL(%rip), %rax
	movq	_VM_PFNMAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VM_DONTDUMP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VM_DONTCOPY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VM_NORESERVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rsi, %rbx
	orl	%edx, (%rsi)
	movl	%r8d, %eax
	movl	%ecx, %edx
	movq	%rdi, %r14
	movl	4(%rsi), %r8d
	movl	8(%rsi), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_remap_pfn_range
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_IO,4,2                      ## @VM_IO
	.comm	_VM_PFNMAP,4,2                  ## @VM_PFNMAP
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ## @VM_DONTDUMP
	.comm	_VM_DONTCOPY,4,2                ## @VM_DONTCOPY
	.comm	_VM_NORESERVE,4,2               ## @VM_NORESERVE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remap_pfn_range error %d"

	.no_dead_strip	_goya_cb_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_cb_mmap
_goya_cb_mmap:                          ; @goya_cb_mmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x4
	mov	x9, x1
	mov	x19, x0
Lloh0:
	adrp	x10, _VM_IO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VM_IO@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _VM_PFNMAP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _VM_PFNMAP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _VM_DONTEXPAND@GOTPAGE
Lloh7:
	ldr	x12, [x12, _VM_DONTEXPAND@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh8:
	ldr	w11, [x12]
	orr	w10, w10, w11
Lloh9:
	adrp	x11, _VM_DONTDUMP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _VM_DONTDUMP@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh12:
	adrp	x11, _VM_DONTCOPY@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VM_DONTCOPY@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _VM_NORESERVE@GOTPAGE
Lloh16:
	ldr	x12, [x12, _VM_NORESERVE@GOTPAGEOFF]
	orr	w10, w10, w11
Lloh17:
	ldr	w11, [x12]
	orr	w10, w10, w11
	ldp	w11, w4, [x1]
	orr	w10, w10, w11
	str	w10, [x1]
Lloh18:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	asr	w2, w3, w10
	ldr	w1, [x1, #8]
	mov	x0, x9
	mov	x3, x8
	bl	_remap_pfn_range
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_IO,4,2                      ; @VM_IO
	.comm	_VM_PFNMAP,4,2                  ; @VM_PFNMAP
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ; @VM_DONTDUMP
	.comm	_VM_DONTCOPY,4,2                ; @VM_DONTCOPY
	.comm	_VM_NORESERVE,4,2               ; @VM_NORESERVE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remap_pfn_range error %d"

	.no_dead_strip	_goya_cb_mmap
.subsections_via_symbols
