	.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
	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, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_crypto_blkcipher_ctx
	movq	%rax, %r15
	movq	16(%rax), %rax
	cmpl	%ebx, (%rax)
	jae	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	24(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r9d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_nx_build_sg_lists
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, 12(%r15)
	je	LBB0_1
## %bb.4:
	movq	%r15, %rsi
	addq	$8, %rsi
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.5:
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r14), %edx
	movq	%r15, %rdi
	callq	_nx_hcall_sync
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	callq	_atomic64_add
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ## @CRYPTO_TFM_REQ_MAY_SLEEP
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_crypto_blkcipher_ctx
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, w21
	b.hs	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	x24, [x0, #24]
	ldr	w5, [x24, #4]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_nx_build_sg_lists
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_1
; %bb.5:
	add	x1, x19, #8
	ldr	w8, [x1]
	cbz	w8, LBB0_1
; %bb.6:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_nx_hcall_sync
	cbnz	w0, LBB0_3
; %bb.7:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_atomic_inc
	ldr	w0, [x24]
	ldr	x1, [x19]
	bl	_atomic64_add
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ; @CRYPTO_TFM_REQ_MAY_SLEEP
	.no_dead_strip	_ctr_aes_nx_crypt
.subsections_via_symbols
