{"type": "func", "start": 4295435304, "end": 4295435424, "name": "BrowseSmartTemplateLayer::addObjectToPage", "pseudocode": "// \n// BrowseSmartTemplateLayer::addObjectToPage from 0x100072428 to 0x1000724a0 (120 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100072004\n// > BrowseSmartKeyLayer::init @ 0x100072fa4\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall BrowseSmartTemplateLayer::addObjectToPage(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2, int a3)\n{\n  __int64 v3; // x20\n  __int64 i; // x0\n  cocos2d::CCArray *m_pages; // x22\n  __int64 v8; // x0\n  __int64 v9; // x0\n\n  v3 = *(_QWORD *)&a3;\n  for ( i = sub_10024A36C(a1->m_pages); (unsigned int)i < (int)v3 + 1; i = sub_10024A36C(a1->m_pages) )\n  {\n    m_pages = a1->m_pages;\n    v8 = sub_10024A15C(i);\n    sub_10024A2D0(m_pages, v8);\n  }\n  v9 = sub_10024A388(a1->m_pages, v3);\n  sub_10024A2D0(v9, a2);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::addObjectToPage from 0x100072428 to 0x1000724a0 (120 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100072004\n; > BrowseSmartKeyLayer::init @ 0x100072fa4\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x100072428\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10007242c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100072430\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100072434\nADD             X29, SP, #0x30                                         ; +0x10, 0x100072438\nMOV             X20, X2                                                ; +0x14, 0x10007243c\nMOV             X19, X1                                                ; +0x18, 0x100072440\nMOV             X21, X0                                                ; +0x1c, 0x100072444\nLDR             X0, [X0,#0x280]                                        ; +0x20, 0x100072448\nBL              sub_10024A36C                                          ; +0x24, 0x10007244c\nADD             W23, W20, #1                                           ; +0x28, 0x100072450\nCMP             W0, W23                                                ; +0x2c, 0x100072454\nB.CS            loc_10007247C                                          ; +0x30, 0x100072458\nLDR             X22, [X21,#0x280]                                      ; +0x34, 0x10007245c\nBL              sub_10024A15C                                          ; +0x38, 0x100072460\nMOV             X1, X0                                                 ; +0x3c, 0x100072464\nMOV             X0, X22                                                ; +0x40, 0x100072468\nBL              sub_10024A2D0                                          ; +0x44, 0x10007246c\nLDR             X0, [X21,#0x280]                                       ; +0x48, 0x100072470\nBL              sub_10024A36C                                          ; +0x4c, 0x100072474\nB               loc_100072454                                          ; +0x50, 0x100072478\nLDR             X0, [X21,#0x280]                                       ; +0x54, 0x10007247c\nMOV             X1, X20                                                ; +0x58, 0x100072480\nBL              sub_10024A388                                          ; +0x5c, 0x100072484\nMOV             X1, X19                                                ; +0x60, 0x100072488\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x64, 0x10007248c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x68, 0x100072490\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x6c, 0x100072494\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x70, 0x100072498\nB               sub_10024A2D0                                          ; +0x74, 0x10007249c", "xrefs": ["BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100072004", "BrowseSmartKeyLayer::init @ 0x100072fa4"], "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"}