	.file	"69213.c"
	.intel_syntax noprefix
	.text
	.globl	sys_basename
	.type	sys_basename, @function
sys_basename:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -56[rbp], rdi
	mov	r12, rsi
	mov	rbx, QWORD PTR -56[rbp]
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
.L2:
	mov	BYTE PTR [r12], 46
	lea	rax, 1[r12]
	mov	BYTE PTR [rax], 0
	jmp	.L1
.L3:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sub	rax, 1
	add	rbx, rax
	jmp	.L5
.L7:
	cmp	rbx, QWORD PTR -56[rbp]
	jne	.L6
	movzx	eax, BYTE PTR [rbx]
	mov	BYTE PTR [r12], al
	lea	rax, 1[r12]
	mov	BYTE PTR [rax], 0
	jmp	.L1
.L6:
	sub	rbx, 1
.L5:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	je	.L7
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 92
	je	.L7
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 58
	jne	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, r12
	call	strcpy@PLT
	jmp	.L1
.L8:
	mov	r13, rbx
	mov	DWORD PTR -36[rbp], 0
	jmp	.L9
.L12:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	je	.L10
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 92
	je	.L10
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 58
	jne	.L11
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdx, rax
	mov	rsi, r13
	mov	rdi, r12
	call	strncpy@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, r12
	mov	BYTE PTR [rax], 0
	jmp	.L1
.L11:
	mov	r13, rbx
	add	DWORD PTR -36[rbp], 1
	sub	rbx, 1
.L9:
	cmp	r13, QWORD PTR -56[rbp]
	jne	.L12
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, r12
	call	strcpy@PLT
.L1:
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sys_basename, .-sys_basename
	.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	"69213.c"
	.text
	.align	2
	.global	sys_basename
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_basename, %function
sys_basename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	str	r0, [fp, #-32]
	mov	r5, r1
	ldr	r4, [fp, #-32]
	mov	r6, r4
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, #46
	strb	r3, [r5]
	add	r3, r5, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L1
.L3:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	add	r4, r4, r3
	b	.L5
.L7:
	ldr	r3, [fp, #-32]
	cmp	r4, r3
	bne	.L6
	ldrb	r3, [r4]	@ zero_extendqisi2
	strb	r3, [r5]
	add	r3, r5, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L1
.L6:
	sub	r4, r4, #1
.L5:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L7
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L7
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L8
	ldr	r1, [fp, #-32]
	mov	r0, r5
	bl	strcpy
	b	.L1
.L8:
	mov	r6, r4
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L12:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L10
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L10
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L11
.L10:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mov	r1, r6
	mov	r0, r5
	bl	strncpy
	ldr	r3, [fp, #-24]
	add	r3, r5, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L1
.L11:
	mov	r6, r4
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	sub	r4, r4, #1
.L9:
	ldr	r3, [fp, #-32]
	cmp	r6, r3
	bne	.L12
	ldr	r1, [fp, #-32]
	mov	r0, r5
	bl	strcpy
.L1:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
	.size	sys_basename, .-sys_basename
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
