	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_memcpy_from_queue_iter
_qp_memcpy_from_queue_iter:             ## @qp_memcpy_from_queue_iter
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.1:
	movq	(%rsi), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rcx, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rbx), %r12
	andq	%rcx, %r12
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_kmap
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	8(%rax,%r13,8), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%r15, %rcx
	subq	%r12, %rbx
	cmpq	%rbx, %rcx
	cmovbq	%rcx, %rbx
	leaq	(%rax,%r12,4), %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_copy_to_iter
	cltq
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r15
	cmpq	$0, 16(%r14)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_kunmap
	jmp	LBB0_13
LBB0_14:
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_9:
	movq	_VMCI_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%r14)
	je	LBB0_15
## %bb.10:
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_kunmap
LBB0_15:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ## @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.no_dead_strip	_qp_memcpy_from_queue_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_memcpy_from_queue_iter
_qp_memcpy_from_queue_iter:             ; @qp_memcpy_from_queue_iter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x3, LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x25, #0
	ldr	x24, [x1]
Lloh0:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _VMCI_SUCCESS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VMCI_SUCCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x22, x25
	cmp	x25, x19
	b.hs	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x25, x20
	ldr	x8, [x26]
	sub	x28, x8, #1
	ldr	x9, [x24, #16]
	udiv	x27, x22, x8
	cbz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_kmap
	ldr	x8, [x26]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24, #8]
	add	x9, x9, x27, lsl #3
	ldr	x0, [x9, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x9, x28, x22
	sub	x10, x19, x25
	sub	x8, x8, x9
	cmp	x10, x8
	csel	x22, x10, x8, lo
	add	x0, x0, x9, lsl #2
	mov	x1, x22
	mov	x2, x21
	bl	_copy_to_iter
	cmp	x22, w0, sxtw
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_kunmap
	b	LBB0_2
LBB0_9:
Lloh4:
	adrp	x23, _VMCI_SUCCESS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VMCI_SUCCESS@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_kunmap
LBB0_12:
Lloh6:
	adrp	x23, _VMCI_ERROR_INVALID_ARGS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _VMCI_ERROR_INVALID_ARGS@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ; @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.no_dead_strip	_qp_memcpy_from_queue_iter
.subsections_via_symbols
