{"type": "func", "start": 5373428416, "end": 5373428724, "name": "SFXBrowser::onSorting", "pseudocode": "// \n// SFXBrowser::onSorting from 0x1404802c0 to 0x1404803f4 (308 bytes)\n// \n// 2 xrefs:\n// > SFXBrowser::init @ 0x14047f054\n// > <???> @ 0x1406db9cc\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 SFXBrowser::onSorting(SFXBrowser *a1, cocos2d::CCObject *a2)\n{\n  AudioSortType m_sortType; // ebx\n  SelectSFXSortLayer *v4; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  if ( a1->m_searchResult )\n  {\n    m_sortType = a1->m_sortType;\n    v4 = (SelectSFXSortLayer *)operator new(0x288u);\n    FLAlertLayer::FLAlertLayer(v4);\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectSFXSortLayer_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectSFXSortLayer::`vftable';\n    v4->m_sortType = NameAscending;\n    v4->m_delegate = nullptr;\n    if ( SelectSFXSortLayer::init(v4, m_sortType) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      ((void (__fastcall *)(SelectSFXSortLayer *, __int64))v4->~SelectSFXSortLayer)(v4, 1);\n      v4 = nullptr;\n    }\n    v4->m_delegate = &a1->SelectSFXSortDelegate;\n    show = (void (*)(FLAlertLayer *))v4->show;\n    if ( show == FLAlertLayer::show )\n      FLAlertLayer::show(v4);\n    else\n      show(v4);\n  }\n}", "assembly": "; \n; SFXBrowser::onSorting from 0x1404802c0 to 0x1404803f4 (308 bytes)\n; \n; 2 xrefs:\n; > SFXBrowser::init @ 0x14047f054\n; > <???> @ 0x1406db9cc\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, 0x1404802c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404802c5\npush    rdi                                                            ; +0xa, 0x1404802ca\nsub     rsp, 20h                                                       ; +0xb, 0x1404802cb\nmov     rsi, rcx                                                       ; +0xf, 0x1404802cf\ncmp     qword ptr [rcx+298h], 0                                        ; +0x12, 0x1404802d2\njz      loc_1404803E4                                                  ; +0x1a, 0x1404802da\nmov     ebx, [rcx+318h]                                                ; +0x20, 0x1404802e0\nmov     ecx, 288h; Size                                                ; +0x26, 0x1404802e6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x1404802eb\nmov     rdi, rax                                                       ; +0x30, 0x1404802f0\nmov     [rsp+28h+arg_0], rax                                           ; +0x33, 0x1404802f3\nmov     rcx, rax                                                       ; +0x38, 0x1404802f8\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x3b, 0x1404802fb\nlea     rax, ??_7SelectSFXSortLayer@@6B@; const SelectSFXSortLayer::`vftable' ; +0x40, 0x140480300\nmov     [rdi], rax                                                     ; +0x47, 0x140480307\nlea     rax, ??_7SelectSFXSortLayer@@6B@_0; const SelectSFXSortLayer::`vftable' ; +0x4a, 0x14048030a\nmov     [rdi+140h], rax                                                ; +0x51, 0x140480311\nlea     rax, ??_7SelectSFXSortLayer@@6B@_1; const SelectSFXSortLayer::`vftable' ; +0x58, 0x140480318\nmov     [rdi+148h], rax                                                ; +0x5f, 0x14048031f\nlea     rax, ??_7SelectSFXSortLayer@@6B@_2; const SelectSFXSortLayer::`vftable' ; +0x66, 0x140480326\nmov     [rdi+150h], rax                                                ; +0x6d, 0x14048032d\nlea     rax, ??_7SelectSFXSortLayer@@6B@_3; const SelectSFXSortLayer::`vftable' ; +0x74, 0x140480334\nmov     [rdi+158h], rax                                                ; +0x7b, 0x14048033b\nlea     rax, ??_7SelectSFXSortLayer@@6B@_4; const SelectSFXSortLayer::`vftable' ; +0x82, 0x140480342\nmov     [rdi+160h], rax                                                ; +0x89, 0x140480349\nlea     rax, ??_7SelectSFXSortLayer@@6B@_5; const SelectSFXSortLayer::`vftable' ; +0x90, 0x140480350\nmov     [rdi+198h], rax                                                ; +0x97, 0x140480357\nlea     rax, ??_7SelectSFXSortLayer@@6B@_6; const SelectSFXSortLayer::`vftable' ; +0x9e, 0x14048035e\nmov     [rdi+1B0h], rax                                                ; +0xa5, 0x140480365\nmov     dword ptr [rdi+278h], 0                                        ; +0xac, 0x14048036c\nmov     qword ptr [rdi+280h], 0                                        ; +0xb6, 0x140480376\nmov     edx, ebx                                                       ; +0xc1, 0x140480381\nmov     rcx, rdi                                                       ; +0xc3, 0x140480383\ncall    SelectSFXSortLayer__init                                       ; +0xc6, 0x140480386\nmov     rcx, rdi                                                       ; +0xcb, 0x14048038b\ntest    al, al                                                         ; +0xce, 0x14048038e\njz      short loc_14048039A                                            ; +0xd0, 0x140480390\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd2, 0x140480392\njmp     short loc_1404803A7                                            ; +0xd8, 0x140480398\nmov     rax, [rdi]                                                     ; +0xda, 0x14048039a\nmov     edx, 1                                                         ; +0xdd, 0x14048039d\ncall    qword ptr [rax+8]                                              ; +0xe2, 0x1404803a2\nxor     edi, edi                                                       ; +0xe5, 0x1404803a5\nlea     rax, [rsi+290h]                                                ; +0xe7, 0x1404803a7\nmov     [rdi+280h], rax                                                ; +0xee, 0x1404803ae\nmov     rax, [rdi]                                                     ; +0xf5, 0x1404803b5\nmov     rdx, [rax+410h]                                                ; +0xf8, 0x1404803b8\nlea     rax, FLAlertLayer__show                                        ; +0xff, 0x1404803bf\nmov     rcx, rdi                                                       ; +0x106, 0x1404803c6\ncmp     rdx, rax                                                       ; +0x109, 0x1404803c9\njnz     short loc_1404803E2                                            ; +0x10c, 0x1404803cc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x10e, 0x1404803ce\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x113, 0x1404803d3\nadd     rsp, 20h                                                       ; +0x118, 0x1404803d8\npop     rdi                                                            ; +0x11c, 0x1404803dc\njmp     FLAlertLayer__show                                             ; +0x11d, 0x1404803dd\ncall    rdx                                                            ; +0x122, 0x1404803e2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x124, 0x1404803e4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x129, 0x1404803e9\nadd     rsp, 20h                                                       ; +0x12e, 0x1404803ee\npop     rdi                                                            ; +0x132, 0x1404803f2\nretn                                                                   ; +0x133, 0x1404803f3", "xrefs": ["SFXBrowser::init @ 0x14047f054", "<???> @ 0x1406db9cc"], "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"}