{"type": "func", "start": 4298570784, "end": 4298571192, "name": "GJGarageLayer::updateRate", "pseudocode": "// \n// GJGarageLayer::updateRate from 0x10036fc20 to 0x10036fdb8 (408 bytes)\n// \n// 2 xrefs:\n// > sub_10036FDC0 @ 0x10036fdcc\n// > <???> @ 0x10091bb10\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJGarageLayer::updateRate(GJGarageLayer *a1)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // r14\n  cocos2d::CCString *v4; // rax\n  const char *v5; // r15\n  cocos2d::CCSprite *m_supporter; // r12\n  cocos2d::CCSpriteFrameCache *v7; // rax\n  cocos2d::CCSpriteFrame *v8; // rax\n  cocos2d::CCSprite *v9; // r14\n  cocos2d::CCSprite *v10; // rdi\n  cocos2d::CCNode *m_unknown; // rdi\n  float v12; // [rsp+0h] [rbp-30h] BYREF\n  __int16 v13; // [rsp+8h] [rbp-28h] BYREF\n  char v14; // [rsp+Ah] [rbp-26h]\n  __int16 v15; // [rsp+Ch] [rbp-24h] BYREF\n  char v16; // [rsp+Eh] [rbp-22h]\n\n  if ( GameManager::sharedState()->m_ratedGame && a1->m_supporter )\n  {\n    v2 = (cocos2d::CCString *)sub_1007AB580(\"player_%02d_001.png\", SLOBYTE(v12));\n    CString = cocos2d::CCString::getCString(v2);\n    v4 = (cocos2d::CCString *)sub_1007AB580(\"player_%02d_2_001.png\", SLOBYTE(v12));\n    v5 = cocos2d::CCString::getCString(v4);\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_supporter->removeAllChildrenWithCleanup)(\n      a1->m_supporter,\n      1);\n    m_supporter = a1->m_supporter;\n    v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, CString);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_supporter->setDisplayFrame)(m_supporter, v8);\n    v9 = cocos2d::CCSprite::createWithSpriteFrameName(v5);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))a1->m_supporter->addChild_0)(\n      a1->m_supporter,\n      v9,\n      0xFFFFFFFFLL);\n    sub_10028CBE0(&v12, a1->m_supporter->m_obRect.size.width * 0.5, 0.5 * a1->m_supporter->m_obRect.size.height);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float *))v9->setPosition)(v9, &v12);\n    v10 = a1->m_supporter;\n    v14 = -81;\n    v13 = -20561;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v10->setColor)(v10, &v13);\n    v16 = -1;\n    v15 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v9->setColor)(v9, &v15);\n    GameManager::sharedState()->m_gameRateDelegate1 = nullptr;\n  }\n  if ( GameManager::sharedState()->m_clickedFacebook )\n  {\n    m_unknown = a1->m_unknown;\n    if ( m_unknown )\n    {\n      ((void (__fastcall *)(cocos2d::CCNode *, __int64))m_unknown->removeAllChildrenWithCleanup)(m_unknown, 1);\n      GameManager::sharedState()->m_gameRateDelegate1 = nullptr;\n    }\n  }\n}", "assembly": "; \n; GJGarageLayer::updateRate from 0x10036fc20 to 0x10036fdb8 (408 bytes)\n; \n; 2 xrefs:\n; > sub_10036FDC0 @ 0x10036fdcc\n; > <???> @ 0x10091bb10\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10036fc20\nmov     rbp, rsp                                                       ; +0x1, 0x10036fc21\npush    r15                                                            ; +0x4, 0x10036fc24\npush    r14                                                            ; +0x6, 0x10036fc26\npush    r12                                                            ; +0x8, 0x10036fc28\npush    rbx                                                            ; +0xa, 0x10036fc2a\nsub     rsp, 10h                                                       ; +0xb, 0x10036fc2b\nmov     rbx, rdi                                                       ; +0xf, 0x10036fc2f\ncall    GameManager__sharedState                                       ; +0x12, 0x10036fc32\ncmp     byte ptr [rax+284h], 1                                         ; +0x17, 0x10036fc37\njnz     loc_10036FD73                                                  ; +0x1e, 0x10036fc3e\ncmp     qword ptr [rbx+1F8h], 0                                        ; +0x24, 0x10036fc44\njz      loc_10036FD73                                                  ; +0x2c, 0x10036fc4c\nlea     rdi, aPlayer02d001Pn; \"player_%02d_001.png\"                    ; +0x32, 0x10036fc52\nmov     esi, 0Dh                                                       ; +0x39, 0x10036fc59\nxor     eax, eax                                                       ; +0x3e, 0x10036fc5e\ncall    sub_1007AB580                                                  ; +0x40, 0x10036fc60\nmov     rdi, rax                                                       ; +0x45, 0x10036fc65\ncall    cocos2d__CCString__getCString                                  ; +0x48, 0x10036fc68\nmov     r14, rax                                                       ; +0x4d, 0x10036fc6d\nlea     rdi, aPlayer02d2001P; \"player_%02d_2_001.png\"                  ; +0x50, 0x10036fc70\nmov     esi, 0Dh                                                       ; +0x57, 0x10036fc77\nxor     eax, eax                                                       ; +0x5c, 0x10036fc7c\ncall    sub_1007AB580                                                  ; +0x5e, 0x10036fc7e\nmov     rdi, rax                                                       ; +0x63, 0x10036fc83\ncall    cocos2d__CCString__getCString                                  ; +0x66, 0x10036fc86\nmov     r15, rax                                                       ; +0x6b, 0x10036fc8b\nmov     rdi, [rbx+1F8h]                                                ; +0x6e, 0x10036fc8e\nmov     rax, [rdi]                                                     ; +0x75, 0x10036fc95\nmov     esi, 1                                                         ; +0x78, 0x10036fc98\ncall    qword ptr [rax+238h]                                           ; +0x7d, 0x10036fc9d\nmov     r12, [rbx+1F8h]                                                ; +0x83, 0x10036fca3\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x8a, 0x10036fcaa\nmov     rdi, rax                                                       ; +0x8f, 0x10036fcaf\nmov     rsi, r14                                                       ; +0x92, 0x10036fcb2\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x95, 0x10036fcb5\nmov     rcx, [r12]                                                     ; +0x9a, 0x10036fcba\nmov     rdi, r12                                                       ; +0x9e, 0x10036fcbe\nmov     rsi, rax                                                       ; +0xa1, 0x10036fcc1\ncall    qword ptr [rcx+478h]                                           ; +0xa4, 0x10036fcc4\nmov     rdi, r15                                                       ; +0xaa, 0x10036fcca\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xad, 0x10036fccd\nmov     r14, rax                                                       ; +0xb2, 0x10036fcd2\nmov     rdi, [rbx+1F8h]                                                ; +0xb5, 0x10036fcd5\nmov     rax, [rdi]                                                     ; +0xbc, 0x10036fcdc\nmov     rsi, r14                                                       ; +0xbf, 0x10036fcdf\nmov     edx, 0FFFFFFFFh                                                ; +0xc2, 0x10036fce2\ncall    qword ptr [rax+1C0h]                                           ; +0xc7, 0x10036fce7\nmov     rax, [rbx+1F8h]                                                ; +0xcd, 0x10036fced\nmovss   xmm1, cs:dword_100814FA8                                       ; +0xd4, 0x10036fcf4\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0xdc, 0x10036fcfc\nmulss   xmm0, xmm1                                                     ; +0xe4, 0x10036fd04\nmulss   xmm1, dword ptr [rax+1B4h]                                     ; +0xe8, 0x10036fd08\nlea     r15, [rbp+var_30]                                              ; +0xf0, 0x10036fd10\nmov     rdi, r15                                                       ; +0xf4, 0x10036fd14\ncall    sub_10028CBE0                                                  ; +0xf7, 0x10036fd17\nmov     rax, [r14]                                                     ; +0xfc, 0x10036fd1c\nmov     rdi, r14                                                       ; +0xff, 0x10036fd1f\nmov     rsi, r15                                                       ; +0x102, 0x10036fd22\ncall    qword ptr [rax+0B8h]                                           ; +0x105, 0x10036fd25\nmov     rdi, [rbx+1F8h]                                                ; +0x10b, 0x10036fd2b\nmov     [rbp+var_26], 0AFh                                             ; +0x112, 0x10036fd32\nmov     [rbp+var_28], 0AFAFh                                           ; +0x116, 0x10036fd36\nmov     rax, [rdi]                                                     ; +0x11c, 0x10036fd3c\nlea     rsi, [rbp+var_28]                                              ; +0x11f, 0x10036fd3f\ncall    qword ptr [rax+3B0h]                                           ; +0x123, 0x10036fd43\nmov     [rbp+var_22], 0FFh                                             ; +0x129, 0x10036fd49\nmov     [rbp+var_24], 0FFFFh                                           ; +0x12d, 0x10036fd4d\nmov     rax, [r14]                                                     ; +0x133, 0x10036fd53\nlea     rsi, [rbp+var_24]                                              ; +0x136, 0x10036fd56\nmov     rdi, r14                                                       ; +0x13a, 0x10036fd5a\ncall    qword ptr [rax+3B0h]                                           ; +0x13d, 0x10036fd5d\ncall    GameManager__sharedState                                       ; +0x143, 0x10036fd63\nmov     qword ptr [rax+380h], 0                                        ; +0x148, 0x10036fd68\ncall    GameManager__sharedState                                       ; +0x153, 0x10036fd73\ncmp     byte ptr [rax+285h], 1                                         ; +0x158, 0x10036fd78\njnz     short loc_10036FDAB                                            ; +0x15f, 0x10036fd7f\nmov     rdi, [rbx+1F0h]                                                ; +0x161, 0x10036fd81\ntest    rdi, rdi                                                       ; +0x168, 0x10036fd88\njz      short loc_10036FDAB                                            ; +0x16b, 0x10036fd8b\nmov     rax, [rdi]                                                     ; +0x16d, 0x10036fd8d\nmov     esi, 1                                                         ; +0x170, 0x10036fd90\ncall    qword ptr [rax+238h]                                           ; +0x175, 0x10036fd95\ncall    GameManager__sharedState                                       ; +0x17b, 0x10036fd9b\nmov     qword ptr [rax+380h], 0                                        ; +0x180, 0x10036fda0\nadd     rsp, 10h                                                       ; +0x18b, 0x10036fdab\npop     rbx                                                            ; +0x18f, 0x10036fdaf\npop     r12                                                            ; +0x190, 0x10036fdb0\npop     r14                                                            ; +0x192, 0x10036fdb2\npop     r15                                                            ; +0x194, 0x10036fdb4\npop     rbp                                                            ; +0x196, 0x10036fdb6\nretn                                                                   ; +0x197, 0x10036fdb7", "xrefs": ["sub_10036FDC0 @ 0x10036fdcc", "<???> @ 0x10091bb10"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}