	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __n2_crypt_chunk
___n2_crypt_chunk:                      ## @__n2_crypt_chunk
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_crypto_tfm_ctx
	movq	%rax, %r12
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_spu_queue_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, %r10
	movq	8(%r15), %rsi
	movq	24(%r15), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rdi
	movl	4(%r12), %edx
	movq	_OPCODE_ENCRYPT@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rsi
	jne	LBB0_4
## %bb.3:
	movq	_OPCODE_INPLACE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	(%rcx), %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$1
	callq	_control_word_base
	addq	$32, %rsp
	movq	%rax, 56(%r13)
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	movq	$0, 24(%r13)
	movq	%r12, %rdi
	callq	___pa
	movq	%rax, 32(%r13)
	movq	16(%r15), %rax
	movq	%rax, 40(%r13)
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	8(%r15), %rax
LBB0_7:
	movq	%rax, 48(%r13)
	cmpl	$2, (%r15)
	jl	LBB0_12
## %bb.8:
	movl	$1, %r12d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spu_queue_next
	movq	%rax, %r13
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx), %rax
	decq	%rax
	movq	%rax, 56(%r13)
	movq	-8(%rcx,%rbx), %rcx
	movq	%rcx, (%r13)
	incq	%r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r13)
	movups	%xmm0, 24(%r13)
	movups	%xmm0, 8(%r13)
	movslq	(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_9
	jmp	LBB0_10
LBB0_12:
	movq	56(%r13), %rax
LBB0_10:
	movq	_CONTROL_END_OF_BLOCK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%rax, 56(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spu_queue_submit
	movq	%rax, %rcx
	movq	_HV_EOK@GOTPCREL(%rip), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpq	(%rdx), %rcx
	cmovel	%edi, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue_alloc() of %d fails\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OPCODE_ENCRYPT,4,2             ## @OPCODE_ENCRYPT
	.comm	_OPCODE_INPLACE_BIT,4,2         ## @OPCODE_INPLACE_BIT
	.comm	_CONTROL_END_OF_BLOCK,8,3       ## @CONTROL_END_OF_BLOCK
	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___n2_crypt_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __n2_crypt_chunk
___n2_crypt_chunk:                      ; @__n2_crypt_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	bl	_crypto_tfm_ctx
	mov	x22, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_spu_queue_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x24, [x21, #8]
	ldr	x8, [x21, #24]
	ldp	x25, x0, [x8]
	ldr	w2, [x22, #4]
Lloh0:
	adrp	x8, _OPCODE_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPCODE_ENCRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OPCODE_INPLACE_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPCODE_INPLACE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x24, x25
	csel	w9, w9, wzr, eq
	orr	w8, w9, w8
	stp	w23, w8, [sp]
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	mov	w7, #0
	bl	_control_word_base
	str	x0, [x20, #56]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
	stp	xzr, xzr, [x20, #16]
	mov	x0, x22
	bl	___pa
	mov	x8, #0
	ldr	x9, [x21, #16]
	stp	x0, x9, [x20, #32]
	cmp	x24, x25
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
LBB0_3:
	str	x8, [x20, #48]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
	mov	w23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_spu_queue_next
	mov	x20, x0
	ldr	x8, [x21, #24]
	add	x8, x8, x22
	ldp	x10, x9, [x8, #16]
	sub	x8, x9, #1
	str	x8, [x0, #56]
	str	x10, [x0]
	add	x23, x23, #1
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #8]
	stur	q0, [x0, #24]
	stur	q0, [x0, #40]
	ldrsw	x9, [x21]
	add	x22, x22, #16
	cmp	x23, x9
	b.lt	LBB0_5
	b	LBB0_8
LBB0_6:
	ldr	w1, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	ldr	x8, [x20, #56]
LBB0_8:
Lloh11:
	adrp	x9, _CONTROL_END_OF_BLOCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONTROL_END_OF_BLOCK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x8, x8, x9
	str	x8, [x20, #56]
	mov	x0, x19
	mov	x1, x20
	bl	_spu_queue_submit
Lloh14:
	adrp	x8, _HV_EOK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HV_EOK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _EINVAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x0, x8
	csneg	w0, wzr, w9, eq
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue_alloc() of %d fails\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OPCODE_ENCRYPT,4,2             ; @OPCODE_ENCRYPT
	.comm	_OPCODE_INPLACE_BIT,4,2         ; @OPCODE_INPLACE_BIT
	.comm	_CONTROL_END_OF_BLOCK,8,3       ; @CONTROL_END_OF_BLOCK
	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___n2_crypt_chunk
.subsections_via_symbols
