{"type": "func", "start": 4650342, "end": 4650426, "name": "GJBaseGameLayer::spawnPlayer2", "pseudocode": "// \n// GJBaseGameLayer::spawnPlayer2 from 0x46f566 to 0x46f5ba (84 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x4917d0\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::spawnPlayer2(GJBaseGameLayer *a1)\n{\n  cocos2d::CCNode *v2; // r0\n\n  if ( !a1->m_player2->getParent(a1->m_player2) )\n  {\n    v2 = a1->m_player1->getParent(a1->m_player1);\n    v2->addChild_0(v2, a1->m_player2, 59);\n    if ( !a1->m_isEditor )\n      PlayerObject::addAllParticles(a1->m_player2);\n  }\n  PlayerObject::spawnFromPlayer(a1->m_player2, (bool)a1->m_player1);\n}", "assembly": "; \n; GJBaseGameLayer::spawnPlayer2 from 0x46f566 to 0x46f5ba (84 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x4917d0\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,LR}                                                ; +0x0, 0x46f566\nMOV             R4, R0                                                 ; +0x2, 0x46f568\nLDR.W           R0, [R0,#0x8BC]                                        ; +0x4, 0x46f56a\nLDR             R3, [R0]                                               ; +0x8, 0x46f56e\nLDR.W           R3, [R3,#0xF8]                                         ; +0xa, 0x46f570\nBLX             R3                                                     ; +0xe, 0x46f574\nCBNZ            R0, loc_46F5A2                                         ; +0x10, 0x46f576\nLDR.W           R0, [R4,#0x8B8]                                        ; +0x12, 0x46f578\nLDR             R3, [R0]                                               ; +0x16, 0x46f57c\nLDR.W           R3, [R3,#0xF8]                                         ; +0x18, 0x46f57e\nBLX             R3                                                     ; +0x1c, 0x46f582\nLDR.W           R1, [R4,#0x8BC]                                        ; +0x1e, 0x46f584\nMOVS            R2, #0x3B ; ';'                                        ; +0x22, 0x46f588\nLDR             R3, [R0]                                               ; +0x24, 0x46f58a\nLDR.W           R3, [R3,#0xE0]                                         ; +0x26, 0x46f58c\nBLX             R3                                                     ; +0x2a, 0x46f590\nMOVW            R3, #0x2A10                                            ; +0x2c, 0x46f592\nLDRB            R3, [R4,R3]                                            ; +0x30, 0x46f596\nCBNZ            R3, loc_46F5A2                                         ; +0x32, 0x46f598\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x34, 0x46f59a\nBL              _ZN12PlayerObject15addAllParticlesEv; PlayerObject::addAllParticles(void) ; +0x38, 0x46f59e\nLDRB.W          R2, [R4,#0x5F0]                                        ; +0x3c, 0x46f5a2\nLDR.W           R0, [R4,#0x8BC]; this                                  ; +0x40, 0x46f5a6\nLDR.W           R1, [R4,#0x8B8]; PlayerObject *                        ; +0x44, 0x46f5aa\nEOR.W           R2, R2, #1; bool                                       ; +0x48, 0x46f5ae\nPOP.W           {R4,LR}                                                ; +0x4c, 0x46f5b2\nB.W             _ZN12PlayerObject15spawnFromPlayerEPS_b; PlayerObject::spawnFromPlayer(PlayerObject*,bool) ; +0x50, 0x46f5b6", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x4917d0"], "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"}