	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_page_vec_build
_iser_page_vec_build:                   ## @iser_page_vec_build
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$0, (%rsi)
	movq	$0, 8(%rsi)
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_iser_dbg
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_iser_sg_to_page_vec
	movl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_iser_dbg
	movl	%ebx, (%r12)
	movq	_SIZE_4K@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	cmpl	4(%r12), %ebx
	jge	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_iser_err
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iser_data_buf_dump
	movq	%r12, %rdi
	callq	_iser_dump_page_vec
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Translating sg sz: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"sg len %d page_vec_len %d\n"

	.comm	_SIZE_4K,4,2                    ## @SIZE_4K
L_.str.2:                               ## @.str.2
	.asciz	"page_vec too short to hold this SG\n"

	.no_dead_strip	_iser_page_vec_build
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_page_vec_build
_iser_page_vec_build:                   ; @iser_page_vec_build
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	wzr, [x1]
	str	xzr, [x1, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_dbg
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_iser_sg_to_page_vec
	mov	x22, x0
	ldr	w1, [x21]
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_dbg
	str	w22, [x19]
Lloh4:
	adrp	x8, _SIZE_4K@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIZE_4K@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mul	w8, w8, w22
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iser_err
	mov	x0, x21
	mov	x1, x20
	bl	_iser_data_buf_dump
	mov	x0, x19
	bl	_iser_dump_page_vec
	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
	b	_BUG
LBB0_2:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Translating sg sz: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"sg len %d page_vec_len %d\n"

	.comm	_SIZE_4K,4,2                    ; @SIZE_4K
l_.str.2:                               ; @.str.2
	.asciz	"page_vec too short to hold this SG\n"

	.no_dead_strip	_iser_page_vec_build
.subsections_via_symbols
