{"type": "func", "start": 4299318112, "end": 4299318245, "name": "GJSmartTemplate::removePrefab", "pseudocode": "// \n// GJSmartTemplate::removePrefab from 0x100426360 to 0x1004263e5 (133 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004eba59\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 a1, char *a2, int a3)\n{\n  __int64 result; // rax\n  __int64 v5; // r14\n  unsigned int v6; // r15d\n\n  if ( a3 > 0 )\n  {\n    result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 56), a2);\n    if ( result )\n    {\n      v5 = result;\n      result = sub_100720070(result);\n      if ( (_DWORD)result )\n      {\n        result = sub_100720070(v5);\n        if ( (_DWORD)result )\n        {\n          v6 = 0;\n          while ( *(_DWORD *)(sub_1007200C0(v5, v6) + 104) != a3 )\n          {\n            ++v6;\n            result = sub_100720070(v5);\n            if ( v6 >= (unsigned int)result )\n              return result;\n          }\n          return sub_100720230(v5, v6, 1);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::removePrefab from 0x100426360 to 0x1004263e5 (133 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004eba59\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\npush    rbp                                                            ; +0x0, 0x100426360\nmov     rbp, rsp                                                       ; +0x1, 0x100426361\npush    r15                                                            ; +0x4, 0x100426364\npush    r14                                                            ; +0x6, 0x100426366\npush    rbx                                                            ; +0x8, 0x100426368\npush    rax                                                            ; +0x9, 0x100426369\ntest    edx, edx                                                       ; +0xa, 0x10042636a\njle     short loc_1004263C0                                            ; +0xc, 0x10042636c\nmov     ebx, edx                                                       ; +0xe, 0x10042636e\nmov     rdi, [rdi+38h]                                                 ; +0x10, 0x100426370\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x14, 0x100426374\ntest    rax, rax                                                       ; +0x19, 0x100426379\njz      short loc_1004263C0                                            ; +0x1c, 0x10042637c\nmov     r14, rax                                                       ; +0x1e, 0x10042637e\nmov     rdi, rax                                                       ; +0x21, 0x100426381\ncall    sub_100720070                                                  ; +0x24, 0x100426384\ntest    eax, eax                                                       ; +0x29, 0x100426389\njz      short loc_1004263C0                                            ; +0x2b, 0x10042638b\nmov     rdi, r14                                                       ; +0x2d, 0x10042638d\ncall    sub_100720070                                                  ; +0x30, 0x100426390\ntest    eax, eax                                                       ; +0x35, 0x100426395\njz      short loc_1004263C0                                            ; +0x37, 0x100426397\nxor     r15d, r15d                                                     ; +0x39, 0x100426399\nnop     dword ptr [rax+00h]                                            ; +0x3c, 0x10042639c\nmov     rdi, r14                                                       ; +0x40, 0x1004263a0\nmov     esi, r15d                                                      ; +0x43, 0x1004263a3\ncall    sub_1007200C0                                                  ; +0x46, 0x1004263a6\ncmp     [rax+68h], ebx                                                 ; +0x4b, 0x1004263ab\njz      short loc_1004263CB                                            ; +0x4e, 0x1004263ae\ninc     r15d                                                           ; +0x50, 0x1004263b0\nmov     rdi, r14                                                       ; +0x53, 0x1004263b3\ncall    sub_100720070                                                  ; +0x56, 0x1004263b6\ncmp     r15d, eax                                                      ; +0x5b, 0x1004263bb\njb      short loc_1004263A0                                            ; +0x5e, 0x1004263be\nadd     rsp, 8                                                         ; +0x60, 0x1004263c0\npop     rbx                                                            ; +0x64, 0x1004263c4\npop     r14                                                            ; +0x65, 0x1004263c5\npop     r15                                                            ; +0x67, 0x1004263c7\npop     rbp                                                            ; +0x69, 0x1004263c9\nretn                                                                   ; +0x6a, 0x1004263ca\nmov     rdi, r14                                                       ; +0x6b, 0x1004263cb\nmov     esi, r15d                                                      ; +0x6e, 0x1004263ce\nmov     edx, 1                                                         ; +0x71, 0x1004263d1\nadd     rsp, 8                                                         ; +0x76, 0x1004263d6\npop     rbx                                                            ; +0x7a, 0x1004263da\npop     r14                                                            ; +0x7b, 0x1004263db\npop     r15                                                            ; +0x7d, 0x1004263dd\npop     rbp                                                            ; +0x7f, 0x1004263df\njmp     sub_100720230                                                  ; +0x80, 0x1004263e0", "xrefs": ["BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004eba59"], "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"}