	.file	"509118.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	file_exists
	.type	file_exists, @function
file_exists:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_exists, .-file_exists
	.globl	isdir
	.type	isdir, @function
isdir:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L5
	mov	eax, 1
	jmp	.L7
.L5:
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isdir, .-isdir
	.globl	build_dst
	.type	build_dst, @function
build_dst:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	isdir
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L11
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
.L11:
	mov	eax, 0
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L14
	mov	eax, 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
.L15:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L13
.L10:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strdup@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	build_dst, .-build_dst
	.section	.rodata
	.align 8
.LC1:
	.string	"do_move call to build_dst failed"
	.align 8
.LC2:
	.string	"'%s' already exists. Overwrite? [Yn] "
	.align 8
.LC3:
	.string	"'%s' is in use. Overwrite on reboot? [Yn] "
.LC4:
	.string	"Reading from STDIN failed.\n"
	.text
	.globl	do_move
	.type	do_move, @function
do_move:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	build_dst
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L17
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	cmp	DWORD PTR -52[rbp], 2
	jne	.L18
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	jne	.L18
	mov	DWORD PTR -52[rbp], 1
.L18:
	cmp	DWORD PTR -52[rbp], 1
	jle	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	file_exists
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L19
	cmp	DWORD PTR -16[rbp], 1
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L21
.L20:
	cmp	DWORD PTR -16[rbp], 2
	jne	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L21:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L23
.L22:
	cmp	DWORD PTR -12[rbp], 110
	je	.L24
	cmp	DWORD PTR -12[rbp], 78
	jne	.L19
.L24:
	cmp	DWORD PTR -16[rbp], 2
	sete	al
	movzx	eax, al
	jmp	.L23
.L19:
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -48[rbp]
.L26:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	rename@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
.L27:
	cmp	QWORD PTR -8[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L28:
	mov	eax, DWORD PTR -20[rbp]
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	do_move, .-do_move
	.section	.rodata
	.align 8
.LC5:
	.string	"%s [-i | -f] source_file(s) target_file\n"
	.text
	.globl	help
	.type	help, @function
help:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	help, .-help
	.section	.rodata
.LC6:
	.string	"if"
	.align 8
.LC7:
	.string	"%s: move of '%s' to '%s' failed.\n"
	.align 8
.LC8:
	.string	"Some files will not be renamed until you reboot.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 2
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L31
.L34:
	cmp	DWORD PTR -24[rbp], 102
	je	.L32
	cmp	DWORD PTR -24[rbp], 105
	jne	.L33
	mov	DWORD PTR -16[rbp], 3
	jmp	.L31
.L32:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L31
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	help
.L31:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L34
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -48[rbp], rax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	help
.L35:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L36
.L39:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	do_move
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L37
	cmp	DWORD PTR -12[rbp], 110
	je	.L38
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L38:
	cmp	DWORD PTR -20[rbp], 110
	je	.L37
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L37:
	add	DWORD PTR -24[rbp], 1
.L36:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jl	.L39
	cmp	DWORD PTR -20[rbp], 110
	jne	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
.L40:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"509118.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	file_exists
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_exists, %function
file_exists:
	@ 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	r1, .L4
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	file_exists, .-file_exists
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	isdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	isdir, %function
isdir:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L7
	mov	r3, #1
	b	.L9
.L7:
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.size	isdir, .-isdir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/\000"
	.text
	.align	2
	.global	build_dst
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_dst, %function
build_dst:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	isdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	__xpg_basename
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L16
.L15:
	mov	r3, #0
	b	.L17
.L16:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	b	.L17
.L18:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L19
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, .L20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L19:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strcat
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-20]
	b	.L17
.L14:
	ldr	r0, [fp, #-36]
	bl	strdup
	mov	r3, r0
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.size	build_dst, .-build_dst
	.section	.rodata
	.align	2
.LC3:
	.ascii	"do_move call to build_dst failed\000"
	.align	2
.LC4:
	.ascii	"'%s' already exists. Overwrite? [Yn] \000"
	.align	2
.LC5:
	.ascii	"'%s' is in use. Overwrite on reboot? [Yn] \000"
	.align	2
.LC6:
	.ascii	"Reading from STDIN failed.\012\000"
	.text
	.align	2
	.global	do_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_move, %function
do_move:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	build_dst
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L35
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L24
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r0, r3
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	mov	r3, #1
	str	r3, [fp, #-32]
.L24:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L25
	ldr	r0, [fp, #-16]
	bl	file_exists
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L26
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L35+12
	mov	r0, r3
	bl	fprintf
	b	.L27
.L26:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L27
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L35+16
	mov	r0, r3
	bl	fprintf
.L27:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L28
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L35+20
	bl	fwrite
	mov	r3, #1
	b	.L29
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #110
	beq	.L30
	ldr	r3, [fp, #-8]
	cmp	r3, #78
	bne	.L25
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L29
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-16]
	b	.L32
.L31:
	ldr	r3, [fp, #-28]
.L32:
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	rename
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L34
	ldr	r0, [fp, #-16]
	bl	free
.L34:
	ldr	r3, [fp, #-20]
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC3
	.word	stdin
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	do_move, .-do_move
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s [-i | -f] source_file(s) target_file\012\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ 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]
	ldr	r3, .L38
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L38+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L39:
	.align	2
.L38:
	.word	stderr
	.word	.LC7
	.size	help, .-help
	.section	.rodata
	.align	2
.LC8:
	.ascii	"if\000"
	.align	2
.LC9:
	.ascii	"%s: move of '%s' to '%s' failed.\012\000"
	.align	2
.LC10:
	.ascii	"Some files will not be renamed until you reboot.\012"
	.ascii	"\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L41
.L44:
	ldr	r3, [fp, #-24]
	cmp	r3, #102
	beq	.L42
	ldr	r3, [fp, #-24]
	cmp	r3, #105
	bne	.L43
	mov	r3, #3
	str	r3, [fp, #-16]
	b	.L41
.L42:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L41
.L43:
	ldr	r0, [fp, #-12]
	bl	help
.L41:
	ldr	r2, .L51
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L44
	ldr	r3, .L51+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, .L51+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L45
	ldr	r0, [fp, #-12]
	bl	help
.L45:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L46
.L49:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	bl	do_move
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-8]
	cmp	r3, #110
	beq	.L48
	ldr	r3, .L51+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-12]
	ldr	r1, .L51+12
	bl	fprintf
.L48:
	ldr	r3, [fp, #-20]
	cmp	r3, #110
	beq	.L47
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L47:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L46:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L49
	ldr	r3, [fp, #-20]
	cmp	r3, #110
	bne	.L50
	ldr	r3, .L51+8
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L51+16
	bl	fwrite
.L50:
	ldr	r0, [fp, #-20]
	bl	exit
.L52:
	.align	2
.L51:
	.word	.LC8
	.word	optind
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
