{"type": "func", "start": 4296426244, "end": 4296426368, "name": "GameSettingsLayer::create", "pseudocode": "// \n// GameSettingsLayer::create from 0x100164304 to 0x100164380 (124 bytes)\n// \n// 3 xrefs:\n// > OptionsLayer::onOptions @ 0x1001134dc\n// > PauseLayer::onSideButtonPressed @ 0x1001bfc64\n// > EditorPauseLayer::onOptions @ 0x100444634\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:59:47 +0000\n// \n\nvoid *__fastcall GameSettingsLayer::create(__int64 a1, __int64 a2)\n{\n  void *v4; // x19\n\n  v4 = operator new(0x4A0u);\n  bzero(v4, 0x4A0u);\n  GameSettingsLayer::GameSettingsLayer(v4);\n  if ( (unsigned int)GameSettingsLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; GameSettingsLayer::create from 0x100164304 to 0x100164380 (124 bytes)\n; \n; 3 xrefs:\n; > OptionsLayer::onOptions @ 0x1001134dc\n; > PauseLayer::onSideButtonPressed @ 0x1001bfc64\n; > EditorPauseLayer::onOptions @ 0x100444634\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:59:47 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100164304\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100164308\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10016430c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100164310\nMOV             X20, X1                                                ; +0x10, 0x100164314\nMOV             X21, X0                                                ; +0x14, 0x100164318\nMOV             W0, #0x4A0; __sz                                       ; +0x18, 0x10016431c\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x100164320\nMOV             X19, X0                                                ; +0x20, 0x100164324\nMOV             W1, #0x4A0; size_t                                     ; +0x24, 0x100164328\nBL              _bzero                                                 ; +0x28, 0x10016432c\nMOV             X0, X19                                                ; +0x2c, 0x100164330\nBL              GameSettingsLayer__GameSettingsLayer                   ; +0x30, 0x100164334\nMOV             X0, X19                                                ; +0x34, 0x100164338\nMOV             X1, X21                                                ; +0x38, 0x10016433c\nMOV             X2, X20                                                ; +0x3c, 0x100164340\nBL              GameSettingsLayer__init                                ; +0x40, 0x100164344\nCBZ             W0, loc_100164358                                      ; +0x44, 0x100164348\nMOV             X0, X19                                                ; +0x48, 0x10016434c\nBL              cocos2d__CCObject__autorelease                         ; +0x4c, 0x100164350\nB               loc_10016436C                                          ; +0x50, 0x100164354\nLDR             X8, [X19]                                              ; +0x54, 0x100164358\nLDR             X8, [X8,#0x10]                                         ; +0x58, 0x10016435c\nMOV             X0, X19                                                ; +0x5c, 0x100164360\nBLR             X8                                                     ; +0x60, 0x100164364\nMOV             X19, #0                                                ; +0x64, 0x100164368\nMOV             X0, X19                                                ; +0x68, 0x10016436c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x100164370\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x100164374\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x74, 0x100164378\nRET                                                                    ; +0x78, 0x10016437c", "xrefs": ["OptionsLayer::onOptions @ 0x1001134dc", "PauseLayer::onSideButtonPressed @ 0x1001bfc64", "EditorPauseLayer::onOptions @ 0x100444634"], "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"}