	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_build_sg_lists              ## -- Begin function nx_build_sg_lists
	.p2align	4, 0x90
_nx_build_sg_lists:                     ## @nx_build_sg_lists
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, %r14
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rbp), %r13
	movl	(%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_u64@GOTPCREL(%rip), %r12
	movq	32(%rdi), %rax
	movl	(%rax), %esi
	movq	_nx_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$2, %edx
	movl	(%r12), %edi
	callq	_min_t
	movl	%eax, %esi
	movl	(%r12), %edi
	movq	32(%r15), %rax
	movl	4(%rax), %eax
	movq	_NX_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %edx
	callq	_min_t
	movq	%r13, %rdi
	movl	%eax, %r13d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_2:
	movl	(%r12), %edi
	movl	(%r14), %esi
	movq	32(%r15), %rax
	movl	4(%rax), %edx
	callq	_min_t
	movl	%eax, (%r14)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_nx_walk_and_build
	movq	%rax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_nx_walk_and_build
	movl	(%r14), %ecx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	decl	%ebx
	andl	%ecx, %ebx
	xorl	%edx, %edx
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	cmovael	%edx, %ebx
	movq	24(%r15), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_trim_sg_list
	movq	%rax, 16(%r15)
	movq	(%r15), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_trim_sg_list
	movq	%rax, 8(%r15)
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_u64,4,2                        ## @u64
	.comm	_nx_driver,4,2                  ## @nx_driver
	.comm	_NX_PAGE_SIZE,4,2               ## @NX_PAGE_SIZE
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_build_sg_lists              ; -- Begin function nx_build_sg_lists
	.p2align	2
_nx_build_sg_lists:                     ; @nx_build_sg_lists
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x26, x6
	mov	x21, x5
	mov	x20, x4
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	x23, x2
	mov	x27, x1
	mov	x19, x0
	ldr	w8, [x4]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x25, [x0]
Lloh0:
	adrp	x22, _u64@GOTPAGE
Lloh1:
	ldr	x22, [x22, _u64@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	x24, x8, [x19, #24]
	ldr	w1, [x8]
Lloh2:
	adrp	x8, _nx_driver@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nx_driver@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	asr	w2, w8, #2
	bl	_min_t
	mov	x1, x0
	ldr	w0, [x22]
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #4]
Lloh5:
	adrp	x9, _NX_PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NX_PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	bl	_min_t
	mov	x28, x0
	cbz	x26, LBB0_2
; %bb.1:
	ldr	w1, [x27]
Lloh8:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x26
	bl	_memcpy
LBB0_2:
	ldr	w0, [x22]
	ldr	w1, [x20]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, #4]
	bl	_min_t
	str	w0, [x20]
	mov	x0, x25
	mov	x1, x28
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	bl	_nx_walk_and_build
	mov	x23, x0
	mov	x0, x24
	mov	x1, x28
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	mov	x3, x21
	mov	x4, x20
	bl	_nx_walk_and_build
	mov	x1, x0
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _AES_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w9, w9, w8
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w8, w10
	csel	w21, w9, wzr, lo
	ldr	x0, [x19, #24]
	mov	x2, x21
	mov	x3, x20
	bl	_trim_sg_list
	str	x0, [x19, #16]
	ldr	x0, [x19]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_trim_sg_list
	str	x0, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_u64,4,2                        ; @u64
	.comm	_nx_driver,4,2                  ; @nx_driver
	.comm	_NX_PAGE_SIZE,4,2               ; @NX_PAGE_SIZE
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
