	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_hcall
_async_hcall:                           ## @async_hcall
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_local_irq_save
	movq	_lguest_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movl	_async_hcall.next_call(%rip), %eax
	cmpl	$255, (%rcx,%rax,4)
	jne	LBB0_1
## %bb.2:
	movq	8(%rdx), %rcx
	leaq	(%rax,%rax,4), %rax
	movq	%rbx, (%rcx,%rax,8)
	movq	%r13, 8(%rcx,%rax,8)
	movq	%r12, 16(%rcx,%rax,8)
	movq	%r15, 24(%rcx,%rax,8)
	movq	%r14, 32(%rcx,%rax,8)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rdx, %rbx
	callq	_wmb
	movq	(%rbx), %rax
	movl	_async_hcall.next_call(%rip), %ecx
	movl	$0, (%rax,%rcx,4)
	leal	1(%rcx), %eax
	movq	_LHCALL_RING_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	cmovel	%r14d, %eax
	movl	%eax, _async_hcall.next_call(%rip)
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_kvm_hypercall4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_async_hcall.next_call,4,2 ## @async_hcall.next_call
	.comm	_lguest_data,16,3               ## @lguest_data
	.comm	_LHCALL_RING_SIZE,4,2           ## @LHCALL_RING_SIZE
	.no_dead_strip	_async_hcall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_hcall
_async_hcall:                           ; @async_hcall
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_local_irq_save
Lloh0:
	adrp	x25, _lguest_data@GOTPAGE
Lloh1:
	ldr	x25, [x25, _lguest_data@GOTPAGEOFF]
	ldr	x9, [x25]
	adrp	x24, _async_hcall.next_call@PAGE
	ldr	w8, [x24, _async_hcall.next_call@PAGEOFF]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #255
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x25, #8]
	mov	w10, #40
	madd	x8, x8, x10, x9
	stp	x23, x22, [x8]
	stp	x21, x20, [x8, #16]
	str	x19, [x8, #32]
	bl	_wmb
	ldr	x8, [x25]
	ldr	w9, [x24, _async_hcall.next_call@PAGEOFF]
	str	wzr, [x8, x9, lsl #2]
	add	w8, w9, #1
Lloh2:
	adrp	x10, _LHCALL_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LHCALL_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w8, w10
	csinc	w8, wzr, w9, eq
	str	w8, [x24, _async_hcall.next_call@PAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_kvm_hypercall4
LBB0_3:
	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
	b	_local_irq_restore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_async_hcall.next_call,4,2 ; @async_hcall.next_call
	.comm	_lguest_data,16,3               ; @lguest_data
	.comm	_LHCALL_RING_SIZE,4,2           ; @LHCALL_RING_SIZE
	.no_dead_strip	_async_hcall
.subsections_via_symbols
