{"type": "func", "start": 5370329200, "end": 5370329313, "name": "EditorSFXManager::getMyConfigForSoundID", "pseudocode": "// \n// EditorSFXManager::getMyConfigForSoundID from 0x14018b870 to 0x14018b8e1 (113 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198f6b\n// > <???> @ 0x140918f68\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:40 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall EditorSFXManager::getMyConfigForSoundID(__int64 a1, int a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebx\n  struct cocos2d::CCObject *result; // rax\n\n  v4 = *(cocos2d::CCArray **)(a1 + 216);\n  if ( !v4 )\n    return nullptr;\n  if ( a2 <= 0 )\n    return nullptr;\n  v5 = 0;\n  if ( !cocos2d::CCArray::count(v4) )\n    return nullptr;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 216), v5);\n    if ( result )\n    {\n      if ( *((_DWORD *)result + 80) == a2 )\n        break;\n    }\n    if ( ++v5 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 216)) )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXManager::getMyConfigForSoundID from 0x14018b870 to 0x14018b8e1 (113 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198f6b\n; > <???> @ 0x140918f68\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:40 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14018b870\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14018b875\npush    rdi                                                            ; +0xa, 0x14018b87a\nsub     rsp, 20h                                                       ; +0xb, 0x14018b87b\nmov     rdi, rcx                                                       ; +0xf, 0x14018b87f\nmov     esi, edx                                                       ; +0x12, 0x14018b882\nmov     rcx, [rcx+0D8h]                                                ; +0x14, 0x14018b884\ntest    rcx, rcx                                                       ; +0x1b, 0x14018b88b\njz      short loc_14018B8CF                                            ; +0x1e, 0x14018b88e\ntest    edx, edx                                                       ; +0x20, 0x14018b890\njle     short loc_14018B8CF                                            ; +0x22, 0x14018b892\nxor     ebx, ebx                                                       ; +0x24, 0x14018b894\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x26, 0x14018b896\ntest    eax, eax                                                       ; +0x2c, 0x14018b89c\njz      short loc_14018B8CF                                            ; +0x2e, 0x14018b89e\nmov     rcx, [rdi+0D8h]                                                ; +0x30, 0x14018b8a0\nmov     edx, ebx                                                       ; +0x37, 0x14018b8a7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14018b8a9\ntest    rax, rax                                                       ; +0x3f, 0x14018b8af\njz      short loc_14018B8BC                                            ; +0x42, 0x14018b8b2\ncmp     [rax+140h], esi                                                ; +0x44, 0x14018b8b4\njz      short loc_14018B8D1                                            ; +0x4a, 0x14018b8ba\nmov     rcx, [rdi+0D8h]                                                ; +0x4c, 0x14018b8bc\ninc     ebx                                                            ; +0x53, 0x14018b8c3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x14018b8c5\ncmp     ebx, eax                                                       ; +0x5b, 0x14018b8cb\njb      short loc_14018B8A0                                            ; +0x5d, 0x14018b8cd\nxor     eax, eax                                                       ; +0x5f, 0x14018b8cf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x14018b8d1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x66, 0x14018b8d6\nadd     rsp, 20h                                                       ; +0x6b, 0x14018b8db\npop     rdi                                                            ; +0x6f, 0x14018b8df\nretn                                                                   ; +0x70, 0x14018b8e0", "xrefs": ["EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198f6b", "<???> @ 0x140918f68"], "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"}