	.file	"198580486.c"
	.intel_syntax noprefix
	.text
	.globl	cmd
	.bss
	.align 8
	.type	cmd, @object
	.size	cmd, 8
cmd:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%s: Unable to read\n"
.LC1:
	.string	"Not ELF\n"
	.align 8
.LC2:
	.string	"%s: 32bit class is not supported\n"
	.text
	.type	read_elf64_header, @function
read_elf64_header:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 64
	je	.L2
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 69
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 76
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 3[rax]
	cmp	al, 70
	je	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 4[rax]
	cmp	al, 2
	je	.L6
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_elf64_header, .-read_elf64_header
	.section	.rodata
	.align 8
.LC3:
	.string	"%s: Unable to read section header\n"
	.text
	.type	read_elf64_section_header, @function
read_elf64_section_header:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR 58[rax]
	movzx	eax, ax
	imul	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, rdx
	mov	edx, 64
	mov	edi, eax
	call	pread@PLT
	cmp	rax, 64
	je	.L9
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_elf64_section_header, .-read_elf64_section_header
	.section	.rodata
	.align 8
.LC4:
	.string	"%s: Unable to read dynamic section\n"
	.text
	.globl	read_elf64_dynamic_section
	.type	read_elf64_dynamic_section, @function
read_elf64_dynamic_section:
.LFB10:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	pread@PLT
	mov	rdx, QWORD PTR -24[rbp]
	cmp	rax, rdx
	je	.L12
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_elf64_dynamic_section, .-read_elf64_dynamic_section
	.section	.rodata
	.align 8
.LC5:
	.string	"%s: Unable to write dynamic section\n"
	.text
	.globl	write_elf64_dynamic_section
	.type	write_elf64_dynamic_section, @function
write_elf64_dynamic_section:
.LFB11:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	pwrite@PLT
	mov	rdx, QWORD PTR -24[rbp]
	cmp	rax, rdx
	je	.L15
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	write_elf64_dynamic_section, .-write_elf64_dynamic_section
	.section	.rodata
.LC6:
	.string	"%s: open(%s) fails (%s)\n"
	.align 8
.LC7:
	.string	"%s: Unable to find DYNAMIC section (statically linked?)\n"
	.align 8
.LC8:
	.string	"%s: '%s' is PIE (not 'unpie-ed' yet)\n"
	.align 8
.LC9:
	.string	"%s: '%s' is PIE (already 'unpie-ed' PIE)\n"
.LC10:
	.string	"%s: '%s' is NOT PIE\n"
	.text
	.type	unpie, @function
