	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_data_present
_virtio_data_present:                   ## @virtio_data_present
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_data_left@GOTPCREL(%rip), %rbx
	movl	$1, %r14d
	cmpl	$3, (%rbx)
	ja	LBB0_8
## %bb.1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	movq	_have_data@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion_killable
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_have_data@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$4, (%rbx)
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_register_buffer
	movq	%r15, %rdi
	callq	_wait_for_completion_killable
	testl	%eax, %eax
	jns	LBB0_5
LBB0_7:
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_2:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_data_left,4,2                  ## @data_left
	.comm	_have_data,4,2                  ## @have_data
	.no_dead_strip	_virtio_data_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_data_present
_virtio_data_present:                   ; @virtio_data_present
	.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
Lloh0:
	adrp	x20, _data_left@GOTPAGE
Lloh1:
	ldr	x20, [x20, _data_left@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #3
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	cbz	w1, LBB0_7
; %bb.3:
Lloh2:
	adrp	x0, _have_data@GOTPAGE
Lloh3:
	ldr	x0, [x0, _have_data@GOTPAGEOFF]
	bl	_wait_for_completion_killable
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh4:
	adrp	x19, _have_data@GOTPAGE
Lloh5:
	ldr	x19, [x19, _have_data@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #4
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_register_buffer
	mov	x0, x19
	bl	_wait_for_completion_killable
	tbz	w0, #31, LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_data_left,4,2                  ; @data_left
	.comm	_have_data,4,2                  ; @have_data
	.no_dead_strip	_virtio_data_present
.subsections_via_symbols
