{"type": "func", "start": 4303040000, "end": 4303040292, "name": "InfoLayer::commentUploadFinished", "pseudocode": "// \n// InfoLayer::commentUploadFinished from 0x1007b2e00 to 0x1007b2f24 (292 bytes)\n// \n// 2 xrefs:\n// > sub_1007B2F30 @ 0x1007b2f3c\n// > <???> @ 0x100992a00\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 InfoLayer::commentUploadFinished(InfoLayer *a1, int a2)\n{\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n  GameManager *v4; // rax\n  GameManager *v5; // rax\n  bool GameVariable; // r14\n  ButtonSprite *v7; // rax\n  const char *v8; // r15\n  const char *v9; // rsi\n  ButtonSprite *v10; // rax\n\n  if ( !a1->m_score )\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      if ( -m_levelList->m_listID != a2 )\n        return;\n    }\n    else\n    {\n      m_level = a1->m_level;\n      if ( m_level )\n      {\n        if ( m_level->m_levelID.random - m_level->m_levelID.seed != a2 )\n          return;\n      }\n      else if ( a2 )\n      {\n        return;\n      }\n    }\n    v4 = GameManager::sharedState();\n    GameManager::setGameVariable(v4, \"0069\", 0);\n    v5 = GameManager::sharedState();\n    GameVariable = GameManager::getGameVariable(v5, \"0069\");\n    v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn);\n    v8 = \"GJ_button_02.png\";\n    v9 = \"GJ_button_01.png\";\n    if ( GameVariable )\n    {\n      v9 = \"GJ_button_02.png\";\n      v8 = \"GJ_button_01.png\";\n    }\n    ButtonSprite::updateBGImage(v7, v9);\n    v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn);\n    ButtonSprite::updateBGImage(v10, v8);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_likeBtn->setEnabled)(a1->m_likeBtn, !GameVariable);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_timeBtn->setEnabled)(a1->m_timeBtn, GameVariable);\n    InfoLayer::loadPage(a1, 0, 0);\n  }\n}", "assembly": "; \n; InfoLayer::commentUploadFinished from 0x1007b2e00 to 0x1007b2f24 (292 bytes)\n; \n; 2 xrefs:\n; > sub_1007B2F30 @ 0x1007b2f3c\n; > <???> @ 0x100992a00\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\ncmp     qword ptr [rdi+298h], 0                                        ; +0x0, 0x1007b2e00\njnz     locret_1007B2F23                                               ; +0x8, 0x1007b2e08\nmov     rcx, [rdi+2A0h]                                                ; +0xe, 0x1007b2e0e\ntest    rcx, rcx                                                       ; +0x15, 0x1007b2e15\njz      short loc_1007B2E2B                                            ; +0x18, 0x1007b2e18\nxor     eax, eax                                                       ; +0x1a, 0x1007b2e1a\nsub     eax, [rcx+158h]                                                ; +0x1c, 0x1007b2e1c\ncmp     eax, esi                                                       ; +0x22, 0x1007b2e22\njz      short loc_1007B2E4F                                            ; +0x24, 0x1007b2e24\njmp     locret_1007B2F23                                               ; +0x26, 0x1007b2e26\nmov     rcx, [rdi+290h]                                                ; +0x2b, 0x1007b2e2b\ntest    rcx, rcx                                                       ; +0x32, 0x1007b2e32\njz      loc_1007B2F19                                                  ; +0x35, 0x1007b2e35\nmov     eax, [rcx+148h]                                                ; +0x3b, 0x1007b2e3b\nsub     eax, [rcx+14Ch]                                                ; +0x41, 0x1007b2e41\ncmp     eax, esi                                                       ; +0x47, 0x1007b2e47\njnz     locret_1007B2F23                                               ; +0x49, 0x1007b2e49\npush    rbp                                                            ; +0x4f, 0x1007b2e4f\nmov     rbp, rsp                                                       ; +0x50, 0x1007b2e50\npush    r15                                                            ; +0x53, 0x1007b2e53\npush    r14                                                            ; +0x55, 0x1007b2e55\npush    rbx                                                            ; +0x57, 0x1007b2e57\npush    rax                                                            ; +0x58, 0x1007b2e58\nmov     rbx, rdi                                                       ; +0x59, 0x1007b2e59\ncall    GameManager__sharedState                                       ; +0x5c, 0x1007b2e5c\nlea     r14, a0069; \"0069\"                                             ; +0x61, 0x1007b2e61\nmov     rdi, rax                                                       ; +0x68, 0x1007b2e68\nmov     rsi, r14                                                       ; +0x6b, 0x1007b2e6b\nxor     edx, edx                                                       ; +0x6e, 0x1007b2e6e\ncall    GameManager__setGameVariable                                   ; +0x70, 0x1007b2e70\ncall    GameManager__sharedState                                       ; +0x75, 0x1007b2e75\nmov     rdi, rax                                                       ; +0x7a, 0x1007b2e7a\nmov     rsi, r14                                                       ; +0x7d, 0x1007b2e7d\ncall    GameManager__getGameVariable                                   ; +0x80, 0x1007b2e80\nmov     r14d, eax                                                      ; +0x85, 0x1007b2e85\nmov     rdi, [rbx+2F0h]                                                ; +0x88, 0x1007b2e88\nmov     rax, [rdi]                                                     ; +0x8f, 0x1007b2e8f\ncall    qword ptr [rax+420h]                                           ; +0x92, 0x1007b2e92\nlea     r15, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x98, 0x1007b2e98\nlea     rcx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x9f, 0x1007b2e9f\ntest    r14b, r14b                                                     ; +0xa6, 0x1007b2ea6\nmov     rsi, rcx                                                       ; +0xa9, 0x1007b2ea9\ncmovnz  rsi, r15                                                       ; +0xac, 0x1007b2eac\ncmovnz  r15, rcx                                                       ; +0xb0, 0x1007b2eb0\nmov     rdi, rax                                                       ; +0xb4, 0x1007b2eb4\ncall    ButtonSprite__updateBGImage                                    ; +0xb7, 0x1007b2eb7\nmov     rdi, [rbx+2F8h]                                                ; +0xbc, 0x1007b2ebc\nmov     rax, [rdi]                                                     ; +0xc3, 0x1007b2ec3\ncall    qword ptr [rax+420h]                                           ; +0xc6, 0x1007b2ec6\nmov     rdi, rax                                                       ; +0xcc, 0x1007b2ecc\nmov     rsi, r15                                                       ; +0xcf, 0x1007b2ecf\ncall    ButtonSprite__updateBGImage                                    ; +0xd2, 0x1007b2ed2\nmov     rdi, [rbx+2F0h]                                                ; +0xd7, 0x1007b2ed7\nmov     eax, r14d                                                      ; +0xde, 0x1007b2ede\nxor     al, 1                                                          ; +0xe1, 0x1007b2ee1\nmov     rcx, [rdi]                                                     ; +0xe3, 0x1007b2ee3\nmovzx   esi, al                                                        ; +0xe6, 0x1007b2ee6\ncall    qword ptr [rcx+410h]                                           ; +0xe9, 0x1007b2ee9\nmov     rdi, [rbx+2F8h]                                                ; +0xef, 0x1007b2eef\nmov     rax, [rdi]                                                     ; +0xf6, 0x1007b2ef6\nmovzx   esi, r14b                                                      ; +0xf9, 0x1007b2ef9\ncall    qword ptr [rax+410h]                                           ; +0xfd, 0x1007b2efd\nmov     rdi, rbx                                                       ; +0x103, 0x1007b2f03\nxor     esi, esi                                                       ; +0x106, 0x1007b2f06\nxor     edx, edx                                                       ; +0x108, 0x1007b2f08\nadd     rsp, 8                                                         ; +0x10a, 0x1007b2f0a\npop     rbx                                                            ; +0x10e, 0x1007b2f0e\npop     r14                                                            ; +0x10f, 0x1007b2f0f\npop     r15                                                            ; +0x111, 0x1007b2f11\npop     rbp                                                            ; +0x113, 0x1007b2f13\njmp     InfoLayer__loadPage                                            ; +0x114, 0x1007b2f14\nxor     eax, eax                                                       ; +0x119, 0x1007b2f19\ncmp     eax, esi                                                       ; +0x11b, 0x1007b2f1b\njz      loc_1007B2E4F                                                  ; +0x11d, 0x1007b2f1d\nretn                                                                   ; +0x123, 0x1007b2f23", "xrefs": ["sub_1007B2F30 @ 0x1007b2f3c", "<???> @ 0x100992a00"], "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"}