{"type": "func", "start": 5759832, "end": 5759994, "name": "CustomizeObjectLayer::determineStartValues", "pseudocode": "// \n// CustomizeObjectLayer::determineStartValues from 0x57e358 to 0x57e3fa (162 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x57f944\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\nunsigned int __fastcall CustomizeObjectLayer::determineStartValues(CustomizeObjectLayer *this)\n{\n  GameObject *v2; // r0\n  int RelativeSpriteColor; // r0\n  int v4; // r3\n  unsigned int result; // r0\n  unsigned int v6; // r5\n  GameObject *v7; // r0\n  GameObject *v8; // r6\n\n  v2 = *((GameObject **)this + 133);\n  if ( !v2 )\n  {\n    v6 = 0;\n    *((_BYTE *)this + 570) = 1;\n    while ( 1 )\n    {\n      result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 134));\n      if ( v6 >= result )\n        return result;\n      v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 134), v6);\n      v8 = v7;\n      if ( *((_BYTE *)this + 568) )\n      {\n        if ( *((_BYTE *)this + 569) )\n          goto LABEL_11;\n      }\n      else\n      {\n        *((_BYTE *)this + 568) = GameObject::getRelativeSpriteColor(v7, 1) != 0;\n      }\n      if ( !*((_BYTE *)this + 569) )\n        *((_BYTE *)this + 569) = GameObject::getRelativeSpriteColor(v8, 2) != 0;\nLABEL_11:\n      if ( !*((_BYTE *)v8 + 884) )\n        *((_BYTE *)this + 570) = 0;\n      ++v6;\n    }\n  }\n  *((_BYTE *)this + 568) = GameObject::getRelativeSpriteColor(v2, 1) != 0;\n  RelativeSpriteColor = GameObject::getRelativeSpriteColor(*((GameObject **)this + 133), 2);\n  v4 = *((_DWORD *)this + 133);\n  result = RelativeSpriteColor != 0;\n  *((_BYTE *)this + 569) = result;\n  *((_BYTE *)this + 570) = *(_BYTE *)(v4 + 884);\n  return result;\n}", "assembly": "; \n; CustomizeObjectLayer::determineStartValues from 0x57e358 to 0x57e3fa (162 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x57f944\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-R6,LR}                                             ; +0x0, 0x57e358\nMOV             R4, R0                                                 ; +0x2, 0x57e35a\nLDR.W           R0, [R0,#0x214]; this                                  ; +0x4, 0x57e35c\nCBZ             R0, loc_57E394                                         ; +0x8, 0x57e360\nMOVS            R1, #1; int                                            ; +0xa, 0x57e362\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0xc, 0x57e364\nMOVS            R1, #2; int                                            ; +0x10, 0x57e368\nADDS            R0, #0                                                 ; +0x12, 0x57e36a\nIT NE                                                                  ; +0x14, 0x57e36c\nMOVNE           R0, #1                                                 ; +0x16, 0x57e36e\nSTRB.W          R0, [R4,#0x238]                                        ; +0x18, 0x57e370\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x1c, 0x57e374\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x20, 0x57e378\nLDR.W           R3, [R4,#0x214]                                        ; +0x24, 0x57e37c\nADDS            R0, #0                                                 ; +0x28, 0x57e380\nIT NE                                                                  ; +0x2a, 0x57e382\nMOVNE           R0, #1                                                 ; +0x2c, 0x57e384\nSTRB.W          R0, [R4,#0x239]                                        ; +0x2e, 0x57e386\nLDRB.W          R3, [R3,#0x374]                                        ; +0x32, 0x57e38a\nSTRB.W          R3, [R4,#0x23A]                                        ; +0x36, 0x57e38e\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x57e392\nMOV             R5, R0                                                 ; +0x3c, 0x57e394\nMOVS            R3, #1                                                 ; +0x3e, 0x57e396\nSTRB.W          R3, [R4,#0x23A]                                        ; +0x40, 0x57e398\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x44, 0x57e39c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x57e3a0\nCMP             R5, R0                                                 ; +0x4c, 0x57e3a4\nBCS             locret_57E3F8                                          ; +0x4e, 0x57e3a6\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x50, 0x57e3a8\nMOV             R1, R5; unsigned int                                   ; +0x54, 0x57e3ac\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x57e3ae\nLDRB.W          R3, [R4,#0x238]                                        ; +0x5a, 0x57e3b2\nMOV             R6, R0                                                 ; +0x5e, 0x57e3b6\nCBZ             R3, loc_57E3C2                                         ; +0x60, 0x57e3b8\nLDRB.W          R3, [R4,#0x239]                                        ; +0x62, 0x57e3ba\nCBZ             R3, loc_57E3D2                                         ; +0x66, 0x57e3be\nB               loc_57E3EA                                             ; +0x68, 0x57e3c0\nMOVS            R1, #1; int                                            ; +0x6a, 0x57e3c2\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x6c, 0x57e3c4\nADDS            R0, #0                                                 ; +0x70, 0x57e3c8\nIT NE                                                                  ; +0x72, 0x57e3ca\nMOVNE           R0, #1                                                 ; +0x74, 0x57e3cc\nSTRB.W          R0, [R4,#0x238]                                        ; +0x76, 0x57e3ce\nLDRB.W          R3, [R4,#0x239]                                        ; +0x7a, 0x57e3d2\nCBNZ            R3, loc_57E3EA                                         ; +0x7e, 0x57e3d6\nMOV             R0, R6; this                                           ; +0x80, 0x57e3d8\nMOVS            R1, #2; int                                            ; +0x82, 0x57e3da\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x84, 0x57e3dc\nADDS            R0, #0                                                 ; +0x88, 0x57e3e0\nIT NE                                                                  ; +0x8a, 0x57e3e2\nMOVNE           R0, #1                                                 ; +0x8c, 0x57e3e4\nSTRB.W          R0, [R4,#0x239]                                        ; +0x8e, 0x57e3e6\nLDRB.W          R3, [R6,#0x374]                                        ; +0x92, 0x57e3ea\nCBNZ            R3, loc_57E3F4                                         ; +0x96, 0x57e3ee\nSTRB.W          R3, [R4,#0x23A]                                        ; +0x98, 0x57e3f0\nADDS            R5, #1                                                 ; +0x9c, 0x57e3f4\nB               loc_57E39C                                             ; +0x9e, 0x57e3f6\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x57e3f8", "xrefs": ["CustomizeObjectLayer::init @ 0x57f944"], "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"}