{"type": "func", "start": 4294996932, "end": 4294997088, "name": "GJSmartTemplate::removePrefab", "pseudocode": "// \n// GJSmartTemplate::removePrefab from 0x1000073c4 to 0x100007460 (156 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1000736b4\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 __fastcall GJSmartTemplate::removePrefab(__int64 result, __int64 a2, int a3)\n{\n  __int64 v4; // x20\n  __int64 v5; // x21\n\n  if ( a3 >= 1 )\n  {\n    result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 56), a2);\n    if ( result )\n    {\n      v4 = result;\n      result = sub_10024A36C(result);\n      if ( (_DWORD)result )\n      {\n        result = sub_10024A36C(v4);\n        if ( (_DWORD)result )\n        {\n          v5 = 0;\n          while ( *(_DWORD *)(sub_10024A388(v4, v5) + 104) != a3 )\n          {\n            v5 = (unsigned int)(v5 + 1);\n            result = sub_10024A36C(v4);\n            if ( (unsigned int)v5 >= (unsigned int)result )\n              return result;\n          }\n          return sub_10024A44C(v4, v5, 1);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::removePrefab from 0x1000073c4 to 0x100007460 (156 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1000736b4\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, 0x1000073c4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000073c8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000073cc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000073d0\nCMP             W2, #1                                                 ; +0x10, 0x1000073d4\nB.LT            loc_100007434                                          ; +0x14, 0x1000073d8\nMOV             X19, X2                                                ; +0x18, 0x1000073dc\nLDR             X0, [X0,#0x38]                                         ; +0x1c, 0x1000073e0\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x20, 0x1000073e4\nCBZ             X0, loc_100007434                                      ; +0x24, 0x1000073e8\nMOV             X20, X0                                                ; +0x28, 0x1000073ec\nBL              sub_10024A36C                                          ; +0x2c, 0x1000073f0\nCBZ             W0, loc_100007434                                      ; +0x30, 0x1000073f4\nMOV             X0, X20                                                ; +0x34, 0x1000073f8\nBL              sub_10024A36C                                          ; +0x38, 0x1000073fc\nCBZ             W0, loc_100007434                                      ; +0x3c, 0x100007400\nMOV             W21, #0                                                ; +0x40, 0x100007404\nMOV             X0, X20                                                ; +0x44, 0x100007408\nMOV             X1, X21                                                ; +0x48, 0x10000740c\nBL              sub_10024A388                                          ; +0x4c, 0x100007410\nLDR             W8, [X0,#0x68]                                         ; +0x50, 0x100007414\nCMP             W8, W19                                                ; +0x54, 0x100007418\nB.EQ            loc_100007444                                          ; +0x58, 0x10000741c\nADD             W21, W21, #1                                           ; +0x5c, 0x100007420\nMOV             X0, X20                                                ; +0x60, 0x100007424\nBL              sub_10024A36C                                          ; +0x64, 0x100007428\nCMP             W21, W0                                                ; +0x68, 0x10000742c\nB.CC            loc_100007408                                          ; +0x6c, 0x100007430\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x100007434\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100007438\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x10000743c\nRET                                                                    ; +0x7c, 0x100007440\nMOV             X0, X20                                                ; +0x80, 0x100007444\nMOV             X1, X21                                                ; +0x84, 0x100007448\nMOV             W2, #1                                                 ; +0x88, 0x10000744c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8c, 0x100007450\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x90, 0x100007454\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x94, 0x100007458\nB               sub_10024A44C                                          ; +0x98, 0x10000745c", "xrefs": ["BrowseSmartKeyLayer::deletedSelectedItems @ 0x1000736b4"], "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"}