	.file	"403645.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
	.align 8
.LC1:
	.string	"which-exe: Couldn't open file: %s\n"
	.align 8
.LC2:
	.string	"which-exe: Couldn't read file: %s\n"
.LC3:
	.string	"elf"
.LC4:
	.string	"mach"
.LC5:
	.string	"aout"
.LC6:
	.string	"coff"
.LC7:
	.string	"unknown"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 256
	mov	esi, 1
	lea	rdi, buf.0[rip]
	call	fread@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	movzx	eax, BYTE PTR buf.0[rip]
	cmp	al, 127
	jne	.L5
	movzx	eax, BYTE PTR buf.0[rip+1]
	cmp	al, 69
	jne	.L5
	movzx	eax, BYTE PTR buf.0[rip+2]
	cmp	al, 76
	jne	.L5
	movzx	eax, BYTE PTR buf.0[rip+3]
	cmp	al, 70
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	lea	rax, buf.0[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, 4277009102
	cmp	rax, rdx
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L6
.L7:
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR 2[rax]
	cmp	ax, 263
	je	.L8
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR 2[rax]
	cmp	ax, 264
	je	.L8
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR 2[rax]
	cmp	ax, 267
	jne	.L9
.L8:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L6
.L9:
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 324
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 325
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 326
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 327
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 322
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 323
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 328
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 329
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 330
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 338
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 360
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 361
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 368
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 370
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 369
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 376
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 381
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 336
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 337
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 338
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 364
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 136
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 137
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 365
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 344
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 349
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 345
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 352
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 354
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 24577
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 25089
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 387
	je	.L10
	lea	rax, buf.0[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 479
	jne	.L11
.L10:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L6
.L11:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L6:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,256,32
	.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	"403645.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"which-exe: Couldn't open file: %s\012\000"
	.align	2
.LC2:
	.ascii	"which-exe: Couldn't read file: %s\012\000"
	.align	2
.LC3:
	.ascii	"elf\000"
	.align	2
.LC4:
	.ascii	"mach\000"
	.align	2
.LC5:
	.ascii	"aout\000"
	.align	2
.LC6:
	.ascii	"coff\000"
	.align	2
.LC7:
	.ascii	"unknown\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L12+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+8
	bl	fprintf
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	mov	r2, #256
	mov	r1, #1
	ldr	r0, .L12+12
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L12+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+16
	bl	fprintf
	b	.L3
.L4:
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, .L12+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #127
	bne	.L5
	ldr	r3, .L12+12
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L5
	ldr	r3, .L12+12
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L5
	ldr	r3, .L12+12
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L5
	ldr	r0, .L12+20
	bl	puts
	b	.L6
.L5:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	ldr	r2, .L12+24
	cmp	r3, r2
	bne	.L7
	ldr	r0, .L12+28
	bl	puts
	b	.L6
.L7:
	ldr	r3, .L12+12
	ldrh	r3, [r3, #2]
	ldr	r2, .L12+32
	cmp	r3, r2
	beq	.L8
	ldr	r3, .L12+12
	ldrh	r3, [r3, #2]
	cmp	r3, #264
	beq	.L8
	ldr	r3, .L12+12
	ldrh	r3, [r3, #2]
	ldr	r2, .L12+36
	cmp	r3, r2
	bne	.L9
.L8:
	ldr	r0, .L12+40
	bl	puts
	b	.L6
.L9:
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #324
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+44
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+48
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+52
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+56
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+60
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #328
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+64
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+68
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+72
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #360
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+76
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #368
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+80
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+84
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #376
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+88
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #336
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+92
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+72
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #364
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #136
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #137
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+96
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #344
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+100
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+104
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	cmp	r3, #352
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+108
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+112
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+116
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+120
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L12+12
	ldrh	r3, [r3]
	ldr	r2, .L12+124
	cmp	r3, r2
	bne	.L11
.L10:
	ldr	r0, .L12+128
	bl	puts
	b	.L6
.L11:
	ldr	r0, .L12+132
	bl	puts
.L6:
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L12+132
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	buf.4614
	.word	.LC2
	.word	.LC3
	.word	-17958194
	.word	.LC4
	.word	263
	.word	267
	.word	.LC5
	.word	325
	.word	326
	.word	327
	.word	322
	.word	323
	.word	329
	.word	330
	.word	338
	.word	361
	.word	370
	.word	369
	.word	381
	.word	337
	.word	365
	.word	349
	.word	345
	.word	354
	.word	24577
	.word	25089
	.word	387
	.word	479
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.local	buf.4614
	.comm	buf.4614,256,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
