{"type": "func", "start": 4295931188, "end": 4295931548, "name": "EditLevelLayer::onLevelInfo", "pseudocode": "// \n// EditLevelLayer::onLevelInfo from 0x1000eb534 to 0x1000eb69c (360 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::init @ 0x1000e9e48\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 EditLevelLayer::onLevelInfo(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJGameLevel *m_level; // x8\n  void **v4; // x9\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  std::string *v7; // x1\n  __int64 v8; // x19\n  void *v9[2]; // [xsp+28h] [xbp-58h] BYREF\n  char v10; // [xsp+3Fh] [xbp-41h]\n  void *__p[2]; // [xsp+40h] [xbp-40h] BYREF\n  char *longStorage; // [xsp+50h] [xbp-30h]\n  std::string v13; // [xsp+58h] [xbp-28h] BYREF\n\n  m_level = a1->m_level;\n  if ( m_level->m_levelName.m_data.m_short.shortStorage.__elems_[22] < 0 )\n  {\n    sub_1000097D0(__p, (void *)m_level->m_levelName.m_data.m_long.capacitym1, m_level->m_levelName.m_data.m_long.size);\n    m_level = a1->m_level;\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)&m_level->m_levelName.m_data.m_short.sizex2;\n    longStorage = m_level->m_levelName.m_data.m_long.longStorage;\n  }\n  v4 = __p;\n  if ( SHIBYTE(longStorage) < 0 )\n    v4 = (void **)__p[0];\n  v5 = (cocos2d::CCString *)sub_100268F4C(\n                              \"<cy>%s</c>\\n<cg>Total Attempts</c>: %i\\n<cl>Total Jumps</c>: %i\\n<cp>Objects</c>: %i\",\n                              (const char *)v4,\n                              m_level->m_attempts.random - m_level->m_attempts.seed,\n                              m_level->m_jumps.random - m_level->m_jumps.seed,\n                              m_level->m_objectCount.random - m_level->m_objectCount.seed);\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  sub_100009900(&v13, CString);\n  if ( SHIBYTE(longStorage) < 0 )\n    operator delete(__p[0]);\n  if ( a1->m_level->m_objectCount.random - a1->m_level->m_objectCount.seed >= 40001 )\n    std::string::append(&v13, \" <cr>(high)</c>\");\n  if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n    v7 = &v13;\n  else\n    v7 = (std::string *)v13.__r_.__value_.__r.__words[0];\n  sub_100009900(v9, (char *)v7);\n  v8 = FLAlertLayer::create_1(0, \"Level Stats\", v9, \"OK\", 0, 300.0);\n  if ( v10 < 0 )\n    operator delete(v9[0]);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1288LL))(v8);\n  if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v13.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; EditLevelLayer::onLevelInfo from 0x1000eb534 to 0x1000eb69c (360 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::init @ 0x1000e9e48\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\nSUB             SP, SP, #0x90                                          ; +0x0, 0x1000eb534\nSTP             X20, X19, [SP,#0x80+var_10]                            ; +0x4, 0x1000eb538\nSTP             X29, X30, [SP,#0x80+var_s0]                            ; +0x8, 0x1000eb53c\nADD             X29, SP, #0x80                                         ; +0xc, 0x1000eb540\nMOV             X19, X0                                                ; +0x10, 0x1000eb544\nLDR             X8, [X0,#0x1C8]                                        ; +0x14, 0x1000eb548\nLDRSB           W9, [X8,#0x16F]                                        ; +0x18, 0x1000eb54c\nTBNZ            W9, #0x1F, loc_1000EB56C                               ; +0x1c, 0x1000eb550\nADD             X9, X8, #0x158                                         ; +0x20, 0x1000eb554\nLDR             Q0, [X9]                                               ; +0x24, 0x1000eb558\nSTR             Q0, [SP,#0x80+__p]                                     ; +0x28, 0x1000eb55c\nLDR             X9, [X9,#0x10]                                         ; +0x2c, 0x1000eb560\nSTR             X9, [SP,#0x80+var_30]                                  ; +0x30, 0x1000eb564\nB               loc_1000EB57C                                          ; +0x34, 0x1000eb568\nLDP             X1, X2, [X8,#0x158]; __src                             ; +0x38, 0x1000eb56c\nADD             X0, SP, #0x80+__p; __dst                               ; +0x3c, 0x1000eb570\nBL              sub_1000097D0                                          ; +0x40, 0x1000eb574\nLDR             X8, [X19,#0x1C8]                                       ; +0x44, 0x1000eb578\nLDRSB           W9, [SP,#0x80+var_30+7]                                ; +0x48, 0x1000eb57c\nLDR             X10, [SP,#0x80+__p]                                    ; +0x4c, 0x1000eb580\nCMP             W9, #0                                                 ; +0x50, 0x1000eb584\nADD             X9, SP, #0x80+__p                                      ; +0x54, 0x1000eb588\nCSEL            X9, X10, X9, LT                                        ; +0x58, 0x1000eb58c\nLDR             W10, [X8,#0x2A8]                                       ; +0x5c, 0x1000eb590\nLDR             W11, [X8,#0x2AC]                                       ; +0x60, 0x1000eb594\nSUB             W10, W10, W11                                          ; +0x64, 0x1000eb598\nLDR             W11, [X8,#0x2B4]                                       ; +0x68, 0x1000eb59c\nLDR             W12, [X8,#0x2B8]                                       ; +0x6c, 0x1000eb5a0\nSUB             W11, W11, W12                                          ; +0x70, 0x1000eb5a4\nLDR             W12, [X8,#0x264]                                       ; +0x74, 0x1000eb5a8\nLDR             W8, [X8,#0x268]                                        ; +0x78, 0x1000eb5ac\nSUB             W8, W12, W8                                            ; +0x7c, 0x1000eb5b0\nSTP             X11, X8, [SP,#0x80+var_70]                             ; +0x80, 0x1000eb5b4\nSTP             X9, X10, [SP,#0x80+var_80]                             ; +0x84, 0x1000eb5b8\nADRL            X0, aCySCCgTotalAtt_0; \"<cy>%s</c>\\n<cg>Total Attempts</c>: %i\"... ; +0x88, 0x1000eb5bc\nBL              sub_100268F4C                                          ; +0x90, 0x1000eb5c4\nBL              cocos2d__CCString__getCString                          ; +0x94, 0x1000eb5c8\nMOV             X1, X0; __s                                            ; +0x98, 0x1000eb5cc\nSUB             X0, X29, #-var_28; int                                 ; +0x9c, 0x1000eb5d0\nBL              sub_100009900                                          ; +0xa0, 0x1000eb5d4\nLDRSB           W8, [SP,#0x80+var_30+7]                                ; +0xa4, 0x1000eb5d8\nTBZ             W8, #0x1F, loc_1000EB5E8                               ; +0xa8, 0x1000eb5dc\nLDR             X0, [SP,#0x80+__p]; __p                                ; +0xac, 0x1000eb5e0\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x1000eb5e4\nLDR             X8, [X19,#0x1C8]                                       ; +0xb4, 0x1000eb5e8\nLDR             W9, [X8,#0x264]                                        ; +0xb8, 0x1000eb5ec\nLDR             W8, [X8,#0x268]                                        ; +0xbc, 0x1000eb5f0\nSUB             W8, W9, W8                                             ; +0xc0, 0x1000eb5f4\nMOV             W9, #0x9C41                                            ; +0xc4, 0x1000eb5f8\nCMP             W8, W9                                                 ; +0xc8, 0x1000eb5fc\nB.LT            loc_1000EB614                                          ; +0xcc, 0x1000eb600\nADRL            X1, aCrHighC; \" <cr>(high)</c>\"                        ; +0xd0, 0x1000eb604\nSUB             X0, X29, #-var_28; this                                ; +0xd8, 0x1000eb60c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xdc, 0x1000eb610\nLDURSB          W8, [X29,#var_28.__r_.__value_+0x17]                   ; +0xe0, 0x1000eb614\nLDUR            X9, [X29,#var_28]                                      ; +0xe4, 0x1000eb618\nCMP             W8, #0                                                 ; +0xe8, 0x1000eb61c\nSUB             X8, X29, #-var_28                                      ; +0xec, 0x1000eb620\nCSEL            X1, X9, X8, LT; __s                                    ; +0xf0, 0x1000eb624\nADD             X0, SP, #0x80+var_58; int                              ; +0xf4, 0x1000eb628\nBL              sub_100009900                                          ; +0xf8, 0x1000eb62c\nADRL            X1, aLevelStats; \"Level Stats\"                         ; +0xfc, 0x1000eb630\nADRL            X3, aOk; \"OK\"                                          ; +0x104, 0x1000eb638\nMOV             W8, #0x43960000                                        ; +0x10c, 0x1000eb640\nFMOV            S0, W8                                                 ; +0x110, 0x1000eb644\nADD             X2, SP, #0x80+var_58                                   ; +0x114, 0x1000eb648\nMOV             X0, #0                                                 ; +0x118, 0x1000eb64c\nMOV             X4, #0                                                 ; +0x11c, 0x1000eb650\nBL              FLAlertLayer__create_1                                 ; +0x120, 0x1000eb654\nMOV             X19, X0                                                ; +0x124, 0x1000eb658\nLDRSB           W8, [SP,#0x80+var_41]                                  ; +0x128, 0x1000eb65c\nTBZ             W8, #0x1F, loc_1000EB66C                               ; +0x12c, 0x1000eb660\nLDR             X0, [SP,#0x80+var_58]; __p                             ; +0x130, 0x1000eb664\nBL              __ZdlPv; operator delete(void *)                       ; +0x134, 0x1000eb668\nLDR             X8, [X19]                                              ; +0x138, 0x1000eb66c\nLDR             X8, [X8,#0x508]                                        ; +0x13c, 0x1000eb670\nMOV             X0, X19                                                ; +0x140, 0x1000eb674\nBLR             X8                                                     ; +0x144, 0x1000eb678\nLDURSB          W8, [X29,#var_28.__r_.__value_+0x17]                   ; +0x148, 0x1000eb67c\nTBZ             W8, #0x1F, loc_1000EB68C                               ; +0x14c, 0x1000eb680\nLDUR            X0, [X29,#var_28]; __p                                 ; +0x150, 0x1000eb684\nBL              __ZdlPv; operator delete(void *)                       ; +0x154, 0x1000eb688\nLDP             X29, X30, [SP,#0x80+var_s0]                            ; +0x158, 0x1000eb68c\nLDP             X20, X19, [SP,#0x80+var_10]                            ; +0x15c, 0x1000eb690\nADD             SP, SP, #0x90                                          ; +0x160, 0x1000eb694\nRET                                                                    ; +0x164, 0x1000eb698", "xrefs": ["EditLevelLayer::init @ 0x1000e9e48"], "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"}