{"type": "func", "start": 4299239376, "end": 4299239509, "name": "GJSmartTemplate::removePrefab", "pseudocode": "// \n// GJSmartTemplate::removePrefab from 0x100412fd0 to 0x100413055 (133 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004e65e9\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:30:10 +0000\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(*(_QWORD *)(a1 + 56), a2);\n    if ( result )\n    {\n      v5 = result;\n      result = sub_1007FEF90(result);\n      if ( (_DWORD)result )\n      {\n        result = sub_1007FEF90(v5);\n        if ( (_DWORD)result )\n        {\n          v6 = 0;\n          while ( *(_DWORD *)(sub_1007FEFE0(v5, v6) + 104) != a3 )\n          {\n            ++v6;\n            result = sub_1007FEF90(v5);\n            if ( v6 >= (unsigned int)result )\n              return result;\n          }\n          return sub_1007FF150(v5, v6, 1);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::removePrefab from 0x100412fd0 to 0x100413055 (133 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004e65e9\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:30:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100412fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100412fd1\npush    r15                                                            ; +0x4, 0x100412fd4\npush    r14                                                            ; +0x6, 0x100412fd6\npush    rbx                                                            ; +0x8, 0x100412fd8\npush    rax                                                            ; +0x9, 0x100412fd9\ntest    edx, edx                                                       ; +0xa, 0x100412fda\njle     short loc_100413030                                            ; +0xc, 0x100412fdc\nmov     ebx, edx                                                       ; +0xe, 0x100412fde\nmov     rdi, [rdi+38h]                                                 ; +0x10, 0x100412fe0\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x14, 0x100412fe4\ntest    rax, rax                                                       ; +0x19, 0x100412fe9\njz      short loc_100413030                                            ; +0x1c, 0x100412fec\nmov     r14, rax                                                       ; +0x1e, 0x100412fee\nmov     rdi, rax                                                       ; +0x21, 0x100412ff1\ncall    sub_1007FEF90                                                  ; +0x24, 0x100412ff4\ntest    eax, eax                                                       ; +0x29, 0x100412ff9\njz      short loc_100413030                                            ; +0x2b, 0x100412ffb\nmov     rdi, r14                                                       ; +0x2d, 0x100412ffd\ncall    sub_1007FEF90                                                  ; +0x30, 0x100413000\ntest    eax, eax                                                       ; +0x35, 0x100413005\njz      short loc_100413030                                            ; +0x37, 0x100413007\nxor     r15d, r15d                                                     ; +0x39, 0x100413009\nnop     dword ptr [rax+00h]                                            ; +0x3c, 0x10041300c\nmov     rdi, r14                                                       ; +0x40, 0x100413010\nmov     esi, r15d                                                      ; +0x43, 0x100413013\ncall    sub_1007FEFE0                                                  ; +0x46, 0x100413016\ncmp     [rax+68h], ebx                                                 ; +0x4b, 0x10041301b\njz      short loc_10041303B                                            ; +0x4e, 0x10041301e\ninc     r15d                                                           ; +0x50, 0x100413020\nmov     rdi, r14                                                       ; +0x53, 0x100413023\ncall    sub_1007FEF90                                                  ; +0x56, 0x100413026\ncmp     r15d, eax                                                      ; +0x5b, 0x10041302b\njb      short loc_100413010                                            ; +0x5e, 0x10041302e\nadd     rsp, 8                                                         ; +0x60, 0x100413030\npop     rbx                                                            ; +0x64, 0x100413034\npop     r14                                                            ; +0x65, 0x100413035\npop     r15                                                            ; +0x67, 0x100413037\npop     rbp                                                            ; +0x69, 0x100413039\nretn                                                                   ; +0x6a, 0x10041303a\nmov     rdi, r14                                                       ; +0x6b, 0x10041303b\nmov     esi, r15d                                                      ; +0x6e, 0x10041303e\nmov     edx, 1                                                         ; +0x71, 0x100413041\nadd     rsp, 8                                                         ; +0x76, 0x100413046\npop     rbx                                                            ; +0x7a, 0x10041304a\npop     r14                                                            ; +0x7b, 0x10041304b\npop     r15                                                            ; +0x7d, 0x10041304d\npop     rbp                                                            ; +0x7f, 0x10041304f\njmp     sub_1007FF150                                                  ; +0x80, 0x100413050", "xrefs": ["BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004e65e9"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}