	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipher_hw_camellia_initkey
_cipher_hw_camellia_initkey:            ## @cipher_hw_camellia_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	%rdi, 32(%rdi)
	leaq	(,%rdx,8), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_Camellia_set_key
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	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
	jmp	LBB0_11
LBB0_4:
	movq	_EVP_CIPH_ECB_MODE@GOTPCREL(%rip), %rcx
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %r14d
	je	LBB0_12
## %bb.5:
	cmpl	%eax, %r14d
	je	LBB0_12
LBB0_6:
	movq	_Camellia_encrypt@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	cmpl	%eax, %r14d
	jne	LBB0_9
## %bb.8:
	movq	_Camellia_cbc_encrypt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	%rax, 8(%rbx)
	movl	$1, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_Camellia_decrypt@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.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	_EVP_CIPH_ECB_MODE,4,2          ## @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,4,2          ## @EVP_CIPH_CBC_MODE
	.comm	_Camellia_encrypt,8,3           ## @Camellia_encrypt
	.comm	_Camellia_cbc_encrypt,8,3       ## @Camellia_cbc_encrypt
	.comm	_Camellia_decrypt,8,3           ## @Camellia_decrypt
	.no_dead_strip	_cipher_hw_camellia_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_camellia_initkey
_cipher_hw_camellia_initkey:            ; @cipher_hw_camellia_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	w20, [x0]
	str	x0, [x0, #32]
	lsl	x1, x2, #3
	mov	x0, x8
	mov	x2, x19
	bl	_Camellia_set_key
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EVP_R_ARIA_KEY_SETUP_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_R_ARIA_KEY_SETUP_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _EVP_CIPH_ECB_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_CIPH_ECB_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
Lloh12:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, w9
	ccmp	w20, w8, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x9, _Camellia_decrypt@GOTPAGE
Lloh16:
	ldr	x9, [x9, _Camellia_decrypt@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x9, _Camellia_encrypt@GOTPAGE
Lloh18:
	ldr	x9, [x9, _Camellia_encrypt@GOTPAGEOFF]
LBB0_7:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _Camellia_cbc_encrypt@GOTPAGE
Lloh20:
	ldr	x10, [x10, _Camellia_cbc_encrypt@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	w20, w8
	csel	x8, x10, xzr, eq
	stp	x8, x9, [x19, #8]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.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	_EVP_CIPH_ECB_MODE,4,2          ; @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,4,2          ; @EVP_CIPH_CBC_MODE
	.comm	_Camellia_encrypt,8,3           ; @Camellia_encrypt
	.comm	_Camellia_cbc_encrypt,8,3       ; @Camellia_cbc_encrypt
	.comm	_Camellia_decrypt,8,3           ; @Camellia_decrypt
	.no_dead_strip	_cipher_hw_camellia_initkey
.subsections_via_symbols
