	.file	"256938.c"
	.intel_syntax noprefix
	.text
	.globl	bombs
	.type	bombs, @function
bombs:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	QWORD PTR -40[rbp], r8
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L4
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L5
.L4:
	cmp	DWORD PTR -12[rbp], 0
	js	.L5
	cmp	DWORD PTR -8[rbp], 0
	js	.L5
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L5
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L5
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 42
	jne	.L5
	add	DWORD PTR -4[rbp], 1
.L5:
	add	DWORD PTR -8[rbp], 1
.L3:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jle	.L6
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jle	.L7
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bombs, .-bombs
	.section	.rodata
.LC0:
	.string	"%d %d "
.LC1:
	.string	"%c"
.LC2:
	.string	"Field #%d:\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1856
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -10020[rbp], 0
	lea	rdx, -10036[rbp]
	lea	rax, -10032[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L10
.L23:
	add	DWORD PTR -10020[rbp], 1
	cmp	DWORD PTR -10020[rbp], 1
	jle	.L11
	mov	edi, 10
	call	putchar@PLT
.L11:
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L12
.L15:
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L13
.L14:
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -10024[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -10028[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -10024[rbp], 1
.L13:
	mov	eax, DWORD PTR -10036[rbp]
	cmp	DWORD PTR -10024[rbp], eax
	jl	.L14
	call	getchar@PLT
	add	DWORD PTR -10028[rbp], 1
.L12:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10028[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR -10020[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L16
.L21:
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -10024[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -10028[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rcx
	sub	rax, 10016
	movzx	eax, BYTE PTR [rax]
	cmp	al, 42
	jne	.L18
	mov	edi, 42
	call	putchar@PLT
	jmp	.L19
.L18:
	mov	ecx, DWORD PTR -10036[rbp]
	mov	edx, DWORD PTR -10032[rbp]
	lea	rdi, -10016[rbp]
	mov	esi, DWORD PTR -10024[rbp]
	mov	eax, DWORD PTR -10028[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	bombs
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	add	DWORD PTR -10024[rbp], 1
.L17:
	mov	eax, DWORD PTR -10036[rbp]
	cmp	DWORD PTR -10024[rbp], eax
	jl	.L20
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -10028[rbp], 1
.L16:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	DWORD PTR -10028[rbp], eax
	jl	.L21
	lea	rdx, -10036[rbp]
	lea	rax, -10032[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L10:
	mov	eax, DWORD PTR -10032[rbp]
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -10036[rbp]
	test	eax, eax
	jne	.L23
.L22:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"256938.c"
	.text
	.align	2
	.global	bombs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bombs, %function
bombs:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L7:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L3
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L5
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L5
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L5
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L5
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bombs, .-bombs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d \000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"Field #%d:\012\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #9984
	sub	sp, sp, #48
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1816]
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #40
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
	b	.L10
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1816]
	add	r3, r3, #1
	str	r3, [r2, #-1816]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1816]
	cmp	r3, #1
	ble	.L11
	mov	r0, #10
	bl	putchar
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L12
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L13
.L14:
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #20
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r1, [r3, #-1824]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, fp, #8192
	sub	r1, r1, #4
	ldr	r1, [r1, #-1820]
	add	r3, r3, r1
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1832]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	cmp	r2, r3
	blt	.L14
	bl	getchar
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r1, [r3, #-1816]
	ldr	r0, .L26+12
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L16
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L17
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r2, r3
	sub	r3, r3, #1808
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L18
	mov	r0, #42
	bl	putchar
	b	.L19
.L18:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-1828]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r1, [r3, #-1832]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	ip, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [ip, #-1820]
	ldr	r0, [r0, #-1824]
	bl	bombs
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L26+16
	bl	printf
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1832]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	cmp	r2, r3
	blt	.L20
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	blt	.L21
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #40
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1828]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1832]
	cmp	r3, #0
	bne	.L23
.L22:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
