	.file	"498444.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: expected a number but got %#010x\n"
	.align 8
.LC1:
	.string	"Error: expected a boolean but got %#010x\n"
.LC2:
	.string	"Error: arithmetic overflow."
	.align 8
.LC3:
	.string	"Error: expected a tuple but got %#010x\n"
.LC4:
	.string	"Error: tuple index too small."
.LC5:
	.string	"Error: tuple index too large."
	.text
	.globl	error
	.type	error, @function
error:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L4:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L3
.L5:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L6:
	cmp	DWORD PTR -4[rbp], 4
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	jmp	.L3
.L7:
	cmp	DWORD PTR -4[rbp], 5
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
.L3:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.globl	is_number
	.type	is_number, @function
is_number:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_number, .-is_number
	.globl	is_boolean
	.type	is_boolean, @function
is_boolean:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 2147483647
	cmp	eax, 2147483647
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	is_boolean, .-is_boolean
	.globl	is_tuple
	.type	is_tuple, @function
is_tuple:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 7
	cmp	eax, 1
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_tuple, .-is_tuple
	.section	.rodata
.LC6:
	.string	"%d"
	.text
	.globl	print_number
	.type	print_number, @function
print_number:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_number, .-print_number
	.section	.rodata
.LC7:
	.string	"true"
.LC8:
	.string	"false"
	.text
	.globl	print_boolean
	.type	print_boolean, @function
print_boolean:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], -1
	jne	.L16
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L16:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	print_boolean, .-print_boolean
	.section	.rodata
.LC9:
	.string	", "
	.text
	.globl	print_tuple
	.type	print_tuple, @function
print_tuple:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	edi, 40
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	print_val
	mov	DWORD PTR -16[rbp], 2
	jmp	.L20
.L21:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	print_val
	add	DWORD PTR -16[rbp], 1
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jge	.L21
	mov	edi, 41
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_tuple, .-print_tuple
	.section	.rodata
.LC10:
	.string	"Unknown value: %#010x"
	.text
	.globl	print_val
	.type	print_val, @function
print_val:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_number
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	print_number
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_boolean
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	print_boolean
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_tuple
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	print_tuple
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print_val, .-print_val
	.globl	print
	.type	print, @function
print:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	print_val
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	print, .-print
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	esi, 4
	mov	edi, 100000
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	our_code_starts_here@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	print
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"498444.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: expected a number but got %#010x\012\000"
	.align	2
.LC1:
	.ascii	"Error: expected a boolean but got %#010x\012\000"
	.align	2
.LC2:
	.ascii	"Error: arithmetic overflow.\000"
	.align	2
.LC3:
	.ascii	"Error: expected a tuple but got %#010x\012\000"
	.align	2
.LC4:
	.ascii	"Error: tuple index too small.\000"
	.align	2
.LC5:
	.ascii	"Error: tuple index too large.\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fprintf
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L4
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	fprintf
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L5
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L8+12
	bl	fwrite
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L6
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L8+16
	mov	r0, r3
	bl	fprintf
	b	.L3
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L7
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L8+20
	bl	fwrite
	b	.L3
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bne	.L3
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L8+24
	bl	fwrite
.L3:
	mov	r0, #1
	bl	exit
.L9:
	.align	2
.L8:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	error, .-error
	.align	2
	.global	is_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_number, %function
is_number:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_number, .-is_number
	.align	2
	.global	is_boolean
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_boolean, %function
is_boolean:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	bic	r3, r3, #-2147483648
	cmn	r3, #-2147483647
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_boolean, .-is_boolean
	.align	2
	.global	is_tuple
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_tuple, %function
is_tuple:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #7
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_tuple, .-is_tuple
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d\000"
	.text
	.align	2
	.global	print_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_number, %function
print_number:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.size	print_number, .-print_number
	.section	.rodata
	.align	2
.LC7:
	.ascii	"true\000"
	.align	2
.LC8:
	.ascii	"false\000"
	.text
	.align	2
	.global	print_boolean
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_boolean, %function
print_boolean:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L23
	bl	printf
	b	.L22
.L20:
	ldr	r0, .L23+4
	bl	printf
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	.LC8
	.size	print_boolean, .-print_boolean
	.section	.rodata
	.align	2
.LC9:
	.ascii	", \000"
	.text
	.align	2
	.global	print_tuple
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_tuple, %function
print_tuple:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r0, #40
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_val
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L26
.L27:
	ldr	r0, .L28
	bl	printf
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_val
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L27
	mov	r0, #41
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC9
	.size	print_tuple, .-print_tuple
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Unknown value: %#010x\000"
	.text
	.align	2
	.global	print_val
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_val, %function
print_val:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	is_number
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r0, [fp, #-8]
	bl	print_number
	b	.L32
.L31:
	ldr	r0, [fp, #-8]
	bl	is_boolean
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-8]
	bl	print_boolean
	b	.L32
.L33:
	ldr	r0, [fp, #-8]
	bl	is_tuple
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r0, [fp, #-8]
	bl	print_tuple
	b	.L32
.L34:
	ldr	r1, [fp, #-8]
	ldr	r0, .L36
	bl	printf
.L32:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC10
	.size	print_val, .-print_val
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	print_val
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print, .-print
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r1, #4
	ldr	r0, .L42
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	our_code_starts_here
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	print
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	100000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
