	.file	"930544.c"
	.intel_syntax noprefix
	.text
	.type	ln_warn, @function
ln_warn:
.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, 240
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -232[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	eax, esi
	mov	BYTE PTR -220[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -216[rbp]
	mov	DWORD PTR [rax], 1
	mov	DWORD PTR -208[rbp], 24
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	cmp	BYTE PTR -220[rbp], 0
	je	.L3
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vwarn@PLT
	jmp	.L6
.L3:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vwarnx@PLT
.L6:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ln_warn, .-ln_warn
	.type	si_add_size_t, @function
si_add_size_t:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L8
	mov	DWORD PTR -4[rbp], 1
	jmp	.L9
.L8:
	mov	DWORD PTR -4[rbp], 0
.L9:
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	si_add_size_t, .-si_add_size_t
	.type	ln_path_target_concat, @function
ln_path_target_concat:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdx, -64[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	si_add_size_t
	test	al, al
	je	.L13
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, -64[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	si_add_size_t
	test	al, al
	je	.L13
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L13
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stpcpy@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L14
	mov	rax, QWORD PTR -48[rbp]
	mov	WORD PTR [rax], 47
	add	QWORD PTR -48[rbp], 1
.L14:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L13:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L12:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ln_path_target_concat, .-ln_path_target_concat
	.type	ln_same_file, @function
ln_same_file:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jne	.L18
	mov	BYTE PTR -1[rbp], 1
	jmp	.L19
.L18:
	mov	BYTE PTR -1[rbp], 0
.L19:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ln_same_file, .-ln_same_file
	.section	.rodata
	.align 8
.LC0:
	.string	"source and destination same: %s"
	.align 8
.LC1:
	.string	"failed to unlink destination: %s"
	.align 8
.LC2:
	.string	"destination already exists: %s"
	.text
	.type	ln_remove_dest, @function
ln_remove_dest:
.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, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -161[rbp], 1
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 1
	test	eax, eax
	je	.L23
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ln_same_file
	test	al, al
	je	.L24
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	mov	BYTE PTR -161[rbp], 0
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L22
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	mov	BYTE PTR -161[rbp], 0
	jmp	.L22
.L23:
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	mov	BYTE PTR -161[rbp], 0
.L22:
	movzx	eax, BYTE PTR -161[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ln_remove_dest, .-ln_remove_dest
	.section	.rodata
.LC3:
	.string	"lstat(%s)"
	.align 8
.LC4:
	.string	"failed to create link: %s - %s"
	.text
	.type	ln_create_link, @function
ln_create_link:
.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, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	test	eax, eax
	je	.L28
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	jmp	.L36
.L28:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rcx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ln_remove_dest
	test	al, al
	je	.L36
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 4
	test	eax, eax
	je	.L30
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	symlink@PLT
	mov	DWORD PTR -168[rbp], eax
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L32
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 2
	test	eax, eax
	je	.L33
	mov	DWORD PTR -164[rbp], 1024
	jmp	.L34
.L33:
	mov	DWORD PTR -164[rbp], 0
.L34:
	mov	ecx, DWORD PTR -164[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, -100
	mov	rsi, rax
	mov	edi, -100
	call	linkat@PLT
	mov	DWORD PTR -168[rbp], eax
	jmp	.L31
.L32:
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	link@PLT
	mov	DWORD PTR -168[rbp], eax
.L31:
	cmp	DWORD PTR -168[rbp], 0
	je	.L36
	mov	rcx, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
.L36:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ln_create_link, .-ln_create_link
	.section	.rodata
.LC5:
	.string	"alloc"
	.text
	.type	ln_target_dir, @function
ln_target_dir:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ln_path_target_concat
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, .LC5[rip]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	jmp	.L40
.L38:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ln_create_link
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L40:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ln_target_dir, .-ln_target_dir
	.section	.rodata
.LC6:
	.string	"fLPs"
.LC7:
	.string	"must have >=2 file arguments"
	.align 8
.LC8:
	.string	"final operand must be directory if > 2 operands"
	.align 8
.LC9:
	.string	"only 2 operands allowed if final operand not a directory"
	.text
	.type	ln_main, @function
ln_main:
.LFB13:
	.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
	lea	rax, -168[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L42
.L48:
	cmp	DWORD PTR -172[rbp], 115
	je	.L43
	cmp	DWORD PTR -172[rbp], 115
	jg	.L44
	cmp	DWORD PTR -172[rbp], 102
	je	.L45
	cmp	DWORD PTR -172[rbp], 102
	jg	.L44
	cmp	DWORD PTR -172[rbp], 76
	je	.L46
	cmp	DWORD PTR -172[rbp], 80
	je	.L47
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -164[rbp]
	or	eax, 1
	mov	DWORD PTR -164[rbp], eax
	jmp	.L42
.L46:
	mov	eax, DWORD PTR -164[rbp]
	or	eax, 2
	mov	DWORD PTR -164[rbp], eax
	jmp	.L42
.L47:
	mov	eax, DWORD PTR -164[rbp]
	and	eax, -3
	mov	DWORD PTR -164[rbp], eax
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -164[rbp]
	or	eax, 4
	mov	DWORD PTR -164[rbp], eax
	jmp	.L42
.L44:
	mov	DWORD PTR -168[rbp], 1
	nop
.L42:
	mov	rcx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -196[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], -1
	jne	.L48
	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
	mov	eax, DWORD PTR -168[rbp]
	test	eax, eax
	jne	.L49
	cmp	DWORD PTR -196[rbp], 1
	jg	.L50
	lea	rax, -168[rbp]
	lea	rdx, .LC7[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	jmp	.L49
.L50:
	mov	BYTE PTR -177[rbp], 0
	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]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L51
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L52
	mov	BYTE PTR -177[rbp], 1
	mov	DWORD PTR -176[rbp], 0
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -168[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ln_target_dir
	add	DWORD PTR -176[rbp], 1
.L53:
	mov	eax, DWORD PTR -196[rbp]
	sub	eax, 1
	cmp	DWORD PTR -176[rbp], eax
	jl	.L54
	jmp	.L51
.L52:
	cmp	DWORD PTR -196[rbp], 2
	jle	.L51
	lea	rax, -168[rbp]
	lea	rdx, .LC8[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
.L51:
	movzx	eax, BYTE PTR -177[rbp]
	xor	eax, 1
	test	al, al
	je	.L49
	mov	eax, DWORD PTR -168[rbp]
	test	eax, eax
	jne	.L49
	cmp	DWORD PTR -196[rbp], 2
	je	.L55
	lea	rax, -168[rbp]
	lea	rdx, .LC9[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	ln_warn
	jmp	.L49
.L55:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -208[rbp]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -168[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ln_create_link
.L49:
	mov	eax, DWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ln_main, .-ln_main
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ln_main
	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	"930544.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_warn, %function
ln_warn:
	@ args = 4, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3]
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	vwarn
	b	.L5
.L2:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	vwarnx
.L5:
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	ln_warn, .-ln_warn
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_add_size_t, %function
si_add_size_t:
	@ 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]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bls	.L9
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L9:
	mov	r3, #0
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	si_add_size_t, .-si_add_size_t
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_path_target_concat, %function
ln_path_target_concat:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-44]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-24]
	bl	__xpg_basename
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-40]
	bl	strlen
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strlen
	str	r0, [fp, #-12]
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	si_add_size_t
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-36]
	sub	r2, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	si_add_size_t
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	stpcpy
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L15
	ldr	r3, [fp, #-28]
	ldr	r2, .L18+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L15:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	strcpy
.L14:
	ldr	r0, [fp, #-24]
	bl	free
.L13:
	ldr	r3, [fp, #-32]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC1
	.size	ln_path_target_concat, .-ln_path_target_concat
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_same_file, %function
ln_same_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L21
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L21
	mov	r3, #1
	strb	r3, [fp, #-5]
	b	.L22
.L21:
	mov	r3, #0
	strb	r3, [fp, #-5]
.L22:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ln_same_file, .-ln_same_file
	.section	.rodata
	.align	2
.LC3:
	.ascii	"source and destination same: %s\000"
	.align	2
.LC4:
	.ascii	"failed to unlink destination: %s\000"
	.align	2
.LC5:
	.ascii	"destination already exists: %s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_remove_dest, %function
ln_remove_dest:
	@ 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, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-101]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	ln_same_file
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-120]
	ldr	r2, .L30+4
	mov	r1, #0
	ldr	r0, [fp, #-112]
	bl	ln_warn
	mov	r3, #0
	strb	r3, [fp, #-101]
	b	.L25
.L27:
	ldr	r0, [fp, #-120]
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-120]
	ldr	r2, .L30+8
	mov	r1, #1
	ldr	r0, [fp, #-112]
	bl	ln_warn
	mov	r3, #0
	strb	r3, [fp, #-101]
	b	.L25
.L26:
	ldr	r3, [fp, #-120]
	ldr	r2, .L30+12
	mov	r1, #0
	ldr	r0, [fp, #-112]
	bl	ln_warn
	mov	r3, #0
	strb	r3, [fp, #-101]
.L25:
	ldrb	r3, [fp, #-101]	@ zero_extendqisi2
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC6
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	ln_remove_dest, .-ln_remove_dest
	.section	.rodata
	.align	2
.LC7:
	.ascii	"lstat(%s)\000"
	.align	2
.LC8:
	.ascii	"failed to create link: %s - %s\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_create_link, %function
ln_create_link:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-116]
	ldr	r2, .L42+4
	mov	r1, #1
	ldr	r0, [fp, #-112]
	bl	ln_warn
	b	.L41
.L33:
	sub	r3, fp, #100
	ldr	r2, [fp, #-120]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	ln_remove_dest
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L35
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-116]
	bl	symlink
	str	r0, [fp, #-108]
	b	.L36
.L35:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L37
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L38
	mov	r3, #1024
	str	r3, [fp, #-104]
	b	.L39
.L38:
	mov	r3, #0
	str	r3, [fp, #-104]
.L39:
	ldr	r3, [fp, #-104]
	str	r3, [sp]
	ldr	r3, [fp, #-120]
	mvn	r2, #99
	ldr	r1, [fp, #-116]
	mvn	r0, #99
	bl	linkat
	str	r0, [fp, #-108]
	b	.L36
.L37:
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-116]
	bl	link
	str	r0, [fp, #-108]
.L36:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-120]
	str	r3, [sp]
	ldr	r3, [fp, #-116]
	ldr	r2, .L42+8
	mov	r1, #1
	ldr	r0, [fp, #-112]
	bl	ln_warn
.L41:
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.size	ln_create_link, .-ln_create_link
	.section	.rodata
	.align	2
.LC10:
	.ascii	"alloc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_target_dir, %function
ln_target_dir:
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	ln_path_target_concat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L45
	ldr	r2, .L48
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	ln_warn
	b	.L47
.L45:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	ln_create_link
	ldr	r0, [fp, #-8]
	bl	free
.L47:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC10
	.size	ln_target_dir, .-ln_target_dir
	.section	.rodata
	.align	2
.LC11:
	.ascii	"fLPs\000"
	.align	2
.LC12:
	.ascii	"must have >=2 file arguments\000"
	.align	2
.LC13:
	.ascii	"final operand must be directory if > 2 operands\000"
	.align	2
.LC14:
	.ascii	"only 2 operands allowed if final operand not a dire"
	.ascii	"ctory\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ln_main, %function
ln_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, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L51
.L57:
	ldr	r3, [fp, #-112]
	cmp	r3, #115
	beq	.L52
	ldr	r3, [fp, #-112]
	cmp	r3, #115
	bgt	.L53
	ldr	r3, [fp, #-112]
	cmp	r3, #102
	beq	.L54
	ldr	r3, [fp, #-112]
	cmp	r3, #102
	bgt	.L53
	ldr	r3, [fp, #-112]
	cmp	r3, #76
	beq	.L55
	ldr	r3, [fp, #-112]
	cmp	r3, #80
	beq	.L56
	b	.L53
.L54:
	ldr	r3, [fp, #-104]
	orr	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L51
.L55:
	ldr	r3, [fp, #-104]
	orr	r3, r3, #2
	str	r3, [fp, #-104]
	b	.L51
.L56:
	ldr	r3, [fp, #-104]
	bic	r3, r3, #2
	str	r3, [fp, #-104]
	b	.L51
.L52:
	ldr	r3, [fp, #-104]
	orr	r3, r3, #4
	str	r3, [fp, #-104]
	b	.L51
.L53:
	mov	r3, #1
	str	r3, [fp, #-108]
	nop
.L51:
	ldr	r2, .L67+4
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	bl	getopt
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L57
	ldr	r3, .L67+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	sub	r3, r2, r3
	str	r3, [fp, #-128]
	ldr	r3, .L67+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	bgt	.L59
	sub	r3, fp, #108
	ldr	r2, .L67+12
	mov	r1, #0
	mov	r0, r3
	bl	ln_warn
	b	.L58
.L59:
	mov	r3, #0
	strb	r3, [fp, #-117]
	ldr	r3, [fp, #-128]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L61
	mov	r3, #1
	strb	r3, [fp, #-117]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L62
.L63:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-128]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r0, r3
	bl	ln_target_dir
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L62:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L63
	b	.L60
.L61:
	ldr	r3, [fp, #-128]
	cmp	r3, #2
	ble	.L60
	sub	r3, fp, #108
	ldr	r2, .L67+16
	mov	r1, #0
	mov	r0, r3
	bl	ln_warn
.L60:
	ldrb	r3, [fp, #-117]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-128]
	cmp	r3, #2
	beq	.L64
	sub	r3, fp, #108
	ldr	r2, .L67+20
	mov	r1, #0
	mov	r0, r3
	bl	ln_warn
	b	.L58
.L64:
	ldr	r3, [fp, #-132]
	ldr	r1, [r3]
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r0, r3
	bl	ln_create_link
.L58:
	ldr	r3, [fp, #-108]
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC15
	.word	.LC11
	.word	optind
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	ln_main, .-ln_main
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	ln_main
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
