	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_xtea_crypt_cbc         ## -- Begin function mbedtls_xtea_crypt_cbc
	.p2align	4, 0x90
_mbedtls_xtea_crypt_cbc:                ## @mbedtls_xtea_crypt_cbc
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testb	$7, %r13b
	je	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r12
	movl	%esi, %r15d
	movq	_MBEDTLS_XTEA_DECRYPT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_10
## %bb.7:
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_mbedtls_xtea_crypt_ecb
	movzbl	(%r12), %eax
	xorb	%al, (%rbx)
	movzbl	1(%r12), %eax
	xorb	%al, 1(%rbx)
	movzbl	2(%r12), %eax
	xorb	%al, 2(%rbx)
	movzbl	3(%r12), %eax
	xorb	%al, 3(%rbx)
	movzbl	4(%r12), %eax
	xorb	%al, 4(%rbx)
	movzbl	5(%r12), %eax
	xorb	%al, 5(%rbx)
	movzbl	6(%r12), %eax
	xorb	%al, 6(%rbx)
	movzbl	7(%r12), %eax
	xorb	%al, 7(%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	addq	$8, %r14
	addq	$8, %rbx
	addq	$-8, %r13
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r13), %rcx
	movzbl	(%r12), %eax
	xorb	(%r14,%r13), %al
	movb	%al, (%rbx,%r13)
	movzbl	1(%r12), %eax
	xorb	1(%r14,%r13), %al
	movb	%al, 1(%rbx,%r13)
	movzbl	2(%r12), %eax
	xorb	2(%r14,%r13), %al
	movb	%al, 2(%rbx,%r13)
	movzbl	3(%r12), %eax
	xorb	3(%r14,%r13), %al
	movb	%al, 3(%rbx,%r13)
	movzbl	4(%r12), %eax
	xorb	4(%r14,%r13), %al
	movb	%al, 4(%rbx,%r13)
	movzbl	5(%r12), %eax
	xorb	5(%r14,%r13), %al
	movb	%al, 5(%rbx,%r13)
	movzbl	6(%r12), %eax
	xorb	6(%r14,%r13), %al
	movb	%al, 6(%rbx,%r13)
	movzbl	7(%r12), %eax
	xorb	7(%r14,%r13), %al
	movb	%al, 7(%rbx,%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	callq	_mbedtls_xtea_crypt_ecb
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	addq	$8, %r13
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH,4,2 ## @MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH
	.comm	_MBEDTLS_XTEA_DECRYPT,4,2       ## @MBEDTLS_XTEA_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_xtea_crypt_cbc         ; -- Begin function mbedtls_xtea_crypt_cbc
	.p2align	2
_mbedtls_xtea_crypt_cbc:                ; @mbedtls_xtea_crypt_cbc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	tst	x2, #0x7
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh6:
	adrp	x8, _MBEDTLS_XTEA_DECRYPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_XTEA_DECRYPT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.3:
	cbz	x22, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_mbedtls_xtea_crypt_ecb
	ldrb	w8, [x19]
	ldrb	w9, [x21]
	eor	w8, w9, w8
	strb	w8, [x19]
	ldrb	w8, [x19, #1]
	ldrb	w9, [x21, #1]
	eor	w8, w9, w8
	strb	w8, [x19, #1]
	ldrb	w8, [x19, #2]
	ldrb	w9, [x21, #2]
	eor	w8, w9, w8
	strb	w8, [x19, #2]
	ldrb	w8, [x19, #3]
	ldrb	w9, [x21, #3]
	eor	w8, w9, w8
	strb	w8, [x19, #3]
	ldrb	w8, [x19, #4]
	ldrb	w9, [x21, #4]
	eor	w8, w9, w8
	strb	w8, [x19, #4]
	ldrb	w8, [x19, #5]
	ldrb	w9, [x21, #5]
	eor	w8, w9, w8
	strb	w8, [x19, #5]
	ldrb	w8, [x19, #6]
	ldrb	w9, [x21, #6]
	eor	w8, w9, w8
	strb	w8, [x19, #6]
	ldrb	w8, [x19, #7]
	ldrb	w9, [x21, #7]
	eor	w8, w9, w8
	strb	w8, [x19, #7]
	mov	x1, sp
	mov	x0, x21
	mov	w2, #8
	bl	_memcpy
	add	x20, x20, #8
	add	x19, x19, #8
	subs	x22, x22, #8
	b.ne	LBB0_4
	b	LBB0_7
LBB0_5:
	cbz	x22, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	ldrb	w9, [x21]
	eor	w8, w9, w8
	strb	w8, [x19]
	ldrb	w8, [x20, #1]
	ldrb	w9, [x21, #1]
	eor	w8, w9, w8
	strb	w8, [x19, #1]
	ldrb	w8, [x20, #2]
	ldrb	w9, [x21, #2]
	eor	w8, w9, w8
	strb	w8, [x19, #2]
	ldrb	w8, [x20, #3]
	ldrb	w9, [x21, #3]
	eor	w8, w9, w8
	strb	w8, [x19, #3]
	ldrb	w8, [x20, #4]
	ldrb	w9, [x21, #4]
	eor	w8, w9, w8
	strb	w8, [x19, #4]
	ldrb	w8, [x20, #5]
	ldrb	w9, [x21, #5]
	eor	w8, w9, w8
	strb	w8, [x19, #5]
	ldrb	w8, [x20, #6]
	ldrb	w9, [x21, #6]
	eor	w8, w9, w8
	strb	w8, [x19, #6]
	ldrb	w8, [x20, #7]
	ldrb	w9, [x21, #7]
	eor	w8, w9, w8
	strb	w8, [x19, #7]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x19
	bl	_mbedtls_xtea_crypt_ecb
	mov	x0, x21
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	add	x20, x20, #8
	add	x19, x19, #8
	subs	x22, x22, #8
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH,4,2 ; @MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH
	.comm	_MBEDTLS_XTEA_DECRYPT,4,2       ; @MBEDTLS_XTEA_DECRYPT
.subsections_via_symbols
