{"type": "func", "start": 5371886768, "end": 5371887093, "name": "LevelListLayer::onSelectIcon", "pseudocode": "// \n// LevelListLayer::onSelectIcon from 0x140307cb0 to 0x140307df5 (325 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x140304c05\n// > <???> @ 0x1406d455c\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=1\nvoid LevelListLayer::onSelectIcon(LevelListLayer *a1, cocos2d::CCObject *a2)\n{\n  int m_difficulty; // ebx\n  SelectListIconLayer *v4; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  if ( !a1->m_exiting )\n  {\n    m_difficulty = a1->m_levelList->m_difficulty;\n    v4 = (SelectListIconLayer *)operator new(0x290u);\n    FLAlertLayer::FLAlertLayer(v4);\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectListIconLayer_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectListIconLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectListIconLayer::`vftable';\n    v4->m_difficulties = nullptr;\n    v4->m_currentDifficulty = 0;\n    v4->m_delegate = nullptr;\n    if ( SelectListIconLayer::init(v4, m_difficulty) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      ((void (__fastcall *)(SelectListIconLayer *, __int64))v4->~SelectListIconLayer)(v4, 1);\n      v4 = nullptr;\n    }\n    v4->m_delegate = &a1->SelectListIconDelegate;\n    show = (void (*)(FLAlertLayer *))v4->show;\n    if ( show == FLAlertLayer::show )\n      FLAlertLayer::show(v4);\n    else\n      show(v4);\n  }\n}", "assembly": "; \n; LevelListLayer::onSelectIcon from 0x140307cb0 to 0x140307df5 (325 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x140304c05\n; > <???> @ 0x1406d455c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140307cb0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140307cb5\npush    rdi                                                            ; +0xa, 0x140307cba\nsub     rsp, 20h                                                       ; +0xb, 0x140307cbb\nmov     rsi, rcx                                                       ; +0xf, 0x140307cbf\ncmp     byte ptr [rcx+398h], 0                                         ; +0x12, 0x140307cc2\njnz     loc_140307DE5                                                  ; +0x19, 0x140307cc9\nmov     rax, [rcx+368h]                                                ; +0x1f, 0x140307ccf\nmov     ebx, [rax+168h]                                                ; +0x26, 0x140307cd6\nmov     ecx, 290h; Size                                                ; +0x2c, 0x140307cdc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140307ce1\nmov     rdi, rax                                                       ; +0x36, 0x140307ce6\nmov     [rsp+28h+arg_0], rax                                           ; +0x39, 0x140307ce9\nmov     rcx, rax                                                       ; +0x3e, 0x140307cee\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x41, 0x140307cf1\nlea     rax, ??_7SelectListIconLayer@@6B@; const SelectListIconLayer::`vftable' ; +0x46, 0x140307cf6\nmov     [rdi], rax                                                     ; +0x4d, 0x140307cfd\nlea     rax, ??_7SelectListIconLayer@@6B@_0; const SelectListIconLayer::`vftable' ; +0x50, 0x140307d00\nmov     [rdi+140h], rax                                                ; +0x57, 0x140307d07\nlea     rax, ??_7SelectListIconLayer@@6B@_1; const SelectListIconLayer::`vftable' ; +0x5e, 0x140307d0e\nmov     [rdi+148h], rax                                                ; +0x65, 0x140307d15\nlea     rax, ??_7SelectListIconLayer@@6B@_2; const SelectListIconLayer::`vftable' ; +0x6c, 0x140307d1c\nmov     [rdi+150h], rax                                                ; +0x73, 0x140307d23\nlea     rax, ??_7SelectListIconLayer@@6B@_3; const SelectListIconLayer::`vftable' ; +0x7a, 0x140307d2a\nmov     [rdi+158h], rax                                                ; +0x81, 0x140307d31\nlea     rax, ??_7SelectListIconLayer@@6B@_4; const SelectListIconLayer::`vftable' ; +0x88, 0x140307d38\nmov     [rdi+160h], rax                                                ; +0x8f, 0x140307d3f\nlea     rax, ??_7SelectListIconLayer@@6B@_5; const SelectListIconLayer::`vftable' ; +0x96, 0x140307d46\nmov     [rdi+198h], rax                                                ; +0x9d, 0x140307d4d\nlea     rax, ??_7SelectListIconLayer@@6B@_6; const SelectListIconLayer::`vftable' ; +0xa4, 0x140307d54\nmov     [rdi+1B0h], rax                                                ; +0xab, 0x140307d5b\nmov     qword ptr [rdi+278h], 0                                        ; +0xb2, 0x140307d62\nmov     dword ptr [rdi+280h], 0                                        ; +0xbd, 0x140307d6d\nmov     qword ptr [rdi+288h], 0                                        ; +0xc7, 0x140307d77\nmov     edx, ebx                                                       ; +0xd2, 0x140307d82\nmov     rcx, rdi                                                       ; +0xd4, 0x140307d84\ncall    SelectListIconLayer__init                                      ; +0xd7, 0x140307d87\nmov     rcx, rdi                                                       ; +0xdc, 0x140307d8c\ntest    al, al                                                         ; +0xdf, 0x140307d8f\njz      short loc_140307D9B                                            ; +0xe1, 0x140307d91\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe3, 0x140307d93\njmp     short loc_140307DA8                                            ; +0xe9, 0x140307d99\nmov     rax, [rdi]                                                     ; +0xeb, 0x140307d9b\nmov     edx, 1                                                         ; +0xee, 0x140307d9e\ncall    qword ptr [rax+8]                                              ; +0xf3, 0x140307da3\nxor     edi, edi                                                       ; +0xf6, 0x140307da6\nlea     rax, [rsi+328h]                                                ; +0xf8, 0x140307da8\nmov     [rdi+288h], rax                                                ; +0xff, 0x140307daf\nmov     rax, [rdi]                                                     ; +0x106, 0x140307db6\nmov     rdx, [rax+410h]                                                ; +0x109, 0x140307db9\nlea     rax, FLAlertLayer__show                                        ; +0x110, 0x140307dc0\nmov     rcx, rdi                                                       ; +0x117, 0x140307dc7\ncmp     rdx, rax                                                       ; +0x11a, 0x140307dca\njnz     short loc_140307DE3                                            ; +0x11d, 0x140307dcd\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x11f, 0x140307dcf\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x124, 0x140307dd4\nadd     rsp, 20h                                                       ; +0x129, 0x140307dd9\npop     rdi                                                            ; +0x12d, 0x140307ddd\njmp     FLAlertLayer__show                                             ; +0x12e, 0x140307dde\ncall    rdx                                                            ; +0x133, 0x140307de3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x135, 0x140307de5\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x13a, 0x140307dea\nadd     rsp, 20h                                                       ; +0x13f, 0x140307def\npop     rdi                                                            ; +0x143, 0x140307df3\nretn                                                                   ; +0x144, 0x140307df4", "xrefs": ["LevelListLayer::init @ 0x140304c05", "<???> @ 0x1406d455c"], "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"}