{"type": "func", "start": 4297611108, "end": 4297611232, "name": "GJBaseGameLayer::spawnPlayer2", "pseudocode": "// \n// GJBaseGameLayer::spawnPlayer2 from 0x100285764 to 0x1002857e0 (124 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x100281aec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:57 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::spawnPlayer2(__int64 a1)\n{\n  __int64 v2; // x0\n\n  if ( !(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3264) + 512LL))(*(_QWORD *)(a1 + 3264)) )\n  {\n    v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 512LL))(*(_QWORD *)(a1 + 3256));\n    (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v2 + 464LL))(v2, *(_QWORD *)(a1 + 3264), 59);\n    if ( (*(_BYTE *)(a1 + 12236) & 1) == 0 )\n      PlayerObject::addAllParticles(*(_QWORD *)(a1 + 3264));\n  }\n  return sub_1002CA150(*(_QWORD *)(a1 + 3264), *(_QWORD *)(a1 + 3256), (*(_BYTE *)(a1 + 1912) & 1) == 0);\n}", "assembly": "; \n; GJBaseGameLayer::spawnPlayer2 from 0x100285764 to 0x1002857e0 (124 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x100281aec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:01:57 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100285764\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100285768\nADD             X29, SP, #0x10                                         ; +0x8, 0x10028576c\nMOV             X19, X0                                                ; +0xc, 0x100285770\nLDR             X0, [X0,#0xCC0]                                        ; +0x10, 0x100285774\nLDR             X8, [X0]                                               ; +0x14, 0x100285778\nLDR             X8, [X8,#0x200]                                        ; +0x18, 0x10028577c\nBLR             X8                                                     ; +0x1c, 0x100285780\nCBNZ            X0, loc_1002857C0                                      ; +0x20, 0x100285784\nLDR             X0, [X19,#0xCB8]                                       ; +0x24, 0x100285788\nLDR             X8, [X0]                                               ; +0x28, 0x10028578c\nLDR             X8, [X8,#0x200]                                        ; +0x2c, 0x100285790\nBLR             X8                                                     ; +0x30, 0x100285794\nLDR             X1, [X19,#0xCC0]                                       ; +0x34, 0x100285798\nLDR             X8, [X0]                                               ; +0x38, 0x10028579c\nLDR             X8, [X8,#0x1D0]                                        ; +0x3c, 0x1002857a0\nMOV             W2, #0x3B ; ';'                                        ; +0x40, 0x1002857a4\nBLR             X8                                                     ; +0x44, 0x1002857a8\nMOV             W8, #0x2FCC                                            ; +0x48, 0x1002857ac\nLDRB            W8, [X19,X8]                                           ; +0x4c, 0x1002857b0\nTBNZ            W8, #0, loc_1002857C0                                  ; +0x50, 0x1002857b4\nLDR             X0, [X19,#0xCC0]                                       ; +0x54, 0x1002857b8\nBL              PlayerObject__addAllParticles                          ; +0x58, 0x1002857bc\nLDR             X0, [X19,#0xCC0]                                       ; +0x5c, 0x1002857c0\nLDR             X1, [X19,#0xCB8]                                       ; +0x60, 0x1002857c4\nLDRB            W8, [X19,#0x778]                                       ; +0x64, 0x1002857c8\nMOV             W9, #1                                                 ; +0x68, 0x1002857cc\nBIC             W2, W9, W8                                             ; +0x6c, 0x1002857d0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1002857d4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1002857d8\nB               sub_1002CA150                                          ; +0x78, 0x1002857dc", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x100281aec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}