	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipher_hw_aria_initkey
_cipher_hw_aria_initkey:                ## @cipher_hw_aria_initkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	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:
	shlq	$3, %rdx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_aria_set_encrypt_key
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	movq	%rbx, 16(%rbx)
	movq	_aria_encrypt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_4:
	shlq	$3, %rdx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_aria_set_decrypt_key
	testl	%eax, %eax
	jns	LBB0_7
LBB0_6:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_ARIA_KEY_SETUP_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	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	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_EVP_R_ARIA_KEY_SETUP_FAILED,4,2 ## @EVP_R_ARIA_KEY_SETUP_FAILED
	.comm	_aria_encrypt,8,3               ## @aria_encrypt
	.no_dead_strip	_cipher_hw_aria_initkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipher_hw_aria_initkey
_cipher_hw_aria_initkey:                ; @cipher_hw_aria_initkey
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	ldr	x9, [x0, #24]
	cbnz	x9, LBB0_4
; %bb.1:
	ldr	w9, [x19]
Lloh0:
	adrp	x10, _EVP_CIPH_ECB_MODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EVP_CIPH_ECB_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_4
; %bb.2:
	lsl	x1, x2, #3
	mov	x0, x8
	mov	x2, x19
	bl	_aria_set_decrypt_key
	tbz	w0, #31, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_LIB_PROV@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	_ERR_raise
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	lsl	x1, x2, #3
	mov	x0, x8
	mov	x2, x19
	bl	_aria_set_encrypt_key
	tbnz	w0, #31, LBB0_3
LBB0_5:
Lloh12:
	adrp	x8, _aria_encrypt@GOTPAGE
Lloh13:
	ldr	x8, [x8, _aria_encrypt@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, x19, [x19, #8]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_EVP_R_ARIA_KEY_SETUP_FAILED,4,2 ; @EVP_R_ARIA_KEY_SETUP_FAILED
	.comm	_aria_encrypt,8,3               ; @aria_encrypt
	.no_dead_strip	_cipher_hw_aria_initkey
.subsections_via_symbols
