{"type": "func", "start": 4299521592, "end": 4299521980, "name": "LeaderboardsLayer::onInfo", "pseudocode": "// \n// LeaderboardsLayer::onInfo from 0x100457e38 to 0x100457fbc (388 bytes)\n// \n// 1 xrefs:\n// > LeaderboardsLayer::init @ 0x100457c80\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 11:05:24 +0000\n// \n\nvoid __fastcall LeaderboardsLayer::onInfo(__int64 a1)\n{\n  int v2; // w8\n  const std::string::value_type *v3; // x1\n  int v4; // w21\n  std::string::size_type v5; // x20\n  std::string *v6; // x1\n  std::string *v7; // x1\n  void *v8; // x19\n  void *__p[2]; // [xsp+8h] [xbp-68h] BYREF\n  char v10; // [xsp+1Fh] [xbp-51h]\n  std::string v11; // [xsp+20h] [xbp-50h] BYREF\n  std::string v12; // [xsp+38h] [xbp-38h] BYREF\n\n  sub_100009900(&v12, \"\");\n  sub_100009900(&v11, \"\");\n  v2 = *(_DWORD *)(a1 + 440);\n  if ( v2 > 2 )\n  {\n    if ( v2 == 3 )\n    {\n      std::string::assign(&v12, \"Creators\");\n      v3 = \"The <cg>Creators</c> leaderboard is sorted by amount of Creator Points. Creating a rated level rewards 1, <cy\"\n           \">Featured</c> rewards 2, <co>Epic</c> rewards 3, <cp>Legendary</c> rewards 4, and <cj>Mythic</c> rewards 5.\";\n    }\n    else\n    {\n      if ( v2 != 4 )\n        goto LABEL_19;\n      std::string::assign(&v12, \"Friends\");\n      v3 = \"The <cg>Friends</c> leaderboard shows your friends in order of <cy>Stars</c>.\";\n    }\n  }\n  else if ( v2 == 1 )\n  {\n    std::string::assign(&v12, \"Top 100\");\n    v3 = \"The <cg>Top 100</c> leaderboard shows the players with the most <cy>Stars</c> in the game. Players must be <cl>\"\n         \"manually whitelisted</c> by a Leaderboard Moderator to appear here, ensuring legitimate rankings.\";\n  }\n  else\n  {\n    if ( v2 != 2 )\n      goto LABEL_19;\n    std::string::assign(&v12, \"Global\");\n    v3 = \"The <cg>Global</c> leaderboard shows players in order of <cy>Stars</c>.\\n\"\n         \"Players banned by Leaderboard Moderators are excluded.\";\n  }\n  std::string::assign(&v11, v3);\n  v4 = SHIBYTE(v12.__r_.__value_.__r.__words[2]);\n  v5 = v12.__r_.__value_.__r.__words[0];\n  if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n    v6 = &v11;\n  else\n    v6 = (std::string *)v11.__r_.__value_.__r.__words[0];\n  sub_100009900(__p, (char *)v6);\n  if ( v4 >= 0 )\n    v7 = &v12;\n  else\n    v7 = (std::string *)v5;\n  v8 = FLAlertLayer::create_1(a1 + 416, (__int64)v7, (__int64)__p, (__int64)\"OK\", (__int64)\"Info\", 380.0);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  (*(void (__fastcall **)(void *))(*(_QWORD *)v8 + 1312LL))(v8);\nLABEL_19:\n  if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v11.__r_.__value_.__l.__data_);\n  if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v12.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; LeaderboardsLayer::onInfo from 0x100457e38 to 0x100457fbc (388 bytes)\n; \n; 1 xrefs:\n; > LeaderboardsLayer::init @ 0x100457c80\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 11:05:24 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x100457e38\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x100457e3c\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x100457e40\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x100457e44\nADD             X29, SP, #0x70                                         ; +0x10, 0x100457e48\nMOV             X19, X0                                                ; +0x14, 0x100457e4c\nADRL            X20, asc_10088BE68; \"\"                                 ; +0x18, 0x100457e50\nADD             X0, SP, #0x70+var_38; int                              ; +0x20, 0x100457e58\nMOV             X1, X20; __s                                           ; +0x24, 0x100457e5c\nBL              sub_100009900                                          ; +0x28, 0x100457e60\nADD             X0, SP, #0x70+var_50; int                              ; +0x2c, 0x100457e64\nMOV             X1, X20; __s                                           ; +0x30, 0x100457e68\nBL              sub_100009900                                          ; +0x34, 0x100457e6c\nLDR             W8, [X19,#0x1B8]                                       ; +0x38, 0x100457e70\nCMP             W8, #2                                                 ; +0x3c, 0x100457e74\nB.GT            loc_100457EA8                                          ; +0x40, 0x100457e78\nCMP             W8, #1                                                 ; +0x44, 0x100457e7c\nB.EQ            loc_100457ED4                                          ; +0x48, 0x100457e80\nCMP             W8, #2                                                 ; +0x4c, 0x100457e84\nB.NE            loc_100457F88                                          ; +0x50, 0x100457e88\nADRL            X1, aGlobal; \"Global\"                                  ; +0x54, 0x100457e8c\nADD             X0, SP, #0x70+var_38; this                             ; +0x5c, 0x100457e94\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x60, 0x100457e98\nADRL            X1, aTheCgGlobalCLe; \"The <cg>Global</c> leaderboard shows pl\"... ; +0x64, 0x100457e9c\nB               loc_100457F08                                          ; +0x6c, 0x100457ea4\nCMP             W8, #3                                                 ; +0x70, 0x100457ea8\nB.EQ            loc_100457EF0                                          ; +0x74, 0x100457eac\nCMP             W8, #4                                                 ; +0x78, 0x100457eb0\nB.NE            loc_100457F88                                          ; +0x7c, 0x100457eb4\nADRL            X1, aFriends; \"Friends\"                                ; +0x80, 0x100457eb8\nADD             X0, SP, #0x70+var_38; this                             ; +0x88, 0x100457ec0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x8c, 0x100457ec4\nADRL            X1, aTheCgFriendsCL; \"The <cg>Friends</c> leaderboard shows y\"... ; +0x90, 0x100457ec8\nB               loc_100457F08                                          ; +0x98, 0x100457ed0\nADRL            X1, aTop100; \"Top 100\"                                 ; +0x9c, 0x100457ed4\nADD             X0, SP, #0x70+var_38; this                             ; +0xa4, 0x100457edc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xa8, 0x100457ee0\nADRL            X1, aTheCgTop100CLe; \"The <cg>Top 100</c> leaderboard shows t\"... ; +0xac, 0x100457ee4\nB               loc_100457F08                                          ; +0xb4, 0x100457eec\nADRL            X1, aCreators_0; \"Creators\"                            ; +0xb8, 0x100457ef0\nADD             X0, SP, #0x70+var_38; this                             ; +0xc0, 0x100457ef8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xc4, 0x100457efc\nADRL            X1, aTheCgCreatorsC; \"The <cg>Creators</c> leaderboard is sor\"... ; +0xc8, 0x100457f00\nADD             X22, SP, #0x70+var_50                                  ; +0xd0, 0x100457f08\nADD             X0, SP, #0x70+var_50; this                             ; +0xd4, 0x100457f0c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xd8, 0x100457f10\nLDRSB           W21, [SP,#0x70+var_38.__r_.__value_+0x17]              ; +0xdc, 0x100457f14\nLDR             X20, [SP,#0x70+var_38]                                 ; +0xe0, 0x100457f18\nLDRSB           W8, [SP,#0x70+var_50.__r_.__value_+0x17]               ; +0xe4, 0x100457f1c\nLDR             X9, [SP,#0x70+var_50]                                  ; +0xe8, 0x100457f20\nCMP             W8, #0                                                 ; +0xec, 0x100457f24\nCSEL            X1, X9, X22, LT; __s                                   ; +0xf0, 0x100457f28\nADD             X0, SP, #0x70+__p; int                                 ; +0xf4, 0x100457f2c\nBL              sub_100009900                                          ; +0xf8, 0x100457f30\nCMP             W21, #0                                                ; +0xfc, 0x100457f34\nADD             X8, SP, #0x70+var_38                                   ; +0x100, 0x100457f38\nCSEL            X1, X20, X8, LT                                        ; +0x104, 0x100457f3c\nADRL            X3, aOk; \"OK\"                                          ; +0x108, 0x100457f40\nADRL            X4, aInfo; \"Info\"                                      ; +0x110, 0x100457f48\nMOV             W8, #0x43BE0000                                        ; +0x118, 0x100457f50\nFMOV            S0, W8                                                 ; +0x11c, 0x100457f54\nADD             X0, X19, #0x1A0                                        ; +0x120, 0x100457f58\nADD             X2, SP, #0x70+__p                                      ; +0x124, 0x100457f5c\nBL              FLAlertLayer__create_1                                 ; +0x128, 0x100457f60\nMOV             X19, X0                                                ; +0x12c, 0x100457f64\nLDRSB           W8, [SP,#0x70+var_51]                                  ; +0x130, 0x100457f68\nTBZ             W8, #0x1F, loc_100457F78                               ; +0x134, 0x100457f6c\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0x138, 0x100457f70\nBL              __ZdlPv; operator delete(void *)                       ; +0x13c, 0x100457f74\nLDR             X8, [X19]                                              ; +0x140, 0x100457f78\nLDR             X8, [X8,#0x520]                                        ; +0x144, 0x100457f7c\nMOV             X0, X19                                                ; +0x148, 0x100457f80\nBLR             X8                                                     ; +0x14c, 0x100457f84\nLDRSB           W8, [SP,#0x70+var_50.__r_.__value_+0x17]               ; +0x150, 0x100457f88\nTBZ             W8, #0x1F, loc_100457F98                               ; +0x154, 0x100457f8c\nLDR             X0, [SP,#0x70+var_50]; __p                             ; +0x158, 0x100457f90\nBL              __ZdlPv; operator delete(void *)                       ; +0x15c, 0x100457f94\nLDRSB           W8, [SP,#0x70+var_38.__r_.__value_+0x17]               ; +0x160, 0x100457f98\nTBZ             W8, #0x1F, loc_100457FA8                               ; +0x164, 0x100457f9c\nLDR             X0, [SP,#0x70+var_38]; __p                             ; +0x168, 0x100457fa0\nBL              __ZdlPv; operator delete(void *)                       ; +0x16c, 0x100457fa4\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x170, 0x100457fa8\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x174, 0x100457fac\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x178, 0x100457fb0\nADD             SP, SP, #0x80                                          ; +0x17c, 0x100457fb4\nRET                                                                    ; +0x180, 0x100457fb8", "xrefs": ["LeaderboardsLayer::init @ 0x100457c80"], "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"}