	.file	"extr_nanovg.c_nvg__addPoint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvg__addPoint, @function
nvg__addPoint:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	movss	DWORD PTR 8[rsp], xmm0
	movss	DWORD PTR 12[rsp], xmm1
	call	nvg__lastPath@PLT
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], 0
	mov	rdx, QWORD PTR [rax]
	jle	.L4
	test	rdx, rdx
	jle	.L4
	mov	rdi, rbx
	call	nvg__lastPoint@PLT
	mov	edi, DWORD PTR 8[rbx]
	movss	xmm3, DWORD PTR 12[rsp]
	movss	xmm2, DWORD PTR 8[rsp]
	movss	xmm1, DWORD PTR 4[rax]
	mov	r13, rax
	movss	xmm0, DWORD PTR [rax]
	call	nvg__ptEquals@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR [rax]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR 8[rax]
	mov	rdi, QWORD PTR 16[rax]
	movsx	rax, ecx
	cmp	rax, rdx
	jg	.L6
	mov	eax, ecx
	shr	eax, 31
	add	eax, ecx
	sar	eax
	lea	r13d, 1[rax+rdx]
	lea	esi, 0[r13+r13*2]
	sal	esi, 2
	call	realloc@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 16[rax], rdi
	mov	rdx, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], r13d
.L6:
	lea	rax, [rdx+rdx*2]
	xor	esi, esi
	mov	edx, 12
	and	r12d, 255
	lea	r13, [rdi+rax*4]
	mov	rdi, r13
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	movss	xmm4, DWORD PTR 8[rsp]
	mov	DWORD PTR 8[r13], r12d
	movss	xmm5, DWORD PTR 12[rsp]
	movss	DWORD PTR 0[r13], xmm4
	movss	DWORD PTR 4[r13], xmm5
	add	QWORD PTR [rax], 1
	add	QWORD PTR 0[rbp], 1
.L1:
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	or	DWORD PTR 8[r13], r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvg__addPoint, .-nvg__addPoint
	.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_nanovg.c_nvg__addPoint.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvg__addPoint, %function
nvg__addPoint:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	mov	r8, r0
	bl	nvg__lastPath
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, [r4]
	ldr	lr, [r8]
	cmp	r3, #0
	ldr	ip, [lr]
	ble	.L4
	cmp	ip, #0
	ble	.L4
	mov	r0, r8
	bl	nvg__lastPoint
	ldr	r3, [r8, #4]
	ldr	r1, [r0, #4]	@ float
	mov	r9, r0
	mov	r2, r7
	ldr	r0, [r0]	@ float
	str	r3, [sp]
	mov	r3, r6
	bl	nvg__ptEquals
	cmp	r0, #0
	bne	.L5
	ldr	lr, [r8]
	ldr	ip, [lr]
.L4:
	ldr	r3, [lr, #4]
	ldr	r0, [lr, #8]
	cmp	r3, ip
	add	r2, ip, #1
	ble	.L13
.L6:
	ldr	r3, [r4]
	add	ip, ip, ip, lsl #1
	str	r7, [r0, ip, lsl #2]	@ float
	and	r5, r5, #255
	add	ip, r0, ip, lsl #2
	add	r3, r3, #1
	str	r6, [ip, #4]	@ float
	str	r5, [ip, #8]
	str	r2, [lr]
	str	r3, [r4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	add	r3, r3, r3, lsr #31
	add	r9, r2, r3, asr #1
	add	r1, r9, r9, lsl #1
	lsl	r1, r1, #2
	bl	realloc
	cmp	r0, #0
	beq	.L1
	ldr	lr, [r8]
	ldr	ip, [lr]
	str	r0, [lr, #8]
	str	r9, [lr, #4]
	add	r2, ip, #1
	b	.L6
.L5:
	ldr	r3, [r9, #8]
	orr	r5, r3, r5
	str	r5, [r9, #8]
	b	.L1
	.size	nvg__addPoint, .-nvg__addPoint
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
