{"type": "func", "start": 4303039600, "end": 4303039794, "name": "InfoLayer::updateUserScoreFinished", "pseudocode": "// \n// InfoLayer::updateUserScoreFinished from 0x1007b2c70 to 0x1007b2d32 (194 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100992a10\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::updateUserScoreFinished(InfoLayer *a1)\n{\n  GameLevelManager *v1; // r14\n  GJUserScore *m_score; // rax\n  int m_userID; // r15d\n  GJLevelList *m_levelList; // rax\n  GJGameLevel *m_level; // rax\n  int m_itemCount; // r12d\n  int m_page; // r13d\n  GameManager *v8; // rax\n  bool GameVariable; // al\n\n  if ( a1->m_canUpdateUserScore )\n  {\n    a1->m_canUpdateUserScore = 0;\n    v1 = 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    m_itemCount = a1->m_itemCount;\n    m_page = a1->m_page;\n    v8 = GameManager::sharedState();\n    GameVariable = GameManager::getGameVariable(v8, \"0069\");\n    GameLevelManager::getLevelComments(v1, m_userID, m_page, m_itemCount, GameVariable, a1->m_mode);\n  }\n}", "assembly": "; \n; InfoLayer::updateUserScoreFinished from 0x1007b2c70 to 0x1007b2d32 (194 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100992a10\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     byte ptr [rdi+328h], 1                                         ; +0x0, 0x1007b2c70\njnz     short locret_1007B2CAE                                         ; +0x7, 0x1007b2c77\npush    rbp                                                            ; +0x9, 0x1007b2c79\nmov     rbp, rsp                                                       ; +0xa, 0x1007b2c7a\npush    r15                                                            ; +0xd, 0x1007b2c7d\npush    r14                                                            ; +0xf, 0x1007b2c7f\npush    r13                                                            ; +0x11, 0x1007b2c81\npush    r12                                                            ; +0x13, 0x1007b2c83\npush    rbx                                                            ; +0x15, 0x1007b2c85\npush    rax                                                            ; +0x16, 0x1007b2c86\nmov     rbx, rdi                                                       ; +0x17, 0x1007b2c87\nmov     byte ptr [rdi+328h], 0                                         ; +0x1a, 0x1007b2c8a\ncall    GameLevelManager__sharedState                                  ; +0x21, 0x1007b2c91\nmov     r14, rax                                                       ; +0x26, 0x1007b2c96\nmov     rax, [rbx+298h]                                                ; +0x29, 0x1007b2c99\ntest    rax, rax                                                       ; +0x30, 0x1007b2ca0\njz      short loc_1007B2CAF                                            ; +0x33, 0x1007b2ca3\nmov     r15d, [rax+174h]                                               ; +0x35, 0x1007b2ca5\njmp     short loc_1007B2CE6                                            ; +0x3c, 0x1007b2cac\nretn                                                                   ; +0x3e, 0x1007b2cae\nmov     rax, [rbx+2A0h]                                                ; +0x3f, 0x1007b2caf\ntest    rax, rax                                                       ; +0x46, 0x1007b2cb6\njz      short loc_1007B2CC7                                            ; +0x49, 0x1007b2cb9\nxor     r15d, r15d                                                     ; +0x4b, 0x1007b2cbb\nsub     r15d, [rax+158h]                                               ; +0x4e, 0x1007b2cbe\njmp     short loc_1007B2CE6                                            ; +0x55, 0x1007b2cc5\nmov     rax, [rbx+290h]                                                ; +0x57, 0x1007b2cc7\ntest    rax, rax                                                       ; +0x5e, 0x1007b2cce\njz      short loc_1007B2CE3                                            ; +0x61, 0x1007b2cd1\nmov     r15d, [rax+148h]                                               ; +0x63, 0x1007b2cd3\nsub     r15d, [rax+14Ch]                                               ; +0x6a, 0x1007b2cda\njmp     short loc_1007B2CE6                                            ; +0x71, 0x1007b2ce1\nxor     r15d, r15d                                                     ; +0x73, 0x1007b2ce3\nmov     r12d, [rbx+318h]                                               ; +0x76, 0x1007b2ce6\nmov     r13d, [rbx+324h]                                               ; +0x7d, 0x1007b2ced\ncall    GameManager__sharedState                                       ; +0x84, 0x1007b2cf4\nlea     rsi, a0069; \"0069\"                                             ; +0x89, 0x1007b2cf9\nmov     rdi, rax                                                       ; +0x90, 0x1007b2d00\ncall    GameManager__getGameVariable                                   ; +0x93, 0x1007b2d03\nmovzx   r8d, al                                                        ; +0x98, 0x1007b2d08\nmov     r9d, [rbx+32Ch]                                                ; +0x9c, 0x1007b2d0c\nmov     rdi, r14                                                       ; +0xa3, 0x1007b2d13\nmov     esi, r15d                                                      ; +0xa6, 0x1007b2d16\nmov     edx, r13d                                                      ; +0xa9, 0x1007b2d19\nmov     ecx, r12d                                                      ; +0xac, 0x1007b2d1c\nadd     rsp, 8                                                         ; +0xaf, 0x1007b2d1f\npop     rbx                                                            ; +0xb3, 0x1007b2d23\npop     r12                                                            ; +0xb4, 0x1007b2d24\npop     r13                                                            ; +0xb6, 0x1007b2d26\npop     r14                                                            ; +0xb8, 0x1007b2d28\npop     r15                                                            ; +0xba, 0x1007b2d2a\npop     rbp                                                            ; +0xbc, 0x1007b2d2c\njmp     GameLevelManager__getLevelComments                             ; +0xbd, 0x1007b2d2d", "xrefs": ["<???> @ 0x100992a10"], "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"}