{"type": "func", "start": 4298452932, "end": 4298453116, "name": "InfoLayer::updateUserScoreFinished", "pseudocode": "// \n// InfoLayer::updateUserScoreFinished from 0x100352fc4 to 0x10035307c (184 bytes)\n// \n// 2 xrefs:\n// > sub_10035307C @ 0x100353080\n// > <???> @ 0x1007f3478\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 *v2; // x20\n  GJUserScore *m_score; // x8\n  int m_userID; // w21\n  GJLevelList *m_levelList; // x8\n  GJGameLevel *m_level; // x8\n  int m_page; // w22\n  int m_itemCount; // w23\n  GameManager *v9; // x0\n  _BOOL4 GameVariable; // w4\n\n  if ( a1->m_canUpdateUserScore )\n  {\n    a1->m_canUpdateUserScore = 0;\n    v2 = 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_page = a1->m_page;\n    m_itemCount = a1->m_itemCount;\n    v9 = GameManager::sharedState();\n    GameVariable = GameManager::getGameVariable(v9, \"0069\");\n    GameLevelManager::getLevelComments(v2, m_userID, m_page, m_itemCount, GameVariable, a1->m_mode);\n  }\n}", "assembly": "; \n; InfoLayer::updateUserScoreFinished from 0x100352fc4 to 0x10035307c (184 bytes)\n; \n; 2 xrefs:\n; > sub_10035307C @ 0x100353080\n; > <???> @ 0x1007f3478\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\nLDRB            W8, [X0,#0x328]                                        ; +0x0, 0x100352fc4\nCMP             W8, #1                                                 ; +0x4, 0x100352fc8\nB.NE            locret_100353004                                       ; +0x8, 0x100352fcc\nSTP             X24, X23, [SP,#var_40]!                                ; +0xc, 0x100352fd0\nSTP             X22, X21, [SP,#0x40+var_30]                            ; +0x10, 0x100352fd4\nSTP             X20, X19, [SP,#0x40+var_20]                            ; +0x14, 0x100352fd8\nSTP             X29, X30, [SP,#0x40+var_10]                            ; +0x18, 0x100352fdc\nADD             X29, SP, #0x40+var_10                                  ; +0x1c, 0x100352fe0\nMOV             X19, X0                                                ; +0x20, 0x100352fe4\nSTRB            WZR, [X0,#0x328]                                       ; +0x24, 0x100352fe8\nBL              GameLevelManager__sharedState                          ; +0x28, 0x100352fec\nMOV             X20, X0                                                ; +0x2c, 0x100352ff0\nLDR             X8, [X19,#0x298]                                       ; +0x30, 0x100352ff4\nCBZ             X8, loc_100353008                                      ; +0x34, 0x100352ff8\nLDR             W21, [X8,#0x174]                                       ; +0x38, 0x100352ffc\nB               loc_100353038                                          ; +0x3c, 0x100353000\nRET                                                                    ; +0x40, 0x100353004\nLDR             X8, [X19,#0x2A0]                                       ; +0x44, 0x100353008\nCBZ             X8, loc_10035301C                                      ; +0x48, 0x10035300c\nLDR             W8, [X8,#0x158]                                        ; +0x4c, 0x100353010\nNEG             W21, W8                                                ; +0x50, 0x100353014\nB               loc_100353038                                          ; +0x54, 0x100353018\nLDR             X8, [X19,#0x290]                                       ; +0x58, 0x10035301c\nCBZ             X8, loc_100353034                                      ; +0x5c, 0x100353020\nLDR             W9, [X8,#0x148]                                        ; +0x60, 0x100353024\nLDR             W8, [X8,#0x14C]                                        ; +0x64, 0x100353028\nSUB             W21, W9, W8                                            ; +0x68, 0x10035302c\nB               loc_100353038                                          ; +0x6c, 0x100353030\nMOV             W21, #0                                                ; +0x70, 0x100353034\nLDR             W22, [X19,#0x324]                                      ; +0x74, 0x100353038\nLDR             W23, [X19,#0x318]                                      ; +0x78, 0x10035303c\nBL              GameManager__sharedState                               ; +0x7c, 0x100353040\nADRL            X1, a0069; \"0069\"                                      ; +0x80, 0x100353044\nBL              GameManager__getGameVariable                           ; +0x88, 0x10035304c\nMOV             X4, X0                                                 ; +0x8c, 0x100353050\nLDR             W5, [X19,#0x32C]                                       ; +0x90, 0x100353054\nMOV             X0, X20                                                ; +0x94, 0x100353058\nMOV             X1, X21                                                ; +0x98, 0x10035305c\nMOV             X2, X22                                                ; +0x9c, 0x100353060\nMOV             X3, X23                                                ; +0xa0, 0x100353064\nLDP             X29, X30, [SP,#0x40+var_10]                            ; +0xa4, 0x100353068\nLDP             X20, X19, [SP,#0x40+var_20]                            ; +0xa8, 0x10035306c\nLDP             X22, X21, [SP,#0x40+var_30]                            ; +0xac, 0x100353070\nLDP             X24, X23, [SP+0x40+var_40],#0x40                       ; +0xb0, 0x100353074\nB               GameLevelManager__getLevelComments                     ; +0xb4, 0x100353078", "xrefs": ["sub_10035307C @ 0x100353080", "<???> @ 0x1007f3478"], "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"}