{"type": "func", "start": 4295651416, "end": 4295651536, "name": "GameLevelManager::typeFromCommentKey", "pseudocode": "// \n// GameLevelManager::typeFromCommentKey from 0x1000a7058 to 0x1000a70d0 (120 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::onDeleteCommentCompleted @ 0x10008c678\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\nCommentType __fastcall GameLevelManager::typeFromCommentKey(GameLevelManager *a1, const char *a2)\n{\n  __int64 v2; // x19\n  cocos2d::CCString *v3; // x0\n  const char *CString; // x0\n  std::string __p; // [xsp+8h] [xbp-28h] BYREF\n\n  sub_100009900(&__p, (char *)a2);\n  v2 = sub_100093338(&__p, \"_\");\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n  if ( (unsigned int)sub_10024A36C(v2) < 4 )\n    return 0;\n  v3 = (cocos2d::CCString *)sub_10024A388(v2, 3);\n  CString = cocos2d::CCString::getCString(v3);\n  return atoi(CString);\n}", "assembly": "; \n; GameLevelManager::typeFromCommentKey from 0x1000a7058 to 0x1000a70d0 (120 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::onDeleteCommentCompleted @ 0x10008c678\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, #0x40                                          ; +0x0, 0x1000a7058\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000a705c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000a7060\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000a7064\nADD             X0, SP, #0x30+__p; int                                 ; +0x10, 0x1000a7068\nBL              sub_100009900                                          ; +0x14, 0x1000a706c\nADRL            X1, asc_1006B16FB; \"_\"                                 ; +0x18, 0x1000a7070\nADD             X0, SP, #0x30+__p                                      ; +0x20, 0x1000a7078\nBL              sub_100093338                                          ; +0x24, 0x1000a707c\nMOV             X19, X0                                                ; +0x28, 0x1000a7080\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x2c, 0x1000a7084\nTBZ             W8, #0x1F, loc_1000A7094                               ; +0x30, 0x1000a7088\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x34, 0x1000a708c\nBL              __ZdlPv; operator delete(void *)                       ; +0x38, 0x1000a7090\nMOV             X0, X19                                                ; +0x3c, 0x1000a7094\nBL              sub_10024A36C                                          ; +0x40, 0x1000a7098\nCMP             W0, #4                                                 ; +0x44, 0x1000a709c\nB.CC            loc_1000A70BC                                          ; +0x48, 0x1000a70a0\nMOV             X0, X19                                                ; +0x4c, 0x1000a70a4\nMOV             W1, #3                                                 ; +0x50, 0x1000a70a8\nBL              sub_10024A388                                          ; +0x54, 0x1000a70ac\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x1000a70b0\nBL              _atoi                                                  ; +0x5c, 0x1000a70b4\nB               loc_1000A70C0                                          ; +0x60, 0x1000a70b8\nMOV             W0, #0                                                 ; +0x64, 0x1000a70bc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x68, 0x1000a70c0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x6c, 0x1000a70c4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x70, 0x1000a70c8\nRET                                                                    ; +0x74, 0x1000a70cc", "xrefs": ["GameLevelManager::onDeleteCommentCompleted @ 0x10008c678"], "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"}