// File: /workspace/github_cpp_makefile_star2_O1/menhits[P]phplus/src/PhplusStdLib.cpp
// Function: addToProgMakeIntArray(CppProgram*)
void addToProgMakeIntArray(CppProgram * prog)
{
	if (!prog->hasFunc("$makeIntArray"))
	{
		string aryType=prog->getTypeCode(IntArray);
		
		prog->addFunc("$makeIntArray", {{"int", "size"}}, aryType,
			"int * data = (int *)malloc(size * sizeof(int));\n"
			"return "+aryType+"(size, data);\n"
		);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x48821(%rip), %rsi     # 0x79a3f
leaq 0x48827(%rip), %rdx     # 0x79a4c
leaq 0x98(%rsp), %rdi
callq 0xdf6a
leaq 0x98(%rsp), %rsi
movq %rbx, %rdi
callq 0x1c806
movl %eax, %ebp
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x31256
callq 0xa2b0
testb %bpl, %bpl
jne 0x31451
movq 0x6813a(%rip), %rax     # 0x993a0
movq %rax, 0x10(%rsp)
movq 0x68136(%rip), %rax     # 0x993a8
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x31291
movq 0x67d25(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x3128d
incl 0x8(%rax)
jmp 0x31291
lock
incl 0x8(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a7f4
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x312b2
callq 0xdcba
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4877a(%rip), %rsi     # 0x79a3f
leaq 0x48780(%rip), %rdx     # 0x79a4c
leaq 0xd8(%rsp), %rdi
callq 0xdf6a
leaq 0x45935(%rip), %rsi     # 0x76c15
leaq 0x487a1(%rip), %rdx     # 0x79a88
leaq 0x98(%rsp), %rdi
callq 0x4e626
leaq 0x60(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x4e2a2
leaq 0x88(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xdde2
leaq 0x48712(%rip), %rsi     # 0x79a4d
leaq 0xf8(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xdbef
leaq 0x47def(%rip), %rsi     # 0x79143
leaq 0xf8(%rsp), %rdi
callq 0xa560
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x31388
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x31390
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %r8
movq %rdx, 0x8(%r8)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd8(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x78(%rsp), %rcx
movq %rbx, %rdi
callq 0x1c826
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x313d5
callq 0xa2b0
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x313eb
callq 0xa2b0
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x313fa
callq 0xa2b0
leaq 0x60(%rsp), %rdi
callq 0x4e2e4
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3141a
callq 0xa2b0
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x3142c
callq 0xa2b0
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x3143e
callq 0xa2b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31451
callq 0xa2b0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x3147a
callq 0xa2b0
jmp 0x3147a
movq %rax, %rbx
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31495
callq 0xa2b0
jmp 0x31495
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x314a9
callq 0xa2b0
jmp 0x314a9
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x4e2e4
jmp 0x314b8
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x4e278
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x314e1
callq 0xa2b0
jmp 0x314e1
movq %rax, %rbx
jmp 0x314c5
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x31515
jmp 0x3151f
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3151f
callq 0xdcba
jmp 0x3151f
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x3151f
callq 0xa2b0
jmp 0x3151f
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa510