// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_cpp.cpp
// Function: spirv_cross::CompilerCPP::argument_decl[abi:cxx11](spirv_cross::SPIRFunction::Parameter const&)
string CompilerCPP::argument_decl(const SPIRFunction::Parameter &arg)
{
	auto &type = expression_type(arg.id);
	bool constref = !type.pointer || arg.write_count == 0;

	auto &var = get<SPIRVariable>(arg.id);

	string base = type_to_glsl(type);
	string variable_name = to_name(var.self);
	remap_variable_type_name(type, variable_name, base);

	for (uint32_t i = 0; i < type.array.size(); i++)
		base = join("std::array<", base, ", ", to_array_size(type, i), ">");

	return join(constref ? "const " : "", base, " &", variable_name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movl 0x4(%rdx), %esi
movq %r14, %rdi
callq 0x12aba
movq %rax, %r15
cmpl $0x0, 0xc(%rbx)
leaq 0xae612(%rip), %rax     # 0xb81a7
leaq 0xabd13(%rip), %rcx     # 0xb58af
cmoveq %rax, %rcx
cmpb $0x0, 0x60(%r15)
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl 0x4(%rbx), %esi
movq %r14, %rdi
callq 0xb40a
movq %rax, %rbx
movq (%r14), %rax
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq *0x98(%rax)
movl 0x8(%rbx), %edx
movq (%r14), %rax
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq *0x38(%rax)
cmpq $0x0, 0x218(%r14)
je 0x9c0d
leaq 0x208(%r14), %rdi
leaq 0x58(%rsp), %rdx
leaq 0x18(%rsp), %rcx
movq %r15, %rsi
callq *0x220(%r14)
movq 0x28(%r15), %rax
cmpq 0x20(%r15), %rax
je 0x9cc2
xorl %r12d, %r12d
leaq 0x38(%rsp), %r13
leaq 0x78(%rsp), %rbx
leaq 0x18(%rsp), %rbp
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %r12d, %ecx
callq 0x420ce
movq %rbx, %rdi
leaq 0xab977(%rip), %rsi     # 0xb55bf
movq %rbp, %rdx
leaq 0xb1469(%rip), %rcx     # 0xbb0bb
movq %r13, %r8
leaq 0xab5a0(%rip), %r9      # 0xb51fc
callq 0xc82e
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x6310
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x9c8e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9caa
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6260
incl %r12d
movq 0x28(%r15), %rax
subq 0x20(%r15), %rax
sarq $0x2, %rax
cmpq %r12, %rax
ja 0x9c2d
leaq 0x78(%rsp), %rsi
movq 0x10(%rsp), %rax
movq %rax, (%rsi)
leaq 0xb9a66(%rip), %rcx     # 0xc373c
leaq 0x18(%rsp), %rdx
leaq 0x58(%rsp), %r8
movq 0x8(%rsp), %rdi
callq 0xc8e2
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d05
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d20
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x8(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9d40
jmp 0x9d40
movq %rax, %rbx
jmp 0x9d7f
movq %rax, %rbx
jmp 0x9d64
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9d64
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d7f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d9a
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0