	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpm_mach_vm_read_page
_fpm_mach_vm_read_page:                 ## @fpm_mach_vm_read_page
	.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
	movl	%edi, %esi
	movq	_target@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fpm_pagesize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_local_page@GOTPCREL(%rip), %rcx
	movq	_local_size@GOTPCREL(%rip), %r8
	callq	_mach_vm_read
	movq	%rax, %rbx
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	je	LBB0_2
## %bb.1:
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_mach_error_string
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_zlog
	movl	$-1, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_target,4,2                     ## @target
	.comm	_fpm_pagesize,4,2               ## @fpm_pagesize
	.comm	_local_page,4,2                 ## @local_page
	.comm	_local_size,4,2                 ## @local_size
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read vm page: mach_vm_read(): %s (%d)"

	.no_dead_strip	_fpm_mach_vm_read_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpm_mach_vm_read_page
_fpm_mach_vm_read_page:                 ; @fpm_mach_vm_read_page
	.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	x1, x0
Lloh0:
	adrp	x8, _target@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _fpm_pagesize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fpm_pagesize@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, _local_page@GOTPAGE
Lloh7:
	ldr	x3, [x3, _local_page@GOTPAGEOFF]
Lloh8:
	adrp	x4, _local_size@GOTPAGE
Lloh9:
	ldr	x4, [x4, _local_size@GOTPAGEOFF]
	bl	_mach_vm_read
Lloh10:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh13:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	bl	_mach_error_string
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_zlog
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_target,4,2                     ; @target
	.comm	_fpm_pagesize,4,2               ; @fpm_pagesize
	.comm	_local_page,4,2                 ; @local_page
	.comm	_local_size,4,2                 ; @local_size
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read vm page: mach_vm_read(): %s (%d)"

	.no_dead_strip	_fpm_mach_vm_read_page
.subsections_via_symbols
