// File: /workspace/github_c_makefile_star2_O0/jeske[P]Clearsilver/perl/ClearSilver.c
// Function: XS_ClearSilver__CS_render
XS_EUPXS(XS_ClearSilver__CS_render)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "cs");
    {
	ClearSilver__CS	cs;
	char *	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::render",
			"cs", "ClearSilver::CS")
;
#line 403 "ClearSilver.xs"
    {
	SV *str = newSV(0);
	cs->err = cs_render(cs->cs, str, output);
	if (cs->err == STATUS_OK) {
	  ST(0) = sv_2mortal(str);
	} else {
	  SvREFCNT_dec(str);
	  ST(0) = &PL_sv_undef;
	}
	XSRETURN(1);
    }
#line 1020 "ClearSilver.c"
    }
    XSRETURN(1);
}

// Assembly:
endbr64
pushq %r14
pushq %r13
movq %rsi, %r13
pushq %r12
pushq %rbp
pushq %rbx
movq 0x61ea(%rip), %rbx      # 0x8fe0
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq (%rax), %r12
callq 0x2400
movl (%rbx), %edi
movq 0x70(%rax), %rdx
leaq -0x4(%rdx), %rcx
movq %rcx, 0x70(%rax)
movslq (%rdx), %r14
callq 0x2400
movq 0x18(%rax), %rax
leaq (%rax,%r14,8), %rax
subq %rax, %r12
sarq $0x3, %r12
cmpl $0x1, %r12d
jne 0x303e
movl (%rbx), %edi
leal 0x1(%r14), %ebp
callq 0x2400
movl (%rbx), %edi
movq 0x8(%rax), %rax
testb $0x4, 0x23(%rax)
jne 0x2fa0
callq 0x2400
movq %rax, %rdi
callq 0x26c0
movl (%rbx), %edi
movslq %ebp, %rbp
leaq (,%rbp,8), %r14
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
testb $0x8, 0xd(%rax)
je 0x3018
movl (%rbx), %edi
leaq 0x4180(%rip), %r12      # 0x700b
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %r13
callq 0x2400
movq %r12, %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x23f0
testb %al, %al
je 0x301f
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rax
movl 0xc(%rax), %eax
andl $0x200100, %eax         # imm = 0x200100
cmpl $0x100, %eax            # imm = 0x100
je 0x2fb8
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %r12
callq 0x2400
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x23b0
movq %rax, %r13
movl (%rbx), %edi
callq 0x2400
xorl %esi, %esi
movq %rax, %rdi
callq 0x2430
movq (%r13), %rdi
leaq -0x184(%rip), %rdx      # 0x2da0
movq %rax, %rsi
movq %rax, %r12
callq 0x25b0
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x2fd8
movl (%rbx), %edi
callq 0x2400
testq %r12, %r12
je 0x2f5e
movl 0x8(%r12), %edx
cmpl $0x1, %edx
jbe 0x3008
subl $0x1, %edx
movl %edx, 0x8(%r12)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq %rax, %r12
callq 0x2400
addq $0x140, %r12            # imm = 0x140
movq 0x18(%rax), %rax
movq %r12, (%rax,%rbp,8)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rbp
callq 0x2400
addq %r14, %rbp
movq %rbp, (%rax)
popq %rbx
popq %rbp
popq %r12
popq %r13
popq %r14
retq
nop
callq 0x2400
movl (%rbx), %edi
callq 0x2400
jmp 0x2e5e
nopl (%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x20(%rax), %r13
jmp 0x2f08
nopl (%rax)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq %rax, %rbp
callq 0x2400
movq %r12, %rsi
movq %rbp, %rdi
movq 0x18(%rax), %r13
callq 0x25f0
addq %r14, %r13
movq %rax, (%r13)
jmp 0x2f7e
nopl (%rax)
movq %r12, %rsi
movq %rax, %rdi
callq 0x2690
jmp 0x2f5e
leaq 0x3fec(%rip), %r12      # 0x700b
movq %r12, %rcx
leaq 0x3ff2(%rip), %rdx      # 0x701b
leaq 0x405a(%rip), %rsi      # 0x708a
xorl %eax, %eax
leaq 0x4002(%rip), %rdi      # 0x703b
callq 0x2570
leaq 0x3fd6(%rip), %rsi      # 0x701b
movq %r13, %rdi
callq 0x2510
nopl (%rax)