// File: /workspace/github_c_makefile_star2_O0/jeske[P]Clearsilver/perl/ClearSilver.c
// Function: XS_ClearSilver__CS_new
XS_EUPXS(XS_ClearSilver__CS_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "self, hdf");
    {
	char*	self = (char *)SvPV_nolen(ST(0))
;
	ClearSilver__HDF	hdf;
#line 371 "ClearSilver.xs"
        perlCS* cs;
#line 900 "ClearSilver.c"
	ClearSilver__CS	RETVAL;

	if (SvROK(ST(1)) && sv_derived_from(ST(1), "ClearSilver::HDF")) {
	    IV tmp = SvIV((SV*)SvRV(ST(1)));
	    hdf = INT2PTR(ClearSilver__HDF,tmp);
	}
	else
	    Perl_croak_nocontext("%s: %s is not of type %s",
			"ClearSilver::CS::new",
			"hdf", "ClearSilver::HDF")
;
#line 373 "ClearSilver.xs"
	cs = (perlCS*)malloc(sizeof(perlCS));
	if (!cs) {
	  RETVAL = NULL;
	} else {
	  cs->err = cs_init(&(cs->cs), hdf->hdf);
	  if (cs->err == STATUS_OK) {
	    cs->err = cgi_register_strfuncs(cs->cs);
	  }
	  RETVAL = cs;
	}
#line 923 "ClearSilver.c"
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    sv_setref_pv(RETVALSV, "ClearSilver::CS", (void*)RETVAL);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

// Assembly:
endbr64
pushq %r15
pushq %r14
pushq %r13
pushq %r12
movq %rsi, %r12
pushq %rbp
pushq %rbx
subq $0x8, %rsp
movq 0x5cb4(%rip), %rbx      # 0x8fe0
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq (%rax), %r14
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), %rdx
movq %r14, %rax
subq %rdx, %rax
sarq $0x3, %rax
cmpl $0x2, %eax
jne 0x3569
movl (%rbx), %edi
leal 0x1(%rbp), %r13d
movslq %r13d, %r13
callq 0x2400
leaq (,%r13,8), %r14
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rax
movl 0xc(%rax), %eax
andl $0x200400, %eax         # imm = 0x200400
cmpl $0x400, %eax            # imm = 0x400
je 0x3500
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %r12
callq 0x2400
movl $0x2, %ecx
xorl %edx, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x24c0
movl (%rbx), %edi
addl $0x2, %ebp
movslq %ebp, %rbp
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
testb $0x8, 0xd(%rax)
je 0x3543
movl (%rbx), %edi
leaq 0x3d0c(%rip), %r12      # 0x70fd
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %r15
callq 0x2400
movq %r12, %rdx
movq %rax, %rdi
movq %r15, %rsi
callq 0x23f0
testb %al, %al
je 0x354a
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 0x3510
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rbp
callq 0x2400
movl $0x2, %edx
movq %rbp, %rsi
movq %rax, %rdi
callq 0x23b0
movq %rax, %rbp
movl $0x10, %edi
callq 0x2560
movq %rax, %r12
testq %rax, %rax
je 0x349a
movq (%rbp), %rsi
movq %rax, %rdi
callq 0x2450
movq %rax, 0x8(%r12)
testq %rax, %rax
je 0x3530
movl (%rbx), %edi
callq 0x2400
movq %rax, %rdi
callq 0x26c0
movl (%rbx), %edi
movq %rax, %rbp
callq 0x2400
movq %r12, %rcx
movq %rbp, %rsi
leaq 0x3b4b(%rip), %rdx      # 0x700b
movq %rax, %rdi
callq 0x23a0
movl (%rbx), %edi
callq 0x2400
movq 0x18(%rax), %rax
movq %rbp, (%rax,%r13,8)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rbp
callq 0x2400
addq %r14, %rbp
movq %rbp, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
callq 0x2400
jmp 0x33c9
nopw (%rax,%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x20(%rax), %rbp
jmp 0x346e
nopl (%rax)
movq (%r12), %rdi
callq 0x23d0
movq %rax, 0x8(%r12)
jmp 0x349a
leaq 0x3bb3(%rip), %r12      # 0x70fd
movq %r12, %rcx
leaq 0x3ba5(%rip), %rdx      # 0x70f9
leaq 0x3bb3(%rip), %rsi      # 0x710e
xorl %eax, %eax
leaq 0x3ad7(%rip), %rdi      # 0x703b
callq 0x2570
leaq 0x3b83(%rip), %rsi      # 0x70f3
movq %r12, %rdi
callq 0x2510
nopl (%rax,%rax)