	.file	"extr_text.c_TEXT_PathEllipsify.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	TEXT_PathEllipsify, @function
TEXT_PathEllipsify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR ELLIPSISW[rip]
	call	strlenW@PLT
	mov	DWORD PTR 24[rsp], eax
	test	r14d, r14d
	je	.L1
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, r14d
	jb	.L4
	lea	eax, -1[r14]
	mov	DWORD PTR 12[rsp], eax
	mov	DWORD PTR 24[rsp], eax
.L4:
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR 12[rsp]
	lea	eax, [rdx+rdi]
	cmp	eax, r14d
	jb	.L5
	lea	edx, -1[r14]
	sub	edx, edi
	mov	DWORD PTR [rbx], edx
.L5:
	mov	BYTE PTR 0[rbp+rdx], 0
	mov	esi, DWORD PTR BACK_SLASH[rip]
	mov	rdi, rbp
	call	strrchrW@PLT
	mov	esi, DWORD PTR FORWARD_SLASH[rip]
	mov	rdi, rbp
	mov	r14, rax
	call	strrchrW@PLT
	cmp	r14, rax
	cmovnb	rax, r14
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L10
	sub	eax, ebp
.L6:
	mov	r14d, DWORD PTR [rbx]
	movsx	rdi, DWORD PTR 24[rsp]
	sub	r14d, eax
	mov	rax, QWORD PTR [rsp]
	mov	edx, r14d
	mov	DWORD PTR 28[rsp], r14d
	add	rdi, rax
	mov	rsi, rax
	call	memmove@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, QWORD PTR ELLIPSISW[rip]
	mov	rdi, QWORD PTR [rsp]
	call	memcpy@PLT
	mov	ecx, DWORD PTR 24[rsp]
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 16[rsp], r15d
	add	ecx, r14d
	mov	r14, QWORD PTR [rsp]
	mov	DWORD PTR 20[rsp], ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	test	eax, eax
	je	.L7
	cmp	DWORD PTR 0[r13], r12d
	jle	.L7
	mov	edx, DWORD PTR 20[rsp]
	lea	r15, -1[r14]
	mov	rsi, r14
	mov	rdi, r15
	mov	r14, r15
	call	memmove@PLT
	mov	edi, DWORD PTR [rbx]
	call	assert@PLT
	mov	eax, DWORD PTR [rbx]
	sub	eax, 1
	mov	DWORD PTR [rbx], eax
.L8:
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR [rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r9d, r9d
	push	r13
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 32[rsp]
	xor	r8d, r8d
	sub	ecx, r14d
	lea	edx, [rsi+rax]
	mov	rsi, rbp
	mov	r15d, ecx
	mov	ecx, r12d
	call	GetTextExtentExPointW@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	cmp	r14, rbp
	jne	.L16
.L7:
	mov	rax, QWORD PTR 104[rsp]
	mov	esi, DWORD PTR 24[rsp]
	mov	r10, r14
	mov	ecx, DWORD PTR 28[rsp]
	sub	r10, rbp
	mov	edx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax], r10d
	mov	DWORD PTR 4[rax], esi
	mov	DWORD PTR 8[rax], r15d
	mov	DWORD PTR 12[rax], ecx
	add	edx, DWORD PTR [rbx]
	cmp	QWORD PTR 96[rsp], 0
	mov	DWORD PTR [rbx], edx
	je	.L1
	mov	rdi, QWORD PTR 96[rsp]
	mov	rsi, rbp
	call	memcpy@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 96[rsp]
	mov	BYTE PTR [rbx+rax], 0
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	QWORD PTR [rsp], rbp
	xor	eax, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	TEXT_PathEllipsify, .-TEXT_PathEllipsify
	.comm	FORWARD_SLASH,4,4
	.comm	ELLIPSISW,8,8
	.comm	BACK_SLASH,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_text.c_TEXT_PathEllipsify.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TEXT_PathEllipsify, %function
TEXT_PathEllipsify:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, .L17
	sub	sp, sp, #44
	mov	r4, r2
	ldr	r0, [fp]
	mov	r6, r1
	mov	r5, r3
	ldr	r9, [sp, #80]
	ldr	r10, [sp, #84]
	str	ip, [sp, #36]
	bl	strlenW
	cmp	r4, #0
	str	r0, [sp, #28]
	beq	.L1
	mov	r3, r0
	mov	r8, #0
	cmp	r0, r4
	subcs	r3, r4, #1
	str	r0, [sp, #16]
	strcs	r3, [sp, #16]
	ldr	r1, [sp, #16]
	strcs	r3, [sp, #28]
	ldr	r3, [r5]
	mov	r0, r6
	add	r2, r3, r1
	cmp	r2, r4
	subcs	r4, r4, #1
	subcs	r3, r4, r1
	ldr	r2, .L17+4
	strcs	r3, [r5]
	strb	r8, [r6, r3]
	ldr	r1, [r2]
	bl	strrchrW
	ldr	r3, .L17+8
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r6
	bl	strrchrW
	cmp	r7, r0
	movcc	r7, r0
	cmp	r7, r8
	moveq	r3, r8
	moveq	r7, r6
	ldr	r2, [r5]
	subne	r3, r7, r6
	ldr	r0, [sp, #16]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, r7
	add	r0, r7, r0
	str	r3, [sp, #32]
	bl	memmove
	mov	r0, r7
	ldr	r2, [sp, #16]
	ldr	r1, [fp]
	bl	memcpy
	ldr	r1, [sp, #28]
	ldr	r3, [sp, #32]
	mov	r4, r7
	add	r3, r1, r3
	str	r7, [sp, #20]
	mov	r8, #0
	ldr	r2, [r5]
	ldr	r7, [sp, #36]
	str	r3, [sp, #24]
	b	.L8
.L16:
	ldr	r2, [r10]
	cmp	r2, r9
	ble	.L7
	mov	r1, r4
	mov	r4, fp
	ldr	r2, [sp, #24]
	mov	r0, fp
	bl	memmove
	ldr	r0, [r5]
	bl	assert
	ldr	r2, [r5]
	sub	r2, r2, #1
	str	r2, [r5]
.L8:
	ldr	r3, [sp, #16]
	mov	r1, r6
	add	r2, r3, r2
	mov	r0, r7
	mov	r3, r9
	stmib	sp, {r8, r10}
	str	r8, [sp]
	bl	GetTextExtentExPointW
	cmp	r0, #0
	cmpne	r4, r6
	ldr	r3, [sp, #20]
	sub	fp, r4, #1
	sub	r1, r3, r4
	bne	.L16
.L7:
	ldr	r3, [sp, #92]
	ldr	r2, [sp, #28]
	sub	r4, r4, r6
	str	r2, [r3, #4]
	ldr	r2, [sp, #32]
	str	r4, [r3]
	str	r1, [r3, #8]
	str	r2, [r3, #12]
	ldr	r3, [sp, #88]
	ldr	r2, [r5]
	cmp	r3, #0
	ldr	r3, [sp, #16]
	add	r2, r3, r2
	str	r2, [r5]
	beq	.L1
	mov	r1, r6
	ldr	r0, [sp, #88]
	bl	memcpy
	mov	r2, #0
	ldr	r3, [r5]
	ldr	r1, [sp, #88]
	strb	r2, [r1, r3]
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	ELLIPSISW
	.word	BACK_SLASH
	.word	FORWARD_SLASH
	.size	TEXT_PathEllipsify, .-TEXT_PathEllipsify
	.comm	FORWARD_SLASH,4,4
	.comm	ELLIPSISW,4,4
	.comm	BACK_SLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
