	.file	"107952525.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
.LC0:
	.string	"v"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s: not a directory"
	.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -184[rbp], 0
	jmp	.L2
.L4:
	cmp	DWORD PTR -180[rbp], 118
	jne	.L3
	mov	DWORD PTR verbose[rip], 1
	jmp	.L2
.L3:
	call	usage
.L2:
	mov	rcx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -196[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], -1
	jne	.L4
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -208[rbp], rax
	cmp	DWORD PTR -196[rbp], 1
	jg	.L5
	call	usage
.L5:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -176[rbp], rax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	je	.L6
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	sete	al
	movzx	eax, al
	mov	DWORD PTR -184[rbp], eax
	jmp	.L7
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L7
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L7:
	cmp	DWORD PTR -184[rbp], 0
	je	.L8
	mov	DWORD PTR -188[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	cleanup_path
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rebase_path
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	move
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	symlink@PLT
	cmp	eax, -1
	jne	.L10
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L10:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -188[rbp], 1
.L9:
	mov	eax, DWORD PTR -196[rbp]
	sub	eax, 1
	cmp	DWORD PTR -188[rbp], eax
	jl	.L11
	jmp	.L12
.L8:
	cmp	DWORD PTR -196[rbp], 2
	jle	.L13
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L13:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	cleanup_path
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	move
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	symlink@PLT
	cmp	eax, -1
	jne	.L12
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L12:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"%s\n"
.LC4:
	.string	"."
.LC5:
	.string	".."
	.text
	.type	move, @function
move:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -208[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L17:
	mov	rdx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rename@PLT
	cmp	eax, -1
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 18
	je	.L19
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L19:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	je	.L20
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L21
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L21:
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L22
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L22:
	mov	edx, DWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	chown@PLT
	cmp	eax, -1
	jne	.L24
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L24
.L27:
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	join_paths
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	join_paths
	mov	QWORD PTR -168[rbp], rax
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	move
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
.L24:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	rmdir@PLT
	cmp	eax, -1
	jne	.L30
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L20:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L28
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L28:
	mov	rdx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	unlink@PLT
	cmp	eax, -1
	jne	.L30
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L30:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	move, .-move
	.type	copy, @function
copy:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L32
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L32:
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 131072
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -216[rbp], eax
	cmp	DWORD PTR -216[rbp], -1
	jne	.L33
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L33:
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L35
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L37:
	cmp	QWORD PTR -208[rbp], -1
	jne	.L36
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L36:
	mov	rdx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -212[rbp]
	lea	rsi, buf.0[rip]
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	je	.L35
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L35:
	mov	eax, DWORD PTR -216[rbp]
	mov	edx, 4096
	lea	rsi, buf.0[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], 0
	jne	.L37
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	ts_to_tv
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	ts_to_tv
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	futimes@PLT
	cmp	eax, -1
	jne	.L38
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
.L38:
	mov	edx, DWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	fchown@PLT
	cmp	eax, -1
	jne	.L39
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
.L39:
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L40
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L40:
	mov	eax, DWORD PTR -216[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L43
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L43:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	copy, .-copy
	.type	cleanup_path, @function
cleanup_path:
.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	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L45
.L47:
	sub	QWORD PTR -8[rbp], 1
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L45:
	cmp	QWORD PTR -8[rbp], 1
	jbe	.L48
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L47
.L48:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cleanup_path, .-cleanup_path
	.type	rebase_path, @function
rebase_path:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L50
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L51:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	join_paths
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	rebase_path, .-rebase_path
	.section	.rodata
.LC6:
	.string	"%s/%s"
.LC7:
	.string	"snprintf overflow"
	.text
	.type	join_paths, @function
join_paths:
.LFB11:
	.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 -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 2
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L54
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L54:
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	ja	.L55
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	join_paths, .-join_paths
	.type	ts_to_tv, @function
ts_to_tv:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ts_to_tv, .-ts_to_tv
	.section	.rodata
	.align 8
.LC8:
	.string	"usage: linkmove [-v] source ... target\n"
	.text
	.type	usage, @function
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	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	usage, .-usage
	.local	buf.0
	.comm	buf.0,4096,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	"107952525.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"v\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%s: not a directory\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L2
.L4:
	ldr	r3, [fp, #-112]
	cmp	r3, #118
	bne	.L3
	ldr	r3, .L16+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L16+8
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	bl	getopt
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L16+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	sub	r3, r2, r3
	str	r3, [fp, #-128]
	ldr	r3, .L16+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	bgt	.L5
	bl	usage
.L5:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-116]
	b	.L7
.L6:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L7
	ldr	r2, [fp, #-108]
	ldr	r1, .L16+16
	mov	r0, #1
	bl	err
.L7:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L9
.L11:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	cleanup_path
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	rebase_path
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	move
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	symlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	mov	r1, #0
	mov	r0, #1
	bl	err
.L10:
	ldr	r0, [fp, #-104]
	bl	free
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L9:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	blt	.L11
	b	.L12
.L8:
	ldr	r3, [fp, #-128]
	cmp	r3, #2
	ble	.L13
	ldr	r2, [fp, #-108]
	ldr	r1, .L16+20
	mov	r0, #1
	bl	errx
.L13:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r0, r3
	bl	cleanup_path
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	move
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	symlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	mov	r1, #0
	mov	r0, #1
	bl	err
.L12:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	verbose
	.word	.LC0
	.word	optind
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s\012\000"
	.align	2
.LC5:
	.ascii	".\000"
	.align	2
.LC6:
	.ascii	"..\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L33+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	ldr	r1, .L33+12
	mov	r0, r3
	bl	fprintf
.L19:
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	rename
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #18
	beq	.L21
	mov	r1, #0
	mov	r0, #1
	bl	err
.L21:
	ldr	r0, [fp, #-120]
	bl	opendir
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r2, [fp, #-120]
	ldr	r1, .L33+16
	mov	r0, #1
	bl	err
.L23:
	ldr	r3, [fp, #-84]
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r2, [fp, #-124]
	ldr	r1, .L33+16
	mov	r0, #1
	bl	err
.L24:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	chown
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r1, [fp, #-124]
	ldr	r0, .L33+16
	bl	warn
	b	.L26
.L29:
	ldr	r3, [fp, #-112]
	add	r3, r3, #11
	ldr	r1, .L33+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	b	.L26
.L27:
	ldr	r3, [fp, #-112]
	add	r3, r3, #11
	ldr	r1, .L33+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	b	.L26
.L28:
	ldr	r3, [fp, #-112]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	join_paths
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-112]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	join_paths
	str	r0, [fp, #-104]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	move
	ldr	r0, [fp, #-104]
	bl	free
	ldr	r0, [fp, #-108]
	bl	free
.L26:
	ldr	r0, [fp, #-116]
	bl	readdir
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L29
	ldr	r0, [fp, #-116]
	bl	closedir
	ldr	r0, [fp, #-120]
	bl	rmdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	ldr	r2, [fp, #-124]
	ldr	r1, .L33+16
	mov	r0, #1
	bl	err
.L22:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L30
	ldr	r2, [fp, #-120]
	ldr	r1, .L33+16
	mov	r0, #1
	bl	err
.L30:
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	copy
	ldr	r0, [fp, #-120]
	bl	unlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	ldr	r2, [fp, #-120]
	ldr	r1, .L33+16
	mov	r0, #1
	bl	err
.L32:
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	verbose
	.word	stderr
	.word	.LC4
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.size	move, .-move
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy, %function
copy:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r2, [fp, #-140]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L36:
	mov	r1, #32768
	ldr	r0, [fp, #-136]
	bl	open
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmn	r3, #1
	bne	.L37
	ldr	r2, [fp, #-136]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L37:
	ldr	r3, [fp, #-100]
	mov	r2, r3
	mov	r1, #193
	ldr	r0, [fp, #-140]
	bl	open
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L39
	ldr	r2, [fp, #-140]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L41:
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L40
	ldr	r2, [fp, #-136]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L40:
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r1, .L48+8
	ldr	r0, [fp, #-128]
	bl	write
	str	r0, [fp, #-120]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	beq	.L39
	ldr	r2, [fp, #-140]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L39:
	mov	r2, #4096
	ldr	r1, .L48+8
	ldr	r0, [fp, #-132]
	bl	read
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L41
	sub	r0, fp, #148
	sub	r3, fp, #60
	ldm	r3, {r1, r2}
	bl	ts_to_tv
	sub	r3, fp, #24
	sub	r2, fp, #148
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r0, fp, #148
	sub	r3, fp, #44
	ldm	r3, {r1, r2}
	bl	ts_to_tv
	sub	r3, fp, #16
	sub	r2, fp, #148
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	futimes
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r1, [fp, #-140]
	ldr	r0, .L48+4
	bl	warn
.L42:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	fchown
	mov	r3, r0
	cmn	r3, #1
	bne	.L43
	ldr	r1, [fp, #-140]
	ldr	r0, .L48+4
	bl	warn
.L43:
	ldr	r0, [fp, #-128]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	ldr	r2, [fp, #-140]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L44:
	ldr	r0, [fp, #-132]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L47
	ldr	r2, [fp, #-136]
	ldr	r1, .L48+4
	mov	r0, #1
	bl	err
.L47:
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC8
	.word	.LC1
	.word	buf.6229
	.size	copy, .-copy
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup_path, %function
cleanup_path:
	@ 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	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	b	.L51
.L53:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bls	.L54
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L53
.L54:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cleanup_path, .-cleanup_path
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rebase_path, %function
rebase_path:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L56
	mov	r1, #0
	mov	r0, #1
	bl	err
.L56:
	ldr	r0, [fp, #-16]
	bl	__xpg_basename
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L57
	ldr	r2, [fp, #-24]
	ldr	r1, .L59
	mov	r0, #1
	bl	err
.L57:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	join_paths
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC1
	.size	rebase_path, .-rebase_path
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s/%s\000"
	.align	2
.LC10:
	.ascii	"snprintf overflow\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	join_paths, %function
join_paths:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L62
	mov	r1, #0
	mov	r0, #1
	bl	err
.L62:
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L65
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	snprintf
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L63
	ldr	r1, .L65+4
	mov	r0, #1
	bl	errx
.L63:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC9
	.word	.LC10
	.size	join_paths, .-join_paths
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ts_to_tv, %function
ts_to_tv:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	sub	r3, fp, #24
	stm	r3, {r1, r2}
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, .L69
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L70:
	.align	2
.L69:
	.word	274877907
	.size	ts_to_tv, .-ts_to_tv
	.section	.rodata
	.align	2
.LC11:
	.ascii	"usage: linkmove [-v] source ... target\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L72
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L72+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L73:
	.align	2
.L72:
	.word	stderr
	.word	.LC11
	.size	usage, .-usage
	.local	buf.6229
	.comm	buf.6229,4096,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
