{"type": "func", "start": 4295138396, "end": 4295138516, "name": "LevelInfoLayer::onViewProfile", "pseudocode": "// \n// LevelInfoLayer::onViewProfile from 0x100029c5c to 0x100029cd4 (120 bytes)\n// \n// 1 xrefs:\n// > LevelInfoLayer::init @ 0x100028048\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:27 +0000\n// \n\n__int64 __fastcall LevelInfoLayer::onViewProfile(__int64 result)\n{\n  __int64 v1; // x19\n  __int64 v2; // x0\n  __int64 v3; // x0\n\n  if ( (*(_BYTE *)(result + 488) & 1) == 0 )\n  {\n    v1 = result;\n    if ( *(_DWORD *)(*(_QWORD *)(result + 504) + 588LL) > *(_DWORD *)(*(_QWORD *)(result + 504) + 592LL) )\n    {\n      v2 = GameManager::sharedState(result);\n      GameManager::setGameVariable(v2, \"0047\", 1);\n      v3 = ProfilePage::create(\n             (unsigned int)(*(_DWORD *)(*(_QWORD *)(v1 + 504) + 588LL) - *(_DWORD *)(*(_QWORD *)(v1 + 504) + 592LL)),\n             0);\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; LevelInfoLayer::onViewProfile from 0x100029c5c to 0x100029cd4 (120 bytes)\n; \n; 1 xrefs:\n; > LevelInfoLayer::init @ 0x100028048\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:27 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100029c5c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100029c60\nADD             X29, SP, #0x10                                         ; +0x8, 0x100029c64\nLDRB            W8, [X0,#0x1E8]                                        ; +0xc, 0x100029c68\nTBNZ            W8, #0, loc_100029CC8                                  ; +0x10, 0x100029c6c\nMOV             X19, X0                                                ; +0x14, 0x100029c70\nLDR             X8, [X0,#0x1F8]                                        ; +0x18, 0x100029c74\nLDR             W9, [X8,#0x24C]                                        ; +0x1c, 0x100029c78\nLDR             W8, [X8,#0x250]                                        ; +0x20, 0x100029c7c\nCMP             W9, W8                                                 ; +0x24, 0x100029c80\nB.LE            loc_100029CC8                                          ; +0x28, 0x100029c84\nBL              GameManager__sharedState                               ; +0x2c, 0x100029c88\nADRL            X1, a0047; \"0047\"                                      ; +0x30, 0x100029c8c\nMOV             W2, #1                                                 ; +0x38, 0x100029c94\nBL              GameManager__setGameVariable                           ; +0x3c, 0x100029c98\nLDR             X8, [X19,#0x1F8]                                       ; +0x40, 0x100029c9c\nLDR             W9, [X8,#0x24C]                                        ; +0x44, 0x100029ca0\nLDR             W8, [X8,#0x250]                                        ; +0x48, 0x100029ca4\nSUB             W0, W9, W8                                             ; +0x4c, 0x100029ca8\nMOV             W1, #0                                                 ; +0x50, 0x100029cac\nBL              ProfilePage__create                                    ; +0x54, 0x100029cb0\nLDR             X8, [X0]                                               ; +0x58, 0x100029cb4\nLDR             X1, [X8,#0x520]                                        ; +0x5c, 0x100029cb8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x100029cbc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x100029cc0\nBR              X1                                                     ; +0x68, 0x100029cc4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x100029cc8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x100029ccc\nRET                                                                    ; +0x74, 0x100029cd0", "xrefs": ["LevelInfoLayer::init @ 0x100028048"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}