// File: /workspace/github_cpp_makefile_star2_O1/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::stringOfValue[abi:cxx11](Res_value const*) const
string ResourcesParser::stringOfValue(const Res_value* value) const {
	stringstream ss;
    if (value->dataType == Res_value::TYPE_NULL) {
        ss<<"(null)";
    } else if (value->dataType == Res_value::TYPE_REFERENCE) {
		ss<<"(reference) "<<getNameForId(value->data);
    } else if (value->dataType == Res_value::TYPE_ATTRIBUTE) {
		ss<<"(attribute) "<<getNameForId(value->data);
    } else if (value->dataType == Res_value::TYPE_STRING) {
		ss<<"(string) "<<getStringFromGlobalStringPool(value->data);
    } else if (value->dataType == Res_value::TYPE_FLOAT) {
        ss<<"(float) "<<*(const float*)&value->data;
    } else if (value->dataType == Res_value::TYPE_DIMENSION) {
        ss<<"(dimension) "<<stringOfComplex(value->data, false);
    } else if (value->dataType == Res_value::TYPE_FRACTION) {
        ss<<"(fraction) "<<stringOfComplex(value->data, true);
    } else if (value->dataType >= Res_value::TYPE_FIRST_COLOR_INT
            && value->dataType <= Res_value::TYPE_LAST_COLOR_INT) {
		ss<<"(color) #"<<hex<<setw(8)<<setfill('0')<<value->data;
    } else if (value->dataType == Res_value::TYPE_INT_BOOLEAN) {
        ss<<"(boolean) "<<(value->data ? "true" : "false");
    } else if (value->dataType >= Res_value::TYPE_FIRST_INT
            && value->dataType <= Res_value::TYPE_LAST_INT) {
        ss<<"(int) "<<value->data<<" or 0x"<<hex<<setw(8)<<setfill('0')<<value->data;
    } else {
		ss<<"(unknown type) "
			<<"t=0x"<<hex<<setw(2)<<setfill('0')<<(int)value->dataType<<" "
			<<"d=0x"<<hex<<setw(8)<<setfill('0')<<(int)value->data<<" "
			<<"(s=0x"<<hex<<setw(4)<<setfill('0')<<(int)value->size<<" "
			<<"r=0x"<<hex<<setw(2)<<setfill('0')<<(int)value->res0<<")";
    }
	return ss.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x1c8(%rbp), %rdi
callq 0x3150
movzbl 0x3(%r14), %eax
cmpq $0x6, %rax
ja 0x58d8
leaq 0x5963(%rip), %rcx      # 0xb164
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, %edx
leaq 0x59fa(%rip), %rsi      # 0xb210
leaq -0x1b8(%rbp), %r15
movq %r15, %rdi
callq 0x3230
jmp 0x5a45
leaq -0x1b8(%rbp), %r15
leaq 0x5a03(%rip), %rsi      # 0xb23b
movl $0x8, %edx
movq %r15, %rdi
callq 0x3230
cvtss2sd 0x4(%r14), %xmm0
movq %r15, %rdi
callq 0x32d0
jmp 0x5a45
leaq -0x1b8(%rbp), %r12
leaq 0x59be(%rip), %rsi      # 0xb224
movl $0xc, %edx
movq %r12, %rdi
callq 0x3230
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x5e46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3230
jmp 0x5a33
leaq -0x1b8(%rbp), %r12
leaq 0x598b(%rip), %rsi      # 0xb231
movl $0x9, %edx
movq %r12, %rdi
callq 0x3230
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x63d4
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3230
jmp 0x5a33
movl %eax, %ecx
andb $-0x4, %cl
cmpb $0x1c, %cl
jne 0x5a86
leaq -0x1b8(%rbp), %r15
leaq 0x5969(%rip), %rsi      # 0xb25d
movl $0x9, %edx
movq %r15, %rdi
callq 0x3230
movq -0x1b8(%rbp), %rax
movq -0x18(%rax), %rcx
movl -0x1a0(%rbp,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, -0x1a0(%rbp,%rcx)
movq -0x18(%rax), %rcx
movq $0x8, -0x1a8(%rbp,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, -0xd7(%rbp,%rax)
jne 0x5960
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
addq $0x4, %r14
movl (%r14), %esi
movq %r15, %rdi
callq 0x3120
jmp 0x5a45
leaq -0x1b8(%rbp), %r12
leaq 0x588c(%rip), %rsi      # 0xb217
movl $0xc, %edx
movq %r12, %rdi
callq 0x3230
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x5e46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3230
jmp 0x5a33
leaq -0x1b8(%rbp), %r15
leaq 0x587c(%rip), %rsi      # 0xb244
movl $0xc, %edx
movq %r15, %rdi
callq 0x3230
movl 0x4(%r14), %esi
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x6447
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x3230
jmp 0x5a33
leaq -0x1b8(%rbp), %r15
leaq 0x584d(%rip), %rsi      # 0xb251
movl $0xb, %edx
movq %r15, %rdi
callq 0x3230
movl 0x4(%r14), %esi
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
callq 0x6447
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x3230
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a45
callq 0x31d0
leaq -0x1b0(%rbp), %rsi
movq %rbx, %rdi
callq 0x32c0
movq 0x954d(%rip), %rsi      # 0xefa8
leaq -0x1c8(%rbp), %rdi
callq 0x3170
leaq -0x148(%rbp), %rdi
callq 0x30b0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x12, %al
jne 0x5aca
leaq -0x1b8(%rbp), %r15
leaq 0x57cf(%rip), %rsi      # 0xb267
movl $0xa, %edx
movq %r15, %rdi
callq 0x3230
xorl %edx, %edx
cmpl $0x0, 0x4(%r14)
sete %dl
leaq 0x57c1(%rip), %rax      # 0xb277
leaq 0x57b5(%rip), %rsi      # 0xb272
cmoveq %rax, %rsi
orq $0x4, %rdx
jmp 0x581d
andb $-0x10, %al
leaq -0x1b8(%rbp), %r15
cmpb $0x10, %al
jne 0x5b7b
leaq 0x579b(%rip), %rsi      # 0xb27d
movl $0x6, %edx
movq %r15, %rdi
callq 0x3230
movl 0x4(%r14), %esi
movq %r15, %rdi
callq 0x3120
movq %rax, %r15
leaq 0x562f(%rip), %rsi      # 0xb134
movl $0x6, %edx
movq %rax, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r15,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r15,%rcx)
movq -0x18(%rax), %rcx
movq $0x8, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
movq %r15, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x5b69
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
addq $0x4, %r14
movb $0x30, 0xe0(%r12)
jmp 0x596d
leaq 0x5702(%rip), %rsi      # 0xb284
movl $0xf, %edx
movq %r15, %rdi
callq 0x3230
leaq 0x56fe(%rip), %rsi      # 0xb294
movl $0x4, %edx
movq %r15, %rdi
callq 0x3230
movq -0x1b8(%rbp), %rax
movq -0x18(%rax), %rcx
movl -0x1a0(%rbp,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, -0x1a0(%rbp,%rcx)
movq -0x18(%rax), %rcx
movq $0x2, -0x1a8(%rbp,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, -0xd7(%rbp,%rax)
jne 0x5c02
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzbl 0x3(%r14), %esi
movq %r15, %rdi
callq 0x3320
movq %rax, %r15
leaq 0x5600(%rip), %rsi      # 0xb222
movl $0x1, %edx
movq %rax, %rdi
callq 0x3230
leaq 0x5663(%rip), %rsi      # 0xb299
movl $0x4, %edx
movq %r15, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r15,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r15,%rcx)
movq -0x18(%rax), %rcx
movq $0x8, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
movq %r15, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x5c9a
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movl 0x4(%r14), %esi
movq %r15, %rdi
callq 0x3320
movq %rax, %r15
leaq 0x5569(%rip), %rsi      # 0xb222
movl $0x1, %edx
movq %rax, %rdi
callq 0x3230
leaq 0x55d1(%rip), %rsi      # 0xb29e
movl $0x5, %edx
movq %r15, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r15,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r15,%rcx)
movq -0x18(%rax), %rcx
movq $0x4, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
movq %r15, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x5d31
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzwl (%r14), %esi
movq %r15, %rdi
callq 0x3320
movq %rax, %r15
leaq 0x54d2(%rip), %rsi      # 0xb222
movl $0x1, %edx
movq %rax, %rdi
callq 0x3230
leaq 0x5540(%rip), %rsi      # 0xb2a4
movl $0x4, %edx
movq %r15, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r15,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r15,%rcx)
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
movq %r15, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x5dc8
movq %r12, %rdi
movl $0x20, %esi
callq 0x31f0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzbl 0x2(%r14), %esi
movq %r15, %rdi
callq 0x3320
movq %rax, %r15
movl $0x1, %edx
leaq 0x5428(%rip), %rsi      # 0xb215
jmp 0x581d
jmp 0x5dfa
jmp 0x5dfa
jmp 0x5dfa
jmp 0x5dfa
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e1e
callq 0x31d0
jmp 0x5e1e
jmp 0x5e1b
jmp 0x5e1b
jmp 0x5e1b
jmp 0x5e1b
jmp 0x5e1b
movq %rax, %rbx
movq 0x9183(%rip), %rsi      # 0xefa8
leaq -0x1c8(%rbp), %rdi
callq 0x3170
leaq -0x148(%rbp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3340
nop