{"type": "func", "start": 3943716, "end": 3943780, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x3c2d24 to 0x3c2d64 (64 bytes)\n// \n// 14 xrefs:\n// > EditorUI::toggleSpecialEditButtons @ 0x485f48\n// > EditorUI::updateButtons @ 0x4860ca\n// > RateLevelLayer::selectRating @ 0x5111b4\n// > GJRateLevelLayer::selectRating @ 0x564b8c\n// > NumberInputLayer::updateNumberState @ 0x56899a\n// > RateStarsLayer::selectRating @ 0x569224\n// > RateDemonLayer::selectRating @ 0x616126\n// > EditorUI::updateDeleteButtons @ 0x6f645c\n// > EditorUI::updateDeleteButtons @ 0x6f64a0\n// > EditorUI::updateDeleteButtons @ 0x6f656a\n// > EditorUI::updateEditButtonColor @ 0x70e8a2\n// > ThreadViewPopup::setSendPending @ 0x746fb4\n// > NewThreadPopup::setSendPending @ 0x748484\n// > RateStarsModLayer::selectRating @ 0x79e738\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:46:32 +0000\n// \n\nint __fastcall ButtonSprite::setColor(_DWORD *a1, int a2)\n{\n  int v3; // r0\n  int v4; // r0\n  int result; // r0\n  int v6; // [sp+4h] [bp-4h] BYREF\n\n  v6 = a2;\n  v3 = a1[134];\n  if ( v3 )\n    (*(void (__fastcall **)(int, int *))(*(_DWORD *)v3 + 536))(v3, &v6);\n  v4 = a1[135];\n  if ( v4 )\n    (*(void (__fastcall **)(int, int *))(*(_DWORD *)v4 + 480))(v4, &v6);\n  result = a1[137];\n  if ( result )\n    return (*(int (__fastcall **)(int, int *))(*(_DWORD *)result + 480))(result, &v6);\n  result = a1[136];\n  if ( result )\n    return (*(int (__fastcall **)(int, int *))(*(_DWORD *)result + 480))(result, &v6);\n  return result;\n}", "assembly": "; \n; ButtonSprite::setColor from 0x3c2d24 to 0x3c2d64 (64 bytes)\n; \n; 14 xrefs:\n; > EditorUI::toggleSpecialEditButtons @ 0x485f48\n; > EditorUI::updateButtons @ 0x4860ca\n; > RateLevelLayer::selectRating @ 0x5111b4\n; > GJRateLevelLayer::selectRating @ 0x564b8c\n; > NumberInputLayer::updateNumberState @ 0x56899a\n; > RateStarsLayer::selectRating @ 0x569224\n; > RateDemonLayer::selectRating @ 0x616126\n; > EditorUI::updateDeleteButtons @ 0x6f645c\n; > EditorUI::updateDeleteButtons @ 0x6f64a0\n; > EditorUI::updateDeleteButtons @ 0x6f656a\n; > EditorUI::updateEditButtonColor @ 0x70e8a2\n; > ThreadViewPopup::setSendPending @ 0x746fb4\n; > NewThreadPopup::setSendPending @ 0x748484\n; > RateStarsModLayer::selectRating @ 0x79e738\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:46:32 +0000\n; \nPUSH            {R0,R1,R4,LR}                                          ; +0x0, 0x3c2d24\nMOV             R4, R0                                                 ; +0x2, 0x3c2d26\nSTR             R1, [SP,#8+var_4]                                      ; +0x4, 0x3c2d28\nLDR.W           R0, [R0,#0x218]                                        ; +0x6, 0x3c2d2a\nCBZ             R0, loc_3C2D3A                                         ; +0xa, 0x3c2d2e\nLDR             R3, [R0]                                               ; +0xc, 0x3c2d30\nADD             R1, SP, #8+var_4                                       ; +0xe, 0x3c2d32\nLDR.W           R3, [R3,#0x218]                                        ; +0x10, 0x3c2d34\nBLX             R3                                                     ; +0x14, 0x3c2d38\nLDR.W           R0, [R4,#0x21C]                                        ; +0x16, 0x3c2d3a\nCBZ             R0, loc_3C2D4A                                         ; +0x1a, 0x3c2d3e\nLDR             R3, [R0]                                               ; +0x1c, 0x3c2d40\nADD             R1, SP, #8+var_4                                       ; +0x1e, 0x3c2d42\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x20, 0x3c2d44\nBLX             R3                                                     ; +0x24, 0x3c2d48\nLDR.W           R0, [R4,#0x224]                                        ; +0x26, 0x3c2d4a\nCBNZ            R0, loc_3C2D56                                         ; +0x2a, 0x3c2d4e\nLDR.W           R0, [R4,#0x220]                                        ; +0x2c, 0x3c2d50\nCBZ             R0, loc_3C2D60                                         ; +0x30, 0x3c2d54\nLDR             R3, [R0]                                               ; +0x32, 0x3c2d56\nADD             R1, SP, #8+var_4                                       ; +0x34, 0x3c2d58\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x36, 0x3c2d5a\nBLX             R3                                                     ; +0x3a, 0x3c2d5e\nADD             SP, SP, #8                                             ; +0x3c, 0x3c2d60\nPOP             {R4,PC}                                                ; +0x3e, 0x3c2d62", "xrefs": ["EditorUI::toggleSpecialEditButtons @ 0x485f48", "EditorUI::updateButtons @ 0x4860ca", "RateLevelLayer::selectRating @ 0x5111b4", "GJRateLevelLayer::selectRating @ 0x564b8c", "NumberInputLayer::updateNumberState @ 0x56899a", "RateStarsLayer::selectRating @ 0x569224", "RateDemonLayer::selectRating @ 0x616126", "EditorUI::updateDeleteButtons @ 0x6f645c", "EditorUI::updateDeleteButtons @ 0x6f64a0", "EditorUI::updateDeleteButtons @ 0x6f656a", "EditorUI::updateEditButtonColor @ 0x70e8a2", "ThreadViewPopup::setSendPending @ 0x746fb4", "NewThreadPopup::setSendPending @ 0x748484", "RateStarsModLayer::selectRating @ 0x79e738"], "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"}