{"type": "func", "start": 4294989288, "end": 4294989520, "name": "GJSmartTemplate::getVerySimplifiedKey", "pseudocode": "// \n// GJSmartTemplate::getVerySimplifiedKey from 0x1000055e8 to 0x1000056d0 (232 bytes)\n// \n// 6 xrefs:\n// > GJSmartTemplate::saveRemap @ 0x1000048e4\n// > GJSmartTemplate::saveRemap @ 0x100004a54\n// > GJSmartTemplate::getPrefab @ 0x1000068c4\n// > GJSmartTemplate::getPrefab @ 0x100006930\n// > GJSmartTemplate::getPrefab @ 0x1000069ac\n// > GJSmartTemplate::getPrefab @ 0x1000069fc\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\n__int64 *__usercall GJSmartTemplate::getVerySimplifiedKey@<X0>(__int64 *__return_ptr a1@<X8>, std::string *this@<X0>)\n{\n  char v4; // w23\n  __int64 v5; // x8\n  std::string::size_type v6; // x21\n  __int64 *result; // x0\n  std::string *v8; // x8\n\n  if ( (SHIBYTE(this->__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )\n  {\n    if ( !this->__r_.__value_.__l.__size_ )\n      return (__int64 *)sub_100009900((int)a1, \"\");\n  }\n  else if ( !*((_BYTE *)&this->__r_.__value_.__s + 23) )\n  {\n    return (__int64 *)sub_100009900((int)a1, \"\");\n  }\n  v4 = 0;\n  v5 = 1;\n  while ( 2 )\n  {\n    v6 = v5;\n    while ( 1 )\n    {\n      result = (__int64 *)std::string::at(this, v6);\n      if ( (unsigned int)*(unsigned __int8 *)result - 50 <= 0xFFFFFFFD )\n        break;\n      if ( ++v6 == 9 )\n      {\n        if ( (v4 & 1) == 0 )\n          return (__int64 *)sub_100009900((int)a1, \"\");\n        goto LABEL_15;\n      }\n    }\n    v8 = this;\n    if ( SHIBYTE(this->__r_.__value_.__r.__words[2]) < 0 )\n      v8 = (std::string *)this->__r_.__value_.__r.__words[0];\n    v8->__r_.__value_.__s.__data_[v6] = 49;\n    v5 = v6 + 1;\n    v4 = 1;\n    if ( v6 != 8 )\n      continue;\n    break;\n  }\nLABEL_15:\n  *(_OWORD *)a1 = *(_OWORD *)&this->__r_.__value_.__l.__data_;\n  a1[2] = this->__r_.__value_.__r.__words[2];\n  this->__r_.__value_.__l.__size_ = 0;\n  this->__r_.__value_.__r.__words[2] = 0;\n  this->__r_.__value_.__r.__words[0] = 0;\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::getVerySimplifiedKey from 0x1000055e8 to 0x1000056d0 (232 bytes)\n; \n; 6 xrefs:\n; > GJSmartTemplate::saveRemap @ 0x1000048e4\n; > GJSmartTemplate::saveRemap @ 0x100004a54\n; > GJSmartTemplate::getPrefab @ 0x1000068c4\n; > GJSmartTemplate::getPrefab @ 0x100006930\n; > GJSmartTemplate::getPrefab @ 0x1000069ac\n; > GJSmartTemplate::getPrefab @ 0x1000069fc\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             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1000055e8\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1000055ec\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1000055f0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1000055f4\nADD             X29, SP, #0x30                                         ; +0x10, 0x1000055f8\nMOV             X19, X0                                                ; +0x14, 0x1000055fc\nMOV             X20, X8                                                ; +0x18, 0x100005600\nLDRSB           X8, [X0,#0x17]                                         ; +0x1c, 0x100005604\nTBNZ            X8, #0x3F, loc_100005614 ; '?'                         ; +0x20, 0x100005608\nCBNZ            X8, loc_10000561C                                      ; +0x24, 0x10000560c\nB               loc_1000056B0                                          ; +0x28, 0x100005610\nLDR             X8, [X19,#8]                                           ; +0x2c, 0x100005614\nCBZ             X8, loc_1000056B0                                      ; +0x30, 0x100005618\nMOV             W23, #0                                                ; +0x34, 0x10000561c\nMOV             W8, #1                                                 ; +0x38, 0x100005620\nMOV             W22, #0x31 ; '1'                                       ; +0x3c, 0x100005624\nMOV             X21, X8                                                ; +0x40, 0x100005628\nMOV             X0, X19; this                                          ; +0x44, 0x10000562c\nMOV             X1, X21; __n                                           ; +0x48, 0x100005630\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x4c, 0x100005634\nLDRB            W8, [X0]                                               ; +0x50, 0x100005638\nSUB             W8, W8, #0x32 ; '2'                                    ; +0x54, 0x10000563c\nCMN             W8, #3                                                 ; +0x58, 0x100005640\nB.LS            loc_100005658                                          ; +0x5c, 0x100005644\nADD             X21, X21, #1                                           ; +0x60, 0x100005648\nCMP             X21, #9                                                ; +0x64, 0x10000564c\nB.NE            loc_10000562C                                          ; +0x68, 0x100005650\nB               loc_100005680                                          ; +0x6c, 0x100005654\nLDRSB           W9, [X19,#0x17]                                        ; +0x70, 0x100005658\nMOV             X8, X19                                                ; +0x74, 0x10000565c\nTBZ             W9, #0x1F, loc_100005668                               ; +0x78, 0x100005660\nLDR             X8, [X19]                                              ; +0x7c, 0x100005664\nSTRB            W22, [X8,X21]                                          ; +0x80, 0x100005668\nADD             X8, X21, #1                                            ; +0x84, 0x10000566c\nMOV             W23, #1                                                ; +0x88, 0x100005670\nCMP             X21, #8                                                ; +0x8c, 0x100005674\nB.NE            loc_100005628                                          ; +0x90, 0x100005678\nB               loc_100005684                                          ; +0x94, 0x10000567c\nTBZ             W23, #0, loc_1000056B0                                 ; +0x98, 0x100005680\nLDR             Q0, [X19]                                              ; +0x9c, 0x100005684\nSTR             Q0, [X20]                                              ; +0xa0, 0x100005688\nLDR             X8, [X19,#0x10]                                        ; +0xa4, 0x10000568c\nSTR             X8, [X20,#0x10]                                        ; +0xa8, 0x100005690\nSTP             XZR, XZR, [X19,#8]                                     ; +0xac, 0x100005694\nSTR             XZR, [X19]                                             ; +0xb0, 0x100005698\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x10000569c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x1000056a0\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xbc, 0x1000056a4\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xc0, 0x1000056a8\nRET                                                                    ; +0xc4, 0x1000056ac\nADRL            X1, asc_100746688; \"\"                                  ; +0xc8, 0x1000056b0\nMOV             X0, X20; int                                           ; +0xd0, 0x1000056b8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x1000056bc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x1000056c0\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x1000056c4\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xe0, 0x1000056c8\nB               sub_100009900                                          ; +0xe4, 0x1000056cc", "xrefs": ["GJSmartTemplate::saveRemap @ 0x1000048e4", "GJSmartTemplate::saveRemap @ 0x100004a54", "GJSmartTemplate::getPrefab @ 0x1000068c4", "GJSmartTemplate::getPrefab @ 0x100006930", "GJSmartTemplate::getPrefab @ 0x1000069ac", "GJSmartTemplate::getPrefab @ 0x1000069fc"], "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"}