	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_aes_nx_crypt
_ctr_aes_nx_crypt:                      ## @ctr_aes_nx_crypt
	.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	%ecx, %ebx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_crypto_blkcipher_ctx
	movq	%rax, %r15
	movq	24(%rax), %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rax
	addq	$16, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subl	%r12d, %ebx
	movl	%ebx, -44(%rbp)
	movl	8(%r14), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %r8
	movl	%r12d, %r9d
	callq	_nx_build_sg_lists
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 20(%r15)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%rsi)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r13), %edx
	movq	%r15, %rdi
	callq	_nx_hcall_sync
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r13), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movl	(%r14), %edi
	movq	8(%r15), %rsi
	callq	_atomic64_add
	addl	-44(%rbp), %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r12d
	jb	LBB0_1
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ## @CRYPTO_TFM_REQ_MAY_SLEEP
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_ctr_aes_nx_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_aes_nx_crypt
_ctr_aes_nx_crypt:                      ; @ctr_aes_nx_crypt
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_crypto_blkcipher_ctx
	mov	x19, x0
	ldr	x27, [x0, #24]
	bl	_spin_lock_irqsave
	mov	w24, #0
	add	x25, x19, #16
Lloh0:
	adrp	x28, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, w24
	str	w8, [sp, #12]
	ldr	w6, [x27, #8]
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x5, x24
	bl	_nx_build_sg_lists
	cbnz	w0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x28]
	and	w2, w9, w8
	mov	x0, x19
	mov	x1, x25
	bl	_nx_hcall_sync
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x27, #4]
Lloh2:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_atomic_inc
	ldr	w0, [x27]
	ldr	x1, [x19, #8]
	bl	_atomic64_add
	ldr	w8, [sp, #12]
	add	w24, w8, w24
	cmp	w24, w20
	b.lo	LBB0_1
; %bb.6:
	mov	w26, #0
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_9
LBB0_8:
	mov	x26, x0
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x26
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ; @CRYPTO_TFM_REQ_MAY_SLEEP
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_ctr_aes_nx_crypt
.subsections_via_symbols
