{"type": "func", "start": 4295154080, "end": 4295154281, "name": "EditorUI::editorLayerForArray", "pseudocode": "// \n// EditorUI::editorLayerForArray from 0x10002d9a0 to 0x10002da69 (201 bytes)\n// \n// 0 xrefs:\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\nint __fastcall EditorUI::editorLayerForArray(EditorUI *a1, cocos2d::CCArray *a2, bool a3)\n{\n  int v3; // r14d\n  unsigned int v5; // r15d\n  int v6; // eax\n  unsigned int v7; // r15d\n  int v8; // eax\n\n  v3 = 0;\n  if ( a2 )\n  {\n    if ( !(unsigned int)sub_100720070(a2) )\n      return 0;\n    if ( a3 )\n    {\n      v5 = 0;\n      v3 = -1;\n      while ( 1 )\n      {\n        v6 = *(__int16 *)(sub_1007200C0(a2, v5) + 1204);\n        if ( v3 == -1 )\n        {\n          v3 = v6;\n        }\n        else if ( v3 != v6 )\n        {\n          return 0;\n        }\n        if ( ++v5 >= (unsigned int)sub_100720070(a2) )\n          goto LABEL_16;\n      }\n    }\n    v7 = 0;\n    v3 = -1;\n    do\n    {\n      v8 = *(__int16 *)(sub_1007200C0(a2, v7) + 1202);\n      if ( v3 == -1 )\n      {\n        v3 = v8;\n      }\n      else if ( v3 != v8 )\n      {\n        return 0;\n      }\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(a2) );\nLABEL_16:\n    if ( v3 == -1 )\n      return 0;\n  }\n  return v3;\n}", "assembly": "; \n; EditorUI::editorLayerForArray from 0x10002d9a0 to 0x10002da69 (201 bytes)\n; \n; 0 xrefs:\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, 0x10002d9a0\nmov     rbp, rsp                                                       ; +0x1, 0x10002d9a1\npush    r15                                                            ; +0x4, 0x10002d9a4\npush    r14                                                            ; +0x6, 0x10002d9a6\npush    rbx                                                            ; +0x8, 0x10002d9a8\npush    rax                                                            ; +0x9, 0x10002d9a9\nxor     r14d, r14d                                                     ; +0xa, 0x10002d9aa\ntest    rsi, rsi                                                       ; +0xd, 0x10002d9ad\njz      loc_10002DA5B                                                  ; +0x10, 0x10002d9b0\nmov     r15d, edx                                                      ; +0x16, 0x10002d9b6\nmov     rbx, rsi                                                       ; +0x19, 0x10002d9b9\nmov     rdi, rsi                                                       ; +0x1c, 0x10002d9bc\ncall    sub_100720070                                                  ; +0x1f, 0x10002d9bf\ntest    eax, eax                                                       ; +0x24, 0x10002d9c4\njz      loc_10002DA58                                                  ; +0x26, 0x10002d9c6\ntest    r15b, r15b                                                     ; +0x2c, 0x10002d9cc\njz      short loc_10002DA12                                            ; +0x2f, 0x10002d9cf\nxor     r15d, r15d                                                     ; +0x31, 0x10002d9d1\nmov     r14d, 0FFFFFFFFh                                               ; +0x34, 0x10002d9d4\njmp     short loc_10002D9F3                                            ; +0x3a, 0x10002d9da\nalign 20h                                                              ; +0x3c, 0x10002d9dc\nmov     r14d, eax                                                      ; +0x40, 0x10002d9e0\ninc     r15d                                                           ; +0x43, 0x10002d9e3\nmov     rdi, rbx                                                       ; +0x46, 0x10002d9e6\ncall    sub_100720070                                                  ; +0x49, 0x10002d9e9\ncmp     r15d, eax                                                      ; +0x4e, 0x10002d9ee\njnb     short loc_10002DA52                                            ; +0x51, 0x10002d9f1\nmov     rdi, rbx                                                       ; +0x53, 0x10002d9f3\nmov     esi, r15d                                                      ; +0x56, 0x10002d9f6\ncall    sub_1007200C0                                                  ; +0x59, 0x10002d9f9\nmovsx   eax, word ptr [rax+4B4h]                                       ; +0x5e, 0x10002d9fe\ncmp     r14d, 0FFFFFFFFh                                               ; +0x65, 0x10002da05\njz      short loc_10002D9E0                                            ; +0x69, 0x10002da09\ncmp     r14d, eax                                                      ; +0x6b, 0x10002da0b\njz      short loc_10002D9E3                                            ; +0x6e, 0x10002da0e\njmp     short loc_10002DA58                                            ; +0x70, 0x10002da10\nxor     r15d, r15d                                                     ; +0x72, 0x10002da12\nmov     r14d, 0FFFFFFFFh                                               ; +0x75, 0x10002da15\njmp     short loc_10002DA33                                            ; +0x7b, 0x10002da1b\nalign 20h                                                              ; +0x7d, 0x10002da1d\nmov     r14d, eax                                                      ; +0x80, 0x10002da20\ninc     r15d                                                           ; +0x83, 0x10002da23\nmov     rdi, rbx                                                       ; +0x86, 0x10002da26\ncall    sub_100720070                                                  ; +0x89, 0x10002da29\ncmp     r15d, eax                                                      ; +0x8e, 0x10002da2e\njnb     short loc_10002DA52                                            ; +0x91, 0x10002da31\nmov     rdi, rbx                                                       ; +0x93, 0x10002da33\nmov     esi, r15d                                                      ; +0x96, 0x10002da36\ncall    sub_1007200C0                                                  ; +0x99, 0x10002da39\nmovsx   eax, word ptr [rax+4B2h]                                       ; +0x9e, 0x10002da3e\ncmp     r14d, 0FFFFFFFFh                                               ; +0xa5, 0x10002da45\njz      short loc_10002DA20                                            ; +0xa9, 0x10002da49\ncmp     r14d, eax                                                      ; +0xab, 0x10002da4b\njz      short loc_10002DA23                                            ; +0xae, 0x10002da4e\njmp     short loc_10002DA58                                            ; +0xb0, 0x10002da50\ncmp     r14d, 0FFFFFFFFh                                               ; +0xb2, 0x10002da52\njnz     short loc_10002DA5B                                            ; +0xb6, 0x10002da56\nxor     r14d, r14d                                                     ; +0xb8, 0x10002da58\nmov     eax, r14d                                                      ; +0xbb, 0x10002da5b\nadd     rsp, 8                                                         ; +0xbe, 0x10002da5e\npop     rbx                                                            ; +0xc2, 0x10002da62\npop     r14                                                            ; +0xc3, 0x10002da63\npop     r15                                                            ; +0xc5, 0x10002da65\npop     rbp                                                            ; +0xc7, 0x10002da67\nretn                                                                   ; +0xc8, 0x10002da68", "xrefs": [], "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"}