	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_set_key        ## -- Begin function ctr_rfc3686_aes_set_key
	.p2align	4, 0x90
_ctr_rfc3686_aes_set_key:               ## @ctr_rfc3686_aes_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	%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	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_crypto_tfm_ctx
	movq	%rax, %r12
	movq	16(%rax), %rdi
	movq	_CTR_RFC3686_NONCE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	leaq	(%r14,%rax,4), %rsi
	callq	_memcpy
	subl	(%r13), %ebx
	cmpl	$32, %ebx
	ja	LBB0_2
## %bb.1:
	movabsq	$4311810048, %rax               ## imm = 0x101010000
	btq	%rbx, %rax
	jae	LBB0_2
## %bb.3:
	movl	%ebx, (%r12)
	movq	8(%r12), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ## @CTR_RFC3686_NONCE_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,8,3 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctr_rfc3686_aes_set_key        ; -- Begin function ctr_rfc3686_aes_set_key
	.p2align	2
_ctr_rfc3686_aes_set_key:               ; @ctr_rfc3686_aes_set_key
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_crypto_tfm_ctx
	mov	x21, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	sub	w8, w22, w2
	add	x1, x19, w8, uxtw #2
	bl	_memcpy
	ldr	w8, [x23]
	sub	w2, w22, w8
	cmp	w2, #32
	mov	w8, #1
	lsl	x8, x8, x2
	mov	x9, #16842752
	movk	x9, #1, lsl #32
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_2
; %bb.1:
	str	w2, [x21]
	ldr	x0, [x21, #8]
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x20]
	orr	x8, x9, x8
	str	x8, [x20]
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ; @CTR_RFC3686_NONCE_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,8,3 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
