{"type": "func", "start": 4300120960, "end": 4300121088, "name": "BrowseSmartTemplateLayer::addObjectToPage", "pseudocode": "// \n// BrowseSmartTemplateLayer::addObjectToPage from 0x1004ea380 to 0x1004ea400 (128 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\nvoid __fastcall BrowseSmartTemplateLayer::addObjectToPage(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2, int a3)\n{\n  cocos2d::CCObject *v4; // rbx\n  cocos2d::CCArray *m_pages; // rdi\n  unsigned int i; // r13d\n  cocos2d::CCArray *v8; // r12\n  __int64 v9; // rax\n\n  v4 = a2;\n  m_pages = a1->m_pages;\n  for ( i = a3 + 1; (unsigned int)sub_100720070(m_pages) < i; m_pages = a1->m_pages )\n  {\n    v8 = a1->m_pages;\n    a2 = (cocos2d::CCObject *)sub_10071F9E0(m_pages, a2);\n    sub_10071FCD0(v8, a2);\n  }\n  v9 = sub_1007200C0(a1->m_pages, (unsigned int)a3);\n  sub_10071FCD0(v9, v4);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::addObjectToPage from 0x1004ea380 to 0x1004ea400 (128 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, 0x1004ea380\nmov     rbp, rsp                                                       ; +0x1, 0x1004ea381\npush    r15                                                            ; +0x4, 0x1004ea384\npush    r14                                                            ; +0x6, 0x1004ea386\npush    r13                                                            ; +0x8, 0x1004ea388\npush    r12                                                            ; +0xa, 0x1004ea38a\npush    rbx                                                            ; +0xc, 0x1004ea38c\npush    rax                                                            ; +0xd, 0x1004ea38d\nmov     r14d, edx                                                      ; +0xe, 0x1004ea38e\nmov     rbx, rsi                                                       ; +0x11, 0x1004ea391\nmov     r15, rdi                                                       ; +0x14, 0x1004ea394\nmov     rdi, [rdi+280h]                                                ; +0x17, 0x1004ea397\ncall    sub_100720070                                                  ; +0x1e, 0x1004ea39e\nlea     r13d, [r14+1]                                                  ; +0x23, 0x1004ea3a3\ncmp     eax, r13d                                                      ; +0x27, 0x1004ea3a7\njnb     short loc_1004EA3D8                                            ; +0x2a, 0x1004ea3aa\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x1004ea3ac\nmov     r12, [r15+280h]                                                ; +0x30, 0x1004ea3b0\ncall    sub_10071F9E0                                                  ; +0x37, 0x1004ea3b7\nmov     rdi, r12                                                       ; +0x3c, 0x1004ea3bc\nmov     rsi, rax                                                       ; +0x3f, 0x1004ea3bf\ncall    sub_10071FCD0                                                  ; +0x42, 0x1004ea3c2\nmov     rdi, [r15+280h]                                                ; +0x47, 0x1004ea3c7\ncall    sub_100720070                                                  ; +0x4e, 0x1004ea3ce\ncmp     eax, r13d                                                      ; +0x53, 0x1004ea3d3\njb      short loc_1004EA3B0                                            ; +0x56, 0x1004ea3d6\nmov     rdi, [r15+280h]                                                ; +0x58, 0x1004ea3d8\nmov     esi, r14d                                                      ; +0x5f, 0x1004ea3df\ncall    sub_1007200C0                                                  ; +0x62, 0x1004ea3e2\nmov     rdi, rax                                                       ; +0x67, 0x1004ea3e7\nmov     rsi, rbx                                                       ; +0x6a, 0x1004ea3ea\nadd     rsp, 8                                                         ; +0x6d, 0x1004ea3ed\npop     rbx                                                            ; +0x71, 0x1004ea3f1\npop     r12                                                            ; +0x72, 0x1004ea3f2\npop     r13                                                            ; +0x74, 0x1004ea3f4\npop     r14                                                            ; +0x76, 0x1004ea3f6\npop     r15                                                            ; +0x78, 0x1004ea3f8\npop     rbp                                                            ; +0x7a, 0x1004ea3fa\njmp     sub_10071FCD0                                                  ; +0x7b, 0x1004ea3fb", "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"}