	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2_aes_setkey
_n2_aes_setkey:                         ## @n2_aes_setkey
	.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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_crypto_ablkcipher_tfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_tfm_ctx
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_n2_cipher_alg
	movq	_ENC_TYPE_CHAINING_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	%ecx, (%r13)
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.n2_aes_setkey(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r13)
	movl	%r12d, 4(%r13)
	movl	8(%r13), %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_crypto_ablkcipher_set_flags
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENC_TYPE_CHAINING_MASK,4,2     ## @ENC_TYPE_CHAINING_MASK
	.comm	_ENC_TYPE_ALG_AES128,4,2        ## @ENC_TYPE_ALG_AES128
	.comm	_ENC_TYPE_ALG_AES192,4,2        ## @ENC_TYPE_ALG_AES192
	.comm	_ENC_TYPE_ALG_AES256,4,2        ## @ENC_TYPE_ALG_AES256
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_n2_aes_setkey
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.n2_aes_setkey
l_switch.table.n2_aes_setkey:
	.quad	_ENC_TYPE_ALG_AES256
	.quad	_ENC_TYPE_ALG_AES192
	.quad	_ENC_TYPE_ALG_AES128

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2_aes_setkey
_n2_aes_setkey:                         ; @n2_aes_setkey
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_crypto_ablkcipher_tfm
	mov	x23, x0
	bl	_crypto_tfm_ctx
	mov	x22, x0
	mov	x0, x23
	bl	_n2_cipher_alg
Lloh0:
	adrp	x8, _ENC_TYPE_CHAINING_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENC_TYPE_CHAINING_MASK@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
	str	w8, [x22]
	sub	w9, w19, #128
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, l_switch.table.n2_aes_setkey@PAGE
Lloh4:
	add	x10, x10, l_switch.table.n2_aes_setkey@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w19, [x22]
	ldr	w0, [x22, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_crypto_ablkcipher_set_flags
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENC_TYPE_CHAINING_MASK,4,2     ; @ENC_TYPE_CHAINING_MASK
	.comm	_ENC_TYPE_ALG_AES128,4,2        ; @ENC_TYPE_ALG_AES128
	.comm	_ENC_TYPE_ALG_AES192,4,2        ; @ENC_TYPE_ALG_AES192
	.comm	_ENC_TYPE_ALG_AES256,4,2        ; @ENC_TYPE_ALG_AES256
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_n2_aes_setkey
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.n2_aes_setkey
l_switch.table.n2_aes_setkey:
	.quad	_ENC_TYPE_ALG_AES256
	.quad	_ENC_TYPE_ALG_AES192
	.quad	_ENC_TYPE_ALG_AES128

.subsections_via_symbols
