	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_data_read
_virtio_data_read:                      ## @virtio_data_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_data_left@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$4, (%rbx)
	setb	%dil
	callq	_BUG_ON
	movl	(%rbx), %eax
	leal	-4(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_random_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	decl	%eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movl	%eax, (%r14)
	cmpl	$3, (%rbx)
	ja	LBB0_2
## %bb.1:
	movq	_have_data@GOTPCREL(%rip), %rdi
	callq	_init_completion
	xorl	%eax, %eax
	callq	_register_buffer
LBB0_2:
	movl	$4, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_data_left,4,2                  ## @data_left
	.comm	_random_data,8,3                ## @random_data
	.comm	_have_data,4,2                  ## @have_data
	.no_dead_strip	_virtio_data_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_data_read
_virtio_data_read:                      ; @virtio_data_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _data_left@GOTPAGE
Lloh1:
	ldr	x20, [x20, _data_left@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #4
	cset	w0, lo
	bl	_BUG_ON
	ldr	w8, [x20]
	sub	w9, w8, #4
	str	w9, [x20]
Lloh2:
	adrp	x10, _random_data@GOTPAGE
Lloh3:
	ldr	x10, [x10, _random_data@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	sub	w8, w8, #1
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #2
	ldr	w8, [x10, w8, sxtw #2]
	str	w8, [x19]
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, _have_data@GOTPAGE
Lloh6:
	ldr	x0, [x0, _have_data@GOTPAGEOFF]
	bl	_init_completion
	bl	_register_buffer
LBB0_2:
	mov	w0, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_data_left,4,2                  ; @data_left
	.comm	_random_data,8,3                ; @random_data
	.comm	_have_data,4,2                  ; @have_data
	.no_dead_strip	_virtio_data_read
.subsections_via_symbols
