	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rewrite_hypercall
_rewrite_hypercall:                     ## @rewrite_hypercall
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	l___const.rewrite_hypercall.insn+8(%rip), %eax
	movl	%eax, -24(%rbp)
	movq	l___const.rewrite_hypercall.insn(%rip), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %esi
	callq	_guest_pa
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$12, %ecx
	callq	___lgwrite
	movq	%rbx, %rdi
	callq	_guest_pagetable_clear_all
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.rewrite_hypercall.insn
l___const.rewrite_hypercall.insn:
	.long	205                             ## 0xcd
	.long	31                              ## 0x1f
	.long	144                             ## 0x90

	.no_dead_strip	_rewrite_hypercall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rewrite_hypercall
_rewrite_hypercall:                     ; @rewrite_hypercall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.rewrite_hypercall.insn@PAGE
Lloh4:
	add	x8, x8, l___const.rewrite_hypercall.insn@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #16]
	ldr	x8, [x0]
	ldr	w1, [x8]
	bl	_guest_pa
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #12
	bl	___lgwrite
	mov	x0, x19
	bl	_guest_pagetable_clear_all
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.rewrite_hypercall.insn
l___const.rewrite_hypercall.insn:
	.long	205                             ; 0xcd
	.long	31                              ; 0x1f
	.long	144                             ; 0x90

	.no_dead_strip	_rewrite_hypercall
.subsections_via_symbols
