	.file	"805710.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.align 4
.LC1:
	.string	"."
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.text
	.globl	dirname
	.type	dirname, @function
dirname:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	esi, 0
	mov	edi, 0
	call	setlocale@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -48[rbp], rax
.L2:
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	setlocale@PLT
	cmp	QWORD PTR -56[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	mbstowcs@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbstowcs@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	cmp	QWORD PTR -16[rbp], 1
	jbe	.L4
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	jne	.L4
.L5:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L35
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L35
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	setlocale@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L7
.L4:
	cmp	QWORD PTR -16[rbp], 1
	jbe	.L8
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	eax, 58
	jne	.L8
	add	QWORD PTR -40[rbp], 8
	jmp	.L8
.L35:
	nop
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L9
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	jne	.L11
	jmp	.L12
.L13:
	add	QWORD PTR -40[rbp], 4
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L13
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L13
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
.L11:
	add	QWORD PTR -40[rbp], 4
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L16
	jmp	.L15
.L36:
	nop
.L15:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jbe	.L17
.L19:
	sub	QWORD PTR -24[rbp], 4
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jbe	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jne	.L20
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	jne	.L20
.L21:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L20
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L20
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L20
	add	QWORD PTR -24[rbp], 4
.L20:
	add	QWORD PTR -24[rbp], 4
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L22
.L23:
	add	QWORD PTR -40[rbp], 4
.L22:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L23
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -8[rbp]
	cmp	rax, 8
	jg	.L24
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L25
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L26
.L30:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L28
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	jne	.L26
	jmp	.L28
.L29:
	add	QWORD PTR -40[rbp], 4
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L29
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	wcstombs@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	je	.L31
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L31
.L17:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L32
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	jne	.L33
.L32:
	add	QWORD PTR -32[rbp], 4
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR [rax], 46
.L34:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	wcstombs@PLT
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR retfail.0[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR retfail.0[rip], rax
	mov	rax, QWORD PTR retfail.0[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	wcstombs@PLT
.L31:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	setlocale@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L7
.L3:
	mov	edx, 0
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	wcstombs@PLT
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR retfail.0[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR retfail.0[rip], rax
	mov	rax, QWORD PTR retfail.0[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	wcstombs@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	setlocale@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR retfail.0[rip]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dirname, .-dirname
	.local	retfail.0
	.comm	retfail.0,8,8
	.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	"805710.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	".\000\000\000\000\000\000\000"
	.text
	.align	2
	.global	dirname
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirname, %function
dirname:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	mov	r1, #0
	mov	r0, #0
	bl	setlocale
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-36]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-36]
.L2:
	ldr	r1, .L37
	mov	r0, #0
	bl	setlocale
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	mov	r2, #0
	ldr	r1, [fp, #-40]
	mov	r0, #0
	bl	mbstowcs
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	mbstowcs
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bls	.L4
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L5
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	bne	.L4
.L5:
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L35
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
	ldr	r1, [fp, #-36]
	mov	r0, #0
	bl	setlocale
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-40]
	b	.L7
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bls	.L8
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #58
	bne	.L8
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	str	r3, [fp, #-32]
	b	.L8
.L35:
	nop
.L8:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	b	.L9
.L16:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L12
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	bne	.L11
	b	.L12
.L13:
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L12:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L13
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L13
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	b	.L15
.L36:
	nop
.L15:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bls	.L17
.L19:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bls	.L18
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L19
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L19
.L18:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L21
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #92
	bne	.L20
.L21:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L20
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L20
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L20:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	b	.L22
.L23:
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L22:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L23
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L23
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #8
	bgt	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L25
.L24:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	b	.L26
.L30:
	ldr	r3, [fp, #-28]
	add	r2, r3, #4
	str	r2, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L28
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	bne	.L26
	b	.L28
.L29:
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L28:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L29
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L29
.L26:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	wcstombs
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L31
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L31
.L17:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #47
	beq	.L32
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #92
	bne	.L33
.L32:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	b	.L34
.L33:
	ldr	r3, [fp, #-28]
	add	r2, r3, #4
	str	r2, [fp, #-28]
	mov	r2, #46
	str	r2, [r3]
.L34:
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L37+4
	ldr	r4, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	wcstombs
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	mov	r0, r4
	bl	realloc
	mov	r3, r0
	ldr	r2, .L37+4
	str	r3, [r2]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	wcstombs
.L31:
	ldr	r1, [fp, #-36]
	mov	r0, #0
	bl	setlocale
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-40]
	b	.L7
.L3:
	ldr	r3, .L37+4
	ldr	r4, [r3]
	mov	r2, #0
	ldr	r1, .L37+8
	mov	r0, #0
	bl	wcstombs
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	mov	r0, r4
	bl	realloc
	mov	r3, r0
	ldr	r2, .L37+4
	str	r3, [r2]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L37+8
	mov	r0, r3
	bl	wcstombs
	ldr	r1, [fp, #-36]
	mov	r0, #0
	bl	setlocale
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r3, .L37+4
	ldr	r3, [r3]
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	retfail.5342
	.word	.LC1
	.size	dirname, .-dirname
	.local	retfail.5342
	.comm	retfail.5342,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
