{"type": "func", "start": 4303035856, "end": 4303036037, "name": "InfoLayer::onRefreshComments", "pseudocode": "// \n// InfoLayer::onRefreshComments from 0x1007b1dd0 to 0x1007b1e85 (181 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x1007b00a9\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::onRefreshComments(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v2; // rax\n  GameLevelManager *v3; // rax\n  GameLevelManager *v4; // rax\n  GJUserScore *m_score; // rcx\n  int m_userID; // esi\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n\n  v2 = GameLevelManager::sharedState();\n  if ( (unsigned int)(GameLevelManager::getTimeLeft(v2, \"upd_comments\", 5.0) - 1) >= 5 )\n  {\n    v3 = GameLevelManager::sharedState();\n    GameLevelManager::makeTimeStamp(v3, \"upd_comments\");\n    v4 = GameLevelManager::sharedState();\n    m_score = a1->m_score;\n    if ( m_score )\n    {\n      m_userID = m_score->m_userID;\n    }\n    else\n    {\n      m_levelList = a1->m_levelList;\n      if ( m_levelList )\n      {\n        m_userID = -m_levelList->m_listID;\n      }\n      else\n      {\n        m_level = a1->m_level;\n        if ( m_level )\n          m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n        else\n          m_userID = 0;\n      }\n    }\n    GameLevelManager::resetCommentTimersForLevelID(v4, m_userID, a1->m_mode);\n    InfoLayer::loadPage(a1, 0, 1);\n  }\n}", "assembly": "; \n; InfoLayer::onRefreshComments from 0x1007b1dd0 to 0x1007b1e85 (181 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x1007b00a9\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, 0x1007b1dd0\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1dd1\npush    rbx                                                            ; +0x4, 0x1007b1dd4\npush    rax                                                            ; +0x5, 0x1007b1dd5\nmov     rbx, rdi                                                       ; +0x6, 0x1007b1dd6\ncall    GameLevelManager__sharedState                                  ; +0x9, 0x1007b1dd9\nlea     rsi, aUpdComments; \"upd_comments\"                              ; +0xe, 0x1007b1dde\nmovss   xmm0, cs:flt_100815088                                         ; +0x15, 0x1007b1de5\nmov     rdi, rax                                                       ; +0x1d, 0x1007b1ded\ncall    GameLevelManager__getTimeLeft                                  ; +0x20, 0x1007b1df0\ndec     eax                                                            ; +0x25, 0x1007b1df5\ncmp     eax, 5                                                         ; +0x27, 0x1007b1df7\njnb     short loc_1007B1E03                                            ; +0x2a, 0x1007b1dfa\nadd     rsp, 8                                                         ; +0x2c, 0x1007b1dfc\npop     rbx                                                            ; +0x30, 0x1007b1e00\npop     rbp                                                            ; +0x31, 0x1007b1e01\nretn                                                                   ; +0x32, 0x1007b1e02\ncall    GameLevelManager__sharedState                                  ; +0x33, 0x1007b1e03\nlea     rsi, aUpdComments; \"upd_comments\"                              ; +0x38, 0x1007b1e08\nmov     rdi, rax                                                       ; +0x3f, 0x1007b1e0f\ncall    GameLevelManager__makeTimeStamp                                ; +0x42, 0x1007b1e12\ncall    GameLevelManager__sharedState                                  ; +0x47, 0x1007b1e17\nmov     rcx, [rbx+298h]                                                ; +0x4c, 0x1007b1e1c\ntest    rcx, rcx                                                       ; +0x53, 0x1007b1e23\njz      short loc_1007B1E30                                            ; +0x56, 0x1007b1e26\nmov     esi, [rcx+174h]                                                ; +0x58, 0x1007b1e28\njmp     short loc_1007B1E62                                            ; +0x5e, 0x1007b1e2e\nmov     rcx, [rbx+2A0h]                                                ; +0x60, 0x1007b1e30\ntest    rcx, rcx                                                       ; +0x67, 0x1007b1e37\njz      short loc_1007B1E46                                            ; +0x6a, 0x1007b1e3a\nxor     esi, esi                                                       ; +0x6c, 0x1007b1e3c\nsub     esi, [rcx+158h]                                                ; +0x6e, 0x1007b1e3e\njmp     short loc_1007B1E62                                            ; +0x74, 0x1007b1e44\nmov     rcx, [rbx+290h]                                                ; +0x76, 0x1007b1e46\ntest    rcx, rcx                                                       ; +0x7d, 0x1007b1e4d\njz      short loc_1007B1E60                                            ; +0x80, 0x1007b1e50\nmov     esi, [rcx+148h]                                                ; +0x82, 0x1007b1e52\nsub     esi, [rcx+14Ch]                                                ; +0x88, 0x1007b1e58\njmp     short loc_1007B1E62                                            ; +0x8e, 0x1007b1e5e\nxor     esi, esi                                                       ; +0x90, 0x1007b1e60\nmov     edx, [rbx+32Ch]                                                ; +0x92, 0x1007b1e62\nmov     rdi, rax                                                       ; +0x98, 0x1007b1e68\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0x9b, 0x1007b1e6b\nmov     rdi, rbx                                                       ; +0xa0, 0x1007b1e70\nxor     esi, esi                                                       ; +0xa3, 0x1007b1e73\nmov     edx, 1                                                         ; +0xa5, 0x1007b1e75\nadd     rsp, 8                                                         ; +0xaa, 0x1007b1e7a\npop     rbx                                                            ; +0xae, 0x1007b1e7e\npop     rbp                                                            ; +0xaf, 0x1007b1e7f\njmp     InfoLayer__loadPage                                            ; +0xb0, 0x1007b1e80", "xrefs": ["InfoLayer::init @ 0x1007b00a9"], "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"}