{"type": "func", "start": 8759256, "end": 8759388, "name": "GJBaseGameLayer::spawnPlayer2", "pseudocode": "// \n// GJBaseGameLayer::spawnPlayer2 from 0x85a7d8 to 0x85a85c (132 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x88a514\n// > <???> @ 0x68d90\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; // x0\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 0x85a7d8 to 0x85a85c (132 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x88a514\n; > <???> @ 0x68d90\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,#var_20]!                                ; +0x0, 0x85a7d8\nMOV             X29, SP                                                ; +0x4, 0x85a7dc\nLDR             X1, [X0,#0xE00]                                        ; +0x8, 0x85a7e0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x85a7e4\nMOV             X19, X0                                                ; +0x10, 0x85a7e8\nMOV             X0, X1                                                 ; +0x14, 0x85a7ec\nLDR             X1, [X1]                                               ; +0x18, 0x85a7f0\nLDR             X1, [X1,#0x1F0]                                        ; +0x1c, 0x85a7f4\nBLR             X1                                                     ; +0x20, 0x85a7f8\nCBZ             X0, loc_85A81C                                         ; +0x24, 0x85a7fc\nLDRB            W2, [X19,#0x888]                                       ; +0x28, 0x85a800\nLDR             X0, [X19,#0xE00]; this                                 ; +0x2c, 0x85a804\nLDR             X1, [X19,#0xDF8]; PlayerObject *                       ; +0x30, 0x85a808\nEOR             W2, W2, #1; bool                                       ; +0x34, 0x85a80c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x85a810\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x85a814\nB               _ZN12PlayerObject15spawnFromPlayerEPS_b; PlayerObject::spawnFromPlayer(PlayerObject*,bool) ; +0x40, 0x85a818\nLDR             X1, [X19,#0xDF8]                                       ; +0x44, 0x85a81c\nMOV             X0, X1                                                 ; +0x48, 0x85a820\nLDR             X1, [X1]                                               ; +0x4c, 0x85a824\nLDR             X1, [X1,#0x1F0]                                        ; +0x50, 0x85a828\nBLR             X1                                                     ; +0x54, 0x85a82c\nLDR             X3, [X0]                                               ; +0x58, 0x85a830\nLDR             X1, [X19,#0xE00]                                       ; +0x5c, 0x85a834\nMOV             W2, #0x3B ; ';'                                        ; +0x60, 0x85a838\nLDR             X3, [X3,#0x1C0]                                        ; +0x64, 0x85a83c\nBLR             X3                                                     ; +0x68, 0x85a840\nADD             X0, X19, #3,LSL#12                                     ; +0x6c, 0x85a844\nLDRB            W0, [X0,#0x10C]                                        ; +0x70, 0x85a848\nCBNZ            W0, loc_85A800                                         ; +0x74, 0x85a84c\nLDR             X0, [X19,#0xE00]; this                                 ; +0x78, 0x85a850\nBL              _ZN12PlayerObject15addAllParticlesEv; PlayerObject::addAllParticles(void) ; +0x7c, 0x85a854\nB               loc_85A800                                             ; +0x80, 0x85a858", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x88a514", "<???> @ 0x68d90"], "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"}