// File: /workspace/github_cpp_makefile_star2_O3/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 0x3140
movzbl 0x3(%r14), %eax
cmpq $0x6, %rax
ja 0x58d8
leaq 0x595f(%rip), %rcx      # 0xb160
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, %edx
leaq 0x59ea(%rip), %rsi      # 0xb200
leaq -0x1b8(%rbp), %r15
movq %r15, %rdi
callq 0x3220
jmp 0x5a3d
leaq -0x1b8(%rbp), %r15
leaq 0x59f3(%rip), %rsi      # 0xb22b
movl $0x8, %edx
movq %r15, %rdi
callq 0x3220
cvtss2sd 0x4(%r14), %xmm0
movq %r15, %rdi
callq 0x32c0
jmp 0x5a3d
leaq -0x1b8(%rbp), %r12
leaq 0x59ae(%rip), %rsi      # 0xb214
movl $0xc, %edx
movq %r12, %rdi
callq 0x3220
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x5e16
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3220
jmp 0x5a2b
leaq -0x1b8(%rbp), %r12
leaq 0x597b(%rip), %rsi      # 0xb221
movl $0x9, %edx
movq %r12, %rdi
callq 0x3220
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x635c
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3220
jmp 0x5a2b
movl %eax, %ecx
andb $-0x4, %cl
cmpb $0x1c, %cl
jne 0x5a7e
leaq -0x1b8(%rbp), %r15
leaq 0x5959(%rip), %rsi      # 0xb24d
movl $0x9, %edx
movq %r15, %rdi
callq 0x3220
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 0x5958
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
addq $0x4, %r14
movl (%r14), %esi
movq %r15, %rdi
callq 0x3110
jmp 0x5a3d
leaq -0x1b8(%rbp), %r12
leaq 0x5884(%rip), %rsi      # 0xb207
movl $0xc, %edx
movq %r12, %rdi
callq 0x3220
movl 0x4(%r14), %edx
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x5e16
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rdi
callq 0x3220
jmp 0x5a2b
leaq -0x1b8(%rbp), %r15
leaq 0x5874(%rip), %rsi      # 0xb234
movl $0xc, %edx
movq %r15, %rdi
callq 0x3220
movl 0x4(%r14), %esi
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x63cf
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x3220
jmp 0x5a2b
leaq -0x1b8(%rbp), %r15
leaq 0x5845(%rip), %rsi      # 0xb241
movl $0xb, %edx
movq %r15, %rdi
callq 0x3220
movl 0x4(%r14), %esi
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
callq 0x63cf
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x3220
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a3d
callq 0x31c0
leaq -0x1b0(%rbp), %rsi
movq %rbx, %rdi
callq 0x32b0
movq 0x9555(%rip), %rsi      # 0xefa8
leaq -0x1c8(%rbp), %rdi
callq 0x3160
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 0x5ac2
leaq -0x1b8(%rbp), %r15
leaq 0x57c7(%rip), %rsi      # 0xb257
movl $0xa, %edx
movq %r15, %rdi
callq 0x3220
xorl %edx, %edx
cmpl $0x0, 0x4(%r14)
sete %dl
leaq 0x57b9(%rip), %rax      # 0xb267
leaq 0x57ad(%rip), %rsi      # 0xb262
cmoveq %rax, %rsi
orq $0x4, %rdx
jmp 0x581d
andb $-0x10, %al
leaq -0x1b8(%rbp), %r15
cmpb $0x10, %al
jne 0x5b6b
leaq 0x5793(%rip), %rsi      # 0xb26d
movl $0x6, %edx
movq %r15, %rdi
callq 0x3220
movl 0x4(%r14), %esi
movq %r15, %rdi
callq 0x3110
movq %rax, %r15
leaq 0x5634(%rip), %rsi      # 0xb131
movl $0x6, %edx
movq %rax, %rdi
callq 0x3220
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 0x5b59
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
addq $0x4, %r14
movb $0x30, 0xe0(%r12)
jmp 0x5965
leaq 0x5702(%rip), %rsi      # 0xb274
movl $0xf, %edx
movq %r15, %rdi
callq 0x3220
leaq 0x56fe(%rip), %rsi      # 0xb284
movl $0x4, %edx
movq %r15, %rdi
callq 0x3220
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 0x5bea
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzbl 0x3(%r14), %esi
movq %r15, %rdi
callq 0x3310
movq %rax, %r15
leaq 0x5608(%rip), %rsi      # 0xb212
movl $0x1, %edx
movq %rax, %rdi
callq 0x3220
leaq 0x566b(%rip), %rsi      # 0xb289
movl $0x4, %edx
movq %r15, %rdi
callq 0x3220
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 0x5c7a
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movl 0x4(%r14), %esi
movq %r15, %rdi
callq 0x3310
movq %rax, %r15
leaq 0x5579(%rip), %rsi      # 0xb212
movl $0x1, %edx
movq %rax, %rdi
callq 0x3220
leaq 0x55e1(%rip), %rsi      # 0xb28e
movl $0x5, %edx
movq %r15, %rdi
callq 0x3220
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 0x5d09
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzwl (%r14), %esi
movq %r15, %rdi
callq 0x3310
movq %rax, %r15
leaq 0x54ea(%rip), %rsi      # 0xb212
movl $0x1, %edx
movq %rax, %rdi
callq 0x3220
leaq 0x5558(%rip), %rsi      # 0xb294
movl $0x4, %edx
movq %r15, %rdi
callq 0x3220
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 0x5d98
movq %r12, %rdi
movl $0x20, %esi
callq 0x31e0
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movzbl 0x2(%r14), %esi
movq %r15, %rdi
callq 0x3310
movq %rax, %r15
movl $0x1, %edx
leaq 0x5448(%rip), %rsi      # 0xb205
jmp 0x581d
jmp 0x5dca
jmp 0x5dca
jmp 0x5dca
jmp 0x5dca
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dee
callq 0x31c0
jmp 0x5dee
jmp 0x5deb
jmp 0x5deb
jmp 0x5deb
jmp 0x5deb
jmp 0x5deb
movq %rax, %rbx
movq 0x91b3(%rip), %rsi      # 0xefa8
leaq -0x1c8(%rbp), %rdi
callq 0x3160
leaq -0x148(%rbp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3330
nop