{"type": "func", "start": 4294999652, "end": 4295000008, "name": "GJSmartTemplate::isUnrequired", "pseudocode": "// \n// GJSmartTemplate::isUnrequired from 0x100007e64 to 0x100007fc8 (356 bytes)\n// \n// 3 xrefs:\n// > GJSmartTemplate::logTemplateStatus @ 0x100007cd0\n// > GJSmartTemplate::getTemplateState @ 0x10000811c\n// > BrowseSmartTemplateLayer::init @ 0x100071638\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\nbool __fastcall GJSmartTemplate::isUnrequired(int a1, std::string *this)\n{\n  __int64 v3; // x19\n  int v4; // w22\n  int v5; // w23\n  std::string::value_type v6; // w26\n  int v7; // w27\n  int v8; // w28\n  int v9; // w21\n  std::string::reference v10; // x0\n  bool v11; // w9\n  bool v12; // w11\n  bool v13; // w12\n  bool v14; // w9\n  bool v15; // w10\n  bool v16; // w9\n  int v21; // [xsp+Ch] [xbp-54h]\n\n  v3 = 1;\n  v21 = (unsigned __int8)*std::string::at(this, 1u);\n  v4 = (unsigned __int8)*std::string::at(this, 2u);\n  v5 = (unsigned __int8)*std::string::at(this, 3u);\n  v6 = *std::string::at(this, 4u);\n  v7 = (unsigned __int8)*std::string::at(this, 5u);\n  v8 = (unsigned __int8)*std::string::at(this, 6u);\n  v9 = (unsigned __int8)*std::string::at(this, 7u);\n  v10 = std::string::at(this, 8u);\n  v11 = v5 == 48 || v21 == 48;\n  v12 = v5 == 48 || v4 == 48;\n  v13 = v7 != 48 && v11;\n  v14 = v6 == 48 || v21 == 48;\n  v15 = v8 != 48 && v14;\n  v16 = v9 != 48 && v12;\n  if ( !v13 && !v15 && !v16 )\n  {\n    if ( *v10 == 48 )\n      return v21 == 48 && (unsigned __int8)v4 == 48 && (unsigned __int8)v5 == 48 && v6 == 48;\n    else\n      return v4 == 48 || v6 == 48;\n  }\n  return v3;\n}", "assembly": "; \n; GJSmartTemplate::isUnrequired from 0x100007e64 to 0x100007fc8 (356 bytes)\n; \n; 3 xrefs:\n; > GJSmartTemplate::logTemplateStatus @ 0x100007cd0\n; > GJSmartTemplate::getTemplateState @ 0x10000811c\n; > BrowseSmartTemplateLayer::init @ 0x100071638\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, #0x70                                          ; +0x0, 0x100007e64\nSTP             X28, X27, [SP,#0x60+var_50]                            ; +0x4, 0x100007e68\nSTP             X26, X25, [SP,#0x60+var_40]                            ; +0x8, 0x100007e6c\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0xc, 0x100007e70\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x10, 0x100007e74\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x14, 0x100007e78\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x18, 0x100007e7c\nADD             X29, SP, #0x60                                         ; +0x1c, 0x100007e80\nMOV             X20, X1                                                ; +0x20, 0x100007e84\nMOV             W19, #1                                                ; +0x24, 0x100007e88\nMOV             X0, X1; this                                           ; +0x28, 0x100007e8c\nMOV             W1, #1; __n                                            ; +0x2c, 0x100007e90\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x30, 0x100007e94\nLDRB            W8, [X0]                                               ; +0x34, 0x100007e98\nAND             W8, W8, #0xFF                                          ; +0x38, 0x100007e9c\nSTR             W8, [SP,#0x60+var_54]                                  ; +0x3c, 0x100007ea0\nCMP             W8, #0x30 ; '0'                                        ; +0x40, 0x100007ea4\nCSET            W24, EQ                                                ; +0x44, 0x100007ea8\nMOV             X0, X20; this                                          ; +0x48, 0x100007eac\nMOV             W1, #2; __n                                            ; +0x4c, 0x100007eb0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x50, 0x100007eb4\nLDRB            W8, [X0]                                               ; +0x54, 0x100007eb8\nAND             W22, W8, #0xFF                                         ; +0x58, 0x100007ebc\nCMP             W22, #0x30 ; '0'                                       ; +0x5c, 0x100007ec0\nCSET            W25, EQ                                                ; +0x60, 0x100007ec4\nMOV             X0, X20; this                                          ; +0x64, 0x100007ec8\nMOV             W1, #3; __n                                            ; +0x68, 0x100007ecc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x6c, 0x100007ed0\nLDRB            W23, [X0]                                              ; +0x70, 0x100007ed4\nMOV             X0, X20; this                                          ; +0x74, 0x100007ed8\nMOV             W1, #4; __n                                            ; +0x78, 0x100007edc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x7c, 0x100007ee0\nLDRB            W26, [X0]                                              ; +0x80, 0x100007ee4\nMOV             X0, X20; this                                          ; +0x84, 0x100007ee8\nMOV             W1, #5; __n                                            ; +0x88, 0x100007eec\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x8c, 0x100007ef0\nLDRB            W27, [X0]                                              ; +0x90, 0x100007ef4\nMOV             X0, X20; this                                          ; +0x94, 0x100007ef8\nMOV             W1, #6; __n                                            ; +0x98, 0x100007efc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0x9c, 0x100007f00\nLDRB            W28, [X0]                                              ; +0xa0, 0x100007f04\nMOV             X0, X20; this                                          ; +0xa4, 0x100007f08\nMOV             W1, #7; __n                                            ; +0xa8, 0x100007f0c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xac, 0x100007f10\nLDRB            W21, [X0]                                              ; +0xb0, 0x100007f14\nMOV             X0, X20; this                                          ; +0xb4, 0x100007f18\nMOV             W1, #8; __n                                            ; +0xb8, 0x100007f1c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm; std::string::at(ulong) ; +0xbc, 0x100007f20\nCMP             W23, #0x30 ; '0'                                       ; +0xc0, 0x100007f24\nAND             W8, W26, #0xFF                                         ; +0xc4, 0x100007f28\nCSINC           W9, W24, WZR, NE                                       ; +0xc8, 0x100007f2c\nCSINC           W11, W25, WZR, NE                                      ; +0xcc, 0x100007f30\nCMP             W27, #0x30 ; '0'                                       ; +0xd0, 0x100007f34\nCSEL            W12, WZR, W9, EQ                                       ; +0xd4, 0x100007f38\nCMP             W8, #0x30 ; '0'                                        ; +0xd8, 0x100007f3c\nCSINC           W9, W24, WZR, NE                                       ; +0xdc, 0x100007f40\nCMP             W28, #0x30 ; '0'                                       ; +0xe0, 0x100007f44\nCSEL            W10, WZR, W9, EQ                                       ; +0xe4, 0x100007f48\nCMP             W21, #0x30 ; '0'                                       ; +0xe8, 0x100007f4c\nCSEL            W9, WZR, W11, EQ                                       ; +0xec, 0x100007f50\nTBNZ            W12, #0, loc_100007FA4                                 ; +0xf0, 0x100007f54\nTBNZ            W10, #0, loc_100007FA4                                 ; +0xf4, 0x100007f58\nTBNZ            W9, #0, loc_100007FA4                                  ; +0xf8, 0x100007f5c\nLDRB            W9, [X0]                                               ; +0xfc, 0x100007f60\nAND             W8, W8, #0xFF                                          ; +0x100, 0x100007f64\nCMP             W9, #0x30 ; '0'                                        ; +0x104, 0x100007f68\nB.NE            loc_100007F94                                          ; +0x108, 0x100007f6c\nAND             W9, W23, #0xFF                                         ; +0x10c, 0x100007f70\nAND             W10, W22, #0xFF                                        ; +0x110, 0x100007f74\nLDR             W11, [SP,#0x60+var_54]                                 ; +0x114, 0x100007f78\nCMP             W11, #0x30 ; '0'                                       ; +0x118, 0x100007f7c\nMOV             W11, #0x30 ; '0'                                       ; +0x11c, 0x100007f80\nCCMP            W10, W11, #0, EQ                                       ; +0x120, 0x100007f84\nCCMP            W9, W11, #0, EQ                                        ; +0x124, 0x100007f88\nCCMP            W8, W11, #0, EQ                                        ; +0x128, 0x100007f8c\nB               loc_100007FA0                                          ; +0x12c, 0x100007f90\nCMP             W22, #0x30 ; '0'                                       ; +0x130, 0x100007f94\nMOV             W9, #0x30 ; '0'                                        ; +0x134, 0x100007f98\nCCMP            W8, W9, #4, NE                                         ; +0x138, 0x100007f9c\nCSET            W19, EQ                                                ; +0x13c, 0x100007fa0\nMOV             X0, X19                                                ; +0x140, 0x100007fa4\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x144, 0x100007fa8\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x148, 0x100007fac\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x14c, 0x100007fb0\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0x150, 0x100007fb4\nLDP             X26, X25, [SP,#0x60+var_40]                            ; +0x154, 0x100007fb8\nLDP             X28, X27, [SP,#0x60+var_50]                            ; +0x158, 0x100007fbc\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x15c, 0x100007fc0\nRET                                                                    ; +0x160, 0x100007fc4", "xrefs": ["GJSmartTemplate::logTemplateStatus @ 0x100007cd0", "GJSmartTemplate::getTemplateState @ 0x10000811c", "BrowseSmartTemplateLayer::init @ 0x100071638"], "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"}