	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_av_tea_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_TEA_NUM_TESTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_tea_test_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r13, %rdi
	movl	$64, %edx
	callq	_av_tea_init
	movq	_tea_test_pt@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rdx
	movq	_tea_test_ct@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rcx
	movq	%r13, %rdi
	leaq	-56(%rbp), %r14
	movq	%r14, %rsi
	movl	$1, %r8d
	xorl	%r9d, %r9d
	leaq	L_.str(%rip), %rax
	pushq	%rax
	pushq	$0
	callq	_test_tea
	addq	$16, %rsp
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$1, %r8d
	xorl	%r9d, %r9d
	leaq	L_.str.1(%rip), %rax
	pushq	%rax
	pushq	$1
	callq	_test_tea
	addq	$16, %rsp
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r13, %rdi
	leaq	-96(%rbp), %r14
	movq	%r14, %rsi
	leaq	_main.src(%rip), %r12
	movq	%r12, %rdx
	movl	$4, %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_av_tea_crypt
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	$4, %r8d
	movq	%rbx, %r9
	leaq	L_.str.3(%rip), %rax
	pushq	%rax
	pushq	$1
	callq	_test_tea
	addq	$16, %rsp
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	$4, %r8d
	movq	%rbx, %r9
	leaq	L_.str.4(%rip), %rax
	pushq	%rax
	pushq	$1
	callq	_test_tea
	movq	_TEA_NUM_TESTS@GOTPCREL(%rip), %rax
	addq	$16, %rsp
	incq	%r15
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r13, %rdi
	callq	_av_free
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$1, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @main.src
_main.src:
	.asciz	"HelloWorldHelloWorldHelloWorld\000"

	.comm	_TEA_NUM_TESTS,4,2              ## @TEA_NUM_TESTS
	.comm	_tea_test_key,8,3               ## @tea_test_key
	.comm	_tea_test_pt,8,3                ## @tea_test_pt
	.comm	_tea_test_ct,8,3                ## @tea_test_ct
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encryption"

L_.str.1:                               ## @.str.1
	.asciz	"decryption"

L_.str.2:                               ## @.str.2
	.asciz	"HALLO123"

L_.str.3:                               ## @.str.3
	.asciz	"CBC decryption"

L_.str.4:                               ## @.str.4
	.asciz	"CBC inplace decryption"

L_str:                                  ## @str
	.asciz	"Test encryption/decryption success."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	bl	_av_tea_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _TEA_NUM_TESTS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TEA_NUM_TESTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x27, #0
Lloh5:
	adrp	x28, _tea_test_pt@GOTPAGE
Lloh6:
	ldr	x28, [x28, _tea_test_pt@GOTPAGEOFF]
Lloh7:
	adrp	x26, _tea_test_ct@GOTPAGE
Lloh8:
	ldr	x26, [x26, _tea_test_ct@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh11:
	adrp	x23, _main.src@PAGE
Lloh12:
	add	x23, x23, _main.src@PAGEOFF
Lloh13:
	adrp	x24, l_.str.3@PAGE
Lloh14:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh15:
	adrp	x25, l_.str.4@PAGE
Lloh16:
	add	x25, x25, l_.str.4@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh17:
	adrp	x8, _tea_test_key@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tea_test_key@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w1, [x8, x27, lsl #2]
	mov	x0, x19
	mov	w2, #64
	bl	_av_tea_init
	ldr	x8, [x28]
	lsl	x20, x27, #3
	ldr	x2, [x8, x20]
	ldr	x8, [x26]
	ldr	x3, [x8, x20]
	add	x1, sp, #80
	mov	x0, x19
	mov	w4, #1
	mov	x5, #0
	mov	w6, #0
Lloh20:
	adrp	x7, l_.str@PAGE
Lloh21:
	add	x7, x7, l_.str@PAGEOFF
	bl	_test_tea
	ldr	x8, [x26]
	ldr	x2, [x8, x20]
	ldr	x8, [x28]
	ldr	x3, [x8, x20]
	add	x1, sp, #80
	mov	x0, x19
	mov	w4, #1
	mov	x5, #0
	mov	w6, #1
Lloh22:
	adrp	x7, l_.str.1@PAGE
Lloh23:
	add	x7, x7, l_.str.1@PAGEOFF
	bl	_test_tea
	add	x0, sp, #72
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	add	x1, sp, #40
	add	x4, sp, #72
	mov	x0, x19
	mov	x2, x23
	mov	w3, #4
	mov	w5, #0
	bl	_av_tea_crypt
	add	x0, sp, #72
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	add	x1, sp, #8
	add	x2, sp, #40
	add	x5, sp, #72
	mov	x0, x19
	mov	x3, x23
	mov	w4, #4
	mov	w6, #1
	mov	x7, x24
	bl	_test_tea
	add	x0, sp, #72
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	add	x1, sp, #40
	add	x2, sp, #40
	add	x5, sp, #72
	mov	x0, x19
	mov	x3, x23
	mov	w4, #4
	mov	w6, #1
	mov	x7, x25
	bl	_test_tea
	add	x27, x27, #1
	ldrsw	x8, [x21]
	cmp	x27, x8
	b.lt	LBB0_3
LBB0_4:
Lloh24:
	adrp	x0, l_str@PAGE
Lloh25:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_av_free
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldr	x8, [sp, #88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_main.src:                              ; @main.src
	.asciz	"HelloWorldHelloWorldHelloWorld\000"

	.comm	_TEA_NUM_TESTS,4,2              ; @TEA_NUM_TESTS
	.comm	_tea_test_key,8,3               ; @tea_test_key
	.comm	_tea_test_pt,8,3                ; @tea_test_pt
	.comm	_tea_test_ct,8,3                ; @tea_test_ct
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encryption"

l_.str.1:                               ; @.str.1
	.asciz	"decryption"

l_.str.2:                               ; @.str.2
	.asciz	"HALLO123"

l_.str.3:                               ; @.str.3
	.asciz	"CBC decryption"

l_.str.4:                               ; @.str.4
	.asciz	"CBC inplace decryption"

l_str:                                  ; @str
	.asciz	"Test encryption/decryption success."

.subsections_via_symbols
