	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aria_init_key
_aria_init_key:                         ## @aria_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_EVP_CIPHER_CTX_mode
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.1:
	movq	_EVP_CIPH_ECB_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_key_length
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %r15d
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_get_cipher_data
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_aria_set_encrypt_key
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_key_length
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %r15d
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_get_cipher_data
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_aria_set_decrypt_key
LBB0_5:
	movl	$1, %ecx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movq	_EVP_F_ARIA_INIT_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_ARIA_KEY_SETUP_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_ECB_MODE,4,2          ## @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,4,2          ## @EVP_CIPH_CBC_MODE
	.comm	_EVP_F_ARIA_INIT_KEY,4,2        ## @EVP_F_ARIA_INIT_KEY
	.comm	_EVP_R_ARIA_KEY_SETUP_FAILED,4,2 ## @EVP_R_ARIA_KEY_SETUP_FAILED
	.no_dead_strip	_aria_init_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aria_init_key
_aria_init_key:                         ; @aria_init_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	x21, x3
	mov	x19, x1
	mov	x20, x0
	bl	_EVP_CIPHER_CTX_mode
	cbnz	w21, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EVP_CIPH_ECB_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_CIPH_ECB_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_key_length
	lsl	w21, w0, #3
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_get_cipher_data
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_aria_set_decrypt_key
	tbz	w0, #31, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EVP_F_ARIA_INIT_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_F_ARIA_INIT_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _EVP_R_ARIA_KEY_SETUP_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_R_ARIA_KEY_SETUP_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_key_length
	lsl	w21, w0, #3
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_get_cipher_data
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_aria_set_encrypt_key
	tbnz	w0, #31, LBB0_3
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_ECB_MODE,4,2          ; @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,4,2          ; @EVP_CIPH_CBC_MODE
	.comm	_EVP_F_ARIA_INIT_KEY,4,2        ; @EVP_F_ARIA_INIT_KEY
	.comm	_EVP_R_ARIA_KEY_SETUP_FAILED,4,2 ; @EVP_R_ARIA_KEY_SETUP_FAILED
	.no_dead_strip	_aria_init_key
.subsections_via_symbols
