{"type": "func", "start": 5369865504, "end": 5369866469, "name": "EditorUI::editButton2Usable", "pseudocode": "// \n// EditorUI::editButton2Usable from 0x14011a520 to 0x14011a8e5 (965 bytes)\n// \n// 4 xrefs:\n// > EditorUI::toggleEditObjectButton @ 0x14011a975\n// > <???> @ 0x14066fbe0\n// > <???> @ 0x14066fbf0\n// > <???> @ 0x1406c945c\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 EditorUI::editButton2Usable(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // rax\n  cocos2d::CCArray **p_m_selectedObjects; // r12\n  int m_objectID; // ebx\n  unsigned int v4; // ebp\n  int m_classType; // edi\n  int m_savedObjectType; // esi\n  cocos2d::CCArray *v8; // r13\n  unsigned int v9; // r15d\n  struct cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCObject *v11; // rdx\n  unsigned int m_uAutoReleaseCount; // eax\n  cocos2d::CCArray *v13; // r15\n  unsigned int v14; // edi\n  int v15; // ebx\n  int v16; // ebx\n  bool v17; // zf\n  GameObject *v18; // rcx\n  GameObject *v19; // rcx\n  int v20; // eax\n  GameObject *v21; // rcx\n  cocos2d::CCArray *v22; // rdi\n  char v23; // bl\n  int v24; // ebx\n  unsigned int v26; // ebx\n  struct cocos2d::CCObject *v27; // rax\n  unsigned int v28; // edi\n  struct cocos2d::CCObject *v29; // rax\n  struct cocos2d::CCObject *v30; // rax\n\n  m_selectedObject = a1->m_selectedObject;\n  p_m_selectedObjects = &a1->m_selectedObjects;\n  m_objectID = -1;\n  v4 = 0;\n  m_classType = -1;\n  m_savedObjectType = -1;\n  if ( m_selectedObject )\n  {\n    m_objectID = m_selectedObject->m_objectID;\n    m_classType = m_selectedObject->m_classType;\n    m_savedObjectType = m_selectedObject->m_savedObjectType;\n  }\n  else\n  {\n    v8 = *p_m_selectedObjects;\n    if ( *p_m_selectedObjects )\n    {\n      v9 = 0;\n      if ( cocos2d::CCArray::count(*p_m_selectedObjects) )\n      {\n        do\n        {\n          v10 = cocos2d::CCArray::objectAtIndex(v8, v9);\n          v11 = v10;\n          if ( m_objectID )\n          {\n            if ( m_objectID == -1 )\n            {\n              m_objectID = v10[18].m_eObjType;\n            }\n            else if ( v10[18].m_eObjType != m_objectID )\n            {\n              m_objectID = 0;\n            }\n          }\n          if ( m_classType )\n          {\n            m_uAutoReleaseCount = v10[22].m_uAutoReleaseCount;\n            if ( m_classType == -1 )\n            {\n              m_classType = m_uAutoReleaseCount;\n            }\n            else if ( m_uAutoReleaseCount != m_classType )\n            {\n              m_classType = 0;\n            }\n          }\n          if ( m_savedObjectType )\n          {\n            if ( m_savedObjectType == -1 )\n            {\n              m_savedObjectType = v11[16].m_uUnknown;\n            }\n            else if ( v11[16].m_uUnknown != m_savedObjectType )\n            {\n              m_savedObjectType = 0;\n            }\n          }\n          ++v9;\n        }\n        while ( v9 < cocos2d::CCArray::count(v8) );\n      }\n    }\n  }\n  if ( m_objectID == -1 && m_classType == -1 )\n    return 0;\n  if ( m_classType == 5 )\n    return 1;\n  v13 = *p_m_selectedObjects;\n  if ( *p_m_selectedObjects )\n  {\n    v14 = 0;\n    if ( cocos2d::CCArray::count(*p_m_selectedObjects) )\n    {\n      while ( cocos2d::CCArray::objectAtIndex(v13, v14)[22].m_uAutoReleaseCount != 5 )\n      {\n        if ( ++v14 >= cocos2d::CCArray::count(v13) )\n          goto LABEL_28;\n      }\n      return 1;\n    }\n  }\nLABEL_28:\n  if ( m_savedObjectType == 30 )\n    return 1;\n  if ( m_objectID > 2903 )\n  {\n    if ( m_objectID > 3643 )\n      goto LABEL_37;\n    if ( m_objectID != 3643 )\n    {\n      switch ( m_objectID )\n      {\n        case 2904:\n        case 2905:\n        case 2907:\n        case 2909:\n        case 2910:\n        case 2911:\n        case 2912:\n        case 2913:\n        case 2914:\n        case 2915:\n        case 2916:\n        case 2917:\n        case 2919:\n        case 2920:\n        case 2921:\n        case 2922:\n        case 2923:\n        case 2924:\n          return 1;\n        default:\n          goto LABEL_37;\n      }\n    }\n    return 0;\n  }\n  if ( m_objectID == 2903 )\n    return 1;\n  if ( m_objectID > 1751 )\n  {\n    v24 = m_objectID - 2063;\n    if ( !v24 )\n      return 1;\n    v17 = v24 == 2;\n  }\n  else\n  {\n    if ( m_objectID == 1751 )\n      return 1;\n    v15 = m_objectID - 1594;\n    if ( !v15 )\n      return 1;\n    v16 = v15 - 21;\n    if ( !v16 )\n      return 1;\n    v17 = v16 == 89;\n  }\n  if ( v17 )\n    return 1;\nLABEL_37:\n  v18 = a1->m_selectedObject;\n  if ( v18 )\n  {\n    if ( v18->getType(v18) == Collectible )\n      return 1;\n    v19 = a1->m_selectedObject;\n    v20 = v19->m_objectID;\n    if ( v20 == 2065\n      || v20 == 1615\n      || v19->getHasRotateAction(v19)\n      || a1->m_selectedObject->getHasSyncedAnimation(a1->m_selectedObject)\n      || a1->m_selectedObject->canAllowMultiActivate(a1->m_selectedObject) )\n    {\n      return 1;\n    }\n  }\n  v21 = a1->m_selectedObject;\n  v22 = *p_m_selectedObjects;\n  if ( !v21 )\n  {\n    v26 = 0;\n    if ( cocos2d::CCArray::count(*p_m_selectedObjects) )\n    {\n      while ( 1 )\n      {\n        v27 = cocos2d::CCArray::objectAtIndex(v22, v26);\n        if ( !((unsigned __int8 (__fastcall *)(struct cocos2d::CCObject *))v27->__vftable[20].acceptVisitor)(v27) )\n          break;\n        if ( ++v26 >= cocos2d::CCArray::count(v22) )\n          return 1;\n      }\n      v23 = 0;\n      goto LABEL_59;\n    }\n    return 1;\n  }\n  v23 = v21->canAllowMultiActivate(v21);\n  if ( v23 )\n    return v23;\nLABEL_59:\n  if ( !cocos2d::CCArray::count(a1->m_selectedObjects) )\n    goto LABEL_65;\n  v23 = 1;\n  v28 = 0;\n  if ( !cocos2d::CCArray::count(a1->m_selectedObjects) )\n    return v23;\n  while ( 1 )\n  {\n    v29 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v28);\n    if ( v29->__vftable[21].canEncode(v29) )\n      break;\n    if ( ++v28 >= cocos2d::CCArray::count(a1->m_selectedObjects) )\n      return 1;\n  }\n  v23 = 0;\nLABEL_65:\n  if ( !cocos2d::CCArray::count(a1->m_selectedObjects) )\n    return v23;\n  v23 = 1;\n  if ( !cocos2d::CCArray::count(a1->m_selectedObjects) )\n    return v23;\n  while ( 1 )\n  {\n    v30 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v4);\n    if ( (unsigned __int8)v30->__vftable[21].getTag(v30) )\n      break;\n    if ( ++v4 >= cocos2d::CCArray::count(a1->m_selectedObjects) )\n      return 1;\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::editButton2Usable from 0x14011a520 to 0x14011a8e5 (965 bytes)\n; \n; 4 xrefs:\n; > EditorUI::toggleEditObjectButton @ 0x14011a975\n; > <???> @ 0x14066fbe0\n; > <???> @ 0x14066fbf0\n; > <???> @ 0x1406c945c\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14011a520\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14011a525\npush    rsi                                                            ; +0xa, 0x14011a52a\npush    rdi                                                            ; +0xb, 0x14011a52b\npush    r12                                                            ; +0xc, 0x14011a52c\npush    r14                                                            ; +0xe, 0x14011a52e\npush    r15                                                            ; +0x10, 0x14011a530\nsub     rsp, 20h                                                       ; +0x12, 0x14011a532\nmov     rax, [rcx+538h]                                                ; +0x16, 0x14011a536\nlea     r12, [rcx+340h]                                                ; +0x1d, 0x14011a53d\nmov     ebx, 0FFFFFFFFh                                                ; +0x24, 0x14011a544\nxor     ebp, ebp                                                       ; +0x29, 0x14011a549\nmov     r14, rcx                                                       ; +0x2b, 0x14011a54b\nmov     edi, ebx                                                       ; +0x2e, 0x14011a54e\nmov     esi, ebx                                                       ; +0x30, 0x14011a550\ntest    rax, rax                                                       ; +0x32, 0x14011a552\njz      short loc_14011A56E                                            ; +0x35, 0x14011a555\nmov     ebx, [rax+40Ch]                                                ; +0x37, 0x14011a557\nmov     edi, [rax+4E8h]                                                ; +0x3d, 0x14011a55d\nmov     esi, [rax+3A4h]                                                ; +0x43, 0x14011a563\njmp     loc_14011A5FD                                                  ; +0x49, 0x14011a569\nmov     [rsp+48h+arg_8], r13                                           ; +0x4e, 0x14011a56e\nmov     r13, [r12]                                                     ; +0x53, 0x14011a573\ntest    r13, r13                                                       ; +0x57, 0x14011a577\njz      short loc_14011A5F8                                            ; +0x5a, 0x14011a57a\nmov     rcx, r13                                                       ; +0x5c, 0x14011a57c\nmov     r15d, ebp                                                      ; +0x5f, 0x14011a57f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x62, 0x14011a582\ntest    eax, eax                                                       ; +0x68, 0x14011a588\njz      short loc_14011A5F8                                            ; +0x6a, 0x14011a58a\nnop     dword ptr [rax+00h]                                            ; +0x6c, 0x14011a58c\nmov     edx, r15d                                                      ; +0x70, 0x14011a590\nmov     rcx, r13                                                       ; +0x73, 0x14011a593\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x76, 0x14011a596\nmov     rdx, rax                                                       ; +0x7c, 0x14011a59c\ntest    ebx, ebx                                                       ; +0x7f, 0x14011a59f\njz      short loc_14011A5B7                                            ; +0x81, 0x14011a5a1\nmov     ecx, [rax+40Ch]                                                ; +0x83, 0x14011a5a3\ncmp     ebx, 0FFFFFFFFh                                                ; +0x89, 0x14011a5a9\njnz     short loc_14011A5B2                                            ; +0x8c, 0x14011a5ac\nmov     ebx, ecx                                                       ; +0x8e, 0x14011a5ae\njmp     short loc_14011A5B7                                            ; +0x90, 0x14011a5b0\ncmp     ecx, ebx                                                       ; +0x92, 0x14011a5b2\ncmovnz  ebx, ebp                                                       ; +0x94, 0x14011a5b4\ntest    edi, edi                                                       ; +0x97, 0x14011a5b7\njz      short loc_14011A5CF                                            ; +0x99, 0x14011a5b9\nmov     eax, [rax+4E8h]                                                ; +0x9b, 0x14011a5bb\ncmp     edi, 0FFFFFFFFh                                                ; +0xa1, 0x14011a5c1\njnz     short loc_14011A5CA                                            ; +0xa4, 0x14011a5c4\nmov     edi, eax                                                       ; +0xa6, 0x14011a5c6\njmp     short loc_14011A5CF                                            ; +0xa8, 0x14011a5c8\ncmp     eax, edi                                                       ; +0xaa, 0x14011a5ca\ncmovnz  edi, ebp                                                       ; +0xac, 0x14011a5cc\ntest    esi, esi                                                       ; +0xaf, 0x14011a5cf\njz      short loc_14011A5E7                                            ; +0xb1, 0x14011a5d1\nmov     eax, [rdx+3A4h]                                                ; +0xb3, 0x14011a5d3\ncmp     esi, 0FFFFFFFFh                                                ; +0xb9, 0x14011a5d9\njnz     short loc_14011A5E2                                            ; +0xbc, 0x14011a5dc\nmov     esi, eax                                                       ; +0xbe, 0x14011a5de\njmp     short loc_14011A5E7                                            ; +0xc0, 0x14011a5e0\ncmp     eax, esi                                                       ; +0xc2, 0x14011a5e2\ncmovnz  esi, ebp                                                       ; +0xc4, 0x14011a5e4\nmov     rcx, r13                                                       ; +0xc7, 0x14011a5e7\ninc     r15d                                                           ; +0xca, 0x14011a5ea\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xcd, 0x14011a5ed\ncmp     r15d, eax                                                      ; +0xd3, 0x14011a5f3\njb      short loc_14011A590                                            ; +0xd6, 0x14011a5f6\nmov     r13, [rsp+48h+arg_8]                                           ; +0xd8, 0x14011a5f8\ncmp     ebx, 0FFFFFFFFh                                                ; +0xdd, 0x14011a5fd\njnz     short loc_14011A60A                                            ; +0xe0, 0x14011a600\ncmp     edi, ebx                                                       ; +0xe2, 0x14011a602\njz      loc_14011A79C                                                  ; +0xe4, 0x14011a604\ncmp     edi, 5                                                         ; +0xea, 0x14011a60a\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0xed, 0x14011a60d\nmov     r15, [r12]                                                     ; +0xf3, 0x14011a613\ntest    r15, r15                                                       ; +0xf7, 0x14011a617\njz      short loc_14011A657                                            ; +0xfa, 0x14011a61a\nmov     rcx, r15                                                       ; +0xfc, 0x14011a61c\nmov     edi, ebp                                                       ; +0xff, 0x14011a61f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x101, 0x14011a621\ntest    eax, eax                                                       ; +0x107, 0x14011a627\njz      short loc_14011A657                                            ; +0x109, 0x14011a629\nnop     dword ptr [rax+rax+00h]                                        ; +0x10b, 0x14011a62b\nmov     edx, edi                                                       ; +0x110, 0x14011a630\nmov     rcx, r15                                                       ; +0x112, 0x14011a632\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x115, 0x14011a635\ncmp     dword ptr [rax+4E8h], 5                                        ; +0x11b, 0x14011a63b\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x122, 0x14011a642\nmov     rcx, r15                                                       ; +0x128, 0x14011a648\ninc     edi                                                            ; +0x12b, 0x14011a64b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12d, 0x14011a64d\ncmp     edi, eax                                                       ; +0x133, 0x14011a653\njb      short loc_14011A630                                            ; +0x135, 0x14011a655\ncmp     esi, 1Eh                                                       ; +0x137, 0x14011a657\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x13a, 0x14011a65a\ncmp     ebx, 0B57h                                                     ; +0x140, 0x14011a660\njg      loc_14011A761                                                  ; +0x146, 0x14011a666\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x14c, 0x14011a66c\ncmp     ebx, 6D7h                                                      ; +0x152, 0x14011a672\njg      loc_14011A74D                                                  ; +0x158, 0x14011a678\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x15e, 0x14011a67e\nsub     ebx, 63Ah                                                      ; +0x164, 0x14011a684\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x16a, 0x14011a68a\nsub     ebx, 15h                                                       ; +0x170, 0x14011a690\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x173, 0x14011a693\ncmp     ebx, 59h ; 'Y'                                                 ; +0x179, 0x14011a699\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x17c, 0x14011a69c\nmov     rcx, [r14+538h]; jumptable 000000014011A79A default case, cases 2906,2908,2918 ; +0x182, 0x14011a6a2\ntest    rcx, rcx                                                       ; +0x189, 0x14011a6a9\njz      short loc_14011A724                                            ; +0x18c, 0x14011a6ac\nmov     rax, [rcx]                                                     ; +0x18e, 0x14011a6ae\ncall    qword ptr [rax+660h]                                           ; +0x191, 0x14011a6b1\ncmp     eax, 1Eh                                                       ; +0x197, 0x14011a6b7\njz      loc_14011A7DC                                                  ; +0x19a, 0x14011a6ba\nmov     rcx, [r14+538h]                                                ; +0x1a0, 0x14011a6c0\nmov     eax, [rcx+40Ch]                                                ; +0x1a7, 0x14011a6c7\ncmp     eax, 811h                                                      ; +0x1ad, 0x14011a6cd\njz      loc_14011A7DC                                                  ; +0x1b2, 0x14011a6d2\ncmp     eax, 64Fh                                                      ; +0x1b8, 0x14011a6d8\njz      loc_14011A7DC                                                  ; +0x1bd, 0x14011a6dd\nmov     rax, [rcx]                                                     ; +0x1c3, 0x14011a6e3\ncall    qword ptr [rax+620h]                                           ; +0x1c6, 0x14011a6e6\ntest    al, al                                                         ; +0x1cc, 0x14011a6ec\njnz     loc_14011A7DC                                                  ; +0x1ce, 0x14011a6ee\nmov     rcx, [r14+538h]                                                ; +0x1d4, 0x14011a6f4\nmov     rax, [rcx]                                                     ; +0x1db, 0x14011a6fb\ncall    qword ptr [rax+618h]                                           ; +0x1de, 0x14011a6fe\ntest    al, al                                                         ; +0x1e4, 0x14011a704\njnz     loc_14011A7DC                                                  ; +0x1e6, 0x14011a706\nmov     rcx, [r14+538h]                                                ; +0x1ec, 0x14011a70c\nmov     rax, [rcx]                                                     ; +0x1f3, 0x14011a713\ncall    qword ptr [rax+5B8h]                                           ; +0x1f6, 0x14011a716\ntest    al, al                                                         ; +0x1fc, 0x14011a71c\njnz     loc_14011A7DC                                                  ; +0x1fe, 0x14011a71e\nmov     rcx, [r14+538h]                                                ; +0x204, 0x14011a724\nmov     rdi, [r12]                                                     ; +0x20b, 0x14011a72b\ntest    rcx, rcx                                                       ; +0x20f, 0x14011a72f\njz      short loc_14011A7A3                                            ; +0x212, 0x14011a732\nmov     rax, [rcx]                                                     ; +0x214, 0x14011a734\ncall    qword ptr [rax+5B8h]                                           ; +0x217, 0x14011a737\nmovzx   ebx, al                                                        ; +0x21d, 0x14011a73d\ntest    al, al                                                         ; +0x220, 0x14011a740\njnz     loc_14011A7DE                                                  ; +0x222, 0x14011a742\njmp     loc_14011A7E8                                                  ; +0x228, 0x14011a748\nsub     ebx, 80Fh                                                      ; +0x22d, 0x14011a74d\njz      loc_14011A8AF; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x233, 0x14011a753\ncmp     ebx, 2                                                         ; +0x239, 0x14011a759\njmp     loc_14011A69C                                                  ; +0x23c, 0x14011a75c\ncmp     ebx, 0E3Bh                                                     ; +0x241, 0x14011a761\njg      def_14011A79A; jumptable 000000014011A79A default case, cases 2906,2908,2918 ; +0x247, 0x14011a767\njz      short loc_14011A79C                                            ; +0x24d, 0x14011a76d\nadd     ebx, 0FFFFF4A8h; switch 21 cases                               ; +0x24f, 0x14011a76f\ncmp     ebx, 14h                                                       ; +0x255, 0x14011a775\nja      def_14011A79A; jumptable 000000014011A79A default case, cases 2906,2908,2918 ; +0x258, 0x14011a778\nlea     rdx, cs:140000000h                                             ; +0x25e, 0x14011a77e\nmovsxd  rax, ebx                                                       ; +0x265, 0x14011a785\nmovzx   eax, ds:(byte_14011A8D0 - 140000000h)[rdx+rax]                 ; +0x268, 0x14011a788\nmov     ecx, ds:(jpt_14011A79A - 140000000h)[rdx+rax*4]                ; +0x270, 0x14011a790\nadd     rcx, rdx                                                       ; +0x277, 0x14011a797\njmp     rcx; switch jump                                               ; +0x27a, 0x14011a79a\nxor     al, al                                                         ; +0x27c, 0x14011a79c\njmp     loc_14011A8B1                                                  ; +0x27e, 0x14011a79e\nmov     rcx, rdi                                                       ; +0x283, 0x14011a7a3\nmov     ebx, ebp                                                       ; +0x286, 0x14011a7a6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x288, 0x14011a7a8\ntest    eax, eax                                                       ; +0x28e, 0x14011a7ae\njz      short loc_14011A7DC                                            ; +0x290, 0x14011a7b0\nmov     edx, ebx                                                       ; +0x292, 0x14011a7b2\nmov     rcx, rdi                                                       ; +0x294, 0x14011a7b4\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x297, 0x14011a7b7\nmov     rcx, rax                                                       ; +0x29d, 0x14011a7bd\nmov     rdx, [rax]                                                     ; +0x2a0, 0x14011a7c0\ncall    qword ptr [rdx+5B8h]                                           ; +0x2a3, 0x14011a7c3\ntest    al, al                                                         ; +0x2a9, 0x14011a7c9\njz      short loc_14011A7E6                                            ; +0x2ab, 0x14011a7cb\nmov     rcx, rdi                                                       ; +0x2ad, 0x14011a7cd\ninc     ebx                                                            ; +0x2b0, 0x14011a7d0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2b2, 0x14011a7d2\ncmp     ebx, eax                                                       ; +0x2b8, 0x14011a7d8\njb      short loc_14011A7B2                                            ; +0x2ba, 0x14011a7da\nmov     bl, 1                                                          ; +0x2bc, 0x14011a7dc\nmovzx   eax, bl                                                        ; +0x2be, 0x14011a7de\njmp     loc_14011A8B1                                                  ; +0x2c1, 0x14011a7e1\nxor     bl, bl                                                         ; +0x2c6, 0x14011a7e6\nmov     rcx, [r14+340h]                                                ; +0x2c8, 0x14011a7e8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2cf, 0x14011a7ef\ntest    eax, eax                                                       ; +0x2d5, 0x14011a7f5\njz      short loc_14011A849                                            ; +0x2d7, 0x14011a7f7\nmov     rcx, [r14+340h]                                                ; +0x2d9, 0x14011a7f9\nmov     bl, 1                                                          ; +0x2e0, 0x14011a800\nmov     edi, ebp                                                       ; +0x2e2, 0x14011a802\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2e4, 0x14011a804\ntest    eax, eax                                                       ; +0x2ea, 0x14011a80a\njz      short loc_14011A7DE                                            ; +0x2ec, 0x14011a80c\nxchg    ax, ax                                                         ; +0x2ee, 0x14011a80e\nmov     rcx, [r14+340h]                                                ; +0x2f0, 0x14011a810\nmov     edx, edi                                                       ; +0x2f7, 0x14011a817\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x2f9, 0x14011a819\nmov     rcx, rax                                                       ; +0x2ff, 0x14011a81f\nmov     rdx, [rax]                                                     ; +0x302, 0x14011a822\ncall    qword ptr [rdx+618h]                                           ; +0x305, 0x14011a825\ntest    al, al                                                         ; +0x30b, 0x14011a82b\njnz     short loc_14011A847                                            ; +0x30d, 0x14011a82d\nmov     rcx, [r14+340h]                                                ; +0x30f, 0x14011a82f\ninc     edi                                                            ; +0x316, 0x14011a836\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x318, 0x14011a838\ncmp     edi, eax                                                       ; +0x31e, 0x14011a83e\njb      short loc_14011A810                                            ; +0x320, 0x14011a840\nmovzx   eax, bl                                                        ; +0x322, 0x14011a842\njmp     short loc_14011A8B1                                            ; +0x325, 0x14011a845\nxor     bl, bl                                                         ; +0x327, 0x14011a847\nmov     rcx, [r14+340h]                                                ; +0x329, 0x14011a849\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x330, 0x14011a850\ntest    eax, eax                                                       ; +0x336, 0x14011a856\njz      short loc_14011A7DE                                            ; +0x338, 0x14011a858\nmov     rcx, [r14+340h]                                                ; +0x33a, 0x14011a85a\nmov     bl, 1                                                          ; +0x341, 0x14011a861\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x343, 0x14011a863\ntest    eax, eax                                                       ; +0x349, 0x14011a869\njz      loc_14011A7DE                                                  ; +0x34b, 0x14011a86b\nmov     rcx, [r14+340h]                                                ; +0x351, 0x14011a871\nmov     edx, ebp                                                       ; +0x358, 0x14011a878\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x35a, 0x14011a87a\nmov     rcx, rax                                                       ; +0x360, 0x14011a880\nmov     rdx, [rax]                                                     ; +0x363, 0x14011a883\ncall    qword ptr [rdx+620h]                                           ; +0x366, 0x14011a886\ntest    al, al                                                         ; +0x36c, 0x14011a88c\njnz     short loc_14011A8A8                                            ; +0x36e, 0x14011a88e\nmov     rcx, [r14+340h]                                                ; +0x370, 0x14011a890\ninc     ebp                                                            ; +0x377, 0x14011a897\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x379, 0x14011a899\ncmp     ebp, eax                                                       ; +0x37f, 0x14011a89f\njb      short loc_14011A871                                            ; +0x381, 0x14011a8a1\nmovzx   eax, bl                                                        ; +0x383, 0x14011a8a3\njmp     short loc_14011A8B1                                            ; +0x386, 0x14011a8a6\nxor     bl, bl                                                         ; +0x388, 0x14011a8a8\nmovzx   eax, bl                                                        ; +0x38a, 0x14011a8aa\njmp     short loc_14011A8B1                                            ; +0x38d, 0x14011a8ad\nmov     al, 1; jumptable 000000014011A79A cases 2904,2905,2907,2909-2917,2919-2924 ; +0x38f, 0x14011a8af\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x391, 0x14011a8b1\nmov     rbp, [rsp+48h+arg_18]                                          ; +0x396, 0x14011a8b6\nadd     rsp, 20h                                                       ; +0x39b, 0x14011a8bb\npop     r15                                                            ; +0x39f, 0x14011a8bf\npop     r14                                                            ; +0x3a1, 0x14011a8c1\npop     r12                                                            ; +0x3a3, 0x14011a8c3\npop     rdi                                                            ; +0x3a5, 0x14011a8c5\npop     rsi                                                            ; +0x3a6, 0x14011a8c6\nretn                                                                   ; +0x3a7, 0x14011a8c7\ndd offset loc_14011A8AF - 140000000h; jump table for switch statement  ; +0x3a8, 0x14011a8c8\ndb      0,     0,     1,     0; indirect table for switch statement    ; +0x3b0, 0x14011a8d0", "xrefs": ["EditorUI::toggleEditObjectButton @ 0x14011a975", "<???> @ 0x14066fbe0", "<???> @ 0x14066fbf0", "<???> @ 0x1406c945c"], "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"}