	.file	"394263.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	solve_part_1
	.type	solve_part_1, @function
solve_part_1:
.LFB0:
	.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], 5
	jmp	.L2
.L12:
	movsx	eax, BYTE PTR -5[rbp]
	cmp	eax, 85
	je	.L3
	cmp	eax, 85
	jg	.L4
	cmp	eax, 82
	je	.L5
	cmp	eax, 82
	jg	.L4
	cmp	eax, 68
	je	.L6
	cmp	eax, 76
	je	.L7
	jmp	.L4
.L3:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L2
	sub	DWORD PTR -4[rbp], 3
	jmp	.L2
.L7:
	mov	edx, DWORD PTR -4[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 1
	je	.L2
	sub	DWORD PTR -4[rbp], 1
	jmp	.L2
.L6:
	cmp	DWORD PTR -4[rbp], 6
	jg	.L2
	add	DWORD PTR -4[rbp], 3
	jmp	.L2
.L5:
	mov	edx, DWORD PTR -4[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L2
	add	DWORD PTR -4[rbp], 1
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L2:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	jne	.L12
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve_part_1, .-solve_part_1
	.section	.rodata
.LC2:
	.string	"%c\n"
	.text
	.globl	solve_part_2
	.type	solve_part_2, @function
solve_part_2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	WORD PTR -60[rbp], 0
	mov	BYTE PTR -58[rbp], 0
	mov	DWORD PTR -57[rbp], 822083584
	mov	WORD PTR -53[rbp], 0
	mov	BYTE PTR -51[rbp], 0
	mov	DWORD PTR -50[rbp], 858914816
	mov	WORD PTR -46[rbp], 52
	mov	BYTE PTR -44[rbp], 0
	mov	DWORD PTR -43[rbp], 926299392
	mov	WORD PTR -39[rbp], 14648
	mov	BYTE PTR -37[rbp], 0
	mov	DWORD PTR -36[rbp], 1111556096
	mov	WORD PTR -32[rbp], 67
	mov	BYTE PTR -30[rbp], 0
	mov	DWORD PTR -29[rbp], 1140850688
	mov	WORD PTR -25[rbp], 0
	mov	BYTE PTR -23[rbp], 0
	mov	DWORD PTR -22[rbp], 0
	mov	WORD PTR -18[rbp], 0
	mov	BYTE PTR -16[rbp], 0
	mov	DWORD PTR -72[rbp], 3
	mov	DWORD PTR -68[rbp], 1
	jmp	.L14
.L24:
	movsx	eax, BYTE PTR -73[rbp]
	cmp	eax, 85
	je	.L15
	cmp	eax, 85
	jg	.L16
	cmp	eax, 82
	je	.L17
	cmp	eax, 82
	jg	.L16
	cmp	eax, 68
	je	.L18
	cmp	eax, 76
	je	.L19
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	sub	DWORD PTR -72[rbp], 1
	jmp	.L14
.L19:
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	sub	DWORD PTR -68[rbp], 1
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	add	DWORD PTR -72[rbp], 1
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	add	DWORD PTR -68[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	nop
.L14:
	call	getchar@PLT
	mov	BYTE PTR -73[rbp], al
	cmp	BYTE PTR -73[rbp], -1
	jne	.L24
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve_part_2, .-solve_part_2
	.section	.rodata
.LC3:
	.string	"1"
.LC4:
	.string	"2"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L27
	mov	eax, 1
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	eax, 0
	call	solve_part_1
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	mov	eax, 0
	call	solve_part_2
.L30:
	mov	eax, 0
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"394263.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	solve_part_1
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_part_1, %function
solve_part_1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #5
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3
	str	r3, [fp, #-8]
	b	.L2
.L7:
	ldr	r1, [fp, #-8]
	ldr	r3, .L14
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #1
	beq	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bgt	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	str	r3, [fp, #-8]
	b	.L2
.L6:
	ldr	r1, [fp, #-8]
	ldr	r3, .L14
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r1, [fp, #-8]
	ldr	r0, .L14+4
	bl	printf
	nop
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #68
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L4
.L15:
	.align	2
.L14:
	.word	1431655766
	.word	.LC1
	.size	solve_part_1, .-solve_part_1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000\000\000\000\000\000\000"
	.ascii	"\000\000\0001\000\000\000"
	.ascii	"\000\000234\000\000"
	.ascii	"\00056789\000"
	.ascii	"\000\000ABC\000\000"
	.ascii	"\000\000\000D\000\000\000"
	.ascii	"\000\000\000\000\000\000\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solve_part_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_part_2, %function
solve_part_2:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L30+4
	sub	ip, fp, #60
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	mov	r3, #3
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L17
.L19:
	ldr	r3, [fp, #-68]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	b	.L17
.L22:
	ldr	r3, [fp, #-64]
	sub	r1, r3, #1
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L17
.L23:
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	b	.L17
.L21:
	ldr	r3, [fp, #-64]
	add	r1, r3, #1
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L17
.L18:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	nop
.L17:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	sub	r3, r3, #68
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L18
.L20:
	.word	.L23
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L22
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L21
	.word	.L18
	.word	.L18
	.word	.L19
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	.LC0
	.size	solve_part_2, .-solve_part_2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"1\000"
	.align	2
.LC4:
	.ascii	"2\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #2
	beq	.L33
	mov	r3, #1
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	bl	solve_part_1
	b	.L36
.L35:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	bl	solve_part_2
.L36:
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
