{"type": "func", "start": 4295292032, "end": 4295292472, "name": "GameToolbox::pointsToString", "pseudocode": "// \n// GameToolbox::pointsToString from 0x10004f480 to 0x10004f638 (440 bytes)\n// \n// 44 xrefs:\n// > LevelInfoLayer::setupPlatformerStats @ 0x10002b48c\n// > LevelInfoLayer::updateLabelValues @ 0x10002ccf0\n// > LevelInfoLayer::updateLabelValues @ 0x10002ce00\n// > GJScoreCell::loadFromScore @ 0x10012d340\n// > GJScoreCell::loadFromScore @ 0x10012d4d0\n// > GJScoreCell::loadFromScore @ 0x10012d6a0\n// > GJScoreCell::loadFromScore @ 0x10012d814\n// > GJScoreCell::loadFromScore @ 0x10012d9d0\n// > GJScoreCell::loadFromScore @ 0x10012db98\n// > GJScoreCell::loadFromScore @ 0x10012dd6c\n// > GJLevelScoreCell::loadFromScore @ 0x10012e62c\n// > GJLocalLevelScoreCell::loadFromScore @ 0x10012eabc\n// > PauseLayer::setupPlatformerLabels @ 0x1001c0e70\n// > GJShopLayer::init @ 0x1001c9e10\n// > PurchaseItemPopup::init @ 0x1001cc808\n// > ProfilePage::loadPageFromUserInfo @ 0x10022b8d8\n// > ProfilePage::onStatInfo @ 0x10022e368\n// > ProfilePage::onStatInfo @ 0x10022e384\n// > sub_10022E8B0 @ 0x10022e97c\n// > sub_10022E8B0 @ 0x10022e9a0\n// > sub_10022E8B0 @ 0x10022e9c4\n// > sub_10022E8B0 @ 0x10022e9e8\n// > sub_10022E8B0 @ 0x10022ea08\n// > sub_10022E8B0 @ 0x10022ea24\n// > sub_10022E8B0 @ 0x10022eaec\n// > DemonInfoPopup::init @ 0x10023174c\n// > DemonInfoPopup::init @ 0x1002317f0\n// > DemonInfoPopup::init @ 0x100231a4c\n// > DemonInfoPopup::init @ 0x100231ae0\n// > DemonInfoPopup::init @ 0x100231c18\n// > DemonInfoPopup::init @ 0x100231ce4\n// > StarInfoPopup::init @ 0x100232208\n// > StarInfoPopup::init @ 0x1002323e4\n// > StarInfoPopup::init @ 0x1002324d8\n// > StarInfoPopup::init @ 0x1002325a4\n// > StarInfoPopup::init @ 0x100232670\n// > GJBaseGameLayer::updateSpecialLabels @ 0x10029cfa0\n// > EndLevelLayer::customSetup @ 0x1003926cc\n// > sub_10045F6C4 @ 0x1004609bc\n// > sub_1004F296C @ 0x1004f2b58\n// > LevelStatsInfoPopup::buildInfoText @ 0x1004f2f60\n// > LevelStatsInfoPopup::buildInfoText @ 0x1004f304c\n// > SongUsagePopup::songUsageFinished @ 0x10052aa48\n// > sub_10052B0F4 @ 0x10052b28c\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:42 +0000\n// \n\nvoid __usercall GameToolbox::pointsToString(__int64 a1@<X0>, __int64 a2@<X8>)\n{\n  int v2; // w20\n  int v4; // w23\n  __int64 v5; // x24\n  int v6; // w25\n  unsigned int v7; // w26\n  char *p_p; // x8\n  _BOOL4 v10; // w9\n  bool v11; // zf\n  __int128 v12; // [xsp+0h] [xbp-80h] BYREF\n  __int64 v13; // [xsp+10h] [xbp-70h]\n  void *__p; // [xsp+18h] [xbp-68h] BYREF\n  int v15; // [xsp+20h] [xbp-60h]\n  unsigned __int8 v16; // [xsp+2Fh] [xbp-51h]\n\n  v2 = a1;\n  if ( (unsigned int)(a1 + 999) > 0x7CE )\n  {\n    if ( (int)a1 >= 0 )\n      a1 = (unsigned int)a1;\n    else\n      a1 = (unsigned int)-(int)a1;\n    GameToolbox::intToString(a1, &__p);\n    *(_QWORD *)a2 = 0;\n    *(_QWORD *)(a2 + 8) = 0;\n    *(_QWORD *)(a2 + 16) = 0;\n    if ( (v16 & 0x80u) == 0 )\n      v4 = v16;\n    else\n      v4 = v15;\n    v5 = (unsigned int)(v4 - 1);\n    if ( v4 - 1 >= 0 )\n    {\n      v6 = -1;\n      v7 = 1;\n      do\n      {\n        if ( (v16 & 0x80u) == 0 )\n          p_p = (char *)&__p;\n        else\n          p_p = (char *)__p;\n        sub_10004F66C(&v12, (unsigned int)p_p[v5], a2);\n        if ( *(char *)(a2 + 23) < 0 )\n          operator delete(*(void **)a2);\n        *(_OWORD *)a2 = v12;\n        *(_QWORD *)(a2 + 16) = v13;\n        v10 = v5-- != 0;\n        if ( v6 + 3 * (v7 / 3) )\n          v11 = 1;\n        else\n          v11 = !v10;\n        if ( !v11 )\n        {\n          std::operator+<char>(&v12, \",\", a2);\n          if ( *(char *)(a2 + 23) < 0 )\n            operator delete(*(void **)a2);\n          *(_OWORD *)a2 = v12;\n          *(_QWORD *)(a2 + 16) = v13;\n        }\n        --v6;\n        ++v7;\n        --v4;\n      }\n      while ( v4 );\n    }\n    if ( v2 < 0 )\n    {\n      std::operator+<char>(&v12, \"-\", a2);\n      if ( *(char *)(a2 + 23) < 0 )\n        operator delete(*(void **)a2);\n      *(_OWORD *)a2 = v12;\n      *(_QWORD *)(a2 + 16) = v13;\n    }\n    if ( (char)v16 < 0 )\n      operator delete(__p);\n  }\n  else\n  {\n    GameToolbox::intToString(a1, (_QWORD *)a2);\n  }\n}", "assembly": "; \n; GameToolbox::pointsToString from 0x10004f480 to 0x10004f638 (440 bytes)\n; \n; 44 xrefs:\n; > LevelInfoLayer::setupPlatformerStats @ 0x10002b48c\n; > LevelInfoLayer::updateLabelValues @ 0x10002ccf0\n; > LevelInfoLayer::updateLabelValues @ 0x10002ce00\n; > GJScoreCell::loadFromScore @ 0x10012d340\n; > GJScoreCell::loadFromScore @ 0x10012d4d0\n; > GJScoreCell::loadFromScore @ 0x10012d6a0\n; > GJScoreCell::loadFromScore @ 0x10012d814\n; > GJScoreCell::loadFromScore @ 0x10012d9d0\n; > GJScoreCell::loadFromScore @ 0x10012db98\n; > GJScoreCell::loadFromScore @ 0x10012dd6c\n; > GJLevelScoreCell::loadFromScore @ 0x10012e62c\n; > GJLocalLevelScoreCell::loadFromScore @ 0x10012eabc\n; > PauseLayer::setupPlatformerLabels @ 0x1001c0e70\n; > GJShopLayer::init @ 0x1001c9e10\n; > PurchaseItemPopup::init @ 0x1001cc808\n; > ProfilePage::loadPageFromUserInfo @ 0x10022b8d8\n; > ProfilePage::onStatInfo @ 0x10022e368\n; > ProfilePage::onStatInfo @ 0x10022e384\n; > sub_10022E8B0 @ 0x10022e97c\n; > sub_10022E8B0 @ 0x10022e9a0\n; > sub_10022E8B0 @ 0x10022e9c4\n; > sub_10022E8B0 @ 0x10022e9e8\n; > sub_10022E8B0 @ 0x10022ea08\n; > sub_10022E8B0 @ 0x10022ea24\n; > sub_10022E8B0 @ 0x10022eaec\n; > DemonInfoPopup::init @ 0x10023174c\n; > DemonInfoPopup::init @ 0x1002317f0\n; > DemonInfoPopup::init @ 0x100231a4c\n; > DemonInfoPopup::init @ 0x100231ae0\n; > DemonInfoPopup::init @ 0x100231c18\n; > DemonInfoPopup::init @ 0x100231ce4\n; > StarInfoPopup::init @ 0x100232208\n; > StarInfoPopup::init @ 0x1002323e4\n; > StarInfoPopup::init @ 0x1002324d8\n; > StarInfoPopup::init @ 0x1002325a4\n; > StarInfoPopup::init @ 0x100232670\n; > GJBaseGameLayer::updateSpecialLabels @ 0x10029cfa0\n; > EndLevelLayer::customSetup @ 0x1003926cc\n; > sub_10045F6C4 @ 0x1004609bc\n; > sub_1004F296C @ 0x1004f2b58\n; > LevelStatsInfoPopup::buildInfoText @ 0x1004f2f60\n; > LevelStatsInfoPopup::buildInfoText @ 0x1004f304c\n; > SongUsagePopup::songUsageFinished @ 0x10052aa48\n; > sub_10052B0F4 @ 0x10052b28c\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:42 +0000\n; \nSUB             SP, SP, #0x90                                          ; +0x0, 0x10004f480\nSTP             X28, X27, [SP,#0x80+var_50]                            ; +0x4, 0x10004f484\nSTP             X26, X25, [SP,#0x80+var_40]                            ; +0x8, 0x10004f488\nSTP             X24, X23, [SP,#0x80+var_30]                            ; +0xc, 0x10004f48c\nSTP             X22, X21, [SP,#0x80+var_20]                            ; +0x10, 0x10004f490\nSTP             X20, X19, [SP,#0x80+var_10]                            ; +0x14, 0x10004f494\nSTP             X29, X30, [SP,#0x80+var_s0]                            ; +0x18, 0x10004f498\nADD             X29, SP, #0x80                                         ; +0x1c, 0x10004f49c\nMOV             X20, X0                                                ; +0x20, 0x10004f4a0\nMOV             X19, X8                                                ; +0x24, 0x10004f4a4\nADD             W8, W0, #0x3E7                                         ; +0x28, 0x10004f4a8\nCMP             W8, #0x7CE                                             ; +0x2c, 0x10004f4ac\nB.HI            loc_10004F4DC                                          ; +0x30, 0x10004f4b0\nMOV             X8, X19                                                ; +0x34, 0x10004f4b4\nMOV             X0, X20                                                ; +0x38, 0x10004f4b8\nLDP             X29, X30, [SP,#0x80+var_s0]                            ; +0x3c, 0x10004f4bc\nLDP             X20, X19, [SP,#0x80+var_10]                            ; +0x40, 0x10004f4c0\nLDP             X22, X21, [SP,#0x80+var_20]                            ; +0x44, 0x10004f4c4\nLDP             X24, X23, [SP,#0x80+var_30]                            ; +0x48, 0x10004f4c8\nLDP             X26, X25, [SP,#0x80+var_40]                            ; +0x4c, 0x10004f4cc\nLDP             X28, X27, [SP,#0x80+var_50]                            ; +0x50, 0x10004f4d0\nADD             SP, SP, #0x90                                          ; +0x54, 0x10004f4d4\nB               GameToolbox__intToString                               ; +0x58, 0x10004f4d8\nCMP             W20, #0                                                ; +0x5c, 0x10004f4dc\nCNEG            W0, W20, MI                                            ; +0x60, 0x10004f4e0\nADD             X22, SP, #0x80+__p                                     ; +0x64, 0x10004f4e4\nADD             X8, SP, #0x80+__p                                      ; +0x68, 0x10004f4e8\nBL              GameToolbox__intToString                               ; +0x6c, 0x10004f4ec\nSTP             XZR, XZR, [X19]                                        ; +0x70, 0x10004f4f0\nSTR             XZR, [X19,#0x10]                                       ; +0x74, 0x10004f4f4\nLDRB            W8, [SP,#0x80+var_51]                                  ; +0x78, 0x10004f4f8\nSXTB            W9, W8                                                 ; +0x7c, 0x10004f4fc\nLDR             W10, [SP,#0x80+var_60]                                 ; +0x80, 0x10004f500\nCMP             W9, #0                                                 ; +0x84, 0x10004f504\nCSEL            W23, W10, W8, LT                                       ; +0x88, 0x10004f508\nSUBS            W24, W23, #1                                           ; +0x8c, 0x10004f50c\nB.MI            loc_10004F5D0                                          ; +0x90, 0x10004f510\nMOV             W25, #0xFFFFFFFF                                       ; +0x94, 0x10004f514\nMOV             W26, #1                                                ; +0x98, 0x10004f518\nMOV             W27, #0xAAAAAAAB                                       ; +0x9c, 0x10004f51c\nADRL            X21, asc_1007EBBC2; \",\"                                ; +0xa4, 0x10004f524\nLDRSB           W8, [SP,#0x80+var_51]                                  ; +0xac, 0x10004f52c\nLDR             X9, [SP,#0x80+__p]                                     ; +0xb0, 0x10004f530\nCMP             W8, #0                                                 ; +0xb4, 0x10004f534\nCSEL            X8, X9, X22, LT                                        ; +0xb8, 0x10004f538\nLDRSB           W0, [X8,X24]                                           ; +0xbc, 0x10004f53c\nMOV             X8, SP                                                 ; +0xc0, 0x10004f540\nMOV             X1, X19                                                ; +0xc4, 0x10004f544\nBL              sub_10004F66C                                          ; +0xc8, 0x10004f548\nLDRSB           W8, [X19,#0x17]                                        ; +0xcc, 0x10004f54c\nTBZ             W8, #0x1F, loc_10004F55C                               ; +0xd0, 0x10004f550\nLDR             X0, [X19]; __p                                         ; +0xd4, 0x10004f554\nBL              __ZdlPv; operator delete(void *)                       ; +0xd8, 0x10004f558\nUMULL           X8, W26, W27                                           ; +0xdc, 0x10004f55c\nLSR             X8, X8, #0x21 ; '!'                                    ; +0xe0, 0x10004f560\nADD             W8, W8, W8,LSL#1                                       ; +0xe4, 0x10004f564\nADD             W8, W25, W8                                            ; +0xe8, 0x10004f568\nLDR             Q0, [SP,#0x80+var_80]                                  ; +0xec, 0x10004f56c\nSTR             Q0, [X19]                                              ; +0xf0, 0x10004f570\nLDR             X9, [SP,#0x80+var_70]                                  ; +0xf4, 0x10004f574\nSTR             X9, [X19,#0x10]                                        ; +0xf8, 0x10004f578\nSUBS            X24, X24, #1                                           ; +0xfc, 0x10004f57c\nCSET            W9, CS                                                 ; +0x100, 0x10004f580\nCMP             W8, #0                                                 ; +0x104, 0x10004f584\nCCMP            W9, #0, #4, EQ                                         ; +0x108, 0x10004f588\nB.EQ            loc_10004F5C0                                          ; +0x10c, 0x10004f58c\nMOV             X8, SP                                                 ; +0x110, 0x10004f590\nMOV             X0, X21                                                ; +0x114, 0x10004f594\nMOV             X1, X19                                                ; +0x118, 0x10004f598\nBL              __ZNSt3__1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_; std::operator+<char>(char const*,std::string const&) ; +0x11c, 0x10004f59c\nLDRSB           W8, [X19,#0x17]                                        ; +0x120, 0x10004f5a0\nTBZ             W8, #0x1F, loc_10004F5B0                               ; +0x124, 0x10004f5a4\nLDR             X0, [X19]; __p                                         ; +0x128, 0x10004f5a8\nBL              __ZdlPv; operator delete(void *)                       ; +0x12c, 0x10004f5ac\nLDR             Q0, [SP,#0x80+var_80]                                  ; +0x130, 0x10004f5b0\nSTR             Q0, [X19]                                              ; +0x134, 0x10004f5b4\nLDR             X8, [SP,#0x80+var_70]                                  ; +0x138, 0x10004f5b8\nSTR             X8, [X19,#0x10]                                        ; +0x13c, 0x10004f5bc\nSUB             W25, W25, #1                                           ; +0x140, 0x10004f5c0\nADD             W26, W26, #1                                           ; +0x144, 0x10004f5c4\nSUB             W23, W23, #1                                           ; +0x148, 0x10004f5c8\nCBNZ            W23, loc_10004F52C                                     ; +0x14c, 0x10004f5cc\nTBZ             W20, #0x1F, loc_10004F608                              ; +0x150, 0x10004f5d0\nADRL            X0, asc_1007EB25D; \"-\"                                 ; +0x154, 0x10004f5d4\nMOV             X8, SP                                                 ; +0x15c, 0x10004f5dc\nMOV             X1, X19                                                ; +0x160, 0x10004f5e0\nBL              __ZNSt3__1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_; std::operator+<char>(char const*,std::string const&) ; +0x164, 0x10004f5e4\nLDRSB           W8, [X19,#0x17]                                        ; +0x168, 0x10004f5e8\nTBZ             W8, #0x1F, loc_10004F5F8                               ; +0x16c, 0x10004f5ec\nLDR             X0, [X19]; __p                                         ; +0x170, 0x10004f5f0\nBL              __ZdlPv; operator delete(void *)                       ; +0x174, 0x10004f5f4\nLDR             Q0, [SP,#0x80+var_80]                                  ; +0x178, 0x10004f5f8\nSTR             Q0, [X19]                                              ; +0x17c, 0x10004f5fc\nLDR             X8, [SP,#0x80+var_70]                                  ; +0x180, 0x10004f600\nSTR             X8, [X19,#0x10]                                        ; +0x184, 0x10004f604\nLDRSB           W8, [SP,#0x80+var_51]                                  ; +0x188, 0x10004f608\nTBZ             W8, #0x1F, loc_10004F618                               ; +0x18c, 0x10004f60c\nLDR             X0, [SP,#0x80+__p]; __p                                ; +0x190, 0x10004f610\nBL              __ZdlPv; operator delete(void *)                       ; +0x194, 0x10004f614\nLDP             X29, X30, [SP,#0x80+var_s0]                            ; +0x198, 0x10004f618\nLDP             X20, X19, [SP,#0x80+var_10]                            ; +0x19c, 0x10004f61c\nLDP             X22, X21, [SP,#0x80+var_20]                            ; +0x1a0, 0x10004f620\nLDP             X24, X23, [SP,#0x80+var_30]                            ; +0x1a4, 0x10004f624\nLDP             X26, X25, [SP,#0x80+var_40]                            ; +0x1a8, 0x10004f628\nLDP             X28, X27, [SP,#0x80+var_50]                            ; +0x1ac, 0x10004f62c\nADD             SP, SP, #0x90                                          ; +0x1b0, 0x10004f630\nRET                                                                    ; +0x1b4, 0x10004f634", "xrefs": ["LevelInfoLayer::setupPlatformerStats @ 0x10002b48c", "LevelInfoLayer::updateLabelValues @ 0x10002ccf0", "LevelInfoLayer::updateLabelValues @ 0x10002ce00", "GJScoreCell::loadFromScore @ 0x10012d340", "GJScoreCell::loadFromScore @ 0x10012d4d0", "GJScoreCell::loadFromScore @ 0x10012d6a0", "GJScoreCell::loadFromScore @ 0x10012d814", "GJScoreCell::loadFromScore @ 0x10012d9d0", "GJScoreCell::loadFromScore @ 0x10012db98", "GJScoreCell::loadFromScore @ 0x10012dd6c", "GJLevelScoreCell::loadFromScore @ 0x10012e62c", "GJLocalLevelScoreCell::loadFromScore @ 0x10012eabc", "PauseLayer::setupPlatformerLabels @ 0x1001c0e70", "GJShopLayer::init @ 0x1001c9e10", "PurchaseItemPopup::init @ 0x1001cc808", "ProfilePage::loadPageFromUserInfo @ 0x10022b8d8", "ProfilePage::onStatInfo @ 0x10022e368", "ProfilePage::onStatInfo @ 0x10022e384", "sub_10022E8B0 @ 0x10022e97c", "sub_10022E8B0 @ 0x10022e9a0", "sub_10022E8B0 @ 0x10022e9c4", "sub_10022E8B0 @ 0x10022e9e8", "sub_10022E8B0 @ 0x10022ea08", "sub_10022E8B0 @ 0x10022ea24", "sub_10022E8B0 @ 0x10022eaec", "DemonInfoPopup::init @ 0x10023174c", "DemonInfoPopup::init @ 0x1002317f0", "DemonInfoPopup::init @ 0x100231a4c", "DemonInfoPopup::init @ 0x100231ae0", "DemonInfoPopup::init @ 0x100231c18", "DemonInfoPopup::init @ 0x100231ce4", "StarInfoPopup::init @ 0x100232208", "StarInfoPopup::init @ 0x1002323e4", "StarInfoPopup::init @ 0x1002324d8", "StarInfoPopup::init @ 0x1002325a4", "StarInfoPopup::init @ 0x100232670", "GJBaseGameLayer::updateSpecialLabels @ 0x10029cfa0", "EndLevelLayer::customSetup @ 0x1003926cc", "sub_10045F6C4 @ 0x1004609bc", "sub_1004F296C @ 0x1004f2b58", "LevelStatsInfoPopup::buildInfoText @ 0x1004f2f60", "LevelStatsInfoPopup::buildInfoText @ 0x1004f304c", "SongUsagePopup::songUsageFinished @ 0x10052aa48", "sub_10052B0F4 @ 0x10052b28c"], "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"}