{"type": "func", "start": 5762232, "end": 5762578, "name": "CustomizeObjectLayer::onSelectMode", "pseudocode": "// \n// CustomizeObjectLayer::onSelectMode from 0x57ecb8 to 0x57ee12 (346 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x580e9e\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::onSelectMode(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  char *v3; // r0\n  const char *v4; // r1\n  char *v5; // r0\n  const char *v6; // r1\n  int v7; // r0\n  char *v8; // r0\n  const char *v9; // r1\n  GJSpecialColorSelect *ActiveMode; // r1\n\n  *((_DWORD *)this + 140) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  (*(void (**)(void))(**((_DWORD **)this + 148) + 464))();\n  v3 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 143) + 536))(*((_DWORD *)this + 143));\n  if ( *((_DWORD *)this + 140) == 1 )\n    v4 = \"GJ_button_03.png\";\n  else\n    v4 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v3, v4);\n  v5 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 144) + 536))(*((_DWORD *)this + 144));\n  if ( *((_DWORD *)this + 140) == 2 )\n    v6 = \"GJ_button_03.png\";\n  else\n    v6 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v5, v6);\n  v7 = *((_DWORD *)this + 145);\n  if ( v7 )\n  {\n    v8 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 536))(v7);\n    if ( *((_DWORD *)this + 140) == 3 )\n      v9 = \"GJ_button_03.png\";\n    else\n      v9 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v8, v9);\n  }\n  CustomizeObjectLayer::toggleVisible(this);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 146) + 172))(\n    *((_DWORD *)this + 146),\n    *((_DWORD *)this + 140) == 1);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 146) + 528))(\n    *((_DWORD *)this + 146),\n    *((_DWORD *)this + 140) == 1);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 147) + 172))(\n    *((_DWORD *)this + 147),\n    *((_DWORD *)this + 140) == 2);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 147) + 528))(\n    *((_DWORD *)this + 147),\n    *((_DWORD *)this + 140) == 2);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 162) + 172))(\n    *((_DWORD *)this + 162),\n    *((_DWORD *)this + 140) != 3);\n  (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 162) + 528))(\n    *((_DWORD *)this + 162),\n    *((_DWORD *)this + 140) != 3);\n  CustomizeObjectLayer::updateHSVButtons(this);\n  CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);\n  ActiveMode = (GJSpecialColorSelect *)CustomizeObjectLayer::getActiveMode(this, 1);\n  return CustomizeObjectLayer::updateChannelLabel(this, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectMode from 0x57ecb8 to 0x57ee12 (346 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x580e9e\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            {R4,LR}                                                ; +0x0, 0x57ecb8\nMOV             R4, R0                                                 ; +0x2, 0x57ecba\nLDR             R3, [R1]                                               ; +0x4, 0x57ecbc\nMOV             R0, R1                                                 ; +0x6, 0x57ecbe\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x57ecc0\nBLX             R3                                                     ; +0xa, 0x57ecc2\nCMP             R0, #1                                                 ; +0xc, 0x57ecc4\nMOV             R3, R0                                                 ; +0xe, 0x57ecc6\nSTR.W           R0, [R4,#0x230]                                        ; +0x10, 0x57ecc8\nLDR.W           R0, [R4,#0x250]                                        ; +0x14, 0x57eccc\nBNE             loc_57ECDE                                             ; +0x18, 0x57ecd0\nLDR             R3, [R0]                                               ; +0x1a, 0x57ecd2\nLDR             R1, =(aBaseColor - 0x57ECDE); \"Base Color\"             ; +0x1c, 0x57ecd4\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x1e, 0x57ecd6\nADD             R1, PC; \"Base Color\"                                   ; +0x22, 0x57ecda\nB               loc_57ECF2                                             ; +0x24, 0x57ecdc\nCMP             R3, #2                                                 ; +0x26, 0x57ecde\nLDR             R3, [R0]                                               ; +0x28, 0x57ece0\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x2a, 0x57ece2\nBNE             loc_57ECEE                                             ; +0x2e, 0x57ece6\nLDR             R1, =(aDetailColor - 0x57ECEE); \"Detail Color\"         ; +0x30, 0x57ece8\nADD             R1, PC; \"Detail Color\"                                 ; +0x32, 0x57ecea\nB               loc_57ECF2                                             ; +0x34, 0x57ecec\nLDR             R1, =(aInsertText - 0x57ECF4); \"Insert Text\"           ; +0x36, 0x57ecee\nADD             R1, PC; \"Insert Text\"                                  ; +0x38, 0x57ecf0\nBLX             R3                                                     ; +0x3a, 0x57ecf2\nLDR.W           R0, [R4,#0x23C]                                        ; +0x3c, 0x57ecf4\nLDR             R3, [R0]                                               ; +0x40, 0x57ecf8\nLDR.W           R3, [R3,#0x218]                                        ; +0x42, 0x57ecfa\nBLX             R3                                                     ; +0x46, 0x57ecfe\nLDR.W           R3, [R4,#0x230]                                        ; +0x48, 0x57ed00\nCMP             R3, #1                                                 ; +0x4c, 0x57ed04\nBEQ             loc_57ED0E                                             ; +0x4e, 0x57ed06\nLDR             R1, =(aGjButton04Png - 0x57ED0E); \"GJ_button_04.png\"   ; +0x50, 0x57ed08\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x52, 0x57ed0a\nB               loc_57ED12                                             ; +0x54, 0x57ed0c\nLDR             R1, =(aGjButton03Png - 0x57ED14); \"GJ_button_03.png\"   ; +0x56, 0x57ed0e\nADD             R1, PC; \"GJ_button_03.png\"                             ; +0x58, 0x57ed10\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x5a, 0x57ed12\nLDR.W           R0, [R4,#0x240]                                        ; +0x5e, 0x57ed16\nLDR             R3, [R0]                                               ; +0x62, 0x57ed1a\nLDR.W           R3, [R3,#0x218]                                        ; +0x64, 0x57ed1c\nBLX             R3                                                     ; +0x68, 0x57ed20\nLDR.W           R3, [R4,#0x230]                                        ; +0x6a, 0x57ed22\nCMP             R3, #2                                                 ; +0x6e, 0x57ed26\nBEQ             loc_57ED30                                             ; +0x70, 0x57ed28\nLDR             R1, =(aGjButton04Png - 0x57ED30); \"GJ_button_04.png\"   ; +0x72, 0x57ed2a\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x74, 0x57ed2c\nB               loc_57ED34                                             ; +0x76, 0x57ed2e\nLDR             R1, =(aGjButton03Png - 0x57ED36); \"GJ_button_03.png\"   ; +0x78, 0x57ed30\nADD             R1, PC; \"GJ_button_03.png\"                             ; +0x7a, 0x57ed32\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x7c, 0x57ed34\nLDR.W           R0, [R4,#0x244]                                        ; +0x80, 0x57ed38\nCBZ             R0, loc_57ED5C                                         ; +0x84, 0x57ed3c\nLDR             R3, [R0]                                               ; +0x86, 0x57ed3e\nLDR.W           R3, [R3,#0x218]                                        ; +0x88, 0x57ed40\nBLX             R3                                                     ; +0x8c, 0x57ed44\nLDR.W           R3, [R4,#0x230]                                        ; +0x8e, 0x57ed46\nCMP             R3, #3                                                 ; +0x92, 0x57ed4a\nBEQ             loc_57ED54                                             ; +0x94, 0x57ed4c\nLDR             R1, =(aGjButton04Png - 0x57ED54); \"GJ_button_04.png\"   ; +0x96, 0x57ed4e\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x98, 0x57ed50\nB               loc_57ED58                                             ; +0x9a, 0x57ed52\nLDR             R1, =(aGjButton03Png - 0x57ED5A); \"GJ_button_03.png\"   ; +0x9c, 0x57ed54\nADD             R1, PC; \"GJ_button_03.png\"                             ; +0x9e, 0x57ed56\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xa0, 0x57ed58\nMOV             R0, R4; this                                           ; +0xa4, 0x57ed5c\nBL              _ZN20CustomizeObjectLayer13toggleVisibleEv; CustomizeObjectLayer::toggleVisible(void) ; +0xa6, 0x57ed5e\nLDR.W           R0, [R4,#0x248]                                        ; +0xaa, 0x57ed62\nLDR.W           R1, [R4,#0x230]                                        ; +0xae, 0x57ed66\nLDR             R3, [R0]                                               ; +0xb2, 0x57ed6a\nSUBS            R2, R1, #1                                             ; +0xb4, 0x57ed6c\nNEGS            R1, R2                                                 ; +0xb6, 0x57ed6e\nADCS            R1, R2                                                 ; +0xb8, 0x57ed70\nLDR.W           R3, [R3,#0xAC]                                         ; +0xba, 0x57ed72\nBLX             R3                                                     ; +0xbe, 0x57ed76\nLDR.W           R0, [R4,#0x248]                                        ; +0xc0, 0x57ed78\nLDR.W           R1, [R4,#0x230]                                        ; +0xc4, 0x57ed7c\nLDR             R3, [R0]                                               ; +0xc8, 0x57ed80\nADD.W           LR, R1, #0xFFFFFFFF                                    ; +0xca, 0x57ed82\nRSBS.W          R1, LR, #0                                             ; +0xce, 0x57ed86\nADC.W           R1, R1, LR                                             ; +0xd2, 0x57ed8a\nLDR.W           R3, [R3,#0x210]                                        ; +0xd6, 0x57ed8e\nBLX             R3                                                     ; +0xda, 0x57ed92\nLDR.W           R0, [R4,#0x24C]                                        ; +0xdc, 0x57ed94\nLDR.W           R1, [R4,#0x230]                                        ; +0xe0, 0x57ed98\nLDR             R3, [R0]                                               ; +0xe4, 0x57ed9c\nSUB.W           R12, R1, #2                                            ; +0xe6, 0x57ed9e\nRSBS.W          R1, R12, #0                                            ; +0xea, 0x57eda2\nADC.W           R1, R1, R12                                            ; +0xee, 0x57eda6\nLDR.W           R3, [R3,#0xAC]                                         ; +0xf2, 0x57edaa\nBLX             R3                                                     ; +0xf6, 0x57edae\nLDR.W           R0, [R4,#0x24C]                                        ; +0xf8, 0x57edb0\nLDR.W           R1, [R4,#0x230]                                        ; +0xfc, 0x57edb4\nLDR             R3, [R0]                                               ; +0x100, 0x57edb8\nSUBS            R2, R1, #2                                             ; +0x102, 0x57edba\nNEGS            R1, R2                                                 ; +0x104, 0x57edbc\nADCS            R1, R2                                                 ; +0x106, 0x57edbe\nLDR.W           R3, [R3,#0x210]                                        ; +0x108, 0x57edc0\nBLX             R3                                                     ; +0x10c, 0x57edc4\nLDR.W           R0, [R4,#0x288]                                        ; +0x10e, 0x57edc6\nLDR.W           R1, [R4,#0x230]                                        ; +0x112, 0x57edca\nLDR             R3, [R0]                                               ; +0x116, 0x57edce\nSUBS            R1, #3                                                 ; +0x118, 0x57edd0\nIT NE                                                                  ; +0x11a, 0x57edd2\nMOVNE           R1, #1                                                 ; +0x11c, 0x57edd4\nLDR.W           R3, [R3,#0xAC]                                         ; +0x11e, 0x57edd6\nBLX             R3                                                     ; +0x122, 0x57edda\nLDR.W           R0, [R4,#0x288]                                        ; +0x124, 0x57eddc\nLDR.W           R1, [R4,#0x230]                                        ; +0x128, 0x57ede0\nLDR             R3, [R0]                                               ; +0x12c, 0x57ede4\nSUBS            R1, #3                                                 ; +0x12e, 0x57ede6\nIT NE                                                                  ; +0x130, 0x57ede8\nMOVNE           R1, #1                                                 ; +0x132, 0x57edea\nLDR.W           R3, [R3,#0x210]                                        ; +0x134, 0x57edec\nBLX             R3                                                     ; +0x138, 0x57edf0\nMOV             R0, R4; this                                           ; +0x13a, 0x57edf2\nBL              _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x13c, 0x57edf4\nMOV             R0, R4; this                                           ; +0x140, 0x57edf8\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x142, 0x57edfa\nMOV             R0, R4; this                                           ; +0x146, 0x57edfe\nMOVS            R1, #1; bool                                           ; +0x148, 0x57ee00\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x14a, 0x57ee02\nMOV             R1, R0; GJSpecialColorSelect *                         ; +0x14e, 0x57ee06\nMOV             R0, R4; this                                           ; +0x150, 0x57ee08\nPOP.W           {R4,LR}                                                ; +0x152, 0x57ee0a\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x156, 0x57ee0e", "xrefs": ["CustomizeObjectLayer::init @ 0x580e9e"], "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"}