{"type": "func", "start": 4593444, "end": 4593606, "name": "CustomizeObjectLayer::determineStartValues", "pseudocode": "// \n// CustomizeObjectLayer::determineStartValues from 0x461724 to 0x4617c6 (162 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x46269e\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 CustomizeObjectLayer::determineStartValues(CustomizeObjectLayer *a1)\n{\n  GameObject *m_targetObject; // r0\n  GJSpriteColor *RelativeSpriteColor; // r0\n  GameObject *v4; // r3\n  unsigned int v5; // r5\n  GameObject *v6; // r0\n  GameObject *v7; // r6\n\n  m_targetObject = a1->m_targetObject;\n  if ( !m_targetObject )\n  {\n    v5 = 0;\n    a1->m_glowDisabled = 1;\n    while ( 1 )\n    {\n      if ( v5 >= cocos2d::CCArray::count(a1->m_targetObjects) )\n        return;\n      v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v5);\n      v7 = v6;\n      if ( a1->m_hasBaseColor )\n      {\n        if ( a1->m_hasDetailColor )\n          goto LABEL_11;\n      }\n      else\n      {\n        a1->m_hasBaseColor = GameObject::getRelativeSpriteColor(v6, 1) != nullptr;\n      }\n      if ( !a1->m_hasDetailColor )\n        a1->m_hasDetailColor = GameObject::getRelativeSpriteColor(v7, 2) != nullptr;\nLABEL_11:\n      if ( !v7->m_hasNoGlow )\n        a1->m_glowDisabled = 0;\n      ++v5;\n    }\n  }\n  a1->m_hasBaseColor = GameObject::getRelativeSpriteColor(m_targetObject, 1) != nullptr;\n  RelativeSpriteColor = GameObject::getRelativeSpriteColor(a1->m_targetObject, 2);\n  v4 = a1->m_targetObject;\n  a1->m_hasDetailColor = RelativeSpriteColor != nullptr;\n  a1->m_glowDisabled = v4->m_hasNoGlow;\n}", "assembly": "; \n; CustomizeObjectLayer::determineStartValues from 0x461724 to 0x4617c6 (162 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x46269e\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x461724\nMOV             R4, R0                                                 ; +0x2, 0x461726\nLDR.W           R0, [R0,#0x200]; this                                  ; +0x4, 0x461728\nCBZ             R0, loc_461760                                         ; +0x8, 0x46172c\nMOVS            R1, #1; int                                            ; +0xa, 0x46172e\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0xc, 0x461730\nMOVS            R1, #2; int                                            ; +0x10, 0x461734\nADDS            R0, #0                                                 ; +0x12, 0x461736\nIT NE                                                                  ; +0x14, 0x461738\nMOVNE           R0, #1                                                 ; +0x16, 0x46173a\nSTRB.W          R0, [R4,#0x224]                                        ; +0x18, 0x46173c\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x1c, 0x461740\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x20, 0x461744\nLDR.W           R3, [R4,#0x200]                                        ; +0x24, 0x461748\nADDS            R0, #0                                                 ; +0x28, 0x46174c\nIT NE                                                                  ; +0x2a, 0x46174e\nMOVNE           R0, #1                                                 ; +0x2c, 0x461750\nSTRB.W          R0, [R4,#0x225]                                        ; +0x2e, 0x461752\nLDRB.W          R3, [R3,#0x36C]                                        ; +0x32, 0x461756\nSTRB.W          R3, [R4,#0x226]                                        ; +0x36, 0x46175a\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x46175e\nMOV             R5, R0                                                 ; +0x3c, 0x461760\nMOVS            R3, #1                                                 ; +0x3e, 0x461762\nSTRB.W          R3, [R4,#0x226]                                        ; +0x40, 0x461764\nLDR.W           R0, [R4,#0x204]; this                                  ; +0x44, 0x461768\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x46176c\nCMP             R5, R0                                                 ; +0x4c, 0x461770\nBCS             locret_4617C4                                          ; +0x4e, 0x461772\nLDR.W           R0, [R4,#0x204]; this                                  ; +0x50, 0x461774\nMOV             R1, R5; unsigned int                                   ; +0x54, 0x461778\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x46177a\nLDRB.W          R3, [R4,#0x224]                                        ; +0x5a, 0x46177e\nMOV             R6, R0                                                 ; +0x5e, 0x461782\nCBZ             R3, loc_46178E                                         ; +0x60, 0x461784\nLDRB.W          R3, [R4,#0x225]                                        ; +0x62, 0x461786\nCBZ             R3, loc_46179E                                         ; +0x66, 0x46178a\nB               loc_4617B6                                             ; +0x68, 0x46178c\nMOVS            R1, #1; int                                            ; +0x6a, 0x46178e\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x6c, 0x461790\nADDS            R0, #0                                                 ; +0x70, 0x461794\nIT NE                                                                  ; +0x72, 0x461796\nMOVNE           R0, #1                                                 ; +0x74, 0x461798\nSTRB.W          R0, [R4,#0x224]                                        ; +0x76, 0x46179a\nLDRB.W          R3, [R4,#0x225]                                        ; +0x7a, 0x46179e\nCBNZ            R3, loc_4617B6                                         ; +0x7e, 0x4617a2\nMOV             R0, R6; this                                           ; +0x80, 0x4617a4\nMOVS            R1, #2; int                                            ; +0x82, 0x4617a6\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x84, 0x4617a8\nADDS            R0, #0                                                 ; +0x88, 0x4617ac\nIT NE                                                                  ; +0x8a, 0x4617ae\nMOVNE           R0, #1                                                 ; +0x8c, 0x4617b0\nSTRB.W          R0, [R4,#0x225]                                        ; +0x8e, 0x4617b2\nLDRB.W          R3, [R6,#0x36C]                                        ; +0x92, 0x4617b6\nCBNZ            R3, loc_4617C0                                         ; +0x96, 0x4617ba\nSTRB.W          R3, [R4,#0x226]                                        ; +0x98, 0x4617bc\nADDS            R5, #1                                                 ; +0x9c, 0x4617c0\nB               loc_461768                                             ; +0x9e, 0x4617c2\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x4617c4", "xrefs": ["CustomizeObjectLayer::init @ 0x46269e"], "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"}