	.file	"extr_proc.c_proc_getpath.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	proc_getpath, @function
proc_getpath:
.LFB0:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	lea	r13, proc_root[rip]
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	lea	r14, -1[rsi+rax]
	mov	BYTE PTR [r14], 0
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR -64[rbp], rax
	cmp	r13, rax
	je	.L8
	xor	ebx, ebx
	lea	r12, -64[rbp]
.L6:
	movsx	rax, DWORD PTR MAX_NAME[rip]
	mov	rcx, rsp
	mov	r15, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L4
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L5
	or	QWORD PTR -8[rsp+rdx], 0
.L5:
	mov	rsi, rsp
	mov	rdi, r12
	call	proc_entry_getname@PLT
	mov	rdi, rsp
	call	strlen@PLT
	mov	rsi, rsp
	lea	edx, 1[rax]
	movsx	rdx, edx
	sub	r14, rdx
	add	rbx, rdx
	mov	BYTE PTR [r14], 47
	lea	rdi, 1[r14]
	call	memcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rsp, r15
	cmp	QWORD PTR -64[rbp], r13
	jne	.L6
	lea	rdx, 1[rbx]
.L2:
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, r14
	call	memmove@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, 1
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	proc_getpath, .-proc_getpath
	.comm	proc_root,8,8
	.comm	MAX_PATH,4,4
	.comm	MAX_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_proc.c_proc_getpath.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_getpath, %function
proc_getpath:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	mov	r5, #0
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r4, [r3]
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	sub	r4, r4, #1
	strb	r5, [r1, r4]
	ldr	r3, [r0]
	ldr	r7, .L10+8
	mov	r9, r1
	cmp	r3, r7
	add	r4, r1, r4
	str	r3, [fp, #-44]
	beq	.L5
	mov	r8, #47
	ldr	r10, .L10+12
.L3:
	ldr	r3, [r10]
	mov	r6, sp
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, sp
	sub	r0, fp, #44
	bl	proc_entry_getname
	mov	r0, sp
	bl	strlen
	add	r2, r0, #1
	sub	r4, r4, r2
	mov	r0, r4
	mov	r1, sp
	strb	r8, [r0], #1
	add	r5, r5, r2
	bl	memcpy
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	mov	sp, r6
	cmp	r3, r7
	bne	.L3
	add	r2, r5, #1
.L2:
	mov	r1, r4
	mov	r0, r9
	bl	memmove
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r2, #1
	b	.L2
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MAX_PATH
	.word	.LC0
	.word	proc_root
	.word	MAX_NAME
	.size	proc_getpath, .-proc_getpath
	.comm	proc_root,4,4
	.comm	MAX_PATH,4,4
	.comm	MAX_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
