	.file	"280859.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Its impossible to execute this function"
	.text
	.globl	impossible
	.type	impossible, @function
impossible:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	impossible, .-impossible
	.globl	test
	.type	test, @function
test:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test, .-test
	.globl	fd
	.bss
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.section	.rodata
.LC1:
	.string	"Usage: %s filename\n"
.LC2:
	.string	"open"
.LC3:
	.string	"read"
	.align 8
.LC4:
	.string	"the file contents must start with h"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 544
	mov	DWORD PTR -532[rbp], edi
	mov	QWORD PTR -544[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -532[rbp], 2
	je	.L5
	mov	rax, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -544[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -512[rbp]
	mov	edx, 500
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cdqe
	mov	QWORD PTR -520[rbp], rax
	cmp	QWORD PTR -520[rbp], -1
	jne	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	movzx	eax, BYTE PTR -512[rbp]
	cmp	al, 104
	je	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	test
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"280859.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Its impossible to execute this function\000"
	.text
	.align	2
	.global	impossible
	.syntax unified
	.arm
	.fpu softvfp
	.type	impossible, %function
impossible:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	impossible, .-impossible
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	test, .-test
	.comm	fd,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: %s filename\012\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"read\000"
	.align	2
.LC5:
	.ascii	"the file contents must start with h\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	str	r0, [fp, #-520]
	str	r1, [fp, #-524]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-520]
	cmp	r3, #2
	beq	.L9
	ldr	r3, [fp, #-524]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-524]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L15+8
	str	r3, [r2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L15+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	sub	r1, fp, #508
	mov	r2, #500
	mov	r0, r3
	bl	read
	mov	r3, r0
	str	r3, [fp, #-512]
	ldr	r3, [fp, #-512]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L15+16
	bl	perror
	mvn	r0, #0
	bl	exit
.L11:
	ldrb	r3, [fp, #-508]	@ zero_extendqisi2
	cmp	r3, #104
	beq	.L12
	ldr	r0, .L15+20
	bl	puts
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	sub	r3, fp, #508
	mov	r0, r3
	bl	test
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	.LC2
	.word	fd
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
