{"type": "func", "start": 4296185824, "end": 4296185950, "name": "GJBaseGameLayer::spawnPlayer2", "pseudocode": "// \n// GJBaseGameLayer::spawnPlayer2 from 0x1001297e0 to 0x10012985e (126 bytes)\n// \n// 0 xrefs:\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 __fastcall GJBaseGameLayer::spawnPlayer2(GJBaseGameLayer *a1)\n{\n  __int64 v1; // rax\n\n  if ( !((__int64 (__fastcall *)(PlayerObject *))a1->m_player2->getParent)(a1->m_player2) )\n  {\n    v1 = ((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getParent)(a1->m_player1);\n    (*(void (__fastcall **)(__int64, PlayerObject *, __int64))(*(_QWORD *)v1 + 448LL))(v1, 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 0x1001297e0 to 0x10012985e (126 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1001297e0\nmov     rbp, rsp                                                       ; +0x1, 0x1001297e1\npush    rbx                                                            ; +0x4, 0x1001297e4\npush    rax                                                            ; +0x5, 0x1001297e5\nmov     rbx, rdi                                                       ; +0x6, 0x1001297e6\nmov     rdi, [rdi+0CA8h]                                               ; +0x9, 0x1001297e9\nmov     rax, [rdi]                                                     ; +0x10, 0x1001297f0\ncall    qword ptr [rax+1F0h]                                           ; +0x13, 0x1001297f3\ntest    rax, rax                                                       ; +0x19, 0x1001297f9\njnz     short loc_10012983B                                            ; +0x1c, 0x1001297fc\nmov     rdi, [rbx+0CA0h]                                               ; +0x1e, 0x1001297fe\nmov     rax, [rdi]                                                     ; +0x25, 0x100129805\ncall    qword ptr [rax+1F0h]                                           ; +0x28, 0x100129808\nmov     rsi, [rbx+0CA8h]                                               ; +0x2e, 0x10012980e\nmov     rcx, [rax]                                                     ; +0x35, 0x100129815\nmov     rdi, rax                                                       ; +0x38, 0x100129818\nmov     edx, 3Bh ; ';'                                                 ; +0x3b, 0x10012981b\ncall    qword ptr [rcx+1C0h]                                           ; +0x40, 0x100129820\ncmp     byte ptr [rbx+2F34h], 0                                        ; +0x46, 0x100129826\njnz     short loc_10012983B                                            ; +0x4d, 0x10012982d\nmov     rdi, [rbx+0CA8h]                                               ; +0x4f, 0x10012982f\ncall    PlayerObject__addAllParticles                                  ; +0x56, 0x100129836\nmov     rsi, [rbx+0CA0h]                                               ; +0x5b, 0x10012983b\nmov     rdi, [rbx+0CA8h]                                               ; +0x62, 0x100129842\nmovzx   edx, byte ptr [rbx+778h]                                       ; +0x69, 0x100129849\nxor     edx, 1                                                         ; +0x70, 0x100129850\nadd     rsp, 8                                                         ; +0x73, 0x100129853\npop     rbx                                                            ; +0x77, 0x100129857\npop     rbp                                                            ; +0x78, 0x100129858\njmp     PlayerObject__spawnFromPlayer                                  ; +0x79, 0x100129859", "xrefs": [], "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"}