{"type": "func", "start": 4640120, "end": 4640834, "name": "GJBaseGameLayer::createPlayer", "pseudocode": "// \n// GJBaseGameLayer::createPlayer from 0x46cd78 to 0x46d042 (714 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::init @ 0x31cccc\n// > LevelEditorLayer::init @ 0x3769b8\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 GJBaseGameLayer::createPlayer(GJBaseGameLayer *a1)\n{\n  GameManager *v2; // r0\n  int v3; // r6\n  GameManager *v4; // r0\n  PlayerObject *v5; // r0\n  PlayerObject_vtbl *v6; // r3\n  PlayerObject *v7; // r7\n  void (__fastcall *setColor)(PlayerObject *__hidden, const cocos2d::ccColor3B *); // r8\n  GameManager *v9; // r6\n  GameManager *v10; // r0\n  PlayerObject *m_player1; // r7\n  GameManager *v12; // r8\n  GameManager *v13; // r0\n  GameManager *v14; // r0\n  PlayerObject *v15; // r7\n  GameManager *v16; // r8\n  GameManager *v17; // r0\n  PlayerObject *v18; // r0\n  PlayerObject *v19; // r7\n  GameManager *v20; // r0\n  bool GameVariable; // r0\n  bool m_isEditor; // r3\n  GameManager *v23; // r0\n  int v24; // r7\n  GameManager *v25; // r0\n  PlayerObject *v26; // r0\n  PlayerObject_vtbl *v27; // r3\n  PlayerObject *v28; // r7\n  void (__fastcall *v29)(PlayerObject *__hidden, const cocos2d::ccColor3B *); // r8\n  GameManager *v30; // r9\n  GameManager *v31; // r0\n  PlayerObject *m_player2; // r7\n  GameManager *v33; // r8\n  GameManager *v34; // r0\n  GameManager *v35; // r0\n  PlayerObject *v36; // r7\n  GameManager *v37; // r8\n  GameManager *v38; // r0\n  PlayerObject *v39; // r0\n  bool m_ignoreDamage; // r3\n  cocos2d::ccColor3B v41; // [sp+8h] [bp-Ch] BYREF\n\n  v2 = GameManager::sharedState();\n  v3 = v2->m_playerFrame.random - v2->m_playerFrame.seed;\n  v4 = GameManager::sharedState();\n  v5 = PlayerObject::create(v3, v4->m_playerShip.random - v4->m_playerShip.seed, a1, a1->m_objectLayer, !a1->m_isEditor);\n  v6 = v5->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v7 = v5;\n  a1->m_player1 = v5;\n  setColor = v6->setColor;\n  v9 = GameManager::sharedState();\n  v10 = GameManager::sharedState();\n  v41 = GameManager::colorForIdx(v9, v10->m_playerColor.random - v10->m_playerColor.seed);\n  setColor(v7, &v41);\n  m_player1 = a1->m_player1;\n  v12 = GameManager::sharedState();\n  v13 = GameManager::sharedState();\n  v41 = GameManager::colorForIdx(v12, v13->m_playerColor2.random - v13->m_playerColor2.seed);\n  PlayerObject::setSecondColor(m_player1, &v41);\n  v14 = GameManager::sharedState();\n  if ( v14->m_playerGlowColor.random - v14->m_playerGlowColor.seed >= 0 )\n  {\n    v15 = a1->m_player1;\n    v16 = GameManager::sharedState();\n    v17 = GameManager::sharedState();\n    v41 = GameManager::colorForIdx(v16, v17->m_playerGlowColor.random - v17->m_playerGlowColor.seed);\n    PlayerObject::enableCustomGlowColor(v15, &v41);\n  }\n  PlayerObject::updateGlowColor(a1->m_player1);\n  a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_player1, 59);\n  v18 = a1->m_player1;\n  v18->m_uniqueID = 1;\n  if ( !a1->m_isEditor )\n    PlayerObject::addAllParticles(v18);\n  v19 = a1->m_player1;\n  v20 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v20, \"0068\");\n  PlayerObject::updateCheckpointMode(v19, GameVariable);\n  a1->m_player1->setVisible(a1->m_player1, !a1->m_isEditor);\n  m_isEditor = a1->m_isEditor;\n  if ( m_isEditor )\n    m_isEditor = a1->m_ignoreDamage;\n  a1->m_player1->m_ignoreDamage = m_isEditor;\n  v23 = GameManager::sharedState();\n  v24 = v23->m_playerFrame.random - v23->m_playerFrame.seed;\n  v25 = GameManager::sharedState();\n  v26 = PlayerObject::create(\n          v24,\n          v25->m_playerShip.random - v25->m_playerShip.seed,\n          a1,\n          a1->m_objectLayer,\n          !a1->m_isEditor);\n  v27 = v26->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v28 = v26;\n  a1->m_player2 = v26;\n  v29 = v27->setColor;\n  v30 = GameManager::sharedState();\n  v31 = GameManager::sharedState();\n  v41 = GameManager::colorForIdx(v30, v31->m_playerColor2.random - v31->m_playerColor2.seed);\n  v29(v28, &v41);\n  m_player2 = a1->m_player2;\n  v33 = GameManager::sharedState();\n  v34 = GameManager::sharedState();\n  v41 = GameManager::colorForIdx(v33, v34->m_playerColor.random - v34->m_playerColor.seed);\n  PlayerObject::setSecondColor(m_player2, &v41);\n  v35 = GameManager::sharedState();\n  if ( v35->m_playerGlowColor.random - v35->m_playerGlowColor.seed >= 0 )\n  {\n    v36 = a1->m_player2;\n    v37 = GameManager::sharedState();\n    v38 = GameManager::sharedState();\n    v41 = GameManager::colorForIdx(v37, v38->m_playerGlowColor.random - v38->m_playerGlowColor.seed);\n    PlayerObject::enableCustomGlowColor(v36, &v41);\n  }\n  PlayerObject::updateGlowColor(a1->m_player2);\n  cocos2d::CCObject::retain(a1->m_player2);\n  v39 = a1->m_player2;\n  v39->m_isSecondPlayer = 1;\n  v39->m_uniqueID = 2;\n  v39->setVisible(v39, !a1->m_isEditor);\n  m_ignoreDamage = a1->m_isEditor;\n  if ( m_ignoreDamage )\n    m_ignoreDamage = a1->m_ignoreDamage;\n  a1->m_player2->m_ignoreDamage = m_ignoreDamage;\n}", "assembly": "; \n; GJBaseGameLayer::createPlayer from 0x46cd78 to 0x46d042 (714 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::init @ 0x31cccc\n; > LevelEditorLayer::init @ 0x3769b8\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.W          {R4-R9,LR}                                             ; +0x0, 0x46cd78\nSUB             SP, SP, #0x14                                          ; +0x4, 0x46cd7c\nLDR             R5, =(__stack_chk_guard_ptr - 0x46CD86)                ; +0x6, 0x46cd7e\nMOV             R4, R0                                                 ; +0x8, 0x46cd80\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x46cd82\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x46cd84\nLDR             R3, [R5]                                               ; +0xe, 0x46cd86\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x10, 0x46cd88\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x46cd8a\nLDR.W           R3, [R0,#0x1CC]                                        ; +0x16, 0x46cd8e\nLDR.W           R6, [R0,#0x1D0]                                        ; +0x1a, 0x46cd92\nSUBS            R6, R3, R6                                             ; +0x1e, 0x46cd96\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x46cd98\nMOVW            R3, #0x2A10                                            ; +0x24, 0x46cd9c\nLDRB            R3, [R4,R3]                                            ; +0x28, 0x46cda0\nEOR.W           R3, R3, #1                                             ; +0x2a, 0x46cda2\nLDR.W           R2, [R0,#0x1DC]                                        ; +0x2e, 0x46cda6\nLDR.W           R1, [R0,#0x1D8]                                        ; +0x32, 0x46cdaa\nMOV             R0, R6; this                                           ; +0x36, 0x46cdae\nSTR             R3, [SP,#0x14+var_14]; cocos2d::CCLayer *              ; +0x38, 0x46cdb0\nSUBS            R1, R1, R2; int                                        ; +0x3a, 0x46cdb2\nLDR.W           R3, [R4,#0x9F0]; GJBaseGameLayer *                     ; +0x3c, 0x46cdb4\nMOV             R2, R4; int                                            ; +0x40, 0x46cdb8\nBL              _ZN12PlayerObject6createEiiP15GJBaseGameLayerPN7cocos2d7CCLayerEb; PlayerObject::create(int,int,GJBaseGameLayer *,cocos2d::CCLayer *,bool) ; +0x42, 0x46cdba\nLDR             R3, [R0]                                               ; +0x46, 0x46cdbe\nMOV             R7, R0                                                 ; +0x48, 0x46cdc0\nSTR.W           R0, [R4,#0x8B8]                                        ; +0x4a, 0x46cdc2\nLDR.W           R8, [R3,#0x1D8]                                        ; +0x4e, 0x46cdc6\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x52, 0x46cdca\nMOV             R6, R0                                                 ; +0x56, 0x46cdce\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0x46cdd0\nLDR.W           R3, [R0,#0x230]                                        ; +0x5c, 0x46cdd4\nLDR.W           R1, [R0,#0x22C]                                        ; +0x60, 0x46cdd8\nMOV             R0, R6; this                                           ; +0x64, 0x46cddc\nADD             R6, SP, #0x14+var_C                                    ; +0x66, 0x46cdde\nSUBS            R1, R1, R3; int                                        ; +0x68, 0x46cde0\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x6a, 0x46cde2\nMOV             R1, R6                                                 ; +0x6e, 0x46cde6\nUBFX.W          R3, R0, #8, #8                                         ; +0x70, 0x46cde8\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0x74, 0x46cdec\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x78, 0x46cdf0\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x7c, 0x46cdf4\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x80, 0x46cdf8\nMOV             R0, R7                                                 ; +0x84, 0x46cdfc\nBLX             R8                                                     ; +0x86, 0x46cdfe\nLDR.W           R7, [R4,#0x8B8]                                        ; +0x88, 0x46ce00\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8c, 0x46ce04\nMOV             R8, R0                                                 ; +0x90, 0x46ce08\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x92, 0x46ce0a\nLDR.W           R3, [R0,#0x23C]                                        ; +0x96, 0x46ce0e\nLDR.W           R1, [R0,#0x238]                                        ; +0x9a, 0x46ce12\nMOV             R0, R8; this                                           ; +0x9e, 0x46ce16\nSUBS            R1, R1, R3; int                                        ; +0xa0, 0x46ce18\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0xa2, 0x46ce1a\nMOV             R1, R6                                                 ; +0xa6, 0x46ce1e\nUBFX.W          R3, R0, #8, #8                                         ; +0xa8, 0x46ce20\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0xac, 0x46ce24\nUBFX.W          R0, R0, #0x10, #8                                      ; +0xb0, 0x46ce28\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0xb4, 0x46ce2c\nMOV             R0, R7                                                 ; +0xb8, 0x46ce30\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0xba, 0x46ce32\nBL              _ZN12PlayerObject14setSecondColorERKN7cocos2d10_ccColor3BE; PlayerObject::setSecondColor(cocos2d::_ccColor3B const&) ; +0xbe, 0x46ce36\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc2, 0x46ce3a\nLDR.W           R3, [R0,#0x244]                                        ; +0xc6, 0x46ce3e\nLDR.W           R2, [R0,#0x248]                                        ; +0xca, 0x46ce42\nSUBS            R3, R3, R2                                             ; +0xce, 0x46ce46\nCMP             R3, #0                                                 ; +0xd0, 0x46ce48\nBLT             loc_46CE86                                             ; +0xd2, 0x46ce4a\nLDR.W           R7, [R4,#0x8B8]                                        ; +0xd4, 0x46ce4c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xd8, 0x46ce50\nMOV             R8, R0                                                 ; +0xdc, 0x46ce54\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xde, 0x46ce56\nLDR.W           R3, [R0,#0x248]                                        ; +0xe2, 0x46ce5a\nLDR.W           R1, [R0,#0x244]                                        ; +0xe6, 0x46ce5e\nMOV             R0, R8; this                                           ; +0xea, 0x46ce62\nSUBS            R1, R1, R3; int                                        ; +0xec, 0x46ce64\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0xee, 0x46ce66\nMOV             R1, R6                                                 ; +0xf2, 0x46ce6a\nUBFX.W          R3, R0, #8, #8                                         ; +0xf4, 0x46ce6c\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0xf8, 0x46ce70\nUBFX.W          R0, R0, #0x10, #8                                      ; +0xfc, 0x46ce74\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x100, 0x46ce78\nMOV             R0, R7                                                 ; +0x104, 0x46ce7c\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x106, 0x46ce7e\nBL              _ZN12PlayerObject21enableCustomGlowColorERKN7cocos2d10_ccColor3BE; PlayerObject::enableCustomGlowColor(cocos2d::_ccColor3B const&) ; +0x10a, 0x46ce82\nLDR.W           R0, [R4,#0x8B8]; this                                  ; +0x10e, 0x46ce86\nBL              _ZN12PlayerObject15updateGlowColorEv; PlayerObject::updateGlowColor(void) ; +0x112, 0x46ce8a\nLDR.W           R0, [R4,#0x9F0]                                        ; +0x116, 0x46ce8e\nLDR.W           R1, [R4,#0x8B8]                                        ; +0x11a, 0x46ce92\nMOVS            R2, #0x3B ; ';'                                        ; +0x11e, 0x46ce96\nLDR             R3, [R0]                                               ; +0x120, 0x46ce98\nLDR.W           R3, [R3,#0xE0]                                         ; +0x122, 0x46ce9a\nBLX             R3                                                     ; +0x126, 0x46ce9e\nLDR.W           R0, [R4,#0x8B8]; this                                  ; +0x128, 0x46cea0\nMOVS            R3, #1                                                 ; +0x12c, 0x46cea4\nSTR.W           R3, [R0,#0x304]                                        ; +0x12e, 0x46cea6\nMOVW            R3, #0x2A10                                            ; +0x132, 0x46ceaa\nLDRB            R3, [R4,R3]                                            ; +0x136, 0x46ceae\nCBNZ            R3, loc_46CEB6                                         ; +0x138, 0x46ceb0\nBL              _ZN12PlayerObject15addAllParticlesEv; PlayerObject::addAllParticles(void) ; +0x13a, 0x46ceb2\nLDR.W           R7, [R4,#0x8B8]                                        ; +0x13e, 0x46ceb6\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x142, 0x46ceba\nLDR             R1, =(a0068 - 0x46CEC4); \"0068\"                        ; +0x146, 0x46cebe\nADD             R1, PC; \"0068\"                                         ; +0x148, 0x46cec0\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x14a, 0x46cec2\nMOV             R1, R0; bool                                           ; +0x14e, 0x46cec6\nMOV             R0, R7; this                                           ; +0x150, 0x46cec8\nBL              _ZN12PlayerObject20updateCheckpointModeEb; PlayerObject::updateCheckpointMode(bool) ; +0x152, 0x46ceca\nLDR.W           R0, [R4,#0x8B8]                                        ; +0x156, 0x46cece\nMOVW            R7, #0x2A10                                            ; +0x15a, 0x46ced2\nLDRB            R1, [R4,R7]                                            ; +0x15e, 0x46ced6\nLDR             R3, [R0]                                               ; +0x160, 0x46ced8\nEOR.W           R1, R1, #1                                             ; +0x162, 0x46ceda\nLDR.W           R3, [R3,#0xA4]                                         ; +0x166, 0x46cede\nBLX             R3                                                     ; +0x16a, 0x46cee2\nLDRB            R3, [R4,R7]                                            ; +0x16c, 0x46cee4\nLDR.W           R2, [R4,#0x8B8]                                        ; +0x16e, 0x46cee6\nCBZ             R3, loc_46CEF0                                         ; +0x172, 0x46ceea\nLDRB.W          R3, [R4,#0x612]                                        ; +0x174, 0x46ceec\nSTRB.W          R3, [R2,#0x9C8]                                        ; +0x178, 0x46cef0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x17c, 0x46cef4\nLDR.W           R3, [R0,#0x1CC]                                        ; +0x180, 0x46cef8\nLDR.W           R7, [R0,#0x1D0]                                        ; +0x184, 0x46cefc\nSUBS            R7, R3, R7                                             ; +0x188, 0x46cf00\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18a, 0x46cf02\nMOVW            R3, #0x2A10                                            ; +0x18e, 0x46cf06\nLDRB            R3, [R4,R3]                                            ; +0x192, 0x46cf0a\nEOR.W           R3, R3, #1                                             ; +0x194, 0x46cf0c\nLDR.W           R2, [R0,#0x1DC]                                        ; +0x198, 0x46cf10\nLDR.W           R1, [R0,#0x1D8]                                        ; +0x19c, 0x46cf14\nMOV             R0, R7; this                                           ; +0x1a0, 0x46cf18\nSTR             R3, [SP,#0x14+var_14]; cocos2d::CCLayer *              ; +0x1a2, 0x46cf1a\nSUBS            R1, R1, R2; int                                        ; +0x1a4, 0x46cf1c\nLDR.W           R3, [R4,#0x9F0]; GJBaseGameLayer *                     ; +0x1a6, 0x46cf1e\nMOV             R2, R4; int                                            ; +0x1aa, 0x46cf22\nBL              _ZN12PlayerObject6createEiiP15GJBaseGameLayerPN7cocos2d7CCLayerEb; PlayerObject::create(int,int,GJBaseGameLayer *,cocos2d::CCLayer *,bool) ; +0x1ac, 0x46cf24\nLDR             R3, [R0]                                               ; +0x1b0, 0x46cf28\nMOV             R7, R0                                                 ; +0x1b2, 0x46cf2a\nSTR.W           R0, [R4,#0x8BC]                                        ; +0x1b4, 0x46cf2c\nLDR.W           R8, [R3,#0x1D8]                                        ; +0x1b8, 0x46cf30\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1bc, 0x46cf34\nMOV             R9, R0                                                 ; +0x1c0, 0x46cf38\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c2, 0x46cf3a\nLDR.W           R3, [R0,#0x23C]                                        ; +0x1c6, 0x46cf3e\nLDR.W           R1, [R0,#0x238]                                        ; +0x1ca, 0x46cf42\nMOV             R0, R9; this                                           ; +0x1ce, 0x46cf46\nSUBS            R1, R1, R3; int                                        ; +0x1d0, 0x46cf48\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x1d2, 0x46cf4a\nMOV             R1, R6                                                 ; +0x1d6, 0x46cf4e\nUBFX.W          R3, R0, #8, #8                                         ; +0x1d8, 0x46cf50\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0x1dc, 0x46cf54\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x1e0, 0x46cf58\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x1e4, 0x46cf5c\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x1e8, 0x46cf60\nMOV             R0, R7                                                 ; +0x1ec, 0x46cf64\nBLX             R8                                                     ; +0x1ee, 0x46cf66\nLDR.W           R7, [R4,#0x8BC]                                        ; +0x1f0, 0x46cf68\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1f4, 0x46cf6c\nMOV             R8, R0                                                 ; +0x1f8, 0x46cf70\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1fa, 0x46cf72\nLDR.W           R3, [R0,#0x230]                                        ; +0x1fe, 0x46cf76\nLDR.W           R1, [R0,#0x22C]                                        ; +0x202, 0x46cf7a\nMOV             R0, R8; this                                           ; +0x206, 0x46cf7e\nSUBS            R1, R1, R3; int                                        ; +0x208, 0x46cf80\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x20a, 0x46cf82\nMOV             R1, R6                                                 ; +0x20e, 0x46cf86\nUBFX.W          R3, R0, #8, #8                                         ; +0x210, 0x46cf88\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0x214, 0x46cf8c\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x218, 0x46cf90\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x21c, 0x46cf94\nMOV             R0, R7                                                 ; +0x220, 0x46cf98\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x222, 0x46cf9a\nBL              _ZN12PlayerObject14setSecondColorERKN7cocos2d10_ccColor3BE; PlayerObject::setSecondColor(cocos2d::_ccColor3B const&) ; +0x226, 0x46cf9e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x22a, 0x46cfa2\nLDR.W           R3, [R0,#0x244]                                        ; +0x22e, 0x46cfa6\nLDR.W           R2, [R0,#0x248]                                        ; +0x232, 0x46cfaa\nSUBS            R3, R3, R2                                             ; +0x236, 0x46cfae\nCMP             R3, #0                                                 ; +0x238, 0x46cfb0\nBLT             loc_46CFEE                                             ; +0x23a, 0x46cfb2\nLDR.W           R7, [R4,#0x8BC]                                        ; +0x23c, 0x46cfb4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x240, 0x46cfb8\nMOV             R8, R0                                                 ; +0x244, 0x46cfbc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x246, 0x46cfbe\nLDR.W           R3, [R0,#0x248]                                        ; +0x24a, 0x46cfc2\nLDR.W           R1, [R0,#0x244]                                        ; +0x24e, 0x46cfc6\nMOV             R0, R8; this                                           ; +0x252, 0x46cfca\nSUBS            R1, R1, R3; int                                        ; +0x254, 0x46cfcc\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x256, 0x46cfce\nMOV             R1, R6                                                 ; +0x25a, 0x46cfd2\nUBFX.W          R3, R0, #8, #8                                         ; +0x25c, 0x46cfd4\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0x260, 0x46cfd8\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x264, 0x46cfdc\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x268, 0x46cfe0\nMOV             R0, R7                                                 ; +0x26c, 0x46cfe4\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x26e, 0x46cfe6\nBL              _ZN12PlayerObject21enableCustomGlowColorERKN7cocos2d10_ccColor3BE; PlayerObject::enableCustomGlowColor(cocos2d::_ccColor3B const&) ; +0x272, 0x46cfea\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x276, 0x46cfee\nMOVW            R6, #0x2A10                                            ; +0x27a, 0x46cff2\nBL              _ZN12PlayerObject15updateGlowColorEv; PlayerObject::updateGlowColor(void) ; +0x27e, 0x46cff6\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x282, 0x46cffa\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x286, 0x46cffe\nLDR.W           R0, [R4,#0x8BC]                                        ; +0x28a, 0x46d002\nMOVS            R3, #1                                                 ; +0x28e, 0x46d006\nSTRB.W          R3, [R0,#0x860]                                        ; +0x290, 0x46d008\nMOVS            R3, #2                                                 ; +0x294, 0x46d00c\nSTR.W           R3, [R0,#0x304]                                        ; +0x296, 0x46d00e\nLDR             R3, [R0]                                               ; +0x29a, 0x46d012\nLDRB            R1, [R4,R6]                                            ; +0x29c, 0x46d014\nLDR.W           R3, [R3,#0xA4]                                         ; +0x29e, 0x46d016\nEOR.W           R1, R1, #1                                             ; +0x2a2, 0x46d01a\nBLX             R3                                                     ; +0x2a6, 0x46d01e\nLDRB            R3, [R4,R6]                                            ; +0x2a8, 0x46d020\nLDR.W           R2, [R4,#0x8BC]                                        ; +0x2aa, 0x46d022\nCBZ             R3, loc_46D02C                                         ; +0x2ae, 0x46d026\nLDRB.W          R3, [R4,#0x612]                                        ; +0x2b0, 0x46d028\nSTRB.W          R3, [R2,#0x9C8]                                        ; +0x2b4, 0x46d02c\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x2b8, 0x46d030\nLDR             R3, [R5]                                               ; +0x2ba, 0x46d032\nCMP             R2, R3                                                 ; +0x2bc, 0x46d034\nBEQ             loc_46D03C                                             ; +0x2be, 0x46d036\nBLX             __stack_chk_fail                                       ; +0x2c0, 0x46d038\nADD             SP, SP, #0x14                                          ; +0x2c4, 0x46d03c\nPOP.W           {R4-R9,PC}                                             ; +0x2c6, 0x46d03e", "xrefs": ["PlayLayer::init @ 0x31cccc", "LevelEditorLayer::init @ 0x3769b8"], "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"}