	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_walk_and_build              ## -- Begin function nx_walk_and_build
	.p2align	4, 0x90
_nx_walk_and_build:                     ## @nx_walk_and_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	%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
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	movq	%rdx, %rsi
	callq	_scatterwalk_start
	movl	(%rbx), %eax
	xorl	%r15d, %r15d
	cmpl	%r12d, %eax
	ja	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_scatterwalk_sg_next
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_scatterwalk_start
	movl	(%rbx), %eax
	addl	%r15d, %eax
	cmpl	%r12d, %eax
	jbe	LBB0_1
LBB0_3:
	subl	%r15d, %r12d
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	callq	_scatterwalk_advance
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.4:
	testq	%r14, %r14
	je	LBB0_10
## %bb.5:
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_scatterwalk_clamp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %edi
	callq	_sg_next
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_scatterwalk_start
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_scatterwalk_clamp
	movl	%eax, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_SCATTERWALK_FROM_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_scatterwalk_map
	movq	%rax, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_nx_build_sg_list
	movq	%rax, %r14
	movq	_SCATTERWALK_FROM_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_scatterwalk_unmap
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_scatterwalk_advance
	movq	_SCATTERWALK_FROM_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	subl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_scatterwalk_done
	subl	%r12d, %r13d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	jne	LBB0_6
LBB0_10:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCATTERWALK_FROM_SG,4,2        ## @SCATTERWALK_FROM_SG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_walk_and_build              ; -- Begin function nx_walk_and_build
	.p2align	2
_nx_walk_and_build:                     ; @nx_walk_and_build
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x2
	bl	_scatterwalk_start
	ldr	w8, [x23]
	cmp	w8, w22
	b.ls	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	mov	x0, x23
	bl	_scatterwalk_sg_next
	mov	x23, x0
	add	x0, sp, #8
	mov	x1, x23
	bl	_scatterwalk_start
	ldr	w8, [x23]
	add	w8, w8, w24
	cmp	w8, w22
	b.ls	LBB0_2
LBB0_3:
	sub	w1, w22, w24
	add	x0, sp, #8
	bl	_scatterwalk_advance
	cbz	w20, LBB0_10
; %bb.4:
	cbz	x19, LBB0_10
; %bb.5:
Lloh0:
	adrp	x24, _SCATTERWALK_FROM_SG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SCATTERWALK_FROM_SG@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_scatterwalk_clamp
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #8]
	bl	_sg_next
	mov	x1, x0
	add	x0, sp, #8
	bl	_scatterwalk_start
	add	x0, sp, #8
	mov	x1, x20
	bl	_scatterwalk_clamp
	mov	x22, x0
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	add	x0, sp, #8
	bl	_scatterwalk_map
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_nx_build_sg_list
	mov	x19, x0
	sub	w20, w20, w22
	ldr	w1, [x24]
	mov	x0, x23
	bl	_scatterwalk_unmap
	add	x0, sp, #8
	mov	x1, x22
	bl	_scatterwalk_advance
	ldr	w1, [x24]
	add	x0, sp, #8
	mov	x2, x20
	bl	_scatterwalk_done
	cbz	w20, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x19, LBB0_6
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCATTERWALK_FROM_SG,4,2        ; @SCATTERWALK_FROM_SG
.subsections_via_symbols
