// File: /workspace/github_cpp_makefile_star2_O3/AndrewAlbert[P]Compiler-Theory/SourceCode/codeGenerator.cpp
// Function: codeGenerator::pushArgument(int&, int)
void codeGenerator::pushArgument( int &SPoffset, int paramType){
	if( !ShouldGenerate() ) return;
	savedArgument.paramType = paramType;
	if( savedArgument.paramType == TYPE_PARAM_IN || savedArgument.paramType == TYPE_PARAM_INOUT ){
		argListStack.push( savedArgument );
	}
	else if( savedArgument.paramType == TYPE_PARAM_OUT) argListStack.push( savedArgument );

	if(savedArgument.paramType == TYPE_PARAM_IN || savedArgument.paramType == TYPE_PARAM_INOUT){
		comment("Push argument");
		if( savedArgument.index < 0 ){
			reg2mm(savedArgument.type, savedArgument.type, savedArgument.size, savedArgument.size, SPoffset, savedArgument.isGlobal, false, TYPE_INTEGER, true);
		}
		else{
			reg2mm(savedArgument.type, savedArgument.type, 1, 1, SPoffset, savedArgument.isGlobal, false, TYPE_INTEGER, true);
		}
	}

	if( savedArgument.size > 1 ) SPoffset += savedArgument.size;
	else SPoffset += 1;
	
	resetArgument();
	return;
}

// Assembly:
cmpb $0x1, 0x330(%rdi)
jne 0x169e6
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2a0(%rdi), %r15
movl %edx, 0x2a0(%rdi)
cmpl $0x121, %edx            # imm = 0x121
je 0x16853
cmpl $0x120, %edx            # imm = 0x120
je 0x16853
cmpl $0x11f, %edx            # imm = 0x11F
jne 0x16895
movq 0x2e8(%rbx), %rax
movq 0x2f8(%rbx), %rcx
addq $-0x18, %rcx
cmpq %rcx, %rax
je 0x16883
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
movups (%r15), %xmm0
movups %xmm0, (%rax)
addq $0x18, 0x2e8(%rbx)
jmp 0x16892
leaq 0x2b8(%rbx), %rdi
movq %r15, %rsi
callq 0x17b48
movl (%r15), %edx
cmpl $0x121, %edx            # imm = 0x121
je 0x168a9
cmpl $0x11f, %edx            # imm = 0x11F
jne 0x169a4
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4881(%rip), %rsi      # 0x1b13b
leaq 0x4887(%rip), %rdx      # 0x1b148
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3c42
movq 0x308(%rbx), %rdi
movq (%r15), %rdx
leaq 0x4140(%rip), %rsi      # 0x1aa1f
xorl %eax, %eax
callq 0x22a0
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x168fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
cmpl $0x0, 0x2ac(%rbx)
movl 0x2a4(%rbx), %ecx
js 0x16951
movl (%r14), %eax
movzbl 0x2b5(%rbx), %r10d
subq $0x8, %rsp
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl %ecx, %edx
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x1
pushq $0x10a                  # imm = 0x10A
pushq $0x0
pushq %r10
pushq %rax
callq 0x14b12
addq $0x30, %rsp
movq (%r15), %rdi
leaq 0x38(%rsp), %rax
jmp 0x16994
movl 0x2a8(%rbx), %r8d
movl (%r14), %eax
movzbl 0x2b5(%rbx), %r10d
subq $0x8, %rsp
leaq 0x50(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl %ecx, %edx
movl %r8d, %r9d
pushq $0x1
pushq $0x10a                  # imm = 0x10A
pushq $0x0
pushq %r10
pushq %rax
callq 0x14b12
addq $0x30, %rsp
movq (%r15), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x169a4
movq (%rax), %rsi
incq %rsi
callq 0x2200
movl 0x2a8(%rbx), %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
addl %ecx, (%r14)
cmpb $0x1, 0x330(%rbx)
jne 0x169db
movaps 0x3fe8(%rip), %xmm0     # 0x1a9b0
movups %xmm0, 0x2a0(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x2b0(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop