{"type": "func", "start": 9050724, "end": 9051024, "name": "GJColorSetupLayer::updateSpriteColors", "pseudocode": "// \n// GJColorSetupLayer::updateSpriteColors from 0x8a1a64 to 0x8a1b90 (300 bytes)\n// \n// 4 xrefs:\n// > GJColorSetupLayer::colorSelectClosed @ 0x8a1b90\n// > GJColorSetupLayer::showPage @ 0x8a1c04\n// > GJColorSetupLayer::init @ 0x8a206c\n// > <???> @ 0x941e8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJColorSetupLayer::updateSpriteColors(GJColorSetupLayer *a1)\n{\n  unsigned int v2; // w19\n  int v3; // w23\n  int v4; // w0\n  unsigned int v5; // w1\n  ColorChannelSprite *v6; // x20\n  cocos2d::CCLabelBMFont *v7; // x22\n  cocos2d::CCNode_vtbl *v8; // x2\n  int v9; // w3\n  unsigned int v10; // w0\n\n  v2 = 0;\n  v3 = a1->m_page * a1->m_colorsPerPage;\n  v4 = cocos2d::CCArray::count(a1->m_colorSprites);\n  v5 = 0;\n  if ( v4 )\n  {\n    do\n    {\n      v6 = (ColorChannelSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorSprites, v5);\n      v7 = (cocos2d::CCLabelBMFont *)cocos2d::CCArray::objectAtIndex(a1->m_colorLabels, v2);\n      v8 = v6->getParent(v6)->__vftable;\n      if ( (int)(v2 + v3) > 998 )\n      {\n        ++v2;\n        ((void (*)(void))v8[1].setScale)();\n        v6->setVisible(v6, 0);\n        v7->setVisible(v7, 0);\n      }\n      else\n      {\n        ((void (*)(void))v8[1].setScale)();\n        v6->setVisible(v6, 1);\n        v7->setVisible(v7, 1);\n        v9 = v2 + v3 + 1;\n        ++v2;\n        GJColorSetupLayer::updateSpriteColor(a1, v6, v7, v9);\n      }\n      v10 = cocos2d::CCArray::count(a1->m_colorSprites);\n      v5 = v2;\n    }\n    while ( v2 < v10 );\n  }\n}", "assembly": "; \n; GJColorSetupLayer::updateSpriteColors from 0x8a1a64 to 0x8a1b90 (300 bytes)\n; \n; 4 xrefs:\n; > GJColorSetupLayer::colorSelectClosed @ 0x8a1b90\n; > GJColorSetupLayer::showPage @ 0x8a1c04\n; > GJColorSetupLayer::init @ 0x8a206c\n; > <???> @ 0x941e8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x8a1a64\nMOV             X29, SP                                                ; +0x4, 0x8a1a68\nSTP             X23, X24, [SP,#var_s30]                                ; +0x8, 0x8a1a6c\nSTP             X21, X22, [SP,#var_s20]                                ; +0xc, 0x8a1a70\nLDR             W23, [X0,#0x2B0]                                       ; +0x10, 0x8a1a74\nMOV             X21, X0                                                ; +0x14, 0x8a1a78\nLDR             W0, [X0,#0x2B4]                                        ; +0x18, 0x8a1a7c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x8a1a80\nMOV             W19, #0                                                ; +0x20, 0x8a1a84\nMUL             W23, W23, W0                                           ; +0x24, 0x8a1a88\nLDR             X0, [X21,#0x2A8]; this                                 ; +0x28, 0x8a1a8c\nADD             W24, W23, #1                                           ; +0x2c, 0x8a1a90\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x30, 0x8a1a94\nCMP             W19, W0                                                ; +0x34, 0x8a1a98\nMOV             W1, W19; unsigned int                                  ; +0x38, 0x8a1a9c\nB.CS            loc_8A1B40                                             ; +0x3c, 0x8a1aa0\nLDR             X0, [X21,#0x2A8]; this                                 ; +0x40, 0x8a1aa4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x8a1aa8\nMOV             X20, X0                                                ; +0x48, 0x8a1aac\nLDR             X0, [X21,#0x2A0]; this                                 ; +0x4c, 0x8a1ab0\nMOV             W1, W19; unsigned int                                  ; +0x50, 0x8a1ab4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x54, 0x8a1ab8\nMOV             X22, X0                                                ; +0x58, 0x8a1abc\nLDR             X1, [X20]                                              ; +0x5c, 0x8a1ac0\nMOV             X0, X20                                                ; +0x60, 0x8a1ac4\nLDR             X1, [X1,#0x1F0]                                        ; +0x64, 0x8a1ac8\nBLR             X1                                                     ; +0x68, 0x8a1acc\nLDR             X2, [X0]                                               ; +0x6c, 0x8a1ad0\nADD             W3, W19, W23                                           ; +0x70, 0x8a1ad4\nMOV             W1, #1                                                 ; +0x74, 0x8a1ad8\nCMP             W3, #0x3E6                                             ; +0x78, 0x8a1adc\nB.GT            loc_8A1B54                                             ; +0x7c, 0x8a1ae0\nLDR             X2, [X2,#0x410]                                        ; +0x80, 0x8a1ae4\nBLR             X2                                                     ; +0x84, 0x8a1ae8\nLDR             X2, [X20]                                              ; +0x88, 0x8a1aec\nMOV             X0, X20                                                ; +0x8c, 0x8a1af0\nMOV             W1, #1                                                 ; +0x90, 0x8a1af4\nLDR             X2, [X2,#0x148]                                        ; +0x94, 0x8a1af8\nBLR             X2                                                     ; +0x98, 0x8a1afc\nLDR             X2, [X22]                                              ; +0x9c, 0x8a1b00\nMOV             X0, X22                                                ; +0xa0, 0x8a1b04\nMOV             W1, #1                                                 ; +0xa4, 0x8a1b08\nLDR             X2, [X2,#0x148]                                        ; +0xa8, 0x8a1b0c\nBLR             X2                                                     ; +0xac, 0x8a1b10\nADD             W3, W19, W24; int                                      ; +0xb0, 0x8a1b14\nMOV             X0, X21; this                                          ; +0xb4, 0x8a1b18\nMOV             X1, X20; ColorChannelSprite *                          ; +0xb8, 0x8a1b1c\nMOV             X2, X22; cocos2d::CCLabelBMFont *                      ; +0xbc, 0x8a1b20\nADD             W19, W19, #1                                           ; +0xc0, 0x8a1b24\nBL              _ZN17GJColorSetupLayer17updateSpriteColorEP18ColorChannelSpritePN7cocos2d13CCLabelBMFontEi; GJColorSetupLayer::updateSpriteColor(ColorChannelSprite *,cocos2d::CCLabelBMFont *,int) ; +0xc4, 0x8a1b28\nLDR             X0, [X21,#0x2A8]; this                                 ; +0xc8, 0x8a1b2c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xcc, 0x8a1b30\nCMP             W19, W0                                                ; +0xd0, 0x8a1b34\nMOV             W1, W19                                                ; +0xd4, 0x8a1b38\nB.CC            loc_8A1AA4                                             ; +0xd8, 0x8a1b3c\nLDP             X19, X20, [SP,#var_s10]                                ; +0xdc, 0x8a1b40\nLDP             X21, X22, [SP,#var_s20]                                ; +0xe0, 0x8a1b44\nLDP             X23, X24, [SP,#var_s30]                                ; +0xe4, 0x8a1b48\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xe8, 0x8a1b4c\nRET                                                                    ; +0xec, 0x8a1b50\nLDR             X2, [X2,#0x410]                                        ; +0xf0, 0x8a1b54\nMOV             W1, #0                                                 ; +0xf4, 0x8a1b58\nADD             W19, W19, #1                                           ; +0xf8, 0x8a1b5c\nBLR             X2                                                     ; +0xfc, 0x8a1b60\nLDR             X2, [X20]                                              ; +0x100, 0x8a1b64\nMOV             X0, X20                                                ; +0x104, 0x8a1b68\nMOV             W1, #0                                                 ; +0x108, 0x8a1b6c\nLDR             X2, [X2,#0x148]                                        ; +0x10c, 0x8a1b70\nBLR             X2                                                     ; +0x110, 0x8a1b74\nLDR             X2, [X22]                                              ; +0x114, 0x8a1b78\nMOV             X0, X22                                                ; +0x118, 0x8a1b7c\nMOV             W1, #0                                                 ; +0x11c, 0x8a1b80\nLDR             X2, [X2,#0x148]                                        ; +0x120, 0x8a1b84\nBLR             X2                                                     ; +0x124, 0x8a1b88\nB               loc_8A1B2C                                             ; +0x128, 0x8a1b8c", "xrefs": ["GJColorSetupLayer::colorSelectClosed @ 0x8a1b90", "GJColorSetupLayer::showPage @ 0x8a1c04", "GJColorSetupLayer::init @ 0x8a206c", "<???> @ 0x941e8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}