	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr3686_aes_nx_set_key
_ctr3686_aes_nx_set_key:                ## @ctr3686_aes_nx_set_key
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_crypto_tfm_ctx
	movq	_CTR_RFC3686_NONCE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	%ebx, %edx
	jbe	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rax), %edi
	movl	%ebx, %eax
	leaq	(%r14,%rax,4), %rsi
	movq	%rdx, %rax
	shlq	$2, %rax
	subq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	subl	(%r12), %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctr_aes_nx_set_key             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ## @CTR_RFC3686_NONCE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ctr3686_aes_nx_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr3686_aes_nx_set_key
_ctr3686_aes_nx_set_key:                ; @ctr3686_aes_nx_set_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_crypto_tfm_ctx
Lloh0:
	adrp	x22, _CTR_RFC3686_NONCE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CTR_RFC3686_NONCE_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w2, w20
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x0]
	add	x8, x19, w20, uxtw #2
	sub	x1, x8, x2, lsl #2
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w8, [x22]
	sub	w2, w20, w8
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ctr_aes_nx_set_key
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ; @CTR_RFC3686_NONCE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ctr3686_aes_nx_set_key
.subsections_via_symbols
