{"type": "func", "start": 13368784, "end": 13368916, "name": "EditorSFXManager::getMyConfigForSoundID", "pseudocode": "// \n// EditorSFXManager::getMyConfigForSoundID from 0xcbfdd0 to 0xcbfe54 (132 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce1d4\n// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0xccf8d4\n// > <???> @ 0xdc7e0\n// \n// This function is hookable on this platform (idp: arm, 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 13:06:16 +0000\n// \n\n__int64 __fastcall EditorSFXManager::getMyConfigForSoundID(EditorSFXManager *this, int a2)\n{\n  cocos2d::CCArray *v3; // x0\n  int v5; // w0\n  unsigned int v6; // w1\n  unsigned int v7; // w19\n  __int64 result; // x0\n  bool v9; // cf\n\n  v3 = *((cocos2d::CCArray **)this + 19);\n  if ( a2 <= 0 )\n    return 0;\n  if ( !v3 )\n    return 0;\n  v5 = cocos2d::CCArray::count(v3);\n  v6 = 0;\n  v7 = 1;\n  if ( !v5 )\n    return 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 19), v6);\n    if ( result )\n    {\n      if ( a2 == *(_DWORD *)(result + 316) )\n        break;\n    }\n    v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 19));\n    v6 = v7++;\n    if ( v9 )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXManager::getMyConfigForSoundID from 0xcbfdd0 to 0xcbfe54 (132 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce1d4\n; > EditorSoundConfigInfoLayer::uploadActionFinished @ 0xccf8d4\n; > <???> @ 0xdc7e0\n; \n; This function is hookable on this platform (idp: arm, 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 13:06:16 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xcbfdd0\nCMP             W1, WZR                                                ; +0x4, 0xcbfdd4\nMOV             X29, SP                                                ; +0x8, 0xcbfdd8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xcbfddc\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0xcbfde0\nMOV             X20, X0                                                ; +0x14, 0xcbfde4\nLDR             X0, [X0,#0x98]; this                                   ; +0x18, 0xcbfde8\nB.LE            loc_CBFE40                                             ; +0x1c, 0xcbfdec\nCBZ             X0, loc_CBFE40                                         ; +0x20, 0xcbfdf0\nMOV             W19, #0                                                ; +0x24, 0xcbfdf4\nMOV             W21, W1                                                ; +0x28, 0xcbfdf8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0xcbfdfc\nCMP             W19, W0                                                ; +0x30, 0xcbfe00\nMOV             W1, W19; unsigned int                                  ; +0x34, 0xcbfe04\nADD             W19, W19, #1                                           ; +0x38, 0xcbfe08\nB.CS            loc_CBFE40                                             ; +0x3c, 0xcbfe0c\nLDR             X0, [X20,#0x98]; this                                  ; +0x40, 0xcbfe10\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0xcbfe14\nCBZ             X0, loc_CBFE28                                         ; +0x48, 0xcbfe18\nLDR             W2, [X0,#0x13C]                                        ; +0x4c, 0xcbfe1c\nCMP             W21, W2                                                ; +0x50, 0xcbfe20\nB.EQ            loc_CBFE44                                             ; +0x54, 0xcbfe24\nLDR             X0, [X20,#0x98]; this                                  ; +0x58, 0xcbfe28\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0xcbfe2c\nCMP             W19, W0                                                ; +0x60, 0xcbfe30\nMOV             W1, W19                                                ; +0x64, 0xcbfe34\nADD             W19, W19, #1                                           ; +0x68, 0xcbfe38\nB.CC            loc_CBFE10                                             ; +0x6c, 0xcbfe3c\nMOV             X0, #0                                                 ; +0x70, 0xcbfe40\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x74, 0xcbfe44\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x78, 0xcbfe48\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0xcbfe4c\nRET                                                                    ; +0x80, 0xcbfe50", "xrefs": ["EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce1d4", "EditorSoundConfigInfoLayer::uploadActionFinished @ 0xccf8d4", "<???> @ 0xdc7e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}