{"type": "func", "start": 5370306160, "end": 5370306326, "name": "EditorSFXManager::createNewSound", "pseudocode": "// \n// EditorSFXManager::createNewSound from 0x140185e70 to 0x140185f16 (166 bytes)\n// \n// 3 xrefs:\n// > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1401849b4\n// > EditorSFXManager::decodeSound @ 0x1401882d5\n// > <???> @ 0x140918e3c\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:38 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorSFXManager::createNewSound(int a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rbx\n  void *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = operator new(0x808u);\n  v2 = SFXTriggerGameObject::SFXTriggerGameObject(v5);\n  v3 = v2;\n  if ( v2 )\n  {\n    if ( (unsigned __int8)EffectGameObject::init(v2, \"GJ_sfxIcon_001.png\") )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n      *(_DWORD *)(v3 + 1888) = a1;\n      *(_DWORD *)(v3 + 1908) = 1065353216;\n      *(_QWORD *)(v3 + 1900) = 0;\n      *(_QWORD *)(v3 + 1912) = 0;\n      *(_QWORD *)(v3 + 1920) = 0;\n      *(_BYTE *)(v3 + 1930) = 0;\n      *(_BYTE *)(v3 + 1928) = 0;\n      *(_DWORD *)(v3 + 1972) = 0;\n      return v3;\n    }\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n  }\n  return 0;\n}", "assembly": "; \n; EditorSFXManager::createNewSound from 0x140185e70 to 0x140185f16 (166 bytes)\n; \n; 3 xrefs:\n; > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1401849b4\n; > EditorSFXManager::decodeSound @ 0x1401882d5\n; > <???> @ 0x140918e3c\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:38 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140185e70\npush    rdi                                                            ; +0x5, 0x140185e75\nsub     rsp, 20h                                                       ; +0x6, 0x140185e76\nmov     edi, ecx                                                       ; +0xa, 0x140185e7a\nmov     ecx, 808h; Size                                                ; +0xc, 0x140185e7c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x140185e81\nmov     [rsp+28h+arg_8], rax                                           ; +0x16, 0x140185e86\nmov     rcx, rax                                                       ; +0x1b, 0x140185e8b\ncall    SFXTriggerGameObject__SFXTriggerGameObject                     ; +0x1e, 0x140185e8e\nmov     rbx, rax                                                       ; +0x23, 0x140185e93\ntest    rax, rax                                                       ; +0x26, 0x140185e96\njz      short loc_140185F09                                            ; +0x29, 0x140185e99\nlea     rdx, aGjSfxicon001Pn; \"GJ_sfxIcon_001.png\"                     ; +0x2b, 0x140185e9b\nmov     rcx, rax                                                       ; +0x32, 0x140185ea2\ncall    EffectGameObject__init                                         ; +0x35, 0x140185ea5\nmov     rcx, rbx                                                       ; +0x3a, 0x140185eaa\ntest    al, al                                                         ; +0x3d, 0x140185ead\njz      short loc_140185EFE                                            ; +0x3f, 0x140185eaf\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x41, 0x140185eb1\nmov     [rbx+760h], edi                                                ; +0x47, 0x140185eb7\nmov     dword ptr [rbx+774h], 3F800000h                                ; +0x4d, 0x140185ebd\nxor     eax, eax                                                       ; +0x57, 0x140185ec7\nmov     [rbx+76Ch], rax                                                ; +0x59, 0x140185ec9\nmov     [rbx+778h], rax                                                ; +0x60, 0x140185ed0\nmov     [rbx+780h], rax                                                ; +0x67, 0x140185ed7\nmov     [rbx+78Ah], al                                                 ; +0x6e, 0x140185ede\nmov     [rbx+788h], al                                                 ; +0x74, 0x140185ee4\nmov     [rbx+7B4h], eax                                                ; +0x7a, 0x140185eea\nmov     rax, rbx                                                       ; +0x80, 0x140185ef0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x140185ef3\nadd     rsp, 20h                                                       ; +0x88, 0x140185ef8\npop     rdi                                                            ; +0x8c, 0x140185efc\nretn                                                                   ; +0x8d, 0x140185efd\nmov     rax, [rbx]                                                     ; +0x8e, 0x140185efe\nmov     edx, 1                                                         ; +0x91, 0x140185f01\ncall    qword ptr [rax+8]                                              ; +0x96, 0x140185f06\nxor     eax, eax                                                       ; +0x99, 0x140185f09\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9b, 0x140185f0b\nadd     rsp, 20h                                                       ; +0xa0, 0x140185f10\npop     rdi                                                            ; +0xa4, 0x140185f14\nretn                                                                   ; +0xa5, 0x140185f15", "xrefs": ["EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1401849b4", "EditorSFXManager::decodeSound @ 0x1401882d5", "<???> @ 0x140918e3c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}