	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_post_message                ## -- Begin function hv_post_message
	.p2align	4, 0x90
_hv_post_message:                       ## @hv_post_message
	.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	_HV_MESSAGE_PAYLOAD_BYTE_COUNT@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_hv_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_cpu_ptr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movl	%r12d, 32(%r13)
	movq	$0, 24(%r13)
	movl	%r15d, (%r13)
	movq	%rbx, 8(%r13)
	movq	16(%r13), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_HVCALL_POST_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_hv_do_hypercall
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_cpu_ptr
	movzwl	%bx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_MESSAGE_PAYLOAD_BYTE_COUNT,8,3 ## @HV_MESSAGE_PAYLOAD_BYTE_COUNT
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_hv_context,4,2                 ## @hv_context
	.comm	_HVCALL_POST_MESSAGE,4,2        ## @HVCALL_POST_MESSAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_post_message                ; -- Begin function hv_post_message
	.p2align	2
_hv_post_message:                       ; @hv_post_message
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _HV_MESSAGE_PAYLOAD_BYTE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_MESSAGE_PAYLOAD_BYTE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh6:
	adrp	x8, _hv_context@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hv_context@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_get_cpu_ptr
	mov	x23, x0
	ldr	x24, [x0]
	str	w22, [x24, #32]
	str	xzr, [x24, #24]
	str	w21, [x24]
	str	x19, [x24, #8]
	ldr	x0, [x24, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
Lloh9:
	adrp	x8, _HVCALL_POST_MESSAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HVCALL_POST_MESSAGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, #0
	bl	_hv_do_hypercall
	mov	x19, x0
	mov	x0, x23
	bl	_put_cpu_ptr
	and	w0, w19, #0xffff
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_MESSAGE_PAYLOAD_BYTE_COUNT,8,3 ; @HV_MESSAGE_PAYLOAD_BYTE_COUNT
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_hv_context,4,2                 ; @hv_context
	.comm	_HVCALL_POST_MESSAGE,4,2        ; @HVCALL_POST_MESSAGE
.subsections_via_symbols
