	.file	"854200.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <host> <section name> <output>\n"
.LC1:
	.string	"Unkown section!\n"
.LC2:
	.string	"Create file %s failed\n"
.LC3:
	.string	"Malloc %s failed\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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 4
	je	.L2
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	load_file
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	check_elf_type
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_section_index
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 6
	mov	rsi, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	mov	rax, QWORD PTR 24[rax]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	get_section_index
	.type	get_section_index, @function
get_section_index:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 62[rax]
	movzx	eax, ax
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L10
.L9:
	add	DWORD PTR -36[rbp], 1
.L8:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 60[rax]
	movzx	eax, ax
	cmp	DWORD PTR -36[rbp], eax
	jl	.L11
	mov	eax, -1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_section_index, .-get_section_index
	.section	.rodata
.LC4:
	.string	"Open"
.LC5:
	.string	"Fstat"
.LC6:
	.string	"Malloc"
.LC7:
	.string	"Read"
.LC8:
	.string	"%s %s failed\n"
	.text
	.globl	load_file
	.type	load_file, @function
load_file:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -184[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L13
	mov	DWORD PTR -200[rbp], 0
	jmp	.L14
.L13:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L15
	mov	DWORD PTR -200[rbp], 1
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L16
	mov	DWORD PTR -200[rbp], 2
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -196[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rdx, QWORD PTR -112[rbp]
	cmp	rax, rdx
	je	.L17
	mov	DWORD PTR -200[rbp], 3
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	jmp	.L20
.L14:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	rdx, QWORD PTR -192[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -216[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load_file, .-load_file
	.section	.rodata
.LC9:
	.string	"ELF"
	.align 8
.LC10:
	.string	"Target file is not an ELF file\n"
	.align 8
.LC11:
	.string	"Target file is not an ELF executable\n"
	.text
	.globl	check_elf_type
	.type	check_elf_type, @function
check_elf_type:
.LFB9:
	.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 -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	jne	.L22
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	edx, 3
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L23
.L22:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	ax, 2
	je	.L25
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	check_elf_type, .-check_elf_type
	.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	"854200.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Open\000"
	.align	2
.LC1:
	.ascii	"Fstat\000"
	.align	2
.LC2:
	.ascii	"Malloc\000"
	.align	2
.LC3:
	.ascii	"Read\000"
	.text
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: %s <host> <section name> <output>\012\000"
	.align	2
.LC6:
	.ascii	"Unkown section!\012\000"
	.align	2
.LC7:
	.ascii	"Create file %s failed\012\000"
	.align	2
.LC8:
	.ascii	"Malloc %s failed\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	beq	.L2
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	load_file
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	check_elf_type
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	get_section_index
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #420
	mov	r1, #65
	mov	r0, r3
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L7+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L7+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L7+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L7+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	mov	r3, r2
	add	r3, r1, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC9
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	get_section_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_section_index, %function
get_section_index:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #62]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L13:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-28]
	b	.L12
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #60]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	blt	.L13
	mvn	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_section_index, .-get_section_index
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%s %s failed\012\000"
	.align	2
.LC10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_file, %function
load_file:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r1, #0
	ldr	r0, [fp, #-128]
	bl	open
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L15
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L16
.L15:
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L16
.L17:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-132]
	str	r2, [r3]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	mov	r3, #2
	str	r3, [fp, #-124]
	b	.L16
.L18:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	beq	.L19
	mov	r3, #3
	str	r3, [fp, #-124]
	b	.L16
.L19:
	ldr	r0, [fp, #-120]
	bl	close
	ldr	r3, [fp, #-72]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	b	.L22
.L16:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-20]
	ldr	r3, [fp, #-128]
	ldr	r1, .L23+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L22:
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC12
	.word	.LC10
	.word	stderr
	.word	.LC11
	.size	load_file, .-load_file
	.section	.rodata
	.align	2
.LC13:
	.ascii	"ELF\000"
	.align	2
.LC14:
	.ascii	"Target file is not an ELF file\012\000"
	.align	2
.LC15:
	.ascii	"Target file is not an ELF executable\012\000"
	.text
	.align	2
	.global	check_elf_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_elf_type, %function
check_elf_type:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #127
	bne	.L26
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #3
	ldr	r1, .L30
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
.L26:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L30+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #16]
	cmp	r3, #2
	beq	.L29
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L30+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L29:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC13
	.word	stderr
	.word	.LC14
	.word	.LC15
	.size	check_elf_type, .-check_elf_type
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
