	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_complete_pio                   ## -- Begin function complete_pio
	.p2align	4, 0x90
_complete_pio:                          ## @complete_pio
	.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	%rdi, %rbx
	cmpl	$0, 56(%rdi)
	movq	32(%rdi), %rax
	je	LBB0_1
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_pio_copy_data
	testl	%eax, %eax
	jne	LBB0_13
LBB0_5:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.7:
	movq	16(%rbx), %r15
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	subq	%r15, %rax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_kvm_register_write
	jmp	LBB0_8
LBB0_1:
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_VCPU_REGS_RAX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, -32(%rbp)
	movl	(%rbx), %esi
	movq	8(%rbx), %rdx
	leaq	-32(%rbp), %rdi
	callq	_memcpy
	movl	(%r14), %esi
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_12
LBB0_6:
	movl	$1, %r15d
LBB0_8:
	movq	%r15, %r14
	negq	%r14
	cmpq	$0, 40(%rbx)
	cmoveq	%r15, %r14
	imulq	8(%rbx), %r14
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_VCPU_REGS_RDI@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_10:
	movq	_VCPU_REGS_RSI@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	addq	%rax, %r14
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
LBB0_12:
	callq	_kvm_register_write
LBB0_13:
	movq	16(%rbx), %rax
	subq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_REGS_RAX,4,2              ## @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ## @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RDI,4,2              ## @VCPU_REGS_RDI
	.comm	_VCPU_REGS_RSI,4,2              ## @VCPU_REGS_RSI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_complete_pio                   ; -- Begin function complete_pio
	.p2align	2
_complete_pio:                          ; @complete_pio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w9, [x0, #56]
	ldr	x8, [x0, #32]
	cbz	w9, LBB0_5
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_pio_copy_data
	cbnz	w0, LBB0_13
LBB0_3:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x21, _VCPU_REGS_RCX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VCPU_REGS_RCX@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_kvm_register_read
	sub	x2, x0, x20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_kvm_register_write
	b	LBB0_8
LBB0_5:
	cbz	x8, LBB0_13
; %bb.6:
Lloh2:
	adrp	x20, _VCPU_REGS_RAX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VCPU_REGS_RAX@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_kvm_register_read
	str	x0, [sp, #8]
	ldr	w1, [x19]
	ldr	x2, [x19, #8]
	add	x0, sp, #8
	bl	_memcpy
	ldr	w1, [x20]
	ldr	x2, [sp, #8]
	b	LBB0_12
LBB0_7:
	mov	w20, #1
LBB0_8:
	ldp	x9, x8, [x19, #32]
	cmp	x8, #0
	cneg	x8, x20, ne
	ldr	x10, [x19, #8]
	mul	x20, x8, x10
	cbz	x9, LBB0_10
; %bb.9:
Lloh4:
	adrp	x21, _VCPU_REGS_RDI@GOTPAGE
Lloh5:
	ldr	x21, [x21, _VCPU_REGS_RDI@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x21, _VCPU_REGS_RSI@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VCPU_REGS_RSI@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_kvm_register_read
	add	x2, x0, x20
	ldr	w1, [x21]
LBB0_12:
	mov	x0, x19
	bl	_kvm_register_write
LBB0_13:
	ldp	x8, x9, [x19, #16]
	sub	x8, x9, x8
	stp	xzr, x8, [x19, #16]
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_REGS_RAX,4,2              ; @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ; @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RDI,4,2              ; @VCPU_REGS_RDI
	.comm	_VCPU_REGS_RSI,4,2              ; @VCPU_REGS_RSI
.subsections_via_symbols
