	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvmgt_rw_gpa
_kvmgt_rw_gpa:                          ## @kvmgt_rw_gpa
	.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	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	callq	_handle_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	testq	%r12, %r12
	jne	LBB0_7
## %bb.4:
	movl	(%r14), %edi
	callq	_mmget_not_zero
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	callq	_use_mm
LBB0_7:
	movq	%r15, %rbx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_srcu_read_lock
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_kvm_write_guest
	jmp	LBB0_10
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_kvm_read_guest
LBB0_10:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_srcu_read_unlock
	testq	%r12, %r12
	jne	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	callq	_unuse_mm
	movl	(%r14), %edi
	callq	_mmput
	jmp	LBB0_12
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_kvmgt_rw_gpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvmgt_rw_gpa
_kvmgt_rw_gpa:                          ; @kvmgt_rw_gpa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x26, [x8]
	bl	_handle_valid
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x19, [x19]
	cbnz	x26, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_mmget_not_zero
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w0, [x19]
	bl	_use_mm
LBB0_4:
	add	x24, x19, #4
	mov	x0, x24
	bl	_srcu_read_lock
	mov	x25, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	cbz	w23, LBB0_7
; %bb.5:
	bl	_kvm_write_guest
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	bl	_kvm_read_guest
LBB0_8:
	mov	x20, x0
	mov	x0, x24
	mov	x1, x25
	bl	_srcu_read_unlock
	cbnz	x26, LBB0_12
; %bb.9:
	ldr	w0, [x19]
	bl	_unuse_mm
	ldr	w0, [x19]
	bl	_mmput
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_kvmgt_rw_gpa
.subsections_via_symbols
