	.file	"151607.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Trying %s  \r"
.LC1:
	.string	"open '%s' failed: %s\n"
.LC2:
	.string	"MINIX"
.LC3:
	.string	"\nFound.\n"
.LC4:
	.string	"\nNot found.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2112[rbp], 2
	mov	DWORD PTR -2108[rbp], 3
	mov	DWORD PTR -2104[rbp], 1
	mov	DWORD PTR -2100[rbp], 0
	mov	DWORD PTR -2096[rbp], 6
	mov	DWORD PTR -2092[rbp], 7
	mov	DWORD PTR -2088[rbp], 5
	mov	DWORD PTR -2084[rbp], 4
	movabs	rax, 7219379258175874095
	mov	QWORD PTR -2074[rbp], rax
	mov	WORD PTR -2066[rbp], 88
	mov	DWORD PTR -2136[rbp], 0
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -2136[rbp]
	add	eax, 48
	mov	BYTE PTR -2068[rbp], al
	mov	DWORD PTR -2132[rbp], 0
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -2132[rbp]
	cdqe
	mov	eax, DWORD PTR -2112[rbp+rax*4]
	add	eax, 48
	mov	BYTE PTR -2066[rbp], al
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -2074[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -2074[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2128[rbp], eax
	cmp	DWORD PTR -2128[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 6
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -2074[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -2128[rbp]
	mov	edx, 0
	mov	esi, 32768
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -2120[rbp], rax
	cmp	QWORD PTR -2120[rbp], 32768
	je	.L6
	mov	eax, DWORD PTR -2128[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L5
.L6:
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2128[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2124[rbp], eax
	mov	eax, DWORD PTR -2128[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -2124[rbp], 2048
	jne	.L15
	movzx	eax, BYTE PTR -2064[rbp]
	cmp	al, 1
	jne	.L16
	movzx	eax, BYTE PTR -2063[rbp]
	cmp	al, 67
	jne	.L16
	movzx	eax, BYTE PTR -2062[rbp]
	cmp	al, 68
	jne	.L16
	movzx	eax, BYTE PTR -2061[rbp]
	cmp	al, 48
	jne	.L16
	movzx	eax, BYTE PTR -2060[rbp]
	cmp	al, 48
	jne	.L16
	movzx	eax, BYTE PTR -2059[rbp]
	cmp	al, 49
	jne	.L16
	movzx	eax, BYTE PTR -2058[rbp]
	cmp	al, 1
	jne	.L16
	lea	rax, -2064[rbp]
	add	rax, 40
	mov	edx, 5
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rax, -2074[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	jmp	.L13
.L15:
	nop
	jmp	.L5
.L16:
	nop
.L5:
	add	DWORD PTR -2132[rbp], 1
.L3:
	cmp	DWORD PTR -2132[rbp], 7
	jle	.L11
	add	DWORD PTR -2136[rbp], 1
.L2:
	cmp	DWORD PTR -2136[rbp], 1
	jle	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"151607.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Trying %s  \015\000"
	.align	2
.LC3:
	.ascii	"open '%s' failed: %s\012\000"
	.align	2
.LC4:
	.ascii	"MINIX\000"
	.align	2
.LC5:
	.ascii	"\012Found.\012\000"
	.align	2
.LC6:
	.ascii	"\012Not found.\012\000"
	.align	2
.LC0:
	.word	2
	.word	3
	.word	1
	.word	0
	.word	6
	.word	7
	.word	5
	.word	4
	.align	2
.LC1:
	.ascii	"/dev/c0dX\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #12
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L17+4
	sub	ip, fp, #2096
	sub	ip, ip, #12
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, .L17+8
	sub	r3, fp, #2064
	sub	r3, r3, #12
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-2128]
	b	.L2
.L12:
	ldr	r3, [fp, #-2128]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	strb	r3, [fp, #-2070]
	mov	r3, #0
	str	r3, [fp, #-2124]
	b	.L3
.L11:
	ldr	r3, [fp, #-2124]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-2096]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	strb	r3, [fp, #-2068]
	ldr	r3, .L17+12
	ldr	r3, [r3]
	sub	r2, fp, #2064
	sub	r2, r2, #12
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #2064
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-2120]
	ldr	r3, [fp, #-2120]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #6
	beq	.L4
	ldr	r3, .L17+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #2064
	sub	r2, r2, #12
	ldr	r1, .L17+20
	mov	r0, r4
	bl	fprintf
	b	.L5
.L4:
	mov	r2, #0
	mov	r1, #32768
	ldr	r0, [fp, #-2120]
	bl	lseek
	str	r0, [fp, #-2116]
	ldr	r3, [fp, #-2116]
	cmp	r3, #32768
	beq	.L6
	ldr	r0, [fp, #-2120]
	bl	close
	b	.L5
.L6:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [fp, #-2120]
	bl	read
	str	r0, [fp, #-2112]
	ldr	r0, [fp, #-2120]
	bl	close
	ldr	r3, [fp, #-2112]
	cmp	r3, #2048
	bne	.L15
	ldrb	r3, [fp, #-2064]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L16
	ldrb	r3, [fp, #-2063]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L16
	ldrb	r3, [fp, #-2062]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L16
	ldrb	r3, [fp, #-2061]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L16
	ldrb	r3, [fp, #-2060]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L16
	ldrb	r3, [fp, #-2059]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L16
	ldrb	r3, [fp, #-2058]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L16
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #40
	mov	r2, #5
	ldr	r1, .L17+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L17+28
	bl	fwrite
	sub	r3, fp, #2064
	sub	r3, r3, #12
	mov	r0, r3
	bl	puts
	mov	r3, #0
	b	.L13
.L15:
	nop
	b	.L5
.L16:
	nop
.L5:
	ldr	r3, [fp, #-2124]
	add	r3, r3, #1
	str	r3, [fp, #-2124]
.L3:
	ldr	r3, [fp, #-2124]
	cmp	r3, #7
	ble	.L11
	ldr	r3, [fp, #-2128]
	add	r3, r3, #1
	str	r3, [fp, #-2128]
.L2:
	ldr	r3, [fp, #-2128]
	cmp	r3, #1
	ble	.L12
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L17+32
	bl	fwrite
	mov	r3, #1
.L13:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
