	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2_compute_chunks
_n2_compute_chunks:                     ## @n2_compute_chunks
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ablkcipher_request_ctx
	movq	%rax, %rbx
	leaq	56(%rax), %r13
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%r13, %rdi
	callq	_ablkcipher_walk_init
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ablkcipher_walk_phys
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_22:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, 16(%r15)
	xorl	%eax, %eax
	xorl	%esi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, (%rcx,%rdx)
	movl	%ebx, 8(%rcx,%rdx)
	incq	%rax
	movq	%rax, 8(%r15)
	movslq	%ebx, %rax
	addq	%rax, %r14
	addl	%ebx, %esi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	subl	%ebx, %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ablkcipher_walk_done
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r12d
	movl	88(%rbx), %edi
	callq	_page_to_phys
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%rax, %r15
	addq	80(%rbx), %r15
	movl	72(%rbx), %edi
	callq	_page_to_phys
	addq	64(%rbx), %rax
	xorl	%r13d, %r13d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	cmpq	%rax, %r15
	movq	-112(%rbp), %r15                ## 8-byte Reload
	sete	%r13b
	movl	60(%rbx), %esi
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_cipher_descriptor_len
	movl	%eax, %ebx
	movq	8(%r15), %rax
	testq	%rax, %rax
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r12d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %r14
	jne	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_N2_CHUNK_ARR_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%ebx, %ecx
	cmpl	$65537, %ecx                    ## imm = 0x10001
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 24(%r15)
	addq	$32, %r15
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%r15), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_15
	jmp	LBB0_14
LBB0_3:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_20:
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	je	LBB0_22
## %bb.21:
	movq	%r13, 24(%r15)
	addq	$32, %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	jmp	LBB0_22
LBB0_16:
	movl	%eax, %r12d
	jmp	LBB0_22
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.18:
	negl	%r12d
	jmp	LBB0_22
LBB0_19:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_N2_CHUNK_ARR_LEN,8,3           ## @N2_CHUNK_ARR_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_n2_compute_chunks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2_compute_chunks
_n2_compute_chunks:                     ; @n2_compute_chunks
	.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	x20, x0
	bl	_ablkcipher_request_ctx
	mov	x19, x0
	add	x24, x0, #56
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	mov	x0, x24
	bl	_ablkcipher_walk_init
	mov	x0, x20
	mov	x1, x24
	bl	_ablkcipher_walk_phys
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	mov	w26, #0
	mov	w25, #0
	mov	x22, x19
	str	xzr, [x22, #8]!
	stp	xzr, xzr, [x22, #8]
	mov	x28, #-1
	stp	x24, x20, [sp]                  ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	mov	w25, #0
	str	x20, [x22, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22, #40]
	add	x9, x9, x8, lsl #4
	str	x27, [x9]
	str	w24, [x9, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	add	x28, x20, w24, sxtw
	add	w25, w25, w24
	sub	w2, w23, w24
	ldp	x24, x0, [sp]                   ; 16-byte Folded Reload
	mov	x1, x24
	bl	_ablkcipher_walk_done
	mov	x26, x21
	cbnz	w0, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x24]
	cbz	w23, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #88]
	bl	_page_to_phys
	ldr	x8, [x19, #80]
	add	x27, x8, x0
	ldr	w0, [x19, #72]
	bl	_page_to_phys
	ldr	x8, [x19, #64]
	add	x20, x8, x0
	cmp	x27, x20
	cset	w21, eq
	ldr	w1, [x19, #60]
	mov	x0, x23
	bl	_cipher_descriptor_len
	mov	x24, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w21
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w26, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, x28
	b.ne	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x9, _N2_CHUNK_ARR_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _N2_CHUNK_ARR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w24, w25
	cmp	w9, #16, lsl #12                ; =65536
	b.ls	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x28, [x22, #24]
	add	x0, x22, #32
	mov	x1, x19
	bl	_list_add_tail
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	add	x0, x0, #32
	bl	_INIT_LIST_HEAD
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_13:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.14:
	neg	w0, w8
	b	LBB0_19
LBB0_15:
	mov	x22, #0
LBB0_16:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_18
; %bb.17:
	str	x28, [x22, #24]
	add	x0, x22, #32
	mov	x1, x19
	bl	_list_add_tail
LBB0_18:
	mov	w0, #0
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_N2_CHUNK_ARR_LEN,8,3           ; @N2_CHUNK_ARR_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_n2_compute_chunks
.subsections_via_symbols
