{"type": "func", "start": 5761168, "end": 5761342, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x57e890 to 0x57e93e (174 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x57e97a\n// > CustomizeObjectLayer::colorSetupClosed @ 0x57eaee\n// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb5c\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x57ebb2\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::highlightSelected(cocos2d::CCArray **this, ButtonSprite *a2)\n{\n  unsigned int v4; // r6\n  char *v5; // r0\n  char *v6; // r7\n  const char *v7; // r1\n\n  v4 = 0;\n  while ( v4 < cocos2d::CCArray::count(*(this + 135)) )\n  {\n    v5 = (char *)cocos2d::CCArray::objectAtIndex(*(this + 135), v4++);\n    v6 = v5;\n    if ( (*(int (__fastcall **)(char *))(*(_DWORD *)v5 + 32))(v5) == 1008 )\n      v7 = \"GJ_button_05.png\";\n    else\n      v7 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v6, v7);\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage((char *)a2, \"GJ_button_02.png\");\n    a2 = (ButtonSprite *)((*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)a2 + 32))(a2) == 1008);\n  }\n  (*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 157) + 172))(*(this + 157), a2);\n  (*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 158) + 172))(*(this + 158), a2);\n  (*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 150) + 500))(*(this + 150), a2);\n  (*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 150) + 172))(*(this + 150), a2);\n  return (*(int (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 159) + 172))(*(this + 159), a2);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x57e890 to 0x57e93e (174 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x57e97a\n; > CustomizeObjectLayer::colorSetupClosed @ 0x57eaee\n; > CustomizeObjectLayer::onNextColorChannel @ 0x57eb5c\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x57ebb2\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:52:51 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x57e890\nMOV             R5, R0                                                 ; +0x4, 0x57e894\nLDR.W           R8, =(aGjButton04Png - 0x57E8A6); \"GJ_button_04.png\"   ; +0x6, 0x57e896\nMOV             R4, R1                                                 ; +0xa, 0x57e89a\nLDR.W           R9, =(aGjButton05Png - 0x57E8A8); \"GJ_button_05.png\"   ; +0xc, 0x57e89c\nMOVS            R6, #0                                                 ; +0x10, 0x57e8a0\nADD             R8, PC; \"GJ_button_04.png\"                             ; +0x12, 0x57e8a2\nADD             R9, PC; \"GJ_button_05.png\"                             ; +0x14, 0x57e8a4\nLDR.W           R0, [R5,#0x21C]; this                                  ; +0x16, 0x57e8a6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x57e8aa\nCMP             R6, R0                                                 ; +0x1e, 0x57e8ae\nBCS             loc_57E8D8                                             ; +0x20, 0x57e8b0\nMOV             R1, R6; unsigned int                                   ; +0x22, 0x57e8b2\nLDR.W           R0, [R5,#0x21C]; this                                  ; +0x24, 0x57e8b4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x57e8b8\nADDS            R6, #1                                                 ; +0x2c, 0x57e8bc\nLDR             R3, [R0]                                               ; +0x2e, 0x57e8be\nMOV             R7, R0                                                 ; +0x30, 0x57e8c0\nLDR             R3, [R3,#0x20]                                         ; +0x32, 0x57e8c2\nBLX             R3                                                     ; +0x34, 0x57e8c4\nCMP.W           R0, #0x3F0                                             ; +0x36, 0x57e8c6\nMOV             R0, R7; this                                           ; +0x3a, 0x57e8ca\nITE NE                                                                 ; +0x3c, 0x57e8cc\nMOVNE           R1, R8                                                 ; +0x3e, 0x57e8ce\nMOVEQ           R1, R9; char *                                         ; +0x40, 0x57e8d0\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x42, 0x57e8d2\nB               loc_57E8A6                                             ; +0x46, 0x57e8d6\nCBZ             R4, loc_57E8F4                                         ; +0x48, 0x57e8d8\nLDR             R1, =(aGjButton02Png - 0x57E8E2); \"GJ_button_02.png\"   ; +0x4a, 0x57e8da\nMOV             R0, R4; this                                           ; +0x4c, 0x57e8dc\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x4e, 0x57e8de\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x50, 0x57e8e0\nLDR             R3, [R4]                                               ; +0x54, 0x57e8e4\nMOV             R0, R4                                                 ; +0x56, 0x57e8e6\nLDR             R3, [R3,#0x20]                                         ; +0x58, 0x57e8e8\nBLX             R3                                                     ; +0x5a, 0x57e8ea\nSUB.W           R3, R0, #0x3F0                                         ; +0x5c, 0x57e8ec\nNEGS            R4, R3                                                 ; +0x60, 0x57e8f0\nADCS            R4, R3                                                 ; +0x62, 0x57e8f2\nLDR.W           R0, [R5,#0x274]                                        ; +0x64, 0x57e8f4\nMOV             R1, R4                                                 ; +0x68, 0x57e8f8\nLDR             R3, [R0]                                               ; +0x6a, 0x57e8fa\nLDR.W           R3, [R3,#0xAC]                                         ; +0x6c, 0x57e8fc\nBLX             R3                                                     ; +0x70, 0x57e900\nLDR.W           R0, [R5,#0x278]                                        ; +0x72, 0x57e902\nMOV             R1, R4                                                 ; +0x76, 0x57e906\nLDR             R3, [R0]                                               ; +0x78, 0x57e908\nLDR.W           R3, [R3,#0xAC]                                         ; +0x7a, 0x57e90a\nBLX             R3                                                     ; +0x7e, 0x57e90e\nLDR.W           R0, [R5,#0x258]                                        ; +0x80, 0x57e910\nMOV             R1, R4                                                 ; +0x84, 0x57e914\nLDR             R3, [R0]                                               ; +0x86, 0x57e916\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x88, 0x57e918\nBLX             R3                                                     ; +0x8c, 0x57e91c\nLDR.W           R0, [R5,#0x258]                                        ; +0x8e, 0x57e91e\nMOV             R1, R4                                                 ; +0x92, 0x57e922\nLDR             R3, [R0]                                               ; +0x94, 0x57e924\nLDR.W           R3, [R3,#0xAC]                                         ; +0x96, 0x57e926\nBLX             R3                                                     ; +0x9a, 0x57e92a\nLDR.W           R0, [R5,#0x27C]                                        ; +0x9c, 0x57e92c\nMOV             R1, R4                                                 ; +0xa0, 0x57e930\nPOP.W           {R4-R10,LR}                                            ; +0xa2, 0x57e932\nLDR             R3, [R0]                                               ; +0xa6, 0x57e936\nLDR.W           R3, [R3,#0xAC]                                         ; +0xa8, 0x57e938\nBX              R3                                                     ; +0xac, 0x57e93c", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x57e97a", "CustomizeObjectLayer::colorSetupClosed @ 0x57eaee", "CustomizeObjectLayer::onNextColorChannel @ 0x57eb5c", "CustomizeObjectLayer::updateCurrentSelection @ 0x57ebb2"], "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"}