{"type": "func", "start": 4298453124, "end": 4298453260, "name": "InfoLayer::commentUploadFinished", "pseudocode": "// \n// InfoLayer::commentUploadFinished from 0x100353084 to 0x10035310c (136 bytes)\n// \n// 2 xrefs:\n// > sub_10035310C @ 0x100353110\n// > <???> @ 0x1007f3468\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  _DWORD *m_levelList; // x8\n  GameManager *v4; // x0\n\n  if ( !a1->m_score )\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      LODWORD(m_levelList) = -m_levelList[86];\n    }\n    else\n    {\n      m_levelList = a1->m_level;\n      if ( m_levelList )\n        LODWORD(m_levelList) = m_levelList[82] - m_levelList[83];\n    }\n    if ( (_DWORD)m_levelList == a2 )\n    {\n      v4 = GameManager::sharedState();\n      GameManager::setGameVariable(v4, \"0069\", 0);\n      InfoLayer::updateCommentModeButtons(a1);\n      InfoLayer::loadPage(a1, 0, 0);\n    }\n  }\n}", "assembly": "; \n; InfoLayer::commentUploadFinished from 0x100353084 to 0x10035310c (136 bytes)\n; \n; 2 xrefs:\n; > sub_10035310C @ 0x100353110\n; > <???> @ 0x1007f3468\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100353084\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100353088\nADD             X29, SP, #0x10                                         ; +0x8, 0x10035308c\nLDR             X8, [X0,#0x298]                                        ; +0xc, 0x100353090\nCBNZ            X8, loc_100353100                                      ; +0x10, 0x100353094\nMOV             X19, X0                                                ; +0x14, 0x100353098\nLDR             X8, [X0,#0x2A0]                                        ; +0x18, 0x10035309c\nCBZ             X8, loc_1003530B0                                      ; +0x1c, 0x1003530a0\nLDR             W8, [X8,#0x158]                                        ; +0x20, 0x1003530a4\nNEG             W8, W8                                                 ; +0x24, 0x1003530a8\nB               loc_1003530C4                                          ; +0x28, 0x1003530ac\nLDR             X8, [X19,#0x290]                                       ; +0x2c, 0x1003530b0\nCBZ             X8, loc_1003530C4                                      ; +0x30, 0x1003530b4\nLDR             W9, [X8,#0x148]                                        ; +0x34, 0x1003530b8\nLDR             W8, [X8,#0x14C]                                        ; +0x38, 0x1003530bc\nSUB             W8, W9, W8                                             ; +0x3c, 0x1003530c0\nCMP             W8, W1                                                 ; +0x40, 0x1003530c4\nB.NE            loc_100353100                                          ; +0x44, 0x1003530c8\nBL              GameManager__sharedState                               ; +0x48, 0x1003530cc\nADRL            X1, a0069; \"0069\"                                      ; +0x4c, 0x1003530d0\nMOV             W2, #0                                                 ; +0x54, 0x1003530d8\nBL              GameManager__setGameVariable                           ; +0x58, 0x1003530dc\nMOV             X0, X19                                                ; +0x5c, 0x1003530e0\nBL              InfoLayer__updateCommentModeButtons                    ; +0x60, 0x1003530e4\nMOV             X0, X19                                                ; +0x64, 0x1003530e8\nMOV             W1, #0                                                 ; +0x68, 0x1003530ec\nMOV             W2, #0                                                 ; +0x6c, 0x1003530f0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1003530f4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1003530f8\nB               InfoLayer__loadPage                                    ; +0x78, 0x1003530fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x100353100\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x100353104\nRET                                                                    ; +0x84, 0x100353108", "xrefs": ["sub_10035310C @ 0x100353110", "<???> @ 0x1007f3468"], "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"}