{"type": "func", "start": 4295112152, "end": 4295112260, "name": "KeybindingsLayer::create", "pseudocode": "// \n// KeybindingsLayer::create from 0x1000235d8 to 0x100023644 (108 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162b68\n// > GameSettingsLayer::onCustomButton @ 0x100167148\n// > sub_10051C0D8 @ 0x10051c118\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:23 +0000\n// \n\nvoid *__fastcall KeybindingsLayer::create(__int64 a1)\n{\n  void *v2; // x19\n\n  v2 = operator new(0x4A8u);\n  bzero(v2, 0x4A8u);\n  KeybindingsLayer::KeybindingsLayer(v2);\n  if ( (unsigned int)KeybindingsLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; KeybindingsLayer::create from 0x1000235d8 to 0x100023644 (108 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162b68\n; > GameSettingsLayer::onCustomButton @ 0x100167148\n; > sub_10051C0D8 @ 0x10051c118\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:23 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000235d8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000235dc\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000235e0\nMOV             X20, X0                                                ; +0xc, 0x1000235e4\nMOV             W0, #0x4A8; __sz                                       ; +0x10, 0x1000235e8\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x1000235ec\nMOV             X19, X0                                                ; +0x18, 0x1000235f0\nMOV             W1, #0x4A8; size_t                                     ; +0x1c, 0x1000235f4\nBL              _bzero                                                 ; +0x20, 0x1000235f8\nMOV             X0, X19                                                ; +0x24, 0x1000235fc\nBL              KeybindingsLayer__KeybindingsLayer                     ; +0x28, 0x100023600\nMOV             X0, X19                                                ; +0x2c, 0x100023604\nMOV             X1, X20                                                ; +0x30, 0x100023608\nBL              KeybindingsLayer__init                                 ; +0x34, 0x10002360c\nCBZ             W0, loc_100023620                                      ; +0x38, 0x100023610\nMOV             X0, X19                                                ; +0x3c, 0x100023614\nBL              cocos2d__CCObject__autorelease                         ; +0x40, 0x100023618\nB               loc_100023634                                          ; +0x44, 0x10002361c\nLDR             X8, [X19]                                              ; +0x48, 0x100023620\nLDR             X8, [X8,#0x10]                                         ; +0x4c, 0x100023624\nMOV             X0, X19                                                ; +0x50, 0x100023628\nBLR             X8                                                     ; +0x54, 0x10002362c\nMOV             X19, #0                                                ; +0x58, 0x100023630\nMOV             X0, X19                                                ; +0x5c, 0x100023634\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x100023638\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x10002363c\nRET                                                                    ; +0x68, 0x100023640", "xrefs": ["EditorUI::handleEditorAction @ 0x100162b68", "GameSettingsLayer::onCustomButton @ 0x100167148", "sub_10051C0D8 @ 0x10051c118"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}