{"type": "func", "start": 5477404, "end": 5477486, "name": "EditorUI::createExtras", "pseudocode": "// \n// EditorUI::createExtras from 0x53941c to 0x53946e (82 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createSmartObjectsFromType @ 0x3a499e\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\ncocos2d::CCArray *EditorUI::createExtras(EditorUI *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCArray *v4; // r0\n  cocos2d::CCArray *v6; // r0\n  unsigned int v7; // r5\n  cocos2d::CCArray *v8; // r4\n  GameObject *v9; // r0\n  int m_objectID; // r1\n\n  if ( !a2 )\n    return nullptr;\n  v4 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2);\n  if ( !v4 )\n    return nullptr;\n  v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4);\n  v7 = 0;\n  v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6);\n  while ( v7 < cocos2d::CCArray::count(a2) )\n  {\n    v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v7);\n    m_objectID = v9->m_objectID;\n    if ( (unsigned int)(m_objectID - 2808) <= 0x1D )\n      EditorUI::createExtrasForObject(a1, m_objectID, v9, v8);\n    ++v7;\n  }\n  return v8;\n}", "assembly": "; \n; EditorUI::createExtras from 0x53941c to 0x53946e (82 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createSmartObjectsFromType @ 0x3a499e\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            {R3-R7,LR}                                             ; +0x0, 0x53941c\nMOV             R7, R0                                                 ; +0x2, 0x53941e\nMOV             R6, R1                                                 ; +0x4, 0x539420\nCBZ             R1, loc_53942C                                         ; +0x6, 0x539422\nMOV             R0, R1; this                                           ; +0x8, 0x539424\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x539426\nCBNZ            R0, loc_539430                                         ; +0xe, 0x53942a\nMOVS            R0, #0                                                 ; +0x10, 0x53942c\nPOP             {R3-R7,PC}                                             ; +0x12, 0x53942e\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x14, 0x539430\nMOVS            R5, #0                                                 ; +0x18, 0x539434\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1a, 0x539436\nMOV             R4, R0                                                 ; +0x1e, 0x53943a\nMOV             R0, R6; this                                           ; +0x20, 0x53943c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x53943e\nCMP             R5, R0                                                 ; +0x26, 0x539442\nBCS             loc_539460                                             ; +0x28, 0x539444\nMOV             R1, R5; unsigned int                                   ; +0x2a, 0x539446\nMOV             R0, R6; this                                           ; +0x2c, 0x539448\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2e, 0x53944a\nLDR.W           R1, [R0,#0x374]; int                                   ; +0x32, 0x53944e\nMOV             R2, R0; GameObject *                                   ; +0x36, 0x539452\nSUBW            R3, R1, #0xAF8                                         ; +0x38, 0x539454\nCMP             R3, #0x1D                                              ; +0x3c, 0x539458\nBLS             loc_539464                                             ; +0x3e, 0x53945a\nADDS            R5, #1                                                 ; +0x40, 0x53945c\nB               loc_53943C                                             ; +0x42, 0x53945e\nMOV             R0, R4                                                 ; +0x44, 0x539460\nPOP             {R3-R7,PC}                                             ; +0x46, 0x539462\nMOV             R0, R7; this                                           ; +0x48, 0x539464\nMOV             R3, R4; cocos2d::CCArray *                             ; +0x4a, 0x539466\nBL              _ZN8EditorUI21createExtrasForObjectEiP10GameObjectPN7cocos2d7CCArrayE; EditorUI::createExtrasForObject(int,GameObject *,cocos2d::CCArray *) ; +0x4c, 0x539468\nB               loc_53945C                                             ; +0x50, 0x53946c", "xrefs": ["EditorUI::createSmartObjectsFromType @ 0x3a499e"], "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"}