	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_recvpacket_raw           ## -- Begin function vmbus_recvpacket_raw
	.p2align	4, 0x90
_vmbus_recvpacket_raw:                  ## @vmbus_recvpacket_raw
	.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
	movq	%r8, %r13
	movq	%rcx, %r14
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movl	$0, (%rcx)
	movl	$0, (%r8)
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_hv_ringbuffer_peek
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-56(%rbp), %edx
	shll	$3, %edx
	movl	%edx, (%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %edx
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_pr_err
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	-52(%rbp), %eax
	movl	%eax, (%r13)
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_hv_ringbuffer_read
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_vmbus_setevent
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer too small - needed %d bytes but got space for only %d bytes\n"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_recvpacket_raw           ; -- Begin function vmbus_recvpacket_raw
	.p2align	2
_vmbus_recvpacket_raw:                  ; @vmbus_recvpacket_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #4]
	str	wzr, [x3]
	str	wzr, [x4]
	add	x1, sp, #8
	mov	w2, #8
	bl	_hv_ringbuffer_peek
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_6
; %bb.1:
	ldr	w8, [sp, #8]
	lsl	w2, w8, #3
	str	w2, [x23]
	cmp	w2, w21
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x21
	bl	_pr_err
Lloh2:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	w8, [sp, #12]
	str	w8, [x22]
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_hv_ringbuffer_read
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_vmbus_setevent
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer too small - needed %d bytes but got space for only %d bytes\n"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
.subsections_via_symbols
