{"type": "func", "start": 6443239920, "end": 6443240260, "name": "cocos2d::CCConfiguration::getNumber", "pseudocode": "// \n// cocos2d::CCConfiguration::getNumber from 0x1800c09f0 to 0x1800c0b44 (340 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::setDefaultValues @ 0x1800c2ccc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3378\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ndouble __fastcall cocos2d::CCConfiguration::getNumber(cocos2d::CCConfiguration *this, char *a2, double a3)\n{\n  __int64 v4; // rdi\n  void *v5; // r8\n  __int64 v6; // rax\n  __int64 v8; // rax\n  cocos2d::CCString *v9; // rax\n  void *Block[2]; // [rsp+30h] [rbp-48h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-38h]\n\n  sub_180005A10(Block, a2);\n  v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (__int64)Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v5);\n  }\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);\n  LOBYTE(Block[0]) = 0;\n  if ( !v4 )\n    return a3;\n  v6 = _RTDynamicCast(v4, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCDouble `RTTI Type Descriptor', 0);\n  if ( v6 )\n    return *(double *)(v6 + 56);\n  v8 = _RTDynamicCast(v4, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCInteger `RTTI Type Descriptor', 0);\n  if ( v8 )\n    return (double)*(int *)(v8 + 56);\n  v9 = (cocos2d::CCString *)_RTDynamicCast(\n                              v4,\n                              0,\n                              &cocos2d::CCObject `RTTI Type Descriptor',\n                              &cocos2d::CCString `RTTI Type Descriptor',\n                              0);\n  if ( v9 )\n    return cocos2d::CCString::doubleValue(v9);\n  else\n    return a3;\n}", "assembly": "; \n; cocos2d::CCConfiguration::getNumber from 0x1800c09f0 to 0x1800c0b44 (340 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::setDefaultValues @ 0x1800c2ccc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3378\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:25 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800c09f0\npush    rdi                                                            ; +0x5, 0x1800c09f5\nsub     rsp, 70h                                                       ; +0x6, 0x1800c09f6\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xa, 0x1800c09fa\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800c09ff\nxor     rax, rsp                                                       ; +0x16, 0x1800c0a06\nmov     [rsp+78h+var_28], rax                                          ; +0x19, 0x1800c0a09\nmovaps  xmm6, xmm2                                                     ; +0x1e, 0x1800c0a0e\nmov     rbx, rcx                                                       ; +0x21, 0x1800c0a11\nlea     rcx, [rsp+78h+Block]; void *                                   ; +0x24, 0x1800c0a14\ncall    sub_180005A10                                                  ; +0x29, 0x1800c0a19\nnop                                                                    ; +0x2e, 0x1800c0a1e\nlea     rdx, [rsp+78h+Block]                                           ; +0x2f, 0x1800c0a1f\nmov     rcx, [rbx+58h]                                                 ; +0x34, 0x1800c0a24\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x38, 0x1800c0a28\nmov     rdi, rax                                                       ; +0x3d, 0x1800c0a2d\nmov     rdx, [rsp+78h+var_30]                                          ; +0x40, 0x1800c0a30\ncmp     rdx, 0Fh                                                       ; +0x45, 0x1800c0a35\njbe     short loc_1800C0A84                                            ; +0x49, 0x1800c0a39\ninc     rdx                                                            ; +0x4b, 0x1800c0a3b\nmov     r8, [rsp+78h+Block]                                            ; +0x4e, 0x1800c0a3e\nmov     rcx, r8                                                        ; +0x53, 0x1800c0a43\ncmp     rdx, 1000h                                                     ; +0x56, 0x1800c0a46\njb      short loc_1800C0A7C                                            ; +0x5d, 0x1800c0a4d\nadd     rdx, 27h ; '''                                                 ; +0x5f, 0x1800c0a4f\nmov     r8, [r8-8]                                                     ; +0x63, 0x1800c0a53\nsub     rcx, r8                                                        ; +0x67, 0x1800c0a57\nsub     rcx, 8                                                         ; +0x6a, 0x1800c0a5a\ncmp     rcx, 1Fh                                                       ; +0x6e, 0x1800c0a5e\njbe     short loc_1800C0A7C                                            ; +0x72, 0x1800c0a62\nxor     ebx, ebx                                                       ; +0x74, 0x1800c0a64\nmov     [rsp+78h+Reserved], rbx; Reserved                              ; +0x76, 0x1800c0a66\nxor     r9d, r9d; LineNo                                               ; +0x7b, 0x1800c0a6b\nxor     r8d, r8d; FileName                                             ; +0x7e, 0x1800c0a6e\nxor     edx, edx; FunctionName                                         ; +0x81, 0x1800c0a71\nxor     ecx, ecx; Expression                                           ; +0x83, 0x1800c0a73\ncall    cs:_invoke_watson                                              ; +0x85, 0x1800c0a75\nalign 4                                                                ; +0x8b, 0x1800c0a7b\nmov     rcx, r8; Block                                                 ; +0x8c, 0x1800c0a7c\ncall    j_j_free_0                                                     ; +0x8f, 0x1800c0a7f\nmovdqa  xmm0, cs:xmmword_1800EC500                                     ; +0x94, 0x1800c0a84\nmovdqu  xmmword ptr [rsp+40h], xmm0                                    ; +0x9c, 0x1800c0a8c\nmov     byte ptr [rsp+78h+Block], 0                                    ; +0xa2, 0x1800c0a92\ntest    rdi, rdi                                                       ; +0xa7, 0x1800c0a97\njz      loc_1800C0B21                                                  ; +0xaa, 0x1800c0a9a\nxor     ebx, ebx                                                       ; +0xb0, 0x1800c0aa0\nmov     dword ptr [rsp+78h+Reserved], ebx                              ; +0xb2, 0x1800c0aa2\nlea     r9, ??_R0?AVCCDouble@cocos2d@@@8; cocos2d::CCDouble `RTTI Type Descriptor' ; +0xb6, 0x1800c0aa6\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xbd, 0x1800c0aad\nxor     edx, edx                                                       ; +0xc4, 0x1800c0ab4\nmov     rcx, rdi                                                       ; +0xc6, 0x1800c0ab6\ncall    __RTDynamicCast                                                ; +0xc9, 0x1800c0ab9\ntest    rax, rax                                                       ; +0xce, 0x1800c0abe\njz      short loc_1800C0ACA                                            ; +0xd1, 0x1800c0ac1\nmovsd   xmm0, qword ptr [rax+38h]                                      ; +0xd3, 0x1800c0ac3\njmp     short loc_1800C0B24                                            ; +0xd8, 0x1800c0ac8\nmov     dword ptr [rsp+78h+Reserved], ebx                              ; +0xda, 0x1800c0aca\nlea     r9, ??_R0?AVCCInteger@cocos2d@@@8; cocos2d::CCInteger `RTTI Type Descriptor' ; +0xde, 0x1800c0ace\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xe5, 0x1800c0ad5\nxor     edx, edx                                                       ; +0xec, 0x1800c0adc\nmov     rcx, rdi                                                       ; +0xee, 0x1800c0ade\ncall    __RTDynamicCast                                                ; +0xf1, 0x1800c0ae1\ntest    rax, rax                                                       ; +0xf6, 0x1800c0ae6\njz      short loc_1800C0AF6                                            ; +0xf9, 0x1800c0ae9\nmovd    xmm0, dword ptr [rax+38h]                                      ; +0xfb, 0x1800c0aeb\ncvtdq2pd xmm0, xmm0                                                    ; +0x100, 0x1800c0af0\njmp     short loc_1800C0B24                                            ; +0x104, 0x1800c0af4\nmov     dword ptr [rsp+78h+Reserved], ebx                              ; +0x106, 0x1800c0af6\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x10a, 0x1800c0afa\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x111, 0x1800c0b01\nxor     edx, edx                                                       ; +0x118, 0x1800c0b08\nmov     rcx, rdi                                                       ; +0x11a, 0x1800c0b0a\ncall    __RTDynamicCast                                                ; +0x11d, 0x1800c0b0d\ntest    rax, rax                                                       ; +0x122, 0x1800c0b12\njz      short loc_1800C0B21                                            ; +0x125, 0x1800c0b15\nmov     rcx, rax; this                                                 ; +0x127, 0x1800c0b17\ncall    ?doubleValue@CCString@cocos2d@@QEBANXZ; cocos2d::CCString::doubleValue(void) ; +0x12a, 0x1800c0b1a\njmp     short loc_1800C0B24                                            ; +0x12f, 0x1800c0b1f\nmovaps  xmm0, xmm6                                                     ; +0x131, 0x1800c0b21\nmov     rcx, [rsp+78h+var_28]                                          ; +0x134, 0x1800c0b24\nxor     rcx, rsp; StackCookie                                          ; +0x139, 0x1800c0b29\ncall    __security_check_cookie                                        ; +0x13c, 0x1800c0b2c\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x141, 0x1800c0b31\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x149, 0x1800c0b39\nadd     rsp, 70h                                                       ; +0x14e, 0x1800c0b3e\npop     rdi                                                            ; +0x152, 0x1800c0b42\nretn                                                                   ; +0x153, 0x1800c0b43", "xrefs": ["cocos2d::CCDirector::setDefaultValues @ 0x1800c2ccc", "<???> @ 0x18014cf68", "<???> @ 0x1801c3378"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}