{"type": "func", "start": 5371462672, "end": 5371463005, "name": "GameOptionsLayer::onUIPOptions", "pseudocode": "// \n// GameOptionsLayer::onUIPOptions from 0x1402a0410 to 0x1402a055d (333 bytes)\n// \n// 2 xrefs:\n// > GameOptionsLayer::setupOptions @ 0x14029f96b\n// > <???> @ 0x1406d1f58\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// Hidden C++ exception states: #wind=2\nvoid GameOptionsLayer::onUIPOptions(GameOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  UIPOptionsLayer *v2; // rbx\n  bool (*init)(UIPOptionsLayer *); // rdx\n  bool v4; // al\n  void (__fastcall *show)(SetupTriggerPopup *__hidden); // rdx\n\n  v2 = (UIPOptionsLayer *)operator new(0x3C8u);\n  SetupTriggerPopup::SetupTriggerPopup(v2);\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (UIPOptionsLayer_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&UIPOptionsLayer::`vftable';\n  v2->m_touchID = -1;\n  v2->m_practiceNode = nullptr;\n  cocos2d::CCPoint::CCPoint(&v2->m_touchPosition);\n  cocos2d::CCPoint::CCPoint(&v2->m_touchDelta);\n  init = (bool (*)(UIPOptionsLayer *))v2->init;\n  if ( init == UIPOptionsLayer::init )\n    v4 = UIPOptionsLayer::init(v2);\n  else\n    v4 = init(v2);\n  if ( v4 )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(UIPOptionsLayer *, __int64))v2->~UIPOptionsLayer)(v2, 1);\n    v2 = nullptr;\n  }\n  show = v2->show;\n  if ( (char *)show == (char *)CollisionBlockPopup::show )\n    CollisionBlockPopup::show((__int64)v2);\n  else\n    show(v2);\n}", "assembly": "; \n; GameOptionsLayer::onUIPOptions from 0x1402a0410 to 0x1402a055d (333 bytes)\n; \n; 2 xrefs:\n; > GameOptionsLayer::setupOptions @ 0x14029f96b\n; > <???> @ 0x1406d1f58\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    rbx                                                            ; +0x0, 0x1402a0410\nsub     rsp, 20h                                                       ; +0x2, 0x1402a0412\nmov     ecx, 3C8h; Size                                                ; +0x6, 0x1402a0416\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x1402a041b\nmov     rbx, rax                                                       ; +0x10, 0x1402a0420\nmov     [rsp+28h+arg_10], rax                                          ; +0x13, 0x1402a0423\nmov     rcx, rax                                                       ; +0x18, 0x1402a0428\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x1b, 0x1402a042b\nnop                                                                    ; +0x20, 0x1402a0430\nlea     rax, ??_7UIPOptionsLayer@@6B@; const UIPOptionsLayer::`vftable' ; +0x21, 0x1402a0431\nmov     [rbx], rax                                                     ; +0x28, 0x1402a0438\nlea     rax, ??_7UIPOptionsLayer@@6B@_0; const UIPOptionsLayer::`vftable' ; +0x2b, 0x1402a043b\nmov     [rbx+140h], rax                                                ; +0x32, 0x1402a0442\nlea     rax, ??_7UIPOptionsLayer@@6B@_1; const UIPOptionsLayer::`vftable' ; +0x39, 0x1402a0449\nmov     [rbx+148h], rax                                                ; +0x40, 0x1402a0450\nlea     rax, ??_7UIPOptionsLayer@@6B@_2; const UIPOptionsLayer::`vftable' ; +0x47, 0x1402a0457\nmov     [rbx+150h], rax                                                ; +0x4e, 0x1402a045e\nlea     rax, ??_7UIPOptionsLayer@@6B@_3; const UIPOptionsLayer::`vftable' ; +0x55, 0x1402a0465\nmov     [rbx+158h], rax                                                ; +0x5c, 0x1402a046c\nlea     rax, ??_7UIPOptionsLayer@@6B@_4; const UIPOptionsLayer::`vftable' ; +0x63, 0x1402a0473\nmov     [rbx+160h], rax                                                ; +0x6a, 0x1402a047a\nlea     rax, ??_7UIPOptionsLayer@@6B@_5; const UIPOptionsLayer::`vftable' ; +0x71, 0x1402a0481\nmov     [rbx+198h], rax                                                ; +0x78, 0x1402a0488\nlea     rax, ??_7UIPOptionsLayer@@6B@_6; const UIPOptionsLayer::`vftable' ; +0x7f, 0x1402a048f\nmov     [rbx+1B0h], rax                                                ; +0x86, 0x1402a0496\nlea     rax, ??_7UIPOptionsLayer@@6B@_7; const UIPOptionsLayer::`vftable' ; +0x8d, 0x1402a049d\nmov     [rbx+278h], rax                                                ; +0x94, 0x1402a04a4\nlea     rax, ??_7UIPOptionsLayer@@6B@_8; const UIPOptionsLayer::`vftable' ; +0x9b, 0x1402a04ab\nmov     [rbx+280h], rax                                                ; +0xa2, 0x1402a04b2\nlea     rax, ??_7UIPOptionsLayer@@6B@_9; const UIPOptionsLayer::`vftable' ; +0xa9, 0x1402a04b9\nmov     [rbx+288h], rax                                                ; +0xb0, 0x1402a04c0\nmov     dword ptr [rbx+3A8h], 0FFFFFFFFh                               ; +0xb7, 0x1402a04c7\nmov     qword ptr [rbx+3B0h], 0                                        ; +0xc1, 0x1402a04d1\nlea     rcx, [rbx+3B8h]                                                ; +0xcc, 0x1402a04dc\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd3, 0x1402a04e3\nlea     rcx, [rbx+3C0h]                                                ; +0xd9, 0x1402a04e9\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xe0, 0x1402a04f0\nnop                                                                    ; +0xe6, 0x1402a04f6\nmov     rax, [rbx]                                                     ; +0xe7, 0x1402a04f7\nmov     rdx, [rax+48h]                                                 ; +0xea, 0x1402a04fa\nlea     rax, UIPOptionsLayer__init                                     ; +0xee, 0x1402a04fe\nmov     rcx, rbx                                                       ; +0xf5, 0x1402a0505\ncmp     rdx, rax                                                       ; +0xf8, 0x1402a0508\njnz     short loc_1402A0514                                            ; +0xfb, 0x1402a050b\ncall    UIPOptionsLayer__init                                          ; +0xfd, 0x1402a050d\njmp     short loc_1402A0516                                            ; +0x102, 0x1402a0512\ncall    rdx                                                            ; +0x104, 0x1402a0514\nmov     rcx, rbx                                                       ; +0x106, 0x1402a0516\ntest    al, al                                                         ; +0x109, 0x1402a0519\njz      short loc_1402A0525                                            ; +0x10b, 0x1402a051b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10d, 0x1402a051d\njmp     short loc_1402A0532                                            ; +0x113, 0x1402a0523\nmov     rax, [rbx]                                                     ; +0x115, 0x1402a0525\nmov     edx, 1                                                         ; +0x118, 0x1402a0528\ncall    qword ptr [rax+8]                                              ; +0x11d, 0x1402a052d\nxor     ebx, ebx                                                       ; +0x120, 0x1402a0530\nmov     rax, [rbx]                                                     ; +0x122, 0x1402a0532\nmov     rdx, [rax+410h]                                                ; +0x125, 0x1402a0535\nlea     rax, CollisionBlockPopup__show; Merged with: CollisionBlockPopup::show, ColorSelectLiveOverlay::show, SetupTriggerPopup::show, HSVLiveOverlay::show, SetTextPopup::show, SetupObjectOptionsPopup::show, SetupSmartBlockLayer::show ; +0x12c, 0x1402a053c\nmov     rcx, rbx                                                       ; +0x133, 0x1402a0543\ncmp     rdx, rax                                                       ; +0x136, 0x1402a0546\njnz     short loc_1402A0555                                            ; +0x139, 0x1402a0549\nadd     rsp, 20h                                                       ; +0x13b, 0x1402a054b\npop     rbx                                                            ; +0x13f, 0x1402a054f\njmp     CollisionBlockPopup__show; Merged with: CollisionBlockPopup::show, ColorSelectLiveOverlay::show, SetupTriggerPopup::show, HSVLiveOverlay::show, SetTextPopup::show, SetupObjectOptionsPopup::show, SetupSmartBlockLayer::show ; +0x140, 0x1402a0550\nadd     rsp, 20h                                                       ; +0x145, 0x1402a0555\npop     rbx                                                            ; +0x149, 0x1402a0559\njmp     rdx                                                            ; +0x14a, 0x1402a055a", "xrefs": ["GameOptionsLayer::setupOptions @ 0x14029f96b", "<???> @ 0x1406d1f58"], "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"}