// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvg__createGradient(NSVGparser*, char const*, double const*, char*)
static NSVGgradientData* nsvg__findGradientData(NSVGparser* p, const char* id)
{
	NSVGgradientData* grad = p->gradients;
	while (grad) {
		if (strcmp(grad->id, id) == 0)
			return grad;
		grad = grad->next;
	}
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq 0xd040(%rdi), %rbx
testq %rbx, %rbx
je 0x3b200
movq %rcx, %rbp
movq %rsi, %r13
movq %rdi, %r12
movq %rdx, (%rsp)
movslq 0xd000(%rdi), %rax
movq %rax, 0x58(%rsp)
xorl %r14d, %r14d
movq %rbx, %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x75a0
testl %eax, %eax
je 0x3b1b1
movq 0x120(%r15), %r15
testq %r15, %r15
jne 0x3b191
jmp 0x3b4dc
movq %rbp, 0x50(%rsp)
movq 0x118(%r15), %r13
movq %r15, %rbp
testq %r13, %r13
je 0x3b208
movl 0x110(%rbp), %ebx
movslq %ebx, %rbp
shlq $0x4, %rbp
leaq 0x50(%rbp), %rdi
callq 0x7590
testq %rax, %rax
je 0x3b200
movq %rax, %r14
cmpb $0x1, 0xd9(%r15)
jne 0x3b249
movq (%rsp), %rax
movupd (%rax), %xmm1
movupd 0x10(%rax), %xmm2
subpd %xmm1, %xmm2
jmp 0x3b25d
xorl %r14d, %r14d
jmp 0x3b4dc
xorl %r14d, %r14d
movq %r15, %rbp
movq %rbp, %r13
addq $0x40, %r13
movq %rbx, %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x75a0
testl %eax, %eax
je 0x3b238
movq 0x120(%rbp), %rbp
testq %rbp, %rbp
jne 0x3b218
jmp 0x3b4dc
movq 0x118(%rbp), %r13
testq %r13, %r13
je 0x3b20e
jmp 0x3b1c5
movupd 0xd050(%r12), %xmm1
movupd 0xd060(%r12), %xmm2
cmpb $0x2, 0x80(%r15)
movapd %xmm2, 0x20(%rsp)
movapd %xmm1, (%rsp)
jne 0x3b344
movsd 0x88(%r15), %xmm0
movl 0x90(%r15), %esi
movq %r12, %rdi
callq 0x39e80
movsd %xmm0, 0x18(%rsp)
movsd 0x98(%r15), %xmm0
movl 0xa0(%r15), %esi
movaps 0x20(%rsp), %xmm1
movhlps %xmm1, %xmm1            # xmm1 = xmm1[1,1]
movaps %xmm1, %xmm2
movaps %xmm1, 0x30(%rsp)
movaps (%rsp), %xmm1
movhlps %xmm1, %xmm1            # xmm1 = xmm1[1,1]
movaps %xmm1, 0x40(%rsp)
movq %r12, %rdi
callq 0x39e80
movsd %xmm0, 0x10(%rsp)
movsd 0xa8(%r15), %xmm0
movl 0xb0(%r15), %esi
movq %r12, %rdi
movaps (%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
callq 0x39e80
movaps %xmm0, (%rsp)
movsd 0xb8(%r15), %xmm0
movl 0xc0(%r15), %esi
movq %r12, %rdi
movaps 0x40(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
callq 0x39e80
movapd (%rsp), %xmm4
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm1
subsd %xmm1, %xmm4
subsd %xmm2, %xmm0
movsd %xmm0, (%r14)
movapd 0x2d85(%rip), %xmm3     # 0x3e0c0
xorpd %xmm4, %xmm3
jmp 0x3b467
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
movapd %xmm0, 0x30(%rsp)
mulsd %xmm0, %xmm0
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm0, %xmm3
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
divsd 0x2e67(%rip), %xmm0     # 0x3e1d8
movsd %xmm0, 0x40(%rsp)
movsd 0x88(%r15), %xmm0
movl 0x90(%r15), %esi
movq %r12, %rdi
callq 0x39e80
movsd %xmm0, 0x18(%rsp)
movsd 0x98(%r15), %xmm0
movl 0xa0(%r15), %esi
movaps (%rsp), %xmm1
movhlps %xmm1, %xmm1            # xmm1 = xmm1[1,1]
movaps %xmm1, 0x60(%rsp)
movq %r12, %rdi
movaps 0x30(%rsp), %xmm2
callq 0x39e80
movsd %xmm0, 0x10(%rsp)
movsd 0xb8(%r15), %xmm0
movl 0xc0(%r15), %esi
movq %r12, %rdi
movaps (%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
callq 0x39e80
movaps %xmm0, (%rsp)
movsd 0xc8(%r15), %xmm0
movl 0xd0(%r15), %esi
movq %r12, %rdi
movaps 0x60(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
callq 0x39e80
movaps %xmm0, 0x20(%rsp)
movsd 0xa8(%r15), %xmm0
movl 0xb0(%r15), %esi
xorps %xmm1, %xmm1
movq %r12, %rdi
movsd 0x40(%rsp), %xmm2
callq 0x39e80
xorpd %xmm3, %xmm3
movsd 0x10(%rsp), %xmm2
movsd %xmm0, (%r14)
movapd (%rsp), %xmm4
unpcklpd 0x20(%rsp), %xmm4       # xmm4 = xmm4[0],mem[0]
movapd %xmm0, %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
divpd %xmm1, %xmm4
movsd 0x18(%rsp), %xmm1
movupd %xmm4, 0x38(%r14)
xorpd %xmm4, %xmm4
movsd %xmm3, 0x8(%r14)
movsd %xmm4, 0x10(%r14)
movsd %xmm0, 0x18(%r14)
movsd %xmm1, 0x20(%r14)
movsd %xmm2, 0x28(%r14)
leaq 0xe0(%r15), %rsi
movq %r14, %rdi
callq 0x39f03
imulq $0x1a0, 0x58(%rsp), %rax # imm = 0x1A0
leaq (%r12,%rax), %rsi
addq $0x40, %rsi
movq %r14, %rdi
callq 0x39f03
movb 0xd8(%r15), %al
movb %al, 0x30(%r14)
movq %r14, %rdi
addq $0x50, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x7390
movl %ebx, 0x48(%r14)
movb 0x80(%r15), %al
movq 0x50(%rsp), %rcx
movb %al, (%rcx)
movq %r14, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq