	.file	"158436.c"
	.intel_syntax noprefix
	.text
	.globl	dirname
	.type	dirname, @function
dirname:
.LFB0:
	.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
	cmp	QWORD PTR -40[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L19
	sub	QWORD PTR -16[rbp], 1
.L5:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L8
	jmp	.L7
.L19:
	nop
.L7:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 47
	mov	rdi, rax
	mov	eax, 0
	call	__memrchr@PLT
	cdqe
	mov	QWORD PTR -24[rbp], rax
.L4:
	cmp	QWORD PTR -24[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L20
	sub	QWORD PTR -8[rbp], 1
.L10:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L13
	jmp	.L12
.L20:
	nop
.L12:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L14
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	cmp	QWORD PTR -24[rbp], rax
	jne	.L15
	add	QWORD PTR -24[rbp], 1
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L16
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L17
.L9:
	lea	rax, dot.0[rip]
	mov	QWORD PTR -40[rbp], rax
.L17:
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dirname, .-dirname
	.section	.rodata
	.type	dot.0, @object
	.size	dot.0, 2
dot.0:
	.string	"."
	.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	"158436.c"
	.text
	.align	2
	.global	dirname
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirname, %function
dirname:
	@ 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]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	mov	r1, #47
	ldr	r0, [fp, #-24]
	bl	strrchr
	mov	r3, r0
	b	.L3
.L2:
	mov	r3, #0
.L3:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L5
.L8:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L19
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L8
	b	.L7
.L19:
	nop
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L4
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, #47
	ldr	r0, [fp, #-24]
	bl	__memrchr
	mov	r3, r0
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L10
.L13:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L20
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L13
	b	.L12
.L20:
	nop
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L16
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L16
.L14:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	b	.L17
.L9:
	ldr	r3, .L21
	str	r3, [fp, #-24]
.L17:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	dot.4382
	.size	dirname, .-dirname
	.section	.rodata
	.align	2
	.type	dot.4382, %object
	.size	dot.4382, 2
dot.4382:
	.ascii	".\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
