	.file	"extr_Str.c_ToStr3.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ToStr3
	.type	ToStr3, @function
ToStr3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 280
	.cfi_def_cfa_offset 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 264[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rsp
	mov	r12, rdi
	mov	ebp, esi
	mov	esi, edx
	mov	rdi, rbx
	call	ToStr64@PLT
	mov	rdi, rbx
	call	StrLen@PLT
	test	eax, eax
	jle	.L13
	movsx	rcx, eax
	lea	r13, 128[rsp]
	lea	esi, -1[rax]
	add	rcx, rbx
	mov	rdx, r13
	lea	rdi, 129[rsp+rsi]
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	esi, BYTE PTR -1[rcx]
	add	rdx, 1
	sub	rcx, 1
	mov	BYTE PTR -1[rdx], sil
	cmp	rdx, rdi
	jne	.L5
	movsx	rdx, eax
.L4:
	mov	BYTE PTR 128[rsp+rdx], 0
	test	eax, eax
	jle	.L14
	lea	r8d, -1[rax]
	xor	ecx, ecx
	lea	r9, 127[rsp]
	mov	eax, 1
	add	r8, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	movsx	rsi, esi
	add	ecx, 2
	mov	BYTE PTR [rsp+rsi], 44
.L8:
	add	rax, 1
.L7:
	movzx	edi, BYTE PTR [r9+rax]
	movsx	rdx, ecx
	lea	esi, 1[rcx]
	mov	BYTE PTR [rsp+rdx], dil
	cmp	rax, r8
	je	.L6
	imul	edx, eax, -1431655765
	cmp	edx, 1431655765
	jbe	.L21
	mov	ecx, esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L10:
	mov	BYTE PTR 128[rsp+rdi], 0
	mov	rdx, r13
	mov	esi, ebp
	mov	rdi, r12
	call	StrCpy@PLT
.L1:
	mov	rax, QWORD PTR 264[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 280
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rsi, esi
	mov	rdi, rbx
	mov	BYTE PTR [rsp+rsi], 0
	call	StrLen@PLT
	test	eax, eax
	jle	.L16
	movsx	rdi, eax
	sub	eax, 1
	mov	rdx, r13
	lea	rcx, [rbx+rdi]
	lea	rsi, 129[rsp+rax]
	.p2align 4,,10
	.p2align 3
.L11:
	movzx	eax, BYTE PTR -1[rcx]
	add	rdx, 1
	sub	rcx, 1
	mov	BYTE PTR -1[rdx], al
	cmp	rdx, rsi
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	xor	edx, edx
	lea	r13, 128[rsp]
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ToStr3, .-ToStr3
	.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_Str.c_ToStr3.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ToStr3
	.syntax unified
	.arm
	.fpu softvfp
	.type	ToStr3, %function
ToStr3:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L22
	sub	sp, sp, #264
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #260]
	mov	r3,#0
	beq	.L1
	add	r6, sp, #4
	mov	r5, r1
	mov	r0, r6
	mov	r1, r2
	bl	ToStr64
	mov	r0, r6
	bl	StrLen
	cmp	r0, #0
	ble	.L13
	add	r3, r6, r0
	add	r2, sp, #131
.L5:
	ldrb	r1, [r3, #-1]!	@ zero_extendqisi2
	cmp	r3, r6
	strb	r1, [r2, #1]!
	bne	.L5
	mov	r3, r0
.L4:
	mov	r2, #0
	add	r1, sp, #264
	add	r3, r1, r3
	cmp	r0, r2
	strb	r2, [r3, #-132]
	ble	.L14
	mov	ip, r2
	mov	r8, #44
	ldr	r7, .L22+4
	add	lr, sp, #131
	b	.L7
.L9:
	add	r3, r2, r2, lsl #2
	add	r3, r3, r3, lsl #4
	add	r3, r3, r3, lsl #8
	add	r3, r3, r3, lsl #16
	add	r3, r2, r3, lsl #1
	cmp	r3, r7
	movhi	ip, r1
	addls	r3, sp, #264
	addls	r1, r3, r1
	strbls	r8, [r1, #-260]
	addls	ip, ip, #2
.L7:
	ldrb	r1, [lr, #1]!	@ zero_extendqisi2
	add	r2, r2, #1
	add	r3, sp, #264
	add	r3, r3, ip
	cmp	r0, r2
	strb	r1, [r3, #-260]
	add	r1, ip, #1
	bne	.L9
.L6:
	mov	r7, #0
	add	r3, sp, #264
	add	r1, r3, r1
	mov	r0, r6
	strb	r7, [r1, #-260]
	bl	StrLen
	cmp	r0, #0
	ble	.L16
	add	r3, r6, r0
	add	r2, sp, #131
.L11:
	ldrb	r1, [r3, #-1]!	@ zero_extendqisi2
	cmp	r6, r3
	strb	r1, [r2, #1]!
	bne	.L11
.L10:
	mov	ip, #0
	add	r3, sp, #264
	add	r3, r3, r0
	mov	r1, r5
	mov	r0, r4
	add	r2, sp, #132
	strb	ip, [r3, #-132]
	bl	StrCpy
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #260]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #264
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r3, #0
	b	.L4
.L14:
	mov	r1, r2
	b	.L6
.L16:
	mov	r0, r7
	b	.L10
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	1431655765
	.size	ToStr3, .-ToStr3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
