	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_camellia_setkey_enc    ## -- Begin function mbedtls_camellia_setkey_enc
	.p2align	4, 0x90
_mbedtls_camellia_setkey_enc:           ## @mbedtls_camellia_setkey_enc
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$256, %ebx                      ## imm = 0x100
	je	LBB0_5
## %bb.1:
	cmpl	$192, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_4
## %bb.3:
	movl	$3, 8(%r12)
	movl	%ebx, %edx
	shrl	$3, %edx
	leaq	-112(%rbp), %rdi
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	movl	$4, 8(%r12)
	movl	%ebx, %edx
	shrl	$3, %edx
	leaq	-112(%rbp), %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movl	$1, %r14d
	cmpl	$192, %ebx
	jne	LBB0_7
## %bb.6:
	movb	-96(%rbp), %al
	movb	-95(%rbp), %cl
	notb	%al
	movb	%al, -88(%rbp)
	notb	%cl
	movb	%cl, -87(%rbp)
	movb	-94(%rbp), %al
	notb	%al
	movb	%al, -86(%rbp)
	movb	-93(%rbp), %al
	notb	%al
	movb	%al, -85(%rbp)
	movb	-92(%rbp), %al
	notb	%al
	movb	%al, -84(%rbp)
	movb	-91(%rbp), %al
	notb	%al
	movb	%al, -83(%rbp)
	movb	-90(%rbp), %al
	notb	%al
	movb	%al, -82(%rbp)
	movb	-89(%rbp), %al
	notb	%al
	movb	%al, -81(%rbp)
