{"type": "func", "start": 5370303440, "end": 5370303591, "name": "EditorSFXManager::findBinding", "pseudocode": "// \n// EditorSFXManager::findBinding from 0x1401853d0 to 0x140185467 (151 bytes)\n// \n// 10 xrefs:\n// > EditorSFXActionConfigLayer::init @ 0x140183bcd\n// > EditorSFXActionConfigLayer::refreshRows @ 0x140183dcc\n// > EditorSFXActionConfigLayer::refreshModeButtons @ 0x14018484d\n// > EditorSFXActionConfigLayer::onToggleMode @ 0x1401848e2\n// > EditorSFXActionConfigLayer::onPreviewSound @ 0x140184aa5\n// > EditorSFXActionConfigLayer::onEditSound @ 0x140184b65\n// > EditorSFXManager::playAction @ 0x140185611\n// > EditorSFXManager::removeSoundAt @ 0x140185b24\n// > EditorSFXManager::deserializeAll @ 0x14018940d\n// > EditorSoundsLayer::buildContentForTab @ 0x14019ddc6\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__int64 __fastcall EditorSFXManager::findBinding(_QWORD *a1, int a2)\n{\n  __int64 v2; // r8\n  __int64 *v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rcx\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  if ( v4 == v2 )\n    return 0;\n  else\n    return *(_QWORD *)(v4 + 24);\n}", "assembly": "; \n; EditorSFXManager::findBinding from 0x1401853d0 to 0x140185467 (151 bytes)\n; \n; 10 xrefs:\n; > EditorSFXActionConfigLayer::init @ 0x140183bcd\n; > EditorSFXActionConfigLayer::refreshRows @ 0x140183dcc\n; > EditorSFXActionConfigLayer::refreshModeButtons @ 0x14018484d\n; > EditorSFXActionConfigLayer::onToggleMode @ 0x1401848e2\n; > EditorSFXActionConfigLayer::onPreviewSound @ 0x140184aa5\n; > EditorSFXActionConfigLayer::onEditSound @ 0x140184b65\n; > EditorSFXManager::playAction @ 0x140185611\n; > EditorSFXManager::removeSoundAt @ 0x140185b24\n; > EditorSFXManager::deserializeAll @ 0x14018940d\n; > EditorSoundsLayer::buildContentForTab @ 0x14019ddc6\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     r10, rcx                                                       ; +0x0, 0x1401853d0\nmovzx   r9d, dl                                                        ; +0x3, 0x1401853d3\nmov     r11, 100000001B3h                                              ; +0x7, 0x1401853d7\nmov     rax, 0CBF29CE484222325h                                        ; +0x11, 0x1401853e1\nxor     r9, rax                                                        ; +0x1b, 0x1401853eb\nmov     eax, edx                                                       ; +0x1e, 0x1401853ee\nsar     eax, 8                                                         ; +0x20, 0x1401853f0\nmovzx   r8d, al                                                        ; +0x23, 0x1401853f3\nmov     eax, edx                                                       ; +0x27, 0x1401853f7\nimul    r9, r11                                                        ; +0x29, 0x1401853f9\nsar     eax, 10h                                                       ; +0x2d, 0x1401853fd\nxor     r9, r8                                                         ; +0x30, 0x140185400\nmovzx   ecx, al                                                        ; +0x33, 0x140185403\nmov     r8, [r10+8]                                                    ; +0x36, 0x140185406\nmov     eax, edx                                                       ; +0x3a, 0x14018540a\nimul    r9, r11                                                        ; +0x3c, 0x14018540c\nsar     eax, 18h                                                       ; +0x40, 0x140185410\nxor     r9, rcx                                                        ; +0x43, 0x140185413\nmovzx   ecx, al                                                        ; +0x46, 0x140185416\nimul    r9, r11                                                        ; +0x49, 0x140185419\nxor     rcx, r9                                                        ; +0x4d, 0x14018541d\nimul    rcx, r11                                                       ; +0x50, 0x140185420\nand     rcx, [r10+30h]                                                 ; +0x54, 0x140185424\nshl     rcx, 4                                                         ; +0x58, 0x140185428\nadd     rcx, [r10+18h]                                                 ; +0x5c, 0x14018542c\nmov     rax, [rcx+8]                                                   ; +0x60, 0x140185430\ncmp     rax, r8                                                        ; +0x64, 0x140185434\njz      short loc_140185451                                            ; +0x67, 0x140185437\nmov     rcx, [rcx]                                                     ; +0x69, 0x140185439\ncmp     edx, [rax+10h]                                                 ; +0x6c, 0x14018543c\njz      short loc_140185453                                            ; +0x6f, 0x14018543f\ncmp     rax, rcx                                                       ; +0x71, 0x140185441\njz      short loc_140185451                                            ; +0x74, 0x140185444\nmov     rax, [rax+8]                                                   ; +0x76, 0x140185446\ncmp     edx, [rax+10h]                                                 ; +0x7a, 0x14018544a\njnz     short loc_140185441                                            ; +0x7d, 0x14018544d\njmp     short loc_140185453                                            ; +0x7f, 0x14018544f\nxor     eax, eax                                                       ; +0x81, 0x140185451\ntest    rax, rax                                                       ; +0x83, 0x140185453\ncmovz   rax, r8                                                        ; +0x86, 0x140185456\ncmp     rax, r8                                                        ; +0x8a, 0x14018545a\njnz     short loc_140185462                                            ; +0x8d, 0x14018545d\nxor     eax, eax                                                       ; +0x8f, 0x14018545f\nretn                                                                   ; +0x91, 0x140185461\nmov     rax, [rax+18h]                                                 ; +0x92, 0x140185462\nretn                                                                   ; +0x96, 0x140185466", "xrefs": ["EditorSFXActionConfigLayer::init @ 0x140183bcd", "EditorSFXActionConfigLayer::refreshRows @ 0x140183dcc", "EditorSFXActionConfigLayer::refreshModeButtons @ 0x14018484d", "EditorSFXActionConfigLayer::onToggleMode @ 0x1401848e2", "EditorSFXActionConfigLayer::onPreviewSound @ 0x140184aa5", "EditorSFXActionConfigLayer::onEditSound @ 0x140184b65", "EditorSFXManager::playAction @ 0x140185611", "EditorSFXManager::removeSoundAt @ 0x140185b24", "EditorSFXManager::deserializeAll @ 0x14018940d", "EditorSoundsLayer::buildContentForTab @ 0x14019ddc6"], "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"}