	.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_3
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_HV_HYPERCALL_PARAM_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ALIGN
	movq	%r15, %rsi
	movq	%rax, %r15
	movl	%r13d, 24(%rax)
	movl	%r12d, (%rax)
	movq	%rbx, 8(%rax)
	movq	16(%rax), %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_HVCALL_POST_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_do_hypercall
	movzwl	%ax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	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	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HV_HYPERCALL_PARAM_ALIGN,4,2   ## @HV_HYPERCALL_PARAM_ALIGN
	.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]
	b	LBB0_5
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x8, _HV_HYPERCALL_PARAM_ALIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HV_HYPERCALL_PARAM_ALIGN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x24, x0
	str	w23, [x0, #24]
	str	w22, [x0]
	str	x19, [x0, #8]
	ldr	x0, [x0, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
Lloh11:
	adrp	x8, _HVCALL_POST_MESSAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HVCALL_POST_MESSAGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, #0
	bl	_do_hypercall
	and	w19, w0, #0xffff
	mov	x0, x21
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_MESSAGE_PAYLOAD_BYTE_COUNT,8,3 ; @HV_MESSAGE_PAYLOAD_BYTE_COUNT
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HV_HYPERCALL_PARAM_ALIGN,4,2   ; @HV_HYPERCALL_PARAM_ALIGN
	.comm	_HVCALL_POST_MESSAGE,4,2        ; @HVCALL_POST_MESSAGE
.subsections_via_symbols