unpie:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	DWORD PTR -204[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -172[rbp], 0
	mov	DWORD PTR -168[rbp], 0
	mov	DWORD PTR -164[rbp], 0
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], 0
	jns	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -200[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L31
.L17:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_elf64_header
	movzx	eax, WORD PTR -64[rbp]
	cmp	ax, 3
	jne	.L19
	mov	DWORD PTR -172[rbp], 1
.L19:
	mov	DWORD PTR -180[rbp], 0
	jmp	.L20
.L27:
	lea	rcx, -144[rbp]
	lea	rdx, -80[rbp]
	mov	esi, DWORD PTR -180[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	read_elf64_section_header
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 6
	jne	.L21
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	read_elf64_dynamic_section
	mov	rax, QWORD PTR -112[rbp]
	shr	rax, 4
	mov	DWORD PTR -156[rbp], eax
	mov	DWORD PTR -176[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1879048187
	jne	.L23
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	and	eax, 134217728
	test	rax, rax
	je	.L23
	mov	DWORD PTR -168[rbp], 1
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	and	rdx, -134217729
	mov	QWORD PTR 8[rax], rdx
.L23:
	add	DWORD PTR -176[rbp], 1
.L22:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L24
	cmp	DWORD PTR -204[rbp], 0
	jne	.L33
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	write_elf64_dynamic_section
	jmp	.L33
.L21:
	add	DWORD PTR -180[rbp], 1
.L20:
	movzx	eax, WORD PTR -20[rbp]
	movzx	eax, ax
	cmp	DWORD PTR -180[rbp], eax
	jl	.L27
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -164[rbp], 2
	jmp	.L26
.L33:
	nop
.L26:
	cmp	DWORD PTR -204[rbp], 0
	je	.L28
	cmp	DWORD PTR -168[rbp], 0
	je	.L29
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -200[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -164[rbp], 1
	jmp	.L28
.L29:
	cmp	DWORD PTR -172[rbp], 0
	je	.L30
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -200[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L28
.L30:
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -200[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -164[rbp], 1
.L28:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -160[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -164[rbp]
.L31:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	unpie, .-unpie
	.section	.rodata
.LC11:
	.string	"%s [-c] <PIE>\n"
.LC12:
	.string	"   -c: check if <PIE> is PIE\n"
	.text
	.type	print_usage, @function
print_usage:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC13:
	.string	"-c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR cmd[rip], rax
	cmp	DWORD PTR -20[rbp], 3
	jne	.L36
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L36
.L37:
	call	print_usage
.L36:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L38
	cmp	DWORD PTR -20[rbp], 3
	jle	.L39
.L38:
	call	print_usage
.L39:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	unpie
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"198580486.c"
	.text
	.comm	cmd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: Unable to read\012\000"
	.align	2
.LC1:
	.ascii	"Not ELF\012\000"
	.align	2
.LC2:
	.ascii	"%s: 32bit class is not supported\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_elf64_header, %function
read_elf64_header:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r2, #64
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	read
	mov	r3, r0
	cmp	r3, #64
	beq	.L2
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+4
	ldr	r2, [r2]
	ldr	r1, .L7+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L2:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #127
	bne	.L3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #70
	beq	.L4
.L3:
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L6
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+4
	ldr	r2, [r2]
	ldr	r1, .L7+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stderr
	.word	cmd
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	read_elf64_header, .-read_elf64_header
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s: Unable to read section header\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_elf64_section_header, %function
read_elf64_section_header:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #58]
	mov	r1, r3
	ldr	r3, [fp, #-20]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #64
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	pread
	mov	r3, r0
	cmp	r3, #64
	beq	.L11
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldr	r2, [r2]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stderr
	.word	cmd
	.word	.LC3
	.size	read_elf64_section_header, .-read_elf64_section_header
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s: Unable to read dynamic section\012\000"
	.text
	.align	2
	.global	read_elf64_dynamic_section
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_elf64_dynamic_section, %function
read_elf64_dynamic_section:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	pread
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L16
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+4
	ldr	r2, [r2]
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	cmd
	.word	.LC4
	.size	read_elf64_dynamic_section, .-read_elf64_dynamic_section
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s: Unable to write dynamic section\012\000"
	.text
	.align	2
	.global	write_elf64_dynamic_section
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_elf64_dynamic_section, %function
write_elf64_dynamic_section:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	pwrite
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	ldr	r2, [r2]
	ldr	r1, .L22+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	cmd
	.word	.LC5
	.size	write_elf64_dynamic_section, .-write_elf64_dynamic_section
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s: open(%s) fails (%s)\012\000"
	.align	2
.LC7:
	.ascii	"%s: Unable to find DYNAMIC section (statically link"
	.ascii	"ed?)\012\000"
	.align	2
.LC8:
	.ascii	"%s: '%s' is PIE (not 'unpie-ed' yet)\012\000"
	.align	2
.LC9:
	.ascii	"%s: '%s' is PIE (already 'unpie-ed' PIE)\012\000"
	.align	2
.LC10:
	.ascii	"%s: '%s' is NOT PIE\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unpie, %function
unpie:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #184
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-188]
	mov	r3, #0
	str	r3, [fp, #-176]
	mov	r3, #0
	str	r3, [fp, #-172]
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r1, #2
	ldr	r0, [fp, #-192]
	bl	open
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bge	.L25
	ldr	r3, .L42+4
	ldr	r4, [r3]
	ldr	r3, .L42+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-192]
	mov	r2, r5
	ldr	r1, .L42+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #2
	b	.L39
.L25:
	sub	r3, fp, #92
	mov	r1, r3
	ldr	r0, [fp, #-164]
	bl	read_elf64_header
	ldrh	r3, [fp, #-76]
	cmp	r3, #3
	bne	.L27
	mov	r3, #1
	str	r3, [fp, #-176]
.L27:
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L28
.L35:
	sub	r3, fp, #156
	sub	r2, fp, #92
	ldr	r1, [fp, #-184]
	ldr	r0, [fp, #-164]
	bl	read_elf64_section_header
	ldr	r3, [fp, #-152]
	cmp	r3, #6
	bne	.L29
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-188]
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	mov	r1, r2
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-188]
	ldr	r0, [fp, #-164]
	bl	read_elf64_dynamic_section
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	lsr	r3, r1, #4
	mov	r3, r2
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L30
.L32:
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-188]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mvn	r0, #-1879048188
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L31
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-188]
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	mov	r0, #134217728
	mov	r1, #0
	and	r4, r2, r0
	and	r5, r3, r1
	orrs	r3, r4, r5
	beq	.L31
	mov	r3, #1
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-188]
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-180]
	lsl	r1, r1, #4
	ldr	r0, [fp, #-188]
	add	ip, r0, r1
	mvn	r0, #134217728
	mvn	r1, #0
	and	r6, r2, r0
	and	r7, r3, r1
	str	r6, [ip, #8]
	str	r7, [ip, #12]
.L31:
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L30:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	bne	.L41
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	mov	r1, r2
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-188]
	ldr	r0, [fp, #-164]
	bl	write_elf64_dynamic_section
	b	.L41
.L29:
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L28:
	ldrh	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-184]
	cmp	r3, r2
	blt	.L35
	ldr	r3, .L42+4
	ldr	r3, [r3]
	ldr	r2, .L42+8
	ldr	r2, [r2]
	ldr	r1, .L42+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
	str	r3, [fp, #-168]
	b	.L34
.L41:
	nop
.L34:
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L42+4
	ldr	r0, [r3]
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-192]
	ldr	r1, .L42+20
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-168]
	b	.L36
.L37:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L42+4
	ldr	r0, [r3]
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-192]
	ldr	r1, .L42+24
	bl	fprintf
	b	.L36
.L38:
	ldr	r3, .L42+4
	ldr	r0, [r3]
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-192]
	ldr	r1, .L42+28
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-168]
.L36:
	ldr	r0, [fp, #-188]
	bl	free
	ldr	r0, [fp, #-164]
	bl	close
	ldr	r3, [fp, #-168]
.L39:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC11
	.word	stderr
	.word	cmd
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	unpie, .-unpie
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%s [-c] <PIE>\012\000"
	.align	2
.LC13:
	.ascii	"   -c: check if <PIE> is PIE\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L45
	ldr	r3, [r3]
	ldr	r2, .L45+4
	ldr	r2, [r2]
	ldr	r1, .L45+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L45+12
	bl	fwrite
	mov	r0, #2
	bl	exit
.L46:
	.align	2
.L45:
	.word	stderr
	.word	cmd
	.word	.LC12
	.word	.LC13
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC14:
	.ascii	"-c\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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L53
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L48
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L53+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L48
.L49:
	bl	print_usage
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L50
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L51
.L50:
	bl	print_usage
.L51:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	unpie
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	cmd
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