LBB0_7:
	movq	_SIGMA_CHARS@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	16(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	16(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	24(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	24(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	32(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	32(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	40(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movq	(%r12), %rax
	movq	40(%rax), %rsi
	movl	$4, %edx
	xorl	%edi, %edi
	callq	_GET_UINT32_BE
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movzbl	-144(%rbp), %edi
	leaq	-112(%rbp), %r13
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_GET_UINT32_BE
	movzbl	-143(%rbp), %edi
	movl	$4, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-142(%rbp), %edi
	movl	$8, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-141(%rbp), %edi
	movl	$12, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-140(%rbp), %edi
	movl	$16, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-139(%rbp), %edi
	movl	$20, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-138(%rbp), %edi
	movl	$24, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movzbl	-137(%rbp), %edi
	movl	$28, %edx
	movq	%r13, %rsi
	callq	_GET_UINT32_BE
	movb	-140(%rbp), %al
	movb	-139(%rbp), %cl
	xorb	-144(%rbp), %al
	leaq	-136(%rbp), %r13
	movb	%al, -136(%rbp)
	xorb	-143(%rbp), %cl
	movb	%cl, -135(%rbp)
	movb	-138(%rbp), %al
	xorb	-142(%rbp), %al
	leaq	-134(%rbp), %r12
	movb	%al, -134(%rbp)
	movb	-137(%rbp), %al
	xorb	-141(%rbp), %al
	movb	%al, -133(%rbp)
	leaq	-124(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_camellia_feistel
	movq	%r12, %rdi
	leaq	-122(%rbp), %rsi
	movq	%r13, %rdx
	callq	_camellia_feistel
	movb	-144(%rbp), %al
	movb	-143(%rbp), %cl
	xorb	%al, -136(%rbp)
	xorb	%cl, -135(%rbp)
	movb	-142(%rbp), %al
	xorb	%al, -134(%rbp)
	movb	-141(%rbp), %al
	xorb	%al, -133(%rbp)
	movq	%r13, %rdi
	leaq	-120(%rbp), %rsi
	movq	%r12, %rdx
	callq	_camellia_feistel
	movq	%r12, %rdi
	leaq	-118(%rbp), %rsi
	movq	%r13, %rdx
	callq	_camellia_feistel
	xorl	%esi, %esi
	movl	$2, %r12d
	cmpl	$129, %ebx
	jb	LBB0_9
## %bb.8:
	leaq	-114(%rbp), %rbx
	leaq	-116(%rbp), %rsi
	movb	-136(%rbp), %al
	movb	-135(%rbp), %cl
	xorb	-140(%rbp), %al
	leaq	-132(%rbp), %r12
	movb	%al, -132(%rbp)
	xorb	-139(%rbp), %cl
	movb	%cl, -131(%rbp)
	movb	-134(%rbp), %al
	xorb	-138(%rbp), %al
	leaq	-130(%rbp), %r13
	movb	%al, -130(%rbp)
	movb	-133(%rbp), %al
	xorb	-137(%rbp), %al
	movb	%al, -129(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_camellia_feistel
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_camellia_feistel
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_SHIFT_AND_PLACE
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_SHIFT_AND_PLACE
	movl	$3, %r12d
	movl	$2, %esi
LBB0_9:
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SHIFT_AND_PLACE
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_SHIFT_AND_PLACE
	movl	%r14d, %eax
	shll	$2, %r14d
	leal	(%r14,%r14,2), %ecx
	orl	$32, %ecx
	addq	%r15, %rcx
	incq	%rcx
	xorl	%edx, %edx
	movq	_transposes@GOTPCREL(%rip), %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$2, %rdx
	cmpq	$20, %rdx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	movq	(%rdi,%rax,8), %rdi
	movslq	(%rdi,%rdx,4), %rdi
	cmpq	$-1, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r15,%rdi), %ebx
	movb	%bl, -1(%rcx,%rdx)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rsi), %rdi
	movq	(%rdi,%rax,8), %rdi
	movslq	4(%rdi,%rdx,4), %rdi
	cmpq	$-1, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r15,%rdi), %ebx
	movb	%bl, (%rcx,%rdx)
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	movq	_MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH,4,2 ## @MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH
	.comm	_SIGMA_CHARS,8,3                ## @SIGMA_CHARS
	.comm	_transposes,8,3                 ## @transposes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_camellia_setkey_enc    ; -- Begin function mbedtls_camellia_setkey_enc
	.p2align	2
_mbedtls_camellia_setkey_enc:           ; @mbedtls_camellia_setkey_enc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cmp	w21, #256
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #192
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_15
; %bb.3:
	mov	w8, #3
	str	w8, [x22, #8]
	lsr	w2, w21, #3
	add	x0, sp, #40
	mov	x1, x20
	bl	_memcpy
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	mov	w8, #4
	str	w8, [x22, #8]
	lsr	w2, w21, #3
	add	x0, sp, #40
	mov	x1, x20
	bl	_memcpy
	cmp	w21, #192
	b.ne	LBB0_6
; %bb.5:
	ldr	d0, [sp, #56]
	mvn.8b	v0, v0
	str	d0, [sp, #64]
LBB0_6:
	mov	w20, #1
LBB0_7:
Lloh3:
	adrp	x25, _SIGMA_CHARS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SIGMA_CHARS@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x1, [x8]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	add	x27, sp, #28
	add	x23, x27, #2
	ldr	x8, [x25]
	ldr	x1, [x8, #8]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #8]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	add	x22, x27, #4
	ldr	x8, [x25]
	ldr	x1, [x8, #16]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #16]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	add	x24, x27, #6
	ldr	x8, [x25]
	ldr	x1, [x8, #24]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #24]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #32]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #32]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #40]
	mov	w0, #0
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldr	x8, [x25]
	ldr	x1, [x8, #40]
	mov	w0, #0
	mov	w2, #4
	bl	_GET_UINT32_BE
	add	x28, sp, #12
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldrb	w0, [sp, #12]
	add	x1, sp, #40
	mov	x2, #0
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #13]
	add	x1, sp, #40
	mov	w2, #4
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #14]
	add	x1, sp, #40
	mov	w2, #8
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #15]
	add	x1, sp, #40
	mov	w2, #12
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #16]
	add	x1, sp, #40
	mov	w2, #16
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #17]
	add	x1, sp, #40
	mov	w2, #20
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #18]
	add	x1, sp, #40
	mov	w2, #24
	bl	_GET_UINT32_BE
	ldrb	w0, [sp, #19]
	add	x1, sp, #40
	mov	w2, #28
	bl	_GET_UINT32_BE
	ldrb	w8, [sp, #12]
	ldrb	w9, [sp, #16]
	eor	w8, w9, w8
	add	x25, x28, #8
	strb	w8, [sp, #20]
	ldrb	w8, [sp, #13]
	ldrb	w9, [sp, #17]
	eor	w8, w9, w8
	strb	w8, [sp, #21]
	ldrb	w8, [sp, #14]
	ldrb	w9, [sp, #18]
	eor	w8, w9, w8
	add	x26, x28, #10
	strb	w8, [sp, #22]
	ldrb	w8, [sp, #15]
	ldrb	w9, [sp, #19]
	eor	w8, w9, w8
	strb	w8, [sp, #23]
	add	x1, sp, #28
	mov	x0, x25
	mov	x2, x26
	bl	_camellia_feistel
	mov	x0, x26
	mov	x1, x23
	mov	x2, x25
	bl	_camellia_feistel
	ldrb	w8, [sp, #12]
	ldrb	w9, [sp, #20]
	eor	w8, w9, w8
	strb	w8, [sp, #20]
	ldrb	w8, [sp, #13]
	ldrb	w9, [sp, #21]
	eor	w8, w9, w8
	strb	w8, [sp, #21]
	ldrb	w8, [sp, #14]
	ldrb	w9, [sp, #22]
	eor	w8, w9, w8
	strb	w8, [sp, #22]
	ldrb	w8, [sp, #15]
	ldrb	w9, [sp, #23]
	eor	w8, w9, w8
	strb	w8, [sp, #23]
	mov	x0, x25
	mov	x1, x22
	mov	x2, x26
	bl	_camellia_feistel
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_camellia_feistel
	cmp	w21, #129
	b.lo	LBB0_9
; %bb.8:
	add	x21, x27, #10
	add	x1, x27, #8
	ldrb	w8, [sp, #16]
	ldrb	w9, [sp, #20]
	eor	w8, w9, w8
	add	x22, x28, #12
	strb	w8, [sp, #24]
	ldrb	w8, [sp, #17]
	ldrb	w9, [sp, #21]
	eor	w8, w9, w8
	strb	w8, [sp, #25]
	ldrb	w8, [sp, #18]
	ldrb	w9, [sp, #22]
	eor	w8, w9, w8
	add	x23, x28, #14
	strb	w8, [sp, #26]
	ldrb	w8, [sp, #19]
	ldrb	w9, [sp, #23]
	eor	w8, w9, w8
	strb	w8, [sp, #27]
	mov	x0, x22
	mov	x2, x23
	bl	_camellia_feistel
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_camellia_feistel
	mov	x0, x20
	mov	w1, #0
	bl	_SHIFT_AND_PLACE
	mov	x0, x20
	mov	w1, #1
	bl	_SHIFT_AND_PLACE
	mov	w21, #3
	mov	w1, #2
	b	LBB0_10
LBB0_9:
	mov	w1, #0
	mov	w21, #2
LBB0_10:
	mov	x0, x20
	bl	_SHIFT_AND_PLACE
	mov	x0, x20
	mov	x1, x21
	bl	_SHIFT_AND_PLACE
	mov	x8, #0
	mov	w9, w20
	bfi	w20, w20, #1, #1
	lsl	w10, w20, #2
	add	x10, x19, x10
	add	x10, x10, #32
Lloh5:
	adrp	x11, _transposes@GOTPAGE
Lloh6:
	ldr	x11, [x11, _transposes@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	cmp	x8, #20
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	x12, [x12, x9, lsl #3]
	ldrsw	x12, [x12, x8, lsl #2]
	cmn	w12, #1
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w12, [x19, x12]
	strb	w12, [x10, x8]
	b	LBB0_11
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH,4,2 ; @MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH
	.comm	_SIGMA_CHARS,8,3                ; @SIGMA_CHARS
	.comm	_transposes,8,3                 ; @transposes
.subsections_via_symbols
