	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spacc_aes_setkey
_spacc_aes_setkey:                      ## @spacc_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, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_crypto_ablkcipher_tfm
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_crypto_tfm_ctx
	movq	%rax, %r15
	movq	_AES_MAX_KEY_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_set_flags
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_AES_KEYSIZE_128@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_AES_KEYSIZE_256@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_7
## %bb.4:
	movl	8(%r15), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.6:
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crypto_sync_skcipher_clear_flags
	movl	8(%r15), %edi
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	callq	_crypto_sync_skcipher_set_flags
	movl	8(%r15), %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_crypto_sync_skcipher_setkey
	movl	%eax, %ebx
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movl	8(%r15), %edi
	callq	_crypto_sync_skcipher_get_flags
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, (%r12)
	testl	%ebx, %ebx
	jne	LBB0_8
LBB0_7:
	movl	4(%r15), %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, (%r15)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_MAX_KEY_SIZE,4,2           ## @AES_MAX_KEY_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AES_KEYSIZE_128,4,2            ## @AES_KEYSIZE_128
	.comm	_AES_KEYSIZE_256,4,2            ## @AES_KEYSIZE_256
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ## @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ## @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_spacc_aes_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spacc_aes_setkey
_spacc_aes_setkey:                      ; @spacc_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	x23, x0
	bl	_crypto_ablkcipher_tfm
	mov	x22, x0
	bl	_crypto_tfm_ctx
Lloh0:
	adrp	x8, _AES_MAX_KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_MAX_KEY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.hs	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_crypto_ablkcipher_set_flags
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_3:
	mov	x21, x0
Lloh9:
	adrp	x8, _AES_KEYSIZE_128@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AES_KEYSIZE_128@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AES_KEYSIZE_256@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AES_KEYSIZE_256@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x21, #8]
	cbz	w0, LBB0_2
; %bb.5:
Lloh15:
	adrp	x24, _CRYPTO_TFM_REQ_MASK@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CRYPTO_TFM_REQ_MASK@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_crypto_sync_skcipher_clear_flags
	ldr	w0, [x21, #8]
	ldr	w8, [x23]
	ldr	w9, [x24]
	and	w1, w9, w8
	bl	_crypto_sync_skcipher_set_flags
	ldr	w0, [x21, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_crypto_sync_skcipher_setkey
	mov	x23, x0
Lloh17:
	adrp	x24, _CRYPTO_TFM_RES_MASK@GOTPAGE
Lloh18:
	ldr	x24, [x24, _CRYPTO_TFM_RES_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	ldr	w0, [x21, #8]
	bl	_crypto_sync_skcipher_get_flags
	ldr	w8, [x24]
	and	w8, w8, w0
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	cbnz	w23, LBB0_7
LBB0_6:
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w23, #0
	str	w19, [x21]
LBB0_7:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_MAX_KEY_SIZE,4,2           ; @AES_MAX_KEY_SIZE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AES_KEYSIZE_128,4,2            ; @AES_KEYSIZE_128
	.comm	_AES_KEYSIZE_256,4,2            ; @AES_KEYSIZE_256
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ; @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ; @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_spacc_aes_setkey
.subsections_via_symbols
