{"type": "func", "start": 4295263344, "end": 4295263872, "name": "GameToolbox::intToShortString", "pseudocode": "// \n// GameToolbox::intToShortString from 0x100048470 to 0x100048680 (528 bytes)\n// \n// 7 xrefs:\n// > LevelListCell::loadFromList @ 0x100104618\n// > LevelListCell::loadFromList @ 0x1001047bc\n// > LevelCell::loadCustomLevelCell @ 0x10010e380\n// > LevelCell::loadCustomLevelCell @ 0x10010e528\n// > LevelListLayer::updateStatsArt @ 0x100245738\n// > LevelListLayer::updateStatsArt @ 0x1002458d4\n// > LevelListLayer::updateStatsArt @ 0x100245a34\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 __usercall GameToolbox::intToShortString(__int64 a1@<X0>, _QWORD *a2@<X8>)\n{\n  __int64 v2; // x20\n  __int64 v4; // x20\n  __int128 v5; // [xsp+0h] [xbp-260h] BYREF\n  int v6; // [xsp+10h] [xbp-250h]\n  char v7; // [xsp+14h] [xbp-24Ch]\n  __int128 v8; // [xsp+20h] [xbp-240h] BYREF\n  void *__p; // [xsp+30h] [xbp-230h]\n  _BYTE v10[512]; // [xsp+38h] [xbp-228h] BYREF\n\n  v2 = a1;\n  v8 = xmmword_1006350E0;\n  __p = v10;\n  if ( (a1 & 0x80000000) != 0 )\n  {\n    sub_10000CB18((__int64 *)&v8, \"-\", 0);\n    v2 = (unsigned int)-(int)v2;\n  }\n  if ( (unsigned int)v2 > 0x3E7 )\n  {\n    if ( (unsigned int)v2 >> 4 > 0x270 )\n    {\n      v5 = xmmword_100635440;\n      v6 = -1;\n      v7 = 0;\n      sub_100085BA4((int)&v8);\n      if ( (unsigned int)v2 > 0xF423F )\n        sub_10000CB18((__int64 *)&v8, \"M\", 0);\n      else\n        sub_10000CB18((__int64 *)&v8, \"K\", 0);\n    }\n    else\n    {\n      v5 = xmmword_100635440;\n      v6 = -1;\n      v7 = 0;\n      sub_100085BA4((int)&v8);\n      sub_10000CB18((__int64 *)&v8, \"K\", 0);\n    }\n  }\n  else\n  {\n    LODWORD(v5) = v2;\n    sub_100009A40((int)&v8, v2, (int)&v5);\n  }\n  v4 = v8;\n  if ( *((_QWORD *)&v8 + 1) < (unsigned __int64)(v8 + 1) )\n    sub_100009ED4((__int64)&v8, v8 + 1);\n  *((_BYTE *)__p + v4) = 0;\n  sub_100009900(a2, (char *)__p);\n  if ( __p != v10 )\n  {\n    if ( __p )\n      operator delete[](__p);\n  }\n}", "assembly": "; \n; GameToolbox::intToShortString from 0x100048470 to 0x100048680 (528 bytes)\n; \n; 7 xrefs:\n; > LevelListCell::loadFromList @ 0x100104618\n; > LevelListCell::loadFromList @ 0x1001047bc\n; > LevelCell::loadCustomLevelCell @ 0x10010e380\n; > LevelCell::loadCustomLevelCell @ 0x10010e528\n; > LevelListLayer::updateStatsArt @ 0x100245738\n; > LevelListLayer::updateStatsArt @ 0x1002458d4\n; > LevelListLayer::updateStatsArt @ 0x100245a34\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100048470\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100048474\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100048478\nADD             X29, SP, #0x20                                         ; +0xc, 0x10004847c\nSUB             SP, SP, #0x240                                         ; +0x10, 0x100048480\nMOV             X20, X0                                                ; +0x14, 0x100048484\nMOV             X19, X8                                                ; +0x18, 0x100048488\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x1c, 0x10004848c\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x20, 0x100048490\nLDR             X8, [X8]                                               ; +0x24, 0x100048494\nSTUR            X8, [X29,#var_28]                                      ; +0x28, 0x100048498\nADRP            X8, #xmmword_1006350E0@PAGE                            ; +0x2c, 0x10004849c\nLDR             Q0, [X8,#xmmword_1006350E0@PAGEOFF]                    ; +0x30, 0x1000484a0\nSTR             Q0, [SP,#0x260+var_240]                                ; +0x34, 0x1000484a4\nADD             X8, SP, #0x260+var_240                                 ; +0x38, 0x1000484a8\nADD             X21, X8, #0x18                                         ; +0x3c, 0x1000484ac\nSTR             X21, [SP,#0x260+__p]                                   ; +0x40, 0x1000484b0\nTBZ             W0, #0x1F, loc_1000484D0                               ; +0x44, 0x1000484b4\nADRL            X1, asc_1006B3A59; \"-\"                                 ; +0x48, 0x1000484b8\nADD             X0, SP, #0x260+var_240; int                            ; +0x50, 0x1000484c0\nMOV             X2, #0                                                 ; +0x54, 0x1000484c4\nBL              sub_10000CB18                                          ; +0x58, 0x1000484c8\nNEG             W20, W20                                               ; +0x5c, 0x1000484cc\nCMP             W20, #0x3E7                                            ; +0x60, 0x1000484d0\nB.HI            loc_1000484F0                                          ; +0x64, 0x1000484d4\nSTR             W20, [SP,#0x260+var_260]                               ; +0x68, 0x1000484d8\nADD             X0, SP, #0x260+var_240                                 ; +0x6c, 0x1000484dc\nMOV             X2, SP                                                 ; +0x70, 0x1000484e0\nMOV             X1, X20                                                ; +0x74, 0x1000484e4\nBL              sub_100009A40                                          ; +0x78, 0x1000484e8\nB               loc_100048610                                          ; +0x7c, 0x1000484ec\nLSR             W8, W20, #4                                            ; +0x80, 0x1000484f0\nCMP             W8, #0x270                                             ; +0x84, 0x1000484f4\nB.HI            loc_100048558                                          ; +0x88, 0x1000484f8\nUCVTF           S0, W20                                                ; +0x8c, 0x1000484fc\nMOV             W8, #0x42C80000                                        ; +0x90, 0x100048500\nFMOV            S1, W8                                                 ; +0x94, 0x100048504\nFDIV            S0, S0, S1                                             ; +0x98, 0x100048508\nFRINTM          S0, S0                                                 ; +0x9c, 0x10004850c\nFMOV            S1, #10.0                                              ; +0xa0, 0x100048510\nFDIV            S0, S0, S1                                             ; +0xa4, 0x100048514\nFCVT            D0, S0                                                 ; +0xa8, 0x100048518\nADRP            X8, #xmmword_100635440@PAGE                            ; +0xac, 0x10004851c\nLDR             Q1, [X8,#xmmword_100635440@PAGEOFF]                    ; +0xb0, 0x100048520\nSTR             Q1, [SP,#0x260+var_260]                                ; +0xb4, 0x100048524\nMOV             W8, #0xFFFFFFFF                                        ; +0xb8, 0x100048528\nSTR             W8, [SP,#0x260+var_250]                                ; +0xbc, 0x10004852c\nSTRB            WZR, [SP,#0x260+var_24C]                               ; +0xc0, 0x100048530\nADD             X0, SP, #0x260+var_240; int                            ; +0xc4, 0x100048534\nMOV             X1, SP                                                 ; +0xc8, 0x100048538\nBL              sub_100085BA4                                          ; +0xcc, 0x10004853c\nADRL            X1, aK; \"K\"                                            ; +0xd0, 0x100048540\nADD             X0, SP, #0x260+var_240; int                            ; +0xd8, 0x100048548\nMOV             X2, #0                                                 ; +0xdc, 0x10004854c\nBL              sub_10000CB18                                          ; +0xe0, 0x100048550\nB               loc_100048610                                          ; +0xe4, 0x100048554\nUCVTF           S0, W20                                                ; +0xe8, 0x100048558\nMOV             W8, #0xF423F                                           ; +0xec, 0x10004855c\nCMP             W20, W8                                                ; +0xf4, 0x100048564\nB.HI            loc_1000485BC                                          ; +0xf8, 0x100048568\nMOV             W8, #0x447A0000                                        ; +0xfc, 0x10004856c\nFMOV            S1, W8                                                 ; +0x100, 0x100048570\nFDIV            S0, S0, S1                                             ; +0x104, 0x100048574\nFRINTM          S0, S0                                                 ; +0x108, 0x100048578\nFCVT            D0, S0                                                 ; +0x10c, 0x10004857c\nADRP            X8, #xmmword_100635440@PAGE                            ; +0x110, 0x100048580\nLDR             Q1, [X8,#xmmword_100635440@PAGEOFF]                    ; +0x114, 0x100048584\nSTR             Q1, [SP,#0x260+var_260]                                ; +0x118, 0x100048588\nMOV             W8, #0xFFFFFFFF                                        ; +0x11c, 0x10004858c\nSTR             W8, [SP,#0x260+var_250]                                ; +0x120, 0x100048590\nSTRB            WZR, [SP,#0x260+var_24C]                               ; +0x124, 0x100048594\nADD             X0, SP, #0x260+var_240; int                            ; +0x128, 0x100048598\nMOV             X1, SP                                                 ; +0x12c, 0x10004859c\nBL              sub_100085BA4                                          ; +0x130, 0x1000485a0\nADRL            X1, aK; \"K\"                                            ; +0x134, 0x1000485a4\nADD             X0, SP, #0x260+var_240; int                            ; +0x13c, 0x1000485ac\nMOV             X2, #0                                                 ; +0x140, 0x1000485b0\nBL              sub_10000CB18                                          ; +0x144, 0x1000485b4\nB               loc_100048610                                          ; +0x148, 0x1000485b8\nADRP            X8, #dword_100635A58@PAGE                              ; +0x14c, 0x1000485bc\nLDR             S1, [X8,#dword_100635A58@PAGEOFF]                      ; +0x150, 0x1000485c0\nFDIV            S0, S0, S1                                             ; +0x154, 0x1000485c4\nFRINTM          S0, S0                                                 ; +0x158, 0x1000485c8\nFMOV            S1, #10.0                                              ; +0x15c, 0x1000485cc\nFDIV            S0, S0, S1                                             ; +0x160, 0x1000485d0\nFCVT            D0, S0                                                 ; +0x164, 0x1000485d4\nADRP            X8, #xmmword_100635440@PAGE                            ; +0x168, 0x1000485d8\nLDR             Q1, [X8,#xmmword_100635440@PAGEOFF]                    ; +0x16c, 0x1000485dc\nSTR             Q1, [SP,#0x260+var_260]                                ; +0x170, 0x1000485e0\nMOV             W8, #0xFFFFFFFF                                        ; +0x174, 0x1000485e4\nSTR             W8, [SP,#0x260+var_250]                                ; +0x178, 0x1000485e8\nSTRB            WZR, [SP,#0x260+var_24C]                               ; +0x17c, 0x1000485ec\nADD             X0, SP, #0x260+var_240; int                            ; +0x180, 0x1000485f0\nMOV             X1, SP                                                 ; +0x184, 0x1000485f4\nBL              sub_100085BA4                                          ; +0x188, 0x1000485f8\nADRL            X1, aM; \"M\"                                            ; +0x18c, 0x1000485fc\nADD             X0, SP, #0x260+var_240; int                            ; +0x194, 0x100048604\nMOV             X2, #0                                                 ; +0x198, 0x100048608\nBL              sub_10000CB18                                          ; +0x19c, 0x10004860c\nLDP             X20, X8, [SP,#0x260+var_240]                           ; +0x1a0, 0x100048610\nADD             X1, X20, #1                                            ; +0x1a4, 0x100048614\nCMP             X8, X1                                                 ; +0x1a8, 0x100048618\nB.CS            loc_100048628                                          ; +0x1ac, 0x10004861c\nADD             X0, SP, #0x260+var_240                                 ; +0x1b0, 0x100048620\nBL              sub_100009ED4                                          ; +0x1b4, 0x100048624\nLDR             X8, [SP,#0x260+__p]                                    ; +0x1b8, 0x100048628\nSTRB            WZR, [X8,X20]                                          ; +0x1bc, 0x10004862c\nLDR             X1, [SP,#0x260+__p]; __s                               ; +0x1c0, 0x100048630\nMOV             X0, X19; int                                           ; +0x1c4, 0x100048634\nBL              sub_100009900                                          ; +0x1c8, 0x100048638\nLDR             X0, [SP,#0x260+__p]; __p                               ; +0x1cc, 0x10004863c\nCMP             X0, X21                                                ; +0x1d0, 0x100048640\nB.EQ            loc_100048650                                          ; +0x1d4, 0x100048644\nCBZ             X0, loc_100048650                                      ; +0x1d8, 0x100048648\nBL              __ZdaPv; operator delete[](void *)                     ; +0x1dc, 0x10004864c\nLDUR            X8, [X29,#var_28]                                      ; +0x1e0, 0x100048650\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0x1e4, 0x100048654\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x1e8, 0x100048658\nLDR             X9, [X9]                                               ; +0x1ec, 0x10004865c\nCMP             X9, X8                                                 ; +0x1f0, 0x100048660\nB.NE            loc_10004867C                                          ; +0x1f4, 0x100048664\nADD             SP, SP, #0x240                                         ; +0x1f8, 0x100048668\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x1fc, 0x10004866c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x200, 0x100048670\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x204, 0x100048674\nRET                                                                    ; +0x208, 0x100048678\nBL              ___stack_chk_fail                                      ; +0x20c, 0x10004867c", "xrefs": ["LevelListCell::loadFromList @ 0x100104618", "LevelListCell::loadFromList @ 0x1001047bc", "LevelCell::loadCustomLevelCell @ 0x10010e380", "LevelCell::loadCustomLevelCell @ 0x10010e528", "LevelListLayer::updateStatsArt @ 0x100245738", "LevelListLayer::updateStatsArt @ 0x1002458d4", "LevelListLayer::updateStatsArt @ 0x100245a34"], "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"}