{"type": "func", "start": 6760600, "end": 6760662, "name": "BrowseSmartTemplateLayer::addObjectToPage", "pseudocode": "// \n// BrowseSmartTemplateLayer::addObjectToPage from 0x672898 to 0x6728d6 (62 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673d1a\n// > BrowseSmartKeyLayer::init @ 0x674f0e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:53 +0000\n// \n\nint __fastcall BrowseSmartTemplateLayer::addObjectToPage(\n        cocos2d::CCArray **this,\n        cocos2d::CCObject *a2,\n        unsigned int a3)\n{\n  unsigned int v3; // r7\n  cocos2d::CCArray *v7; // r0\n  cocos2d::CCArray *v8; // r8\n  cocos2d::CCObject *v9; // r0\n  cocos2d::CCArray *v10; // r0\n\n  v3 = a3 + 1;\n  while ( 1 )\n  {\n    v7 = (cocos2d::CCArray *)cocos2d::CCArray::count(*(this + 131));\n    if ( (unsigned int)v7 >= v3 )\n      break;\n    v8 = *(this + 131);\n    v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7);\n    cocos2d::CCArray::addObject(v8, v9);\n  }\n  v10 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 131), a3);\n  return cocos2d::CCArray::addObject(v10, a2);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::addObjectToPage from 0x672898 to 0x6728d6 (62 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673d1a\n; > BrowseSmartKeyLayer::init @ 0x674f0e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:53 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x672898\nADDS            R7, R2, #1                                             ; +0x4, 0x67289c\nMOV             R4, R0                                                 ; +0x6, 0x67289e\nMOV             R6, R1                                                 ; +0x8, 0x6728a0\nMOV             R5, R2                                                 ; +0xa, 0x6728a2\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0xc, 0x6728a4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x6728a8\nCMP             R0, R7                                                 ; +0x14, 0x6728ac\nBCS             loc_6728C2                                             ; +0x16, 0x6728ae\nLDR.W           R8, [R4,#0x20C]                                        ; +0x18, 0x6728b0\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1c, 0x6728b4\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x20, 0x6728b8\nMOV             R0, R8; this                                           ; +0x22, 0x6728ba\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x24, 0x6728bc\nB               loc_6728A4                                             ; +0x28, 0x6728c0\nMOV             R1, R5; unsigned int                                   ; +0x2a, 0x6728c2\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x2c, 0x6728c4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x6728c8\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x34, 0x6728cc\nPOP.W           {R4-R8,LR}                                             ; +0x36, 0x6728ce\nB.W             _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3a, 0x6728d2", "xrefs": ["BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673d1a", "BrowseSmartKeyLayer::init @ 0x674f0e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}