// File: /workspace/github_cpp_makefile_star2_O3/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 0x12a72
movq %rax, %r15
cmpl $0x0, 0xc(%rbx)
leaq 0xad656(%rip), %rax     # 0xb7197
leaq 0xaad67(%rip), %rcx     # 0xb48af
cmoveq %rax, %rcx
cmpb $0x0, 0x60(%r15)
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl 0x4(%rbx), %esi
movq %r14, %rdi
callq 0xb3ca
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 0x9bb9
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 0x9c6e
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 0x418a0
movq %rbx, %rdi
leaq 0xaa9cb(%rip), %rsi     # 0xb45bf
movq %rbp, %rdx
leaq 0xb04ad(%rip), %rcx     # 0xba0ab
movq %r13, %r8
leaq 0xaa5f4(%rip), %r9      # 0xb41fc
callq 0xc7ee
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x6310
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x9c3a
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9c56
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 0x9bd9
leaq 0x78(%rsp), %rsi
movq 0x10(%rsp), %rax
movq %rax, (%rsi)
leaq 0xb8a8a(%rip), %rcx     # 0xc270c
leaq 0x18(%rsp), %rdx
leaq 0x58(%rsp), %r8
movq 0x8(%rsp), %rdi
callq 0xc8a2
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9cb1
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ccc
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 0x9cec
jmp 0x9cec
movq %rax, %rbx
jmp 0x9d2b
movq %rax, %rbx
jmp 0x9d10
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9d10
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d2b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d46
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0