	.file	"176707049.c"
	.intel_syntax noprefix
	.text
	.globl	ones
	.type	ones, @function
ones:
.LFB0:
	.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]
	sub	eax, 48
	cmp	eax, 9
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L13:
	mov	eax, 0
	jmp	.L14
.L12:
	mov	eax, 3
	jmp	.L14
.L11:
	mov	eax, 3
	jmp	.L14
.L10:
	mov	eax, 5
	jmp	.L14
.L9:
	mov	eax, 4
	jmp	.L14
.L8:
	mov	eax, 4
	jmp	.L14
.L7:
	mov	eax, 3
	jmp	.L14
.L6:
	mov	eax, 5
	jmp	.L14
.L5:
	mov	eax, 5
	jmp	.L14
.L3:
	mov	eax, 4
	jmp	.L14
.L2:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ones, .-ones
	.globl	tens
	.type	tens, @function
tens:
.LFB1:
	.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]
	sub	eax, 48
	cmp	eax, 9
	ja	.L16
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L18[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L18[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L18:
	.long	.L26-.L18
	.long	.L16-.L18
	.long	.L25-.L18
	.long	.L24-.L18
	.long	.L23-.L18
	.long	.L22-.L18
	.long	.L21-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L17-.L18
	.text
.L26:
	mov	eax, 0
	jmp	.L27
.L25:
	mov	eax, 6
	jmp	.L27
.L24:
	mov	eax, 6
	jmp	.L27
.L23:
	mov	eax, 5
	jmp	.L27
.L22:
	mov	eax, 5
	jmp	.L27
.L21:
	mov	eax, 5
	jmp	.L27
.L20:
	mov	eax, 7
	jmp	.L27
.L19:
	mov	eax, 6
	jmp	.L27
.L17:
	mov	eax, 6
	jmp	.L27
.L16:
	mov	eax, 0
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	tens, .-tens
	.globl	teens
	.type	teens, @function
teens:
.LFB2:
	.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	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L29
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L31[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L31[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L31:
	.long	.L40-.L31
	.long	.L39-.L31
	.long	.L38-.L31
	.long	.L37-.L31
	.long	.L36-.L31
	.long	.L35-.L31
	.long	.L34-.L31
	.long	.L33-.L31
	.long	.L32-.L31
	.long	.L30-.L31
	.text
.L40:
	mov	eax, 3
	jmp	.L41
.L39:
	mov	eax, 6
	jmp	.L41
.L38:
	mov	eax, 6
	jmp	.L41
.L37:
	mov	eax, 8
	jmp	.L41
.L36:
	mov	eax, 8
	jmp	.L41
.L35:
	mov	eax, 7
	jmp	.L41
.L34:
	mov	eax, 7
	jmp	.L41
.L33:
	mov	eax, 9
	jmp	.L41
.L32:
	mov	eax, 8
	jmp	.L41
.L30:
	mov	eax, 8
	jmp	.L41
.L29:
	mov	eax, 0
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	teens, .-teens
	.section	.rodata
.LC0:
	.string	"%i"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 11
	mov	DWORD PTR -36[rbp], 1
	jmp	.L43
.L51:
	mov	DWORD PTR -28[rbp], 0
	mov	edx, DWORD PTR -36[rbp]
	lea	rax, -28[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 1
	jne	.L44
	movzx	eax, BYTE PTR -28[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ones
	add	DWORD PTR -40[rbp], eax
	jmp	.L45
.L44:
	cmp	DWORD PTR -32[rbp], 2
	jne	.L46
	movzx	eax, BYTE PTR -28[rbp]
	cmp	al, 49
	jne	.L47
	movzx	eax, BYTE PTR -27[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -28[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	teens
	add	DWORD PTR -40[rbp], eax
	jmp	.L45
.L47:
	movzx	eax, BYTE PTR -28[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tens
	mov	ebx, eax
	movzx	eax, BYTE PTR -27[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ones
	add	eax, ebx
	add	DWORD PTR -40[rbp], eax
	jmp	.L45
.L46:
	cmp	DWORD PTR -32[rbp], 3
	jne	.L45
	movzx	eax, BYTE PTR -28[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ones
	add	eax, 7
	add	DWORD PTR -40[rbp], eax
	movzx	eax, BYTE PTR -27[rbp]
	cmp	al, 48
	jne	.L48
	movzx	eax, BYTE PTR -26[rbp]
	cmp	al, 48
	je	.L49
.L48:
	add	DWORD PTR -40[rbp], 3
.L49:
	movzx	eax, BYTE PTR -27[rbp]
	cmp	al, 49
	jne	.L50
	movzx	eax, BYTE PTR -26[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -27[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	teens
	add	DWORD PTR -40[rbp], eax
	jmp	.L45
.L50:
	movzx	eax, BYTE PTR -27[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tens
	mov	ebx, eax
	movzx	eax, BYTE PTR -26[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ones
	add	eax, ebx
	add	DWORD PTR -40[rbp], eax
.L45:
	add	DWORD PTR -36[rbp], 1
.L43:
	cmp	DWORD PTR -36[rbp], 999
	jle	.L51
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"176707049.c"
	.text
	.align	2
	.global	ones
	.syntax unified
	.arm
	.fpu softvfp
	.type	ones, %function
ones:
	@ 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]
	sub	r3, r3, #48
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L13:
	mov	r3, #0
	b	.L14
.L12:
	mov	r3, #3
	b	.L14
.L11:
	mov	r3, #3
	b	.L14
.L10:
	mov	r3, #5
	b	.L14
.L9:
	mov	r3, #4
	b	.L14
.L8:
	mov	r3, #4
	b	.L14
.L7:
	mov	r3, #3
	b	.L14
.L6:
	mov	r3, #5
	b	.L14
.L5:
	mov	r3, #5
	b	.L14
.L3:
	mov	r3, #4
	b	.L14
.L2:
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ones, .-ones
	.align	2
	.global	tens
	.syntax unified
	.arm
	.fpu softvfp
	.type	tens, %function
tens:
	@ 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]
	sub	r3, r3, #48
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L26
	.word	.L16
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L17
.L26:
	mov	r3, #0
	b	.L27
.L25:
	mov	r3, #6
	b	.L27
.L24:
	mov	r3, #6
	b	.L27
.L23:
	mov	r3, #5
	b	.L27
.L22:
	mov	r3, #5
	b	.L27
.L21:
	mov	r3, #5
	b	.L27
.L20:
	mov	r3, #7
	b	.L27
.L19:
	mov	r3, #6
	b	.L27
.L17:
	mov	r3, #6
	b	.L27
.L16:
	mov	r3, #0
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	tens, .-tens
	.align	2
	.global	teens
	.syntax unified
	.arm
	.fpu softvfp
	.type	teens, %function
teens:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #48
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L31:
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L30
.L40:
	mov	r3, #3
	b	.L41
.L39:
	mov	r3, #6
	b	.L41
.L38:
	mov	r3, #6
	b	.L41
.L37:
	mov	r3, #8
	b	.L41
.L36:
	mov	r3, #8
	b	.L41
.L35:
	mov	r3, #7
	b	.L41
.L34:
	mov	r3, #7
	b	.L41
.L33:
	mov	r3, #9
	b	.L41
.L32:
	mov	r3, #8
	b	.L41
.L30:
	mov	r3, #8
	b	.L41
.L29:
	mov	r3, #0
.L41:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	teens, .-teens
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%i\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #11
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L43
.L51:
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r0, fp, #20
	ldr	r3, [fp, #-28]
	ldr	r2, .L54+4
	mov	r1, #4
	bl	snprintf
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L44
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	ones
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	b	.L45
.L44:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L46
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L47
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	teens
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	b	.L45
.L47:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	tens
	mov	r4, r0
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r0, r3
	bl	ones
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L45
.L46:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L45
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	ones
	mov	r3, r0
	add	r3, r3, #7
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L48
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L49
.L48:
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	str	r3, [fp, #-32]
.L49:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L50
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	teens
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	b	.L45
.L50:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r0, r3
	bl	tens
	mov	r4, r0
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r0, r3
	bl	ones
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L45:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L43:
	ldr	r3, [fp, #-28]
	cmp	r3, #1000
	blt	.L51
	ldr	r1, [fp, #-32]
	ldr	r0, .L54+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
