{"type": "func", "start": 6301420, "end": 6301628, "name": "ColorSelectLiveOverlay::onSelectTab", "pseudocode": "// \n// ColorSelectLiveOverlay::onSelectTab from 0x6026ec to 0x6027bc (208 bytes)\n// \n// 0 xrefs:\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:54:42 +0000\n// \n\nvoid __fastcall ColorSelectLiveOverlay::onSelectTab(ColorSelectLiveOverlay *this, cocos2d::CCObject *a2)\n{\n  int v4; // r0\n  int v5; // r2\n  unsigned int v6; // r5\n  int v7; // r3\n  char *v8; // r0\n  char *v9; // r7\n  int v10; // r8\n  const char *v11; // r1\n  char *v12; // r1\n  int v13; // [sp+4h] [bp-4h]\n\n  HIBYTE(v13) = HIBYTE(a2);\n  v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) != 1;\n  if ( *((unsigned __int8 *)this + 644) != v4 )\n  {\n    v5 = *((_DWORD *)this + 133);\n    v6 = 0;\n    v7 = *((_DWORD *)this + 134);\n    *((_BYTE *)this + 644) = v4;\n    if ( !v4 )\n      v7 = v5;\n    *((_DWORD *)this + 141) = *(_DWORD *)(v7 + 92);\n    *(_WORD *)((char *)&v13 + 1) = *(_WORD *)(v7 + 69);\n    LOBYTE(v13) = *(_BYTE *)(v7 + 68);\n    ColorSelectLiveOverlay::selectColor((int)this, v13);\n    while ( v6 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)) )\n    {\n      v8 = (char *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v6++);\n      v9 = v8;\n      v10 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n      if ( v10 == (*(int (__fastcall **)(char *))(*(_DWORD *)v9 + 32))(v9) )\n        v11 = \"GJ_button_01.png\";\n      else\n        v11 = \"GJ_button_04.png\";\n      ButtonSprite::updateBGImage(v9, v11);\n    }\n    if ( *((_BYTE *)this + 644) )\n      v12 = (char *)this + 543;\n    else\n      v12 = (char *)this + 540;\n    (*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 149) + 480))(*((_DWORD *)this + 149), v12);\n    ColorSelectLiveOverlay::updateColorLabel(this);\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::onSelectTab from 0x6026ec to 0x6027bc (208 bytes)\n; \n; 0 xrefs:\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:54:42 +0000\n; \nPUSH.W          {R0,R1,R4-R10,LR}                                      ; +0x0, 0x6026ec\nMOV             R4, R0                                                 ; +0x4, 0x6026f0\nLDR             R3, [R1]                                               ; +0x6, 0x6026f2\nMOV             R0, R1                                                 ; +0x8, 0x6026f4\nMOV             R6, R1                                                 ; +0xa, 0x6026f6\nLDR             R3, [R3,#0x20]                                         ; +0xc, 0x6026f8\nBLX             R3                                                     ; +0xe, 0x6026fa\nLDRB.W          R3, [R4,#0x284]                                        ; +0x10, 0x6026fc\nADDS.W          R0, R0, #0xFFFFFFFF                                    ; +0x14, 0x602700\nIT NE                                                                  ; +0x18, 0x602704\nMOVNE           R0, #1                                                 ; +0x1a, 0x602706\nCMP             R3, R0                                                 ; +0x1c, 0x602708\nBEQ             loc_6027B6                                             ; +0x1e, 0x60270a\nLDR.W           R2, [R4,#0x214]                                        ; +0x20, 0x60270c\nMOVS            R5, #0                                                 ; +0x24, 0x602710\nLDR.W           R3, [R4,#0x218]                                        ; +0x26, 0x602712\nSTRB.W          R0, [R4,#0x284]                                        ; +0x2a, 0x602716\nCMP             R0, #0                                                 ; +0x2e, 0x60271a\nIT EQ                                                                  ; +0x30, 0x60271c\nMOVEQ           R3, R2                                                 ; +0x32, 0x60271e\nMOV             R0, R4                                                 ; +0x34, 0x602720\nLDR.W           R9, =(aGjButton01Png - 0x602730); \"GJ_button_01.png\"   ; +0x36, 0x602722\nLDR             R2, [R3,#0x5C]                                         ; +0x3a, 0x602726\nLDR.W           R10, =(aGjButton04Png - 0x602736); \"GJ_button_04.png\"  ; +0x3c, 0x602728\nADD             R9, PC; \"GJ_button_01.png\"                             ; +0x40, 0x60272c\nSTR.W           R2, [R4,#0x234]                                        ; +0x42, 0x60272e\nADD             R10, PC; \"GJ_button_04.png\"                            ; +0x46, 0x602732\nLDRB.W          R1, [R3,#0x45]                                         ; +0x48, 0x602734\nLDRB.W          R2, [R3,#0x46]                                         ; +0x4c, 0x602738\nLDRB.W          R3, [R3,#0x44]                                         ; +0x50, 0x60273c\nSTRB.W          R1, [SP,#8+var_4+1]                                    ; +0x54, 0x602740\nSTRB.W          R2, [SP,#8+var_4+2]                                    ; +0x58, 0x602744\nSTRB.W          R3, [SP,#8+var_4]                                      ; +0x5c, 0x602748\nLDR             R1, [SP,#8+var_4]                                      ; +0x60, 0x60274c\nBL              _ZN22ColorSelectLiveOverlay11selectColorEN7cocos2d10_ccColor3BE; ColorSelectLiveOverlay::selectColor(cocos2d::_ccColor3B) ; +0x62, 0x60274e\nLDR.W           R0, [R4,#0x210]; this                                  ; +0x66, 0x602752\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6a, 0x602756\nCMP             R5, R0                                                 ; +0x6e, 0x60275a\nBCS             loc_60278E                                             ; +0x70, 0x60275c\nMOV             R1, R5; unsigned int                                   ; +0x72, 0x60275e\nLDR.W           R0, [R4,#0x210]; this                                  ; +0x74, 0x602760\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x78, 0x602764\nLDR             R3, [R6]                                               ; +0x7c, 0x602768\nADDS            R5, #1                                                 ; +0x7e, 0x60276a\nLDR             R3, [R3,#0x20]                                         ; +0x80, 0x60276c\nMOV             R7, R0                                                 ; +0x82, 0x60276e\nMOV             R0, R6                                                 ; +0x84, 0x602770\nBLX             R3                                                     ; +0x86, 0x602772\nLDR             R3, [R7]                                               ; +0x88, 0x602774\nLDR             R3, [R3,#0x20]                                         ; +0x8a, 0x602776\nMOV             R8, R0                                                 ; +0x8c, 0x602778\nMOV             R0, R7                                                 ; +0x8e, 0x60277a\nBLX             R3                                                     ; +0x90, 0x60277c\nCMP             R8, R0                                                 ; +0x92, 0x60277e\nMOV             R0, R7; this                                           ; +0x94, 0x602780\nITE EQ                                                                 ; +0x96, 0x602782\nMOVEQ           R1, R9                                                 ; +0x98, 0x602784\nMOVNE           R1, R10; char *                                        ; +0x9a, 0x602786\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x9c, 0x602788\nB               loc_602752                                             ; +0xa0, 0x60278c\nLDR.W           R0, [R4,#0x254]                                        ; +0xa2, 0x60278e\nLDRB.W          R2, [R4,#0x284]                                        ; +0xa6, 0x602792\nLDR             R3, [R0]                                               ; +0xaa, 0x602796\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xac, 0x602798\nCBZ             R2, loc_6027A4                                         ; +0xb0, 0x60279c\nADDW            R1, R4, #0x21F                                         ; +0xb2, 0x60279e\nB               loc_6027A8                                             ; +0xb6, 0x6027a2\nADD.W           R1, R4, #0x21C                                         ; +0xb8, 0x6027a4\nBLX             R3                                                     ; +0xbc, 0x6027a8\nMOV             R0, R4; this                                           ; +0xbe, 0x6027aa\nADD             SP, SP, #8                                             ; +0xc0, 0x6027ac\nPOP.W           {R4-R10,LR}                                            ; +0xc2, 0x6027ae\nB.W             _ZN22ColorSelectLiveOverlay16updateColorLabelEv; ColorSelectLiveOverlay::updateColorLabel(void) ; +0xc6, 0x6027b2\nADD             SP, SP, #8                                             ; +0xca, 0x6027b6\nPOP.W           {R4-R10,PC}                                            ; +0xcc, 0x6027b8", "xrefs": [], "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"}