{"type": "func", "start": 7884004, "end": 7884376, "name": "EditorSoundConfigInfoLayer::refreshActionButtons", "pseudocode": "// \n// EditorSoundConfigInfoLayer::refreshActionButtons from 0x784ce4 to 0x784e58 (372 bytes)\n// \n// 8 xrefs:\n// > EditorSoundConfigInfoLayer::startDownload @ 0x784e98\n// > EditorSoundConfigInfoLayer::onFavorite @ 0x785220\n// > EditorSoundConfigInfoLayer::onFavorite @ 0x7852ae\n// > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x78578a\n// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x7862c6\n// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x786312\n// > EditorSoundConfigInfoLayer::init @ 0x788182\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7888b0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:31 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::refreshActionButtons(EditorSoundConfigInfoLayer *this)\n{\n  int v2; // r5\n  EditorSFXManager *v3; // r0\n  cocos2d::CCArray **v4; // r0\n  _BOOL4 v5; // r6\n  int v6; // r0\n  int v7; // r1\n  int v8; // r0\n  int v9; // r1\n  int v10; // r0\n  int v11; // r1\n  const char *v12; // r7\n  cocos2d::CCSpriteFrameCache *v13; // r0\n  cocos2d::CCSpriteFrameCache *v14; // r6\n  void (__fastcall *v15)(cocos2d::CCSpriteFrameCache *, int); // r8\n  cocos2d::CCSpriteFrameCache *v16; // r0\n  int v17; // r0\n  int v18; // r0\n  int v19; // r1\n  int v20; // r0\n  int v21; // r0\n  int v22; // r0\n  int v23; // r6\n  int v24; // r3\n  int v25; // r0\n  int result; // r0\n  int v27; // r1\n\n  v2 = *((_DWORD *)this + 187);\n  if ( v2 )\n  {\n    v2 = *(unsigned __int8 *)(v2 + 384);\n    v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n    if ( v3 )\n    {\n      v4 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v3);\n      v5 = EditorSFXManager::getFavoriteConfig(v4, *(_DWORD *)(*((_DWORD *)this + 187) + 264)) != 0;\n    }\n    else\n    {\n      v5 = 0;\n    }\n  }\n  else\n  {\n    v5 = 0;\n  }\n  v6 = *((_DWORD *)this + 194);\n  if ( v6 )\n  {\n    if ( v2 )\n      v7 = *((unsigned __int8 *)this + 764) ^ 1;\n    else\n      v7 = 0;\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 528))(v6, v7);\n  }\n  v8 = *((_DWORD *)this + 195);\n  if ( v8 )\n  {\n    if ( v2 )\n      v9 = *((unsigned __int8 *)this + 764) ^ 1;\n    else\n      v9 = 0;\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 528))(v8, v9);\n  }\n  v10 = *((_DWORD *)this + 196);\n  if ( v10 )\n  {\n    v11 = v2 || v5 ? *((unsigned __int8 *)this + 764) ^ 1 : 0;\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 528))(v10, v11);\n    v12 = v5 ? \"gj_heartOn_001.png\" : \"gj_heartOff_001.png\";\n    v13 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 196) + 536))(*((_DWORD *)this + 196));\n    v14 = v13;\n    if ( v13 )\n    {\n      v15 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v13 + 580);\n      v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13);\n      v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v12);\n      v15(v14, v17);\n    }\n  }\n  v18 = *((_DWORD *)this + 199);\n  if ( v18 )\n  {\n    if ( v2 )\n      v19 = *((unsigned __int8 *)this + 764) ^ 1;\n    else\n      v19 = 0;\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 528))(v18, v19);\n  }\n  v20 = *((_DWORD *)this + 197);\n  if ( v20 )\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 528))(v20, *((unsigned __int8 *)this + 764) ^ 1);\n  v21 = *((_DWORD *)this + 198);\n  if ( v21 )\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 528))(v21, *((unsigned __int8 *)this + 764) ^ 1);\n  v22 = *((_DWORD *)this + 200);\n  if ( v22 )\n  {\n    v23 = *((_DWORD *)this + 187);\n    if ( v23 )\n    {\n      v24 = *(_DWORD *)(v23 + 264);\n      v23 = v24 <= 0 ? 0 : *((unsigned __int8 *)this + 764);\n      if ( v24 > 0 )\n        v23 ^= 1u;\n    }\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 172))(v22, v23);\n    (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 200) + 528))(*((_DWORD *)this + 200), v23);\n  }\n  v25 = *((_DWORD *)this + 202);\n  if ( v25 )\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 528))(v25, *((unsigned __int8 *)this + 764) ^ 1);\n  result = *((_DWORD *)this + 203);\n  if ( result )\n  {\n    if ( v2 )\n      v27 = *((unsigned __int8 *)this + 764) ^ 1;\n    else\n      v27 = 0;\n    return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, v27);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::refreshActionButtons from 0x784ce4 to 0x784e58 (372 bytes)\n; \n; 8 xrefs:\n; > EditorSoundConfigInfoLayer::startDownload @ 0x784e98\n; > EditorSoundConfigInfoLayer::onFavorite @ 0x785220\n; > EditorSoundConfigInfoLayer::onFavorite @ 0x7852ae\n; > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x78578a\n; > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x7862c6\n; > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x786312\n; > EditorSoundConfigInfoLayer::init @ 0x788182\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7888b0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:31 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x784ce4\nMOV             R4, R0                                                 ; +0x4, 0x784ce8\nLDR.W           R5, [R0,#0x2EC]                                        ; +0x6, 0x784cea\nCBZ             R5, loc_784D12                                         ; +0xa, 0x784cee\nLDRB.W          R5, [R5,#0x180]                                        ; +0xc, 0x784cf0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x10, 0x784cf4\nCBZ             R0, loc_784D16                                         ; +0x14, 0x784cf8\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x16, 0x784cfa\nLDR.W           R3, [R4,#0x2EC]                                        ; +0x1a, 0x784cfe\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x1e, 0x784d02\nBL              _ZN16EditorSFXManager17getFavoriteConfigEi; EditorSFXManager::getFavoriteConfig(int) ; +0x22, 0x784d06\nMOVS            R6, R0                                                 ; +0x26, 0x784d0a\nIT NE                                                                  ; +0x28, 0x784d0c\nMOVNE           R6, #1                                                 ; +0x2a, 0x784d0e\nB               loc_784D18                                             ; +0x2c, 0x784d10\nMOV             R6, R5                                                 ; +0x2e, 0x784d12\nB               loc_784D18                                             ; +0x30, 0x784d14\nMOV             R6, R0                                                 ; +0x32, 0x784d16\nLDR.W           R0, [R4,#0x308]                                        ; +0x34, 0x784d18\nCBZ             R0, loc_784D34                                         ; +0x38, 0x784d1c\nLDR             R3, [R0]                                               ; +0x3a, 0x784d1e\nLDR.W           R3, [R3,#0x210]                                        ; +0x3c, 0x784d20\nCBZ             R5, loc_784D30                                         ; +0x40, 0x784d24\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0x42, 0x784d26\nEOR.W           R1, R1, #1                                             ; +0x46, 0x784d2a\nB               loc_784D32                                             ; +0x4a, 0x784d2e\nMOV             R1, R5                                                 ; +0x4c, 0x784d30\nBLX             R3                                                     ; +0x4e, 0x784d32\nLDR.W           R0, [R4,#0x30C]                                        ; +0x50, 0x784d34\nCBZ             R0, loc_784D50                                         ; +0x54, 0x784d38\nLDR             R3, [R0]                                               ; +0x56, 0x784d3a\nLDR.W           R3, [R3,#0x210]                                        ; +0x58, 0x784d3c\nCBZ             R5, loc_784D4C                                         ; +0x5c, 0x784d40\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0x5e, 0x784d42\nEOR.W           R1, R1, #1                                             ; +0x62, 0x784d46\nB               loc_784D4E                                             ; +0x66, 0x784d4a\nMOV             R1, R5                                                 ; +0x68, 0x784d4c\nBLX             R3                                                     ; +0x6a, 0x784d4e\nLDR.W           R0, [R4,#0x310]                                        ; +0x6c, 0x784d50\nCBZ             R0, loc_784DA0                                         ; +0x70, 0x784d54\nLDR             R3, [R0]                                               ; +0x72, 0x784d56\nLDR.W           R3, [R3,#0x210]                                        ; +0x74, 0x784d58\nCBNZ            R5, loc_784D60                                         ; +0x78, 0x784d5c\nCBZ             R6, loc_784D6A                                         ; +0x7a, 0x784d5e\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0x7c, 0x784d60\nEOR.W           R1, R1, #1                                             ; +0x80, 0x784d64\nB               loc_784D6C                                             ; +0x84, 0x784d68\nMOV             R1, R6                                                 ; +0x86, 0x784d6a\nBLX             R3                                                     ; +0x88, 0x784d6c\nCBNZ            R6, loc_784D76                                         ; +0x8a, 0x784d6e\nLDR             R7, =(aGjHeartoff001P - 0x784D76); \"gj_heartOff_001.png\" ; +0x8c, 0x784d70\nADD             R7, PC; \"gj_heartOff_001.png\"                          ; +0x8e, 0x784d72\nB               loc_784D7A                                             ; +0x90, 0x784d74\nLDR             R7, =(aGjHearton001Pn - 0x784D7C); \"gj_heartOn_001.png\" ; +0x92, 0x784d76\nADD             R7, PC; \"gj_heartOn_001.png\"                           ; +0x94, 0x784d78\nLDR.W           R0, [R4,#0x310]                                        ; +0x96, 0x784d7a\nLDR             R3, [R0]                                               ; +0x9a, 0x784d7e\nLDR.W           R3, [R3,#0x218]                                        ; +0x9c, 0x784d80\nBLX             R3                                                     ; +0xa0, 0x784d84\nMOV             R6, R0                                                 ; +0xa2, 0x784d86\nCBZ             R0, loc_784DA0                                         ; +0xa4, 0x784d88\nLDR             R3, [R0]                                               ; +0xa6, 0x784d8a\nLDR.W           R8, [R3,#0x244]                                        ; +0xa8, 0x784d8c\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xac, 0x784d90\nMOV             R1, R7; char *                                         ; +0xb0, 0x784d94\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0xb2, 0x784d96\nMOV             R1, R0                                                 ; +0xb6, 0x784d9a\nMOV             R0, R6                                                 ; +0xb8, 0x784d9c\nBLX             R8                                                     ; +0xba, 0x784d9e\nLDR.W           R0, [R4,#0x31C]                                        ; +0xbc, 0x784da0\nCBZ             R0, loc_784DBC                                         ; +0xc0, 0x784da4\nLDR             R3, [R0]                                               ; +0xc2, 0x784da6\nLDR.W           R3, [R3,#0x210]                                        ; +0xc4, 0x784da8\nCBZ             R5, loc_784DB8                                         ; +0xc8, 0x784dac\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0xca, 0x784dae\nEOR.W           R1, R1, #1                                             ; +0xce, 0x784db2\nB               loc_784DBA                                             ; +0xd2, 0x784db6\nMOV             R1, R5                                                 ; +0xd4, 0x784db8\nBLX             R3                                                     ; +0xd6, 0x784dba\nLDR.W           R0, [R4,#0x314]                                        ; +0xd8, 0x784dbc\nCBZ             R0, loc_784DD2                                         ; +0xdc, 0x784dc0\nLDR             R3, [R0]                                               ; +0xde, 0x784dc2\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0xe0, 0x784dc4\nLDR.W           R3, [R3,#0x210]                                        ; +0xe4, 0x784dc8\nEOR.W           R1, R1, #1                                             ; +0xe8, 0x784dcc\nBLX             R3                                                     ; +0xec, 0x784dd0\nLDR.W           R0, [R4,#0x318]                                        ; +0xee, 0x784dd2\nCBZ             R0, loc_784DE8                                         ; +0xf2, 0x784dd6\nLDR             R3, [R0]                                               ; +0xf4, 0x784dd8\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0xf6, 0x784dda\nLDR.W           R3, [R3,#0x210]                                        ; +0xfa, 0x784dde\nEOR.W           R1, R1, #1                                             ; +0xfe, 0x784de2\nBLX             R3                                                     ; +0x102, 0x784de6\nLDR.W           R0, [R4,#0x320]                                        ; +0x104, 0x784de8\nCBZ             R0, loc_784E1E                                         ; +0x108, 0x784dec\nLDR.W           R6, [R4,#0x2EC]                                        ; +0x10a, 0x784dee\nCBZ             R6, loc_784E06                                         ; +0x10e, 0x784df2\nLDR.W           R3, [R6,#0x108]                                        ; +0x110, 0x784df4\nCMP             R3, #0                                                 ; +0x114, 0x784df8\nITET GT                                                                ; +0x116, 0x784dfa\nLDRBGT.W        R6, [R4,#0x2FC]                                        ; +0x118, 0x784dfc\nMOVLE           R6, #0                                                 ; +0x11c, 0x784e00\nEORGT.W         R6, R6, #1                                             ; +0x11e, 0x784e02\nLDR             R3, [R0]                                               ; +0x122, 0x784e06\nMOV             R1, R6                                                 ; +0x124, 0x784e08\nLDR.W           R3, [R3,#0xAC]                                         ; +0x126, 0x784e0a\nBLX             R3                                                     ; +0x12a, 0x784e0e\nLDR.W           R0, [R4,#0x320]                                        ; +0x12c, 0x784e10\nMOV             R1, R6                                                 ; +0x130, 0x784e14\nLDR             R3, [R0]                                               ; +0x132, 0x784e16\nLDR.W           R3, [R3,#0x210]                                        ; +0x134, 0x784e18\nBLX             R3                                                     ; +0x138, 0x784e1c\nLDR.W           R0, [R4,#0x328]                                        ; +0x13a, 0x784e1e\nCBZ             R0, loc_784E34                                         ; +0x13e, 0x784e22\nLDR             R3, [R0]                                               ; +0x140, 0x784e24\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0x142, 0x784e26\nLDR.W           R3, [R3,#0x210]                                        ; +0x146, 0x784e2a\nEOR.W           R1, R1, #1                                             ; +0x14a, 0x784e2e\nBLX             R3                                                     ; +0x14e, 0x784e32\nLDR.W           R0, [R4,#0x32C]                                        ; +0x150, 0x784e34\nCBZ             R0, locret_784E54                                      ; +0x154, 0x784e38\nLDR             R3, [R0]                                               ; +0x156, 0x784e3a\nLDR.W           R3, [R3,#0x210]                                        ; +0x158, 0x784e3c\nCBZ             R5, loc_784E4C                                         ; +0x15c, 0x784e40\nLDRB.W          R1, [R4,#0x2FC]                                        ; +0x15e, 0x784e42\nEOR.W           R1, R1, #1                                             ; +0x162, 0x784e46\nB               loc_784E4E                                             ; +0x166, 0x784e4a\nMOV             R1, R5                                                 ; +0x168, 0x784e4c\nPOP.W           {R4-R8,LR}                                             ; +0x16a, 0x784e4e\nBX              R3                                                     ; +0x16e, 0x784e52\nPOP.W           {R4-R8,PC}                                             ; +0x170, 0x784e54", "xrefs": ["EditorSoundConfigInfoLayer::startDownload @ 0x784e98", "EditorSoundConfigInfoLayer::onFavorite @ 0x785220", "EditorSoundConfigInfoLayer::onFavorite @ 0x7852ae", "EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x78578a", "EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x7862c6", "EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x786312", "EditorSoundConfigInfoLayer::init @ 0x788182", "EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7888b0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}