// File: /workspace/github_c_makefile_star2_O0/jeske[P]Clearsilver/perl/ClearSilver.c
// Function: XS_ClearSilver__CS_parseString
XS_EUPXS(XS_ClearSilver__CS_parseString)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "cs, in_str");
    {
	ClearSilver__CS	cs;
	char*	in_str = (char *)SvPV_nolen(ST(1))
;
#line 437 "ClearSilver.xs"
	char* cs_str;
	int len;
#line 1078 "ClearSilver.c"
	int	RETVAL;
	dXSTARG;

	if (SvROK(ST(0)) && sv_derived_from(ST(0), "ClearSilver::CS")) {
	    IV tmp = SvIV((SV*)SvRV(ST(0)));
	    cs = INT2PTR(ClearSilver__CS,tmp);
	}
	else
	    Perl_croak_nocontext("%s: %s is not of type %s",
			"ClearSilver::CS::parseString",
			"cs", "ClearSilver::CS")
;
#line 440 "ClearSilver.xs"
	do {
	    len = strlen(in_str);
	    cs_str = (char *)malloc(len);
	    if (!cs_str) {
	        RETVAL = 0;
		break;
	    }
	    strcpy(cs_str, in_str);
            cs->err =  cs_parse_string(cs->cs, cs_str, len);
	    if (cs->err != STATUS_OK)
		RETVAL = 0;
	    RETVAL = 1;
       } while (0);
#line 1105 "ClearSilver.c"
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

// Assembly:
endbr64
pushq %r15
pushq %r14
movq %rsi, %r14
pushq %r13
pushq %r12
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq 0x6824(%rip), %rbx      # 0x8fe0
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq (%rax), %r13
callq 0x2400
movl (%rbx), %edi
movq 0x70(%rax), %rdx
leaq -0x4(%rdx), %rcx
movq %rcx, 0x70(%rax)
movl (%rdx), %ebp
callq 0x2400
movslq %ebp, %rdx
movq 0x18(%rax), %rax
leaq (%rax,%rdx,8), %rax
subq %rax, %r13
sarq $0x3, %r13
cmpl $0x2, %r13d
jne 0x2a90
movl (%rbx), %edi
leal 0x1(%rbp), %r12d
addl $0x2, %ebp
movslq %ebp, %rbp
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movl 0xc(%rax), %eax
andl $0x200400, %eax         # imm = 0x200400
cmpl $0x400, %eax            # imm = 0x400
je 0x2a18
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rbp
callq 0x2400
movl $0x2, %ecx
xorl %edx, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x24c0
movq %rax, %r14
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x8(%rax), %rax
testb $0x4, 0x23(%rax)
jne 0x29f0
callq 0x2400
movq %rax, %rdi
callq 0x26c0
movq %rax, %r13
movl (%rbx), %edi
movslq %r12d, %r12
callq 0x2400
leaq (,%r12,8), %rcx
movq 0x18(%rax), %rax
movq %rcx, 0x8(%rsp)
movq (%rax,%r12,8), %rax
testb $0x8, 0xd(%rax)
je 0x2a6a
movl (%rbx), %edi
leaq 0x475d(%rip), %r15      # 0x700b
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rbp
callq 0x2400
movq %r15, %rdx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x23f0
testb %al, %al
je 0x2a71
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rax), %rax
movl 0xc(%rax), %eax
andl $0x200100, %eax         # imm = 0x200100
cmpl $0x100, %eax            # imm = 0x100
je 0x2a30
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rax), %rbp
callq 0x2400
movl $0x2, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x23b0
movq %rax, %r12
movq %r14, %rdi
callq 0x2460
movslq %eax, %r15
movq %rax, %rbp
movq %r15, %rdi
callq 0x2560
testq %rax, %rax
je 0x2a9f
leaq 0x1(%rbp), %rdx
movq %r14, %rsi
movq %rax, %rdi
callq 0x2540
movq (%r12), %rdi
movq %r15, %rdx
movq %rax, %rsi
callq 0x25d0
movq %rax, 0x8(%r12)
movl $0x1, %r12d
movl (%rbx), %edi
callq 0x2400
movq 0x8(%rsp), %rcx
movl (%rbx), %edi
movq 0x18(%rax), %rax
leaq -0x8(%rax,%rcx), %rbp
movl 0xc(%r13), %eax
andl $0x998108ff, %eax       # imm = 0x998108FF
cmpl $0x1, %eax
sete %r14b
callq 0x2400
cmpb $0x1, 0xb1(%rax)
je 0x2a50
testb %r14b, %r14b
je 0x2a50
orl $0x1100, 0xc(%r13)      # imm = 0x1100
movq %r12, 0x10(%r13)
movq %r13, 0x8(%rbp)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rbp
callq 0x2400
addq 0x8(%rsp), %rbp
movq %rbp, (%rax)
addq $0x18, %rsp
popq %rbx
popq %rbp
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
callq 0x2400
movl (%rbx), %edi
movq 0x10(%rax), %rbp
callq 0x2400
movq 0x8(%rax), %rax
movq 0x18(%rax), %rax
movq (%rbp,%rax,8), %r13
jmp 0x287c
nopw (%rax,%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %r14
jmp 0x2855
nop
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x20(%rax), %r12
jmp 0x292b
nopl (%rax)
movl (%rbx), %edi
callq 0x2400
movq %r12, %rdx
movq %r13, %rsi
movq %rax, %rdi
callq 0x2480
jmp 0x29c1
leaq 0x459a(%rip), %r15      # 0x700b
movq %r15, %rcx
leaq 0x45a0(%rip), %rdx      # 0x701b
leaq 0x459c(%rip), %rsi      # 0x701e
xorl %eax, %eax
leaq 0x45b0(%rip), %rdi      # 0x703b
callq 0x2570
leaq 0x4569(%rip), %rsi      # 0x7000
movq %r14, %rdi
callq 0x2510
xorl %r12d, %r12d
jmp 0x2973
nopw (%rax,%rax)