// File: rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::type_to_glsl[abi:cxx11](spirv_cross::SPIRType const&, unsigned int)
string CompilerGLSL::type_to_glsl(const SPIRType &type, uint32_t id)
{
	// Ignore the pointer type since GLSL doesn't have pointers.

	switch (type.basetype)
	{
	case SPIRType::Struct:
		// Need OpName lookup here to get a "sensible" name for a struct.
		if (backend.explicit_struct_type)
			return join("struct ", to_name(type.self));
		else
			return to_name(type.self);

	case SPIRType::Image:
	case SPIRType::SampledImage:
		return image_type_glsl(type, id);

	case SPIRType::Sampler:
		// The depth field is set by calling code based on the variable ID of the sampler, effectively reintroducing
		// this distinction into the type system.
		return comparison_ids.count(id) ? "samplerShadow" : "sampler";

	case SPIRType::Void:
		return "void";

	default:
		break;
	}

	if (type.basetype == SPIRType::UInt && is_legacy())
		SPIRV_CROSS_THROW("Unsigned integers are not supported on legacy targets.");

	if (type.vecsize == 1 && type.columns == 1) // Scalar builtin
	{
		switch (type.basetype)
		{
		case SPIRType::Boolean:
			return "bool";
		case SPIRType::Int:
			return backend.basic_int_type;
		case SPIRType::UInt:
			return backend.basic_uint_type;
		case SPIRType::AtomicCounter:
			return "atomic_uint";
		case SPIRType::Half:
			return "float16_t";
		case SPIRType::Float:
			return "float";
		case SPIRType::Double:
			return "double";
		case SPIRType::Int64:
			return "int64_t";
		case SPIRType::UInt64:
			return "uint64_t";
		default:
			return "???";
		}
	}
	else if (type.vecsize > 1 && type.columns == 1) // Vector builtin
	{
		switch (type.basetype)
		{
		case SPIRType::Boolean:
			return join("bvec", type.vecsize);
		case SPIRType::Int:
			return join("ivec", type.vecsize);
		case SPIRType::UInt:
			return join("uvec", type.vecsize);
		case SPIRType::Half:
			return join("f16vec", type.vecsize);
		case SPIRType::Float:
			return join("vec", type.vecsize);
		case SPIRType::Double:
			return join("dvec", type.vecsize);
		case SPIRType::Int64:
			return join("i64vec", type.vecsize);
		case SPIRType::UInt64:
			return join("u64vec", type.vecsize);
		default:
			return "???";
		}
	}
	else if (type.vecsize == type.columns) // Simple Matrix builtin
	{
		switch (type.basetype)
		{
		case SPIRType::Boolean:
			return join("bmat", type.vecsize);
		case SPIRType::Int:
			return join("imat", type.vecsize);
		case SPIRType::UInt:
			return join("umat", type.vecsize);
		case SPIRType::Half:
			return join("f16mat", type.vecsize);
		case SPIRType::Float:
			return join("mat", type.vecsize);
		case SPIRType::Double:
			return join("dmat", type.vecsize);
		// Matrix types not supported for int64/uint64.
		default:
			return "???";
		}
	}
	else
	{
		switch (type.basetype)
		{
		case SPIRType::Boolean:
			return join("bmat", type.columns, "x", type.vecsize);
		case SPIRType::Int:
			return join("imat", type.columns, "x", type.vecsize);
		case SPIRType::UInt:
			return join("umat", type.columns, "x", type.vecsize);
		case SPIRType::Half:
			return join("f16mat", type.columns, "x", type.vecsize);
		case SPIRType::Float:
			return join("mat", type.columns, "x", type.vecsize);
		case SPIRType::Double:
			return join("dmat", type.columns, "x", type.vecsize);
		// Matrix types not supported for int64/uint64.
		default:
			return "???";
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0xa0(%rbp)
movq %rdi, %rax
movq %rax, -0x98(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
subl $0xe, %eax
ja 0x96ab6
movq -0x88(%rbp), %rax
leaq 0xa9f01(%rip), %rcx     # 0x140810
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x90(%rbp), %rax
testb $0x1, 0x623(%rax)
je 0x96993
movq -0x90(%rbp), %rsi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x40(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movl $0x1, %ecx
callq *%rax
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
leaq 0xaa5d7(%rip), %rsi     # 0x140f3b
callq 0xa75e0
jmp 0x9696b
leaq -0x40(%rbp), %rdi
callq 0x7708
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x7708
jmp 0x973f7
movq -0x90(%rbp), %rsi
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movq (%rsi), %rax
movl $0x1, %ecx
callq *0x38(%rax)
jmp 0x973e7
movq -0x90(%rbp), %rsi
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq (%rsi), %rax
callq *0xb0(%rax)
jmp 0x973e7
movq -0x90(%rbp), %rdi
addq $0x360, %rdi            # imm = 0x360
leaq -0x1c(%rbp), %rsi
callq 0x13520
testq %rax, %rax
leaq 0xae36b(%rip), %rcx     # 0x144d67
leaq 0xb1624(%rip), %rax     # 0x148027
cmovneq %rcx, %rax
movq %rax, -0xb8(%rbp)
leaq -0x4d(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
callq 0x7520
jmp 0x96a3a
leaq -0x4d(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x4d(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x4e(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0xc0(%rbp), %rdx
leaq 0xab74e(%rip), %rsi     # 0x1421d5
callq 0x7520
jmp 0x96a8e
leaq -0x4e(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x4e(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
jmp 0x96ab8
movq -0x18(%rbp), %rax
cmpl $0x5, 0xc(%rax)
jne 0x96b93
movq -0x90(%rbp), %rdi
callq 0x9f610
testb $0x1, %al
jne 0x96adb
jmp 0x96b93
movb $0x1, -0x72(%rbp)
movl $0x10, %edi
callq 0x71a0
movq %rax, -0xd0(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x7650
movq -0xc8(%rbp), %rdx
leaq 0xaba80(%rip), %rsi     # 0x14258e
leaq -0x70(%rbp), %rdi
callq 0x7520
jmp 0x96b19
movq -0xd0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x9c50
jmp 0x96b2b
movq -0xd0(%rbp), %rdi
movb $0x0, -0x72(%rbp)
leaq 0x11729b(%rip), %rsi    # 0x1addd8
leaq -0x8ceb4(%rip), %rdx    # 0x9c90
callq 0x7610
jmp 0x97400
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x96b71
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x7708
leaq -0x71(%rbp), %rdi
callq 0x73d0
testb $0x1, -0x72(%rbp)
jne 0x96b82
jmp 0x96b8e
movq -0xd0(%rbp), %rdi
callq 0x72c0
jmp 0x973f7
movq -0x18(%rbp), %rax
cmpl $0x1, 0x14(%rax)
jne 0x96f54
movq -0x18(%rbp), %rax
cmpl $0x1, 0x18(%rax)
jne 0x96f54
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0xd8(%rbp)
subl $0x9, %eax
ja 0x96f00
movq -0xd8(%rbp), %rax
leaq 0xa9ceb(%rip), %rcx     # 0x1408c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x73(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0xe0(%rbp), %rdx
leaq 0xab087(%rip), %rsi     # 0x141c8e
callq 0x7520
jmp 0x96c0e
leaq -0x73(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x73(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x90(%rbp), %rax
movq 0x608(%rax), %rax
movq %rax, -0xf0(%rbp)
leaq -0x74(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
callq 0x7520
jmp 0x96c77
leaq -0x74(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x74(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x90(%rbp), %rax
movq 0x610(%rax), %rax
movq %rax, -0x100(%rbp)
leaq -0x75(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
callq 0x7520
jmp 0x96ce0
leaq -0x75(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x75(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x76(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x108(%rbp), %rdx
leaq 0xaaf4b(%rip), %rsi     # 0x141c78
callq 0x7520
jmp 0x96d34
leaq -0x76(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x76(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x77(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x110(%rbp), %rdx
leaq 0xadff4(%rip), %rsi     # 0x144d75
callq 0x7520
jmp 0x96d88
leaq -0x77(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x77(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x78(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x118(%rbp), %rdx
leaq 0xb6314(%rip), %rsi     # 0x14d0e9
callq 0x7520
jmp 0x96ddc
leaq -0x78(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x79(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x120(%rbp), %rdx
leaq 0xb17b8(%rip), %rsi     # 0x1485e1
callq 0x7520
jmp 0x96e30
leaq -0x79(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x79(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x7a(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x128(%rbp), %rdx
leaq 0xadf03(%rip), %rsi     # 0x144d80
callq 0x7520
jmp 0x96e84
leaq -0x7a(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7a(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x7b(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x130(%rbp), %rdx
leaq 0xadeae(%rip), %rsi     # 0x144d7f
callq 0x7520
jmp 0x96ed8
leaq -0x7b(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7b(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
leaq -0x7c(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x138(%rbp), %rdx
leaq 0xade63(%rip), %rsi     # 0x144d88
callq 0x7520
jmp 0x96f2c
leaq -0x7c(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7c(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x18(%rbp), %rax
cmpl $0x1, 0x14(%rax)
jbe 0x970f7
movq -0x18(%rbp), %rax
cmpl $0x1, 0x18(%rax)
jne 0x970f7
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x140(%rbp)
subl $0x9, %eax
ja 0x970a3
movq -0x140(%rbp), %rax
leaq 0xa9902(%rip), %rcx     # 0x14089c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xaddd3(%rip), %rsi     # 0x144d8c
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xaddb8(%rip), %rsi     # 0x144d91
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd9d(%rip), %rsi     # 0x144d96
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd82(%rip), %rsi     # 0x144d9b
callq 0xa7740
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd71(%rip), %rsi     # 0x144daa
callq 0xa77f0
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd49(%rip), %rsi     # 0x144da2
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd2e(%rip), %rsi     # 0x144da7
callq 0xa7740
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadd15(%rip), %rsi     # 0x144dae
callq 0xa7740
jmp 0x973e7
leaq -0x7d(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x148(%rbp), %rdx
leaq 0xadcc0(%rip), %rsi     # 0x144d88
callq 0x7520
jmp 0x970cf
leaq -0x7d(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7d(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jne 0x97252
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x150(%rbp)
subl $0x9, %eax
ja 0x971fe
movq -0x150(%rbp), %rax
leaq 0xa973f(%rip), %rcx     # 0x140874
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadc61(%rip), %rsi     # 0x144db5
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadc46(%rip), %rsi     # 0x144dba
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadc2b(%rip), %rsi     # 0x144dbf
callq 0xa7690
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadc10(%rip), %rsi     # 0x144dc4
callq 0xa7740
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadbf3(%rip), %rsi     # 0x144dc7
callq 0xa77f0
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x14, %rdx
leaq 0xadbd7(%rip), %rsi     # 0x144dcb
callq 0xa7690
jmp 0x973e7
leaq -0x7e(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x158(%rbp), %rdx
leaq 0xadb65(%rip), %rsi     # 0x144d88
callq 0x7520
jmp 0x9722a
leaq -0x7e(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7e(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x160(%rbp)
subl $0x9, %eax
ja 0x97399
movq -0x160(%rbp), %rax
leaq 0xa95d0(%rip), %rcx     # 0x14084c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xadb12(%rip), %rsi     # 0x144db5
leaq 0xacfb7(%rip), %rcx     # 0x144261
callq 0xa78a0
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xadae8(%rip), %rsi     # 0x144dba
leaq 0xacf88(%rip), %rcx     # 0x144261
callq 0xa78a0
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xadabe(%rip), %rsi     # 0x144dbf
leaq 0xacf59(%rip), %rcx     # 0x144261
callq 0xa78a0
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xada94(%rip), %rsi     # 0x144dc4
leaq 0xacf2a(%rip), %rcx     # 0x144261
callq 0xa7960
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xada68(%rip), %rsi     # 0x144dc7
leaq 0xacefb(%rip), %rcx     # 0x144261
callq 0xa7a20
jmp 0x973e7
movq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rdx
addq $0x18, %rdx
movq -0x18(%rbp), %r8
addq $0x14, %r8
leaq 0xada40(%rip), %rsi     # 0x144dcb
leaq 0xacecf(%rip), %rcx     # 0x144261
callq 0xa78a0
jmp 0x973e7
leaq -0x7f(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x7650
movq -0xa0(%rbp), %rdi
movq -0x168(%rbp), %rdx
leaq 0xad9ca(%rip), %rsi     # 0x144d88
callq 0x7520
jmp 0x973c5
leaq -0x7f(%rbp), %rdi
callq 0x73d0
jmp 0x973e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7f(%rbp), %rdi
callq 0x73d0
jmp 0x973f7
movq -0x98(%rbp), %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x7640