{"type": "func", "start": 4299296272, "end": 4299296444, "name": "EditButtonBar::init", "pseudocode": "// \n// EditButtonBar::init from 0x100420e10 to 0x100420ebc (172 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::create @ 0x100420db4\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!\nbool __fastcall EditButtonBar::init(\n        EditButtonBar *a1,\n        cocos2d::CCArray *a2,\n        cocos2d::CCPoint a3,\n        int a4,\n        bool a5,\n        int a6,\n        int a7)\n{\n  int v7; // w6\n  int v8; // w19\n  char v10; // w23\n  _BOOL4 v11; // w24\n  double *v12; // x25\n  _BOOL4 v15; // w21\n  cocos2d::CCArray *v16; // x0\n  cocos2d::CCArray *v17; // x0\n\n  v8 = v7;\n  v10 = a6;\n  v11 = a5;\n  v12 = *(double **)&a4;\n  v15 = cocos2d::CCNode::init(a1);\n  if ( v15 )\n  {\n    v16 = (cocos2d::CCArray *)sub_10024A15C();\n    a1->m_buttonArray = v16;\n    cocos2d::CCObject::retain(v16);\n    sub_10024A360((__int64)a1->m_buttonArray, (__int64)a2);\n    v17 = (cocos2d::CCArray *)sub_10024A15C();\n    a1->m_pagesArray = v17;\n    cocos2d::CCObject::retain(v17);\n    sub_1000229D0(&a1->m_position, v12);\n    a1->m_tabIndex = v11;\n    a1->m_hasCreateItems = v10;\n    EditButtonBar::loadFromItems(a1, a1->m_buttonArray, a7, v8, 0);\n  }\n  return v15;\n}", "assembly": "; \n; EditButtonBar::init from 0x100420e10 to 0x100420ebc (172 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::create @ 0x100420db4\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x100420e10\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x100420e14\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100420e18\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100420e1c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100420e20\nADD             X29, SP, #0x40                                         ; +0x14, 0x100420e24\nMOV             X19, X6                                                ; +0x18, 0x100420e28\nMOV             X20, X5                                                ; +0x1c, 0x100420e2c\nMOV             X23, X4                                                ; +0x20, 0x100420e30\nMOV             X24, X3                                                ; +0x24, 0x100420e34\nMOV             X25, X2                                                ; +0x28, 0x100420e38\nMOV             X26, X1                                                ; +0x2c, 0x100420e3c\nMOV             X22, X0                                                ; +0x30, 0x100420e40\nBL              cocos2d__CCNode__init                                  ; +0x34, 0x100420e44\nMOV             X21, X0                                                ; +0x38, 0x100420e48\nCBZ             W0, loc_100420EA0                                      ; +0x3c, 0x100420e4c\nBL              sub_10024A15C                                          ; +0x40, 0x100420e50\nSTR             X0, [X22,#0x150]                                       ; +0x44, 0x100420e54\nBL              cocos2d__CCObject__retain                              ; +0x48, 0x100420e58\nLDR             X0, [X22,#0x150]                                       ; +0x4c, 0x100420e5c\nMOV             X1, X26                                                ; +0x50, 0x100420e60\nBL              sub_10024A360                                          ; +0x54, 0x100420e64\nBL              sub_10024A15C                                          ; +0x58, 0x100420e68\nSTR             X0, [X22,#0x160]                                       ; +0x5c, 0x100420e6c\nBL              cocos2d__CCObject__retain                              ; +0x60, 0x100420e70\nADD             X0, X22, #0x13C                                        ; +0x64, 0x100420e74\nMOV             X1, X25                                                ; +0x68, 0x100420e78\nBL              sub_1000229D0                                          ; +0x6c, 0x100420e7c\nSTR             W24, [X22,#0x144]                                      ; +0x70, 0x100420e80\nSTRB            W23, [X22,#0x148]                                      ; +0x74, 0x100420e84\nLDR             X1, [X22,#0x150]                                       ; +0x78, 0x100420e88\nMOV             X0, X22                                                ; +0x7c, 0x100420e8c\nMOV             X2, X20                                                ; +0x80, 0x100420e90\nMOV             X3, X19                                                ; +0x84, 0x100420e94\nMOV             W4, #0                                                 ; +0x88, 0x100420e98\nBL              EditButtonBar__loadFromItems                           ; +0x8c, 0x100420e9c\nMOV             X0, X21                                                ; +0x90, 0x100420ea0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x94, 0x100420ea4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x98, 0x100420ea8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x9c, 0x100420eac\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xa0, 0x100420eb0\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xa4, 0x100420eb4\nRET                                                                    ; +0xa8, 0x100420eb8", "xrefs": ["EditButtonBar::create @ 0x100420db4"], "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"}