// File: /workspace/github_c_makefile_star2_O0/jeske[P]Clearsilver/perl/ClearSilver.c
// Function: XS_ClearSilver__HDF_copy
XS_EUPXS(XS_ClearSilver__HDF_copy)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "hdf, name, src");
    {
	ClearSilver__HDF	hdf;
	char*	name = (char *)SvPV_nolen(ST(1))
;
	ClearSilver__HDF	src;
	int	RETVAL;
	dXSTARG;

	if (SvROK(ST(0)) && sv_derived_from(ST(0), "ClearSilver::HDF")) {
	    IV tmp = SvIV((SV*)SvRV(ST(0)));
	    hdf = INT2PTR(ClearSilver__HDF,tmp);
	}
	else
	    Perl_croak_nocontext("%s: %s is not of type %s",
			"ClearSilver::HDF::copy",
			"hdf", "ClearSilver::HDF")
;

	if (SvROK(ST(2)) && sv_derived_from(ST(2), "ClearSilver::HDF")) {
	    IV tmp = SvIV((SV*)SvRV(ST(2)));
	    src = INT2PTR(ClearSilver__HDF,tmp);
	}
	else
	    Perl_croak_nocontext("%s: %s is not of type %s",
			"ClearSilver::HDF::copy",
			"src", "ClearSilver::HDF")
;
#line 159 "ClearSilver.xs"
        hdf->err = hdf_copy(hdf->hdf, name, src->hdf);
        if (hdf->err == STATUS_OK) {
            RETVAL = 0;
        } else {
            RETVAL = 1;
        }
#line 427 "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 0x3bb4(%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)
movl (%rdx), %ebp
callq 0x2400
movslq %ebp, %rdx
movq 0x18(%rax), %rax
leaq (%rax,%rdx,8), %rax
subq %rax, %r12
sarq $0x3, %r12
cmpl $0x3, %r12d
jne 0x57c7
movl (%rbx), %edi
leal 0x2(%rbp), %r12d
leal 0x1(%rbp), %r13d
movslq %r12d, %r12
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rax
movl 0xc(%rax), %eax
andl $0x200400, %eax         # imm = 0x200400
cmpl $0x400, %eax            # imm = 0x400
je 0x5708
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %r12
callq 0x2400
movl $0x2, %ecx
xorl %edx, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x24c0
movq %rax, 0x8(%rsp)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x8(%rax), %rax
testb $0x4, 0x23(%rax)
jne 0x56e0
callq 0x2400
movq %rax, %rdi
callq 0x26c0
movq %rax, %r12
movl (%rbx), %edi
movslq %r13d, %r13
leaq (,%r13,8), %r15
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rax
testb $0x8, 0xd(%rax)
je 0x57a1
movl (%rbx), %edi
leaq 0x1be1(%rip), %r14      # 0x70fd
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rsi
movq %rsi, (%rsp)
callq 0x2400
movq (%rsp), %rsi
movq %r14, %rdx
movq %rax, %rdi
callq 0x23f0
testb %al, %al
je 0x57a8
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rax
movl 0xc(%rax), %eax
andl $0x200100, %eax         # imm = 0x200100
cmpl $0x100, %eax            # imm = 0x100
je 0x5728
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %r13
callq 0x2400
movl $0x2, %edx
movq %r13, %rsi
movq %rax, %rdi
callq 0x23b0
movq %rax, %r13
movl (%rbx), %edi
addl $0x3, %ebp
movslq %ebp, %rbp
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
testb $0x8, 0xd(%rax)
je 0x5782
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rsi
movq %rsi, (%rsp)
callq 0x2400
movq (%rsp), %rsi
movq %r14, %rdx
movq %rax, %rdi
callq 0x23f0
testb %al, %al
je 0x5782
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 0x5748
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rbp
callq 0x2400
movl $0x2, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x23b0
movq (%rax), %rdx
movq 0x8(%rsp), %rsi
xorl %r14d, %r14d
movq (%r13), %rdi
callq 0x26b0
movl (%rbx), %edi
movq %rax, 0x8(%r13)
movq %rax, %rbp
callq 0x2400
testq %rbp, %rbp
movl (%rbx), %edi
movq 0x18(%rax), %rax
setne %r14b
leaq -0x8(%rax,%r15), %r13
movl 0xc(%r12), %eax
andl $0x998108ff, %eax       # imm = 0x998108FF
cmpl $0x1, %eax
sete %bpl
callq 0x2400
cmpb $0x1, 0xb1(%rax)
je 0x5768
testb %bpl, %bpl
je 0x5768
orl $0x1100, 0xc(%r12)      # imm = 0x1100
movq %r14, 0x10(%r12)
movq %r12, 0x8(%r13)
movl (%rbx), %edi
callq 0x2400
movl (%rbx), %edi
movq 0x18(%rax), %rbp
callq 0x2400
addq %r15, %rbp
movq %rbp, (%rax)
addq $0x18, %rsp
popq %rbx
popq %rbp
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopw (%rax,%rax)
callq 0x2400
movl (%rbx), %edi
movq 0x10(%rax), %r12
callq 0x2400
movq 0x8(%rax), %rax
movq 0x18(%rax), %rax
movq (%r12,%rax,8), %r12
jmp 0x54ef
nopl (%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x54c8
nopl (%rax,%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x20(%rax), %r13
jmp 0x559e
nopl (%rax)
callq 0x2400
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
jmp 0x563e
nopl (%rax)
movl (%rbx), %edi
callq 0x2400
movq %r14, %rdx
movq %r12, %rsi
movq %rax, %rdi
callq 0x2480
jmp 0x56ac
movq %r14, %rcx
leaq 0x1b0e(%rip), %rdx      # 0x729a
leaq 0x1b0b(%rip), %rsi      # 0x729e
xorl %eax, %eax
leaq 0x189f(%rip), %rdi      # 0x703b
callq 0x2570
leaq 0x1955(%rip), %r14      # 0x70fd
movq %r14, %rcx
leaq 0x1947(%rip), %rdx      # 0x70f9
leaq 0x1ae5(%rip), %rsi      # 0x729e
xorl %eax, %eax
leaq 0x1879(%rip), %rdi      # 0x703b
callq 0x2570
leaq 0x1ac1(%rip), %rsi      # 0x728f
movq %r14, %rdi
callq 0x2510
nopw %cs:(%rax,%rax)