{"type": "func", "start": 4301135120, "end": 4301135292, "name": "EditButtonBar::init", "pseudocode": "// \n// EditButtonBar::init from 0x1005e1d10 to 0x1005e1dbc (172 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::create @ 0x1005e1cb1\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  char v7; // r14\n  _BOOL4 v8; // r12d\n  double *v9; // r13\n  bool result; // al\n  cocos2d::CCArray *v12; // rax\n  cocos2d::CCArray *m_buttonArray; // rdi\n  cocos2d::CCArray *v14; // rax\n  bool v16; // [rsp+7h] [rbp-29h]\n  int v17; // [rsp+40h] [rbp+10h]\n\n  v7 = a6;\n  v8 = a5;\n  v9 = *(double **)&a4;\n  result = cocos2d::CCNode::init(a1);\n  if ( result )\n  {\n    v16 = result;\n    v12 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2);\n    a1->m_buttonArray = v12;\n    cocos2d::CCObject::retain(v12);\n    m_buttonArray = a1->m_buttonArray;\n    sub_100720050(m_buttonArray, a2);\n    v14 = (cocos2d::CCArray *)sub_10071F9E0(m_buttonArray, a2);\n    a1->m_pagesArray = v14;\n    cocos2d::CCObject::retain(v14);\n    sub_10028CC90(&a1->m_position, v9);\n    a1->m_tabIndex = v8;\n    a1->m_hasCreateItems = v7;\n    EditButtonBar::loadFromItems(a1, a1->m_buttonArray, a7, v17, 0);\n    return v16;\n  }\n  return result;\n}", "assembly": "; \n; EditButtonBar::init from 0x1005e1d10 to 0x1005e1dbc (172 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::create @ 0x1005e1cb1\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, 0x1005e1d10\nmov     rbp, rsp                                                       ; +0x1, 0x1005e1d11\npush    r15                                                            ; +0x4, 0x1005e1d14\npush    r14                                                            ; +0x6, 0x1005e1d16\npush    r13                                                            ; +0x8, 0x1005e1d18\npush    r12                                                            ; +0xa, 0x1005e1d1a\npush    rbx                                                            ; +0xc, 0x1005e1d1c\npush    rax                                                            ; +0xd, 0x1005e1d1d\nmov     [rbp+var_30], r9d                                              ; +0xe, 0x1005e1d1e\nmov     r14d, r8d                                                      ; +0x12, 0x1005e1d22\nmov     r12d, ecx                                                      ; +0x15, 0x1005e1d25\nmov     r13, rdx                                                       ; +0x18, 0x1005e1d28\nmov     rbx, rsi                                                       ; +0x1b, 0x1005e1d2b\nmov     r15, rdi                                                       ; +0x1e, 0x1005e1d2e\ncall    cocos2d__CCNode__init                                          ; +0x21, 0x1005e1d31\ntest    al, al                                                         ; +0x26, 0x1005e1d36\njz      short loc_1005E1DAD                                            ; +0x28, 0x1005e1d38\nmov     [rbp+var_29], al                                               ; +0x2a, 0x1005e1d3a\ncall    sub_10071F9E0                                                  ; +0x2d, 0x1005e1d3d\nmov     [r15+150h], rax                                                ; +0x32, 0x1005e1d42\nmov     rdi, rax                                                       ; +0x39, 0x1005e1d49\ncall    cocos2d__CCObject__retain                                      ; +0x3c, 0x1005e1d4c\nmov     rdi, [r15+150h]                                                ; +0x41, 0x1005e1d51\nmov     rsi, rbx                                                       ; +0x48, 0x1005e1d58\ncall    sub_100720050                                                  ; +0x4b, 0x1005e1d5b\ncall    sub_10071F9E0                                                  ; +0x50, 0x1005e1d60\nmov     [r15+160h], rax                                                ; +0x55, 0x1005e1d65\nmov     rdi, rax                                                       ; +0x5c, 0x1005e1d6c\ncall    cocos2d__CCObject__retain                                      ; +0x5f, 0x1005e1d6f\nlea     rdi, [r15+13Ch]                                                ; +0x64, 0x1005e1d74\nmov     rsi, r13                                                       ; +0x6b, 0x1005e1d7b\ncall    sub_10028CC90                                                  ; +0x6e, 0x1005e1d7e\nmov     [r15+144h], r12d                                               ; +0x73, 0x1005e1d83\nmov     [r15+148h], r14b                                               ; +0x7a, 0x1005e1d8a\nmov     rsi, [r15+150h]                                                ; +0x81, 0x1005e1d91\nmov     rdi, r15                                                       ; +0x88, 0x1005e1d98\nmov     edx, [rbp+var_30]                                              ; +0x8b, 0x1005e1d9b\nmov     ecx, [rbp+arg_0]                                               ; +0x8e, 0x1005e1d9e\nxor     r8d, r8d                                                       ; +0x91, 0x1005e1da1\ncall    EditButtonBar__loadFromItems                                   ; +0x94, 0x1005e1da4\nmovzx   eax, [rbp+var_29]                                              ; +0x99, 0x1005e1da9\nadd     rsp, 8                                                         ; +0x9d, 0x1005e1dad\npop     rbx                                                            ; +0xa1, 0x1005e1db1\npop     r12                                                            ; +0xa2, 0x1005e1db2\npop     r13                                                            ; +0xa4, 0x1005e1db4\npop     r14                                                            ; +0xa6, 0x1005e1db6\npop     r15                                                            ; +0xa8, 0x1005e1db8\npop     rbp                                                            ; +0xaa, 0x1005e1dba\nretn                                                                   ; +0xab, 0x1005e1dbb", "xrefs": ["EditButtonBar::create @ 0x1005e1cb1"], "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"}