{"type": "func", "start": 5370305104, "end": 5370305292, "name": "EditorSFXManager::hasSoundsForAction", "pseudocode": "// \n// EditorSFXManager::hasSoundsForAction from 0x140185a50 to 0x140185b0c (188 bytes)\n// \n// 26 xrefs:\n// > EditorUI::toggleMode @ 0x1401afdbe\n// > EditorUI::playSoundForCreatedObject @ 0x1401b2788\n// > EditorUI::toggleSwipe @ 0x1401b3492\n// > EditorUI::toggleFreeMove @ 0x1401b356c\n// > EditorUI::toggleSnap @ 0x1401b3678\n// > EditorUI::toggleEnableRotate @ 0x1401b3762\n// > EditorUI::onHideUIBtn @ 0x1401b3cdb\n// > EditorUI::onShowUIBtn @ 0x1401b3def\n// > EditorUI::editObjectSpecial @ 0x1401bd508\n// > EditorUI::editObjectSpecial @ 0x1401bdbff\n// > EditorUI::editObjectSpecial @ 0x1401bdcc9\n// > EditorUI::editGroup @ 0x1401be7ac\n// > EditorUI::handleEditorAction @ 0x1401c2b53\n// > EditorUI::handleEditorAction @ 0x1401c2f3d\n// > EditorUI::handleEditorAction @ 0x1401c3381\n// > EditorUI::handleEditorAction @ 0x1401c4408\n// > EditorUI::onCopyState @ 0x1401c705b\n// > EditorUI::onPasteState @ 0x1401c7133\n// > EditorUI::onPasteColor @ 0x1401c72fb\n// > sub_14051E830 @ 0x14051e895\n// > sub_14051E830 @ 0x14051e8b7\n// > PlayLayer::tryShowDeathMarkers @ 0x140520564\n// > PlayLayer::tryShowDeathMarkers @ 0x1405205aa\n// > PlayLayer::tryShowDeathMarkers @ 0x1405205c2\n// > PlayLayer::tryShowDeathMarkers @ 0x1405205fb\n// > <???> @ 0x140918e00\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\nbool __fastcall EditorSFXManager::hasSoundsForAction(_QWORD *a1, int a2)\n{\n  __int64 v2; // r8\n  __int64 *v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCArray **v6; // rcx\n  cocos2d::CCArray *v7; // rcx\n  bool result; // al\n\n  v2 = a1[1];\n  v3 = (__int64 *)(a1[3]\n                 + 16\n                 * (a1[6]\n                  & (0x100000001B3LL\n                   * ((0x100000001B3LL\n                     * (BYTE2(a2)\n                      ^ (0x100000001B3LL\n                       * (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL))))))\n                    ^ HIBYTE(a2)))));\n  v4 = v3[1];\n  if ( v4 != v2 )\n  {\n    v5 = *v3;\n    if ( a2 == *(_DWORD *)(v4 + 16) )\n      goto LABEL_7;\n    while ( v4 != v5 )\n    {\n      v4 = *(_QWORD *)(v4 + 8);\n      if ( a2 == *(_DWORD *)(v4 + 16) )\n        goto LABEL_7;\n    }\n  }\n  v4 = 0;\nLABEL_7:\n  if ( !v4 )\n    v4 = v2;\n  result = false;\n  if ( v4 != v2 )\n  {\n    v6 = *(cocos2d::CCArray ***)(v4 + 24);\n    if ( v6 )\n    {\n      v7 = *v6;\n      if ( v7 )\n      {\n        if ( cocos2d::CCArray::count(v7) )\n          return true;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXManager::hasSoundsForAction from 0x140185a50 to 0x140185b0c (188 bytes)\n; \n; 26 xrefs:\n; > EditorUI::toggleMode @ 0x1401afdbe\n; > EditorUI::playSoundForCreatedObject @ 0x1401b2788\n; > EditorUI::toggleSwipe @ 0x1401b3492\n; > EditorUI::toggleFreeMove @ 0x1401b356c\n; > EditorUI::toggleSnap @ 0x1401b3678\n; > EditorUI::toggleEnableRotate @ 0x1401b3762\n; > EditorUI::onHideUIBtn @ 0x1401b3cdb\n; > EditorUI::onShowUIBtn @ 0x1401b3def\n; > EditorUI::editObjectSpecial @ 0x1401bd508\n; > EditorUI::editObjectSpecial @ 0x1401bdbff\n; > EditorUI::editObjectSpecial @ 0x1401bdcc9\n; > EditorUI::editGroup @ 0x1401be7ac\n; > EditorUI::handleEditorAction @ 0x1401c2b53\n; > EditorUI::handleEditorAction @ 0x1401c2f3d\n; > EditorUI::handleEditorAction @ 0x1401c3381\n; > EditorUI::handleEditorAction @ 0x1401c4408\n; > EditorUI::onCopyState @ 0x1401c705b\n; > EditorUI::onPasteState @ 0x1401c7133\n; > EditorUI::onPasteColor @ 0x1401c72fb\n; > sub_14051E830 @ 0x14051e895\n; > sub_14051E830 @ 0x14051e8b7\n; > PlayLayer::tryShowDeathMarkers @ 0x140520564\n; > PlayLayer::tryShowDeathMarkers @ 0x1405205aa\n; > PlayLayer::tryShowDeathMarkers @ 0x1405205c2\n; > PlayLayer::tryShowDeathMarkers @ 0x1405205fb\n; > <???> @ 0x140918e00\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; \nsub     rsp, 28h                                                       ; +0x0, 0x140185a50\nmov     r10, rcx                                                       ; +0x4, 0x140185a54\nmovzx   r9d, dl                                                        ; +0x7, 0x140185a57\nmov     r11, 100000001B3h                                              ; +0xb, 0x140185a5b\nmov     rax, 0CBF29CE484222325h                                        ; +0x15, 0x140185a65\nxor     r9, rax                                                        ; +0x1f, 0x140185a6f\nmov     eax, edx                                                       ; +0x22, 0x140185a72\nsar     eax, 8                                                         ; +0x24, 0x140185a74\nmovzx   r8d, al                                                        ; +0x27, 0x140185a77\nmov     eax, edx                                                       ; +0x2b, 0x140185a7b\nimul    r9, r11                                                        ; +0x2d, 0x140185a7d\nsar     eax, 10h                                                       ; +0x31, 0x140185a81\nxor     r9, r8                                                         ; +0x34, 0x140185a84\nmovzx   ecx, al                                                        ; +0x37, 0x140185a87\nmov     r8, [r10+8]                                                    ; +0x3a, 0x140185a8a\nmov     eax, edx                                                       ; +0x3e, 0x140185a8e\nimul    r9, r11                                                        ; +0x40, 0x140185a90\nsar     eax, 18h                                                       ; +0x44, 0x140185a94\nxor     r9, rcx                                                        ; +0x47, 0x140185a97\nmovzx   ecx, al                                                        ; +0x4a, 0x140185a9a\nimul    r9, r11                                                        ; +0x4d, 0x140185a9d\nxor     rcx, r9                                                        ; +0x51, 0x140185aa1\nimul    rcx, r11                                                       ; +0x54, 0x140185aa4\nand     rcx, [r10+30h]                                                 ; +0x58, 0x140185aa8\nshl     rcx, 4                                                         ; +0x5c, 0x140185aac\nadd     rcx, [r10+18h]                                                 ; +0x60, 0x140185ab0\nmov     rax, [rcx+8]                                                   ; +0x64, 0x140185ab4\ncmp     rax, r8                                                        ; +0x68, 0x140185ab8\njz      short loc_140185AD5                                            ; +0x6b, 0x140185abb\nmov     rcx, [rcx]                                                     ; +0x6d, 0x140185abd\ncmp     edx, [rax+10h]                                                 ; +0x70, 0x140185ac0\njz      short loc_140185AD7                                            ; +0x73, 0x140185ac3\ncmp     rax, rcx                                                       ; +0x75, 0x140185ac5\njz      short loc_140185AD5                                            ; +0x78, 0x140185ac8\nmov     rax, [rax+8]                                                   ; +0x7a, 0x140185aca\ncmp     edx, [rax+10h]                                                 ; +0x7e, 0x140185ace\njnz     short loc_140185AC5                                            ; +0x81, 0x140185ad1\njmp     short loc_140185AD7                                            ; +0x83, 0x140185ad3\nxor     eax, eax                                                       ; +0x85, 0x140185ad5\ntest    rax, rax                                                       ; +0x87, 0x140185ad7\ncmovz   rax, r8                                                        ; +0x8a, 0x140185ada\ncmp     rax, r8                                                        ; +0x8e, 0x140185ade\njz      short loc_140185B05                                            ; +0x91, 0x140185ae1\nmov     rcx, [rax+18h]                                                 ; +0x93, 0x140185ae3\ntest    rcx, rcx                                                       ; +0x97, 0x140185ae7\njz      short loc_140185B05                                            ; +0x9a, 0x140185aea\nmov     rcx, [rcx]                                                     ; +0x9c, 0x140185aec\ntest    rcx, rcx                                                       ; +0x9f, 0x140185aef\njz      short loc_140185B05                                            ; +0xa2, 0x140185af2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x140185af4\ntest    eax, eax                                                       ; +0xaa, 0x140185afa\njz      short loc_140185B05                                            ; +0xac, 0x140185afc\nmov     al, 1                                                          ; +0xae, 0x140185afe\nadd     rsp, 28h                                                       ; +0xb0, 0x140185b00\nretn                                                                   ; +0xb4, 0x140185b04\nxor     al, al                                                         ; +0xb5, 0x140185b05\nadd     rsp, 28h                                                       ; +0xb7, 0x140185b07\nretn                                                                   ; +0xbb, 0x140185b0b", "xrefs": ["EditorUI::toggleMode @ 0x1401afdbe", "EditorUI::playSoundForCreatedObject @ 0x1401b2788", "EditorUI::toggleSwipe @ 0x1401b3492", "EditorUI::toggleFreeMove @ 0x1401b356c", "EditorUI::toggleSnap @ 0x1401b3678", "EditorUI::toggleEnableRotate @ 0x1401b3762", "EditorUI::onHideUIBtn @ 0x1401b3cdb", "EditorUI::onShowUIBtn @ 0x1401b3def", "EditorUI::editObjectSpecial @ 0x1401bd508", "EditorUI::editObjectSpecial @ 0x1401bdbff", "EditorUI::editObjectSpecial @ 0x1401bdcc9", "EditorUI::editGroup @ 0x1401be7ac", "EditorUI::handleEditorAction @ 0x1401c2b53", "EditorUI::handleEditorAction @ 0x1401c2f3d", "EditorUI::handleEditorAction @ 0x1401c3381", "EditorUI::handleEditorAction @ 0x1401c4408", "EditorUI::onCopyState @ 0x1401c705b", "EditorUI::onPasteState @ 0x1401c7133", "EditorUI::onPasteColor @ 0x1401c72fb", "sub_14051E830 @ 0x14051e895", "sub_14051E830 @ 0x14051e8b7", "PlayLayer::tryShowDeathMarkers @ 0x140520564", "PlayLayer::tryShowDeathMarkers @ 0x1405205aa", "PlayLayer::tryShowDeathMarkers @ 0x1405205c2", "PlayLayer::tryShowDeathMarkers @ 0x1405205fb", "<???> @ 0x140918e00"], "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"}