	.file	"750907.c"
	.intel_syntax noprefix
	.text
	.globl	mod
	.type	mod, @function
mod:
.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]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mod, .-mod
	.globl	issafe
	.type	issafe, @function
issafe:
.LFB1:
	.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, 48
	.cfi_offset 3, -24
	mov	QWORD PTR -48[rbp], rdi
	mov	DWORD PTR -52[rbp], esi
	mov	DWORD PTR -56[rbp], edx
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	je	.L19
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L19:
	nop
.L6:
	add	DWORD PTR -32[rbp], 1
.L4:
	cmp	DWORD PTR -32[rbp], 7
	jle	.L8
	mov	DWORD PTR -28[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	je	.L20
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L11
	mov	eax, 0
	jmp	.L7
.L20:
	nop
.L11:
	add	DWORD PTR -28[rbp], 1
.L9:
	cmp	DWORD PTR -28[rbp], 7
	jle	.L12
	mov	DWORD PTR -24[rbp], 0
	jmp	.L13
.L18:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jne	.L15
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	je	.L21
.L15:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L16
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	mod
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	mod
	cmp	ebx, eax
	jne	.L16
	mov	eax, 0
	jmp	.L7
.L21:
	nop
.L16:
	add	DWORD PTR -20[rbp], 1
.L14:
	cmp	DWORD PTR -20[rbp], 7
	jle	.L17
	add	DWORD PTR -24[rbp], 1
.L13:
	cmp	DWORD PTR -24[rbp], 7
	jle	.L18
	mov	eax, 1
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	issafe, .-issafe
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"no"
.LC3:
	.string	"yes"
	.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, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -296[rbp], 0
	mov	DWORD PTR -300[rbp], 0
	mov	DWORD PTR -292[rbp], 0
	jmp	.L23
.L26:
	mov	DWORD PTR -288[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -288[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	DWORD PTR -272[rbp+rax*4], 0
	add	DWORD PTR -288[rbp], 1
.L24:
	cmp	DWORD PTR -288[rbp], 7
	jle	.L25
	add	DWORD PTR -292[rbp], 1
.L23:
	cmp	DWORD PTR -292[rbp], 7
	jle	.L26
	lea	rax, -300[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -284[rbp], 1
	jmp	.L27
.L28:
	lea	rdx, -304[rbp]
	lea	rax, -308[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, DWORD PTR -304[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	DWORD PTR -272[rbp+rax*4], 1
	add	DWORD PTR -284[rbp], 1
.L27:
	mov	eax, DWORD PTR -300[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jle	.L28
	mov	DWORD PTR -280[rbp], 0
	jmp	.L29
.L36:
	mov	DWORD PTR -276[rbp], 0
	jmp	.L30
.L33:
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR -272[rbp+rax*4]
	cmp	eax, 1
	jne	.L31
	mov	edx, DWORD PTR -276[rbp]
	mov	ecx, DWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	issafe
	test	eax, eax
	jne	.L31
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -296[rbp], 1
	jmp	.L32
.L31:
	add	DWORD PTR -276[rbp], 1
.L30:
	cmp	DWORD PTR -276[rbp], 7
	jle	.L33
.L32:
	cmp	DWORD PTR -296[rbp], 1
	je	.L40
	add	DWORD PTR -280[rbp], 1
.L29:
	cmp	DWORD PTR -280[rbp], 7
	jle	.L36
	jmp	.L35
.L40:
	nop
.L35:
	cmp	DWORD PTR -296[rbp], 0
	jne	.L37
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L37:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	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	"750907.c"
	.text
	.align	2
	.global	mod
	.syntax unified
	.arm
	.fpu softvfp
	.type	mod, %function
mod:
	@ 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]
	cmp	r3, #0
	rsblt	r3, r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mod, .-mod
	.align	2
	.global	issafe
	.syntax unified
	.arm
	.fpu softvfp
	.type	issafe, %function
issafe:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L8:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L6
	mov	r3, #0
	b	.L7
.L19:
	nop
.L6:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #7
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L12:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	beq	.L20
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L11
	mov	r3, #0
	b	.L7
.L20:
	nop
.L11:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L13
.L18:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L14
.L17:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bne	.L15
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L21
.L15:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L16
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	mod
	mov	r4, r0
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r0, r3
	bl	mod
	mov	r3, r0
	cmp	r4, r3
	bne	.L16
	mov	r3, #0
	b	.L7
.L21:
	nop
.L16:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	ble	.L17
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L13:
	ldr	r3, [fp, #-28]
	cmp	r3, #7
	ble	.L18
	mov	r3, #1
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	issafe, .-issafe
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%d %d\012\000"
	.align	2
.LC2:
	.ascii	"no\000"
	.align	2
.LC3:
	.ascii	"yes\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 = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L23
.L26:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L24
.L25:
	ldr	r3, [fp, #-284]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-260]
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L24:
	ldr	r3, [fp, #-280]
	cmp	r3, #7
	ble	.L25
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L23:
	ldr	r3, [fp, #-284]
	cmp	r3, #7
	ble	.L26
	sub	r3, fp, #292
	mov	r1, r3
	ldr	r0, .L41+4
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-276]
	b	.L27
.L28:
	sub	r2, fp, #296
	sub	r3, fp, #300
	mov	r1, r3
	ldr	r0, .L41+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-296]
	lsl	r2, r2, #3
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-260]
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L27:
	ldr	r3, [fp, #-292]
	ldr	r2, [fp, #-276]
	cmp	r2, r3
	ble	.L28
	mov	r3, #0
	str	r3, [fp, #-272]
	b	.L29
.L36:
	mov	r3, #0
	str	r3, [fp, #-268]
	b	.L30
.L33:
	ldr	r3, [fp, #-272]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	cmp	r3, #1
	bne	.L31
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	issafe
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L41+12
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-288]
	b	.L32
.L31:
	ldr	r3, [fp, #-268]
	add	r3, r3, #1
	str	r3, [fp, #-268]
.L30:
	ldr	r3, [fp, #-268]
	cmp	r3, #7
	ble	.L33
.L32:
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	beq	.L40
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L29:
	ldr	r3, [fp, #-272]
	cmp	r3, #7
	ble	.L36
	b	.L35
.L40:
	nop
.L35:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L37
	ldr	r0, .L41+16
	bl	printf
.L37:
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.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
