	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camellia_set_key
_camellia_set_key:                      ## @camellia_set_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	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_crypto_tfm_ctx
	cmpl	$32, %ebx
	ja	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	movabsq	$4311810048, %rdx               ## imm = 0x101010000
	btq	%rcx, %rdx
	jae	LBB0_2
## %bb.3:
	movl	%ebx, (%rax)
	xorl	%r15d, %r15d
	cmpl	$32, %ebx
	je	LBB0_8
## %bb.4:
	cmpl	$24, %ebx
	je	LBB0_7
## %bb.5:
	cmpl	$16, %ebx
	jne	LBB0_9
## %bb.6:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_camellia_setup128
	jmp	LBB0_9
LBB0_2:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_camellia_setup256
	jmp	LBB0_9
LBB0_7:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_camellia_setup192
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_camellia_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camellia_set_key
_camellia_set_key:                      ; @camellia_set_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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_crypto_tfm_ctx
	cmp	w20, #32
	b.hi	LBB0_6
; %bb.1:
	mov	w8, w20
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #16842752
	movk	x9, #1, lsl #32
	tst	x8, x9
	b.eq	LBB0_6
; %bb.2:
	str	w20, [x0]
	cmp	w20, #32
	b.eq	LBB0_7
; %bb.3:
	cmp	w20, #24
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #16
	b.ne	LBB0_9
; %bb.5:
	ldr	w1, [x0, #4]
	mov	x0, x19
	bl	_camellia_setup128
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	ldr	w1, [x0, #4]
	mov	x0, x19
	bl	_camellia_setup256
	b	LBB0_9
LBB0_8:
	ldr	w1, [x0, #4]
	mov	x0, x19
	bl	_camellia_setup192
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_camellia_set_key
.subsections_via_symbols
