	.file	"200143710.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"malloc"
.LC1:
	.string	"pthread_create"
.LC2:
	.string	"pthread_join"
.LC3:
	.string	"Main thread: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 80
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	helpAndLeave
.L2:
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 2
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L3:
	cmp	rsp, rdx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L5
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L5:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dirname_r
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L6
	lea	rdi, .LC0[rip]
	call	pexit
.L6:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -92[rbp]
	lea	edx, 1[rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 4
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rcx
	add	rdx, 8
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -84[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	pthread_pexit
.L8:
	add	DWORD PTR -92[rbp], 1
.L7:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jl	.L9
	mov	DWORD PTR -92[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -84[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	pthread_pexit
.L11:
	add	DWORD PTR -92[rbp], 1
.L10:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jl	.L12
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"thread %d: %s\n"
	.text
	.type	thread_function, @function
thread_function:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	dirname_r
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_function, .-thread_function
	.local	once_control
	.comm	once_control,4,4
	.local	dirname_key
	.comm	dirname_key,4,4
	.type	dirname_data_destructor, @function
dirname_data_destructor:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dirname_data_destructor, .-dirname_data_destructor
	.section	.rodata
.LC5:
	.string	"pthread_key_create"
	.text
	.type	create_dirname_key, @function
create_dirname_key:
.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, 16
	lea	rsi, dirname_data_destructor[rip]
	lea	rdi, dirname_key[rip]
	call	pthread_key_create@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	pthread_pexit
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_dirname_key, .-create_dirname_key
	.section	.rodata
.LC6:
	.string	"pthread_once"
.LC7:
	.string	"pthread_setspecific"
	.text
	.type	get_dirname_specific, @function
get_dirname_specific:
.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
	lea	rsi, create_dirname_key[rip]
	lea	rdi, once_control[rip]
	call	pthread_once@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L21
	mov	eax, DWORD PTR -12[rbp]
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	pthread_pexit
.L21:
	mov	eax, DWORD PTR dirname_key[rip]
	mov	edi, eax
	call	pthread_getspecific@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L22
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	lea	rdi, .LC0[rip]
	call	pexit
.L23:
	mov	eax, DWORD PTR dirname_key[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	pthread_setspecific@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -12[rbp]
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	pthread_pexit
.L22:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_dirname_specific, .-get_dirname_specific
	.section	.rodata
.LC8:
	.string	"."
	.text
	.type	dirname_r, @function
dirname_r:
.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	QWORD PTR -40[rbp], rdi
	mov	eax, 0
	call	get_dirname_specific
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	QWORD PTR -40[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	jne	.L27
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 4096
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L29
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L30:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -16[rbp]
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dirname_r, .-dirname_r
	.section	.rodata
	.align 8
.LC9:
	.string	"Usage: %s <main-thread-path> <thread1-path> [...]\n"
	.text
	.type	helpAndLeave, @function
helpAndLeave:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR stderr[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -8[rbp], rax
.L32:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	helpAndLeave, .-helpAndLeave
	.type	pexit, @function
pexit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	pexit, .-pexit
	.type	pthread_pexit, @function
pthread_pexit:
.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
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pexit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	pthread_pexit, .-pthread_pexit
	.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	"200143710.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc\000"
	.align	2
.LC1:
	.ascii	"pthread_create\000"
	.align	2
.LC2:
	.ascii	"pthread_join\000"
	.align	2
.LC3:
	.ascii	"Main thread: %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	helpAndLeave
.L2:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	dirname_r
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L11+4
	bl	pexit
.L3:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L6:
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	str	r1, [r3, r2, lsl #3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L11+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L11+12
	ldr	r0, [fp, #-12]
	bl	pthread_pexit
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L7
.L9:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r1, .L11+16
	ldr	r0, [fp, #-12]
	bl	pthread_pexit
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L7:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L9
	ldr	r1, [fp, #-20]
	ldr	r0, .L11+20
	bl	printf
	ldr	r0, [fp, #-16]
	bl	free
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	thread_function
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"thread %d: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_function, %function
thread_function:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	dirname_r
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L15
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.size	thread_function, .-thread_function
	.local	once_control
	.comm	once_control,4,4
	.local	dirname_key
	.comm	dirname_key,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirname_data_destructor, %function
dirname_data_destructor:
	@ 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	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dirname_data_destructor, .-dirname_data_destructor
	.section	.rodata
	.align	2
.LC6:
	.ascii	"pthread_key_create\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_dirname_key, %function
create_dirname_key:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L21
	ldr	r0, .L21+4
	bl	pthread_key_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	ldr	r1, .L21+8
	ldr	r0, [fp, #-8]
	bl	pthread_pexit
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	dirname_data_destructor
	.word	dirname_key
	.word	.LC6
	.size	create_dirname_key, .-create_dirname_key
	.section	.rodata
	.align	2
.LC7:
	.ascii	"pthread_once\000"
	.align	2
.LC8:
	.ascii	"pthread_setspecific\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_dirname_specific, %function
get_dirname_specific:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L28
	ldr	r0, .L28+4
	bl	pthread_once
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r1, .L28+8
	ldr	r0, [fp, #-8]
	bl	pthread_pexit
.L24:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	pthread_getspecific
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L25
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L28+16
	bl	pexit
.L26:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	pthread_setspecific
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r1, .L28+20
	ldr	r0, [fp, #-8]
	bl	pthread_pexit
.L25:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	create_dirname_key
	.word	once_control
	.word	.LC7
	.word	dirname_key
	.word	.LC0
	.word	.LC8
	.size	get_dirname_specific, .-get_dirname_specific
	.section	.rodata
	.align	2
.LC9:
	.ascii	".\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirname_r, %function
dirname_r:
	@ 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]
	bl	get_dirname_specific
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
.L31:
	mov	r2, #4096
	ldr	r1, .L36
	ldr	r0, [fp, #-16]
	bl	strncpy
	ldr	r3, [fp, #-16]
	b	.L33
.L32:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L34
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L34:
	mov	r1, #47
	ldr	r0, [fp, #-24]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L35:
	mov	r2, #4096
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	strncpy
	ldr	r3, [fp, #-16]
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC9
	.size	dirname_r, .-dirname_r
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Usage: %s <main-thread-path> <thread1-path> [...]\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	helpAndLeave, %function
helpAndLeave:
	@ 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]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L40+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L39:
	ldr	r2, [fp, #-16]
	ldr	r1, .L40+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-20]
	bl	exit
.L41:
	.align	2
.L40:
	.word	stderr
	.word	stdout
	.word	.LC10
	.size	helpAndLeave, .-helpAndLeave
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pexit, %function
pexit:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	pexit, .-pexit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_pexit, %function
pthread_pexit:
	@ 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]
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r0, [fp, #-12]
	bl	pexit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pthread_pexit, .-pthread_pexit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
