{"type": "func", "start": 4649444, "end": 4649468, "name": "GJBaseGameLayer::getOtherPlayer", "pseudocode": "// \n// GJBaseGameLayer::getOtherPlayer from 0x46f1e4 to 0x46f1fc (24 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::destroyPlayer @ 0x313e1e\n// > GJBaseGameLayer::getGroundHeight @ 0x46f230\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x4916d2\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\nPlayerObject *GJBaseGameLayer::getOtherPlayer(GJBaseGameLayer *a1, PlayerObject *a2)\n{\n  PlayerObject *m_player1; // r3\n\n  m_player1 = a1->m_player1;\n  if ( a2->m_uniqueID == m_player1->m_uniqueID )\n    return a1->m_player2;\n  return m_player1;\n}", "assembly": "; \n; GJBaseGameLayer::getOtherPlayer from 0x46f1e4 to 0x46f1fc (24 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::destroyPlayer @ 0x313e1e\n; > GJBaseGameLayer::getGroundHeight @ 0x46f230\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x4916d2\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\nLDR.W           R3, [R0,#0x8B8]                                        ; +0x0, 0x46f1e4\nLDR.W           R1, [R1,#0x304]                                        ; +0x4, 0x46f1e8\nLDR.W           R2, [R3,#0x304]                                        ; +0x8, 0x46f1ec\nCMP             R1, R2                                                 ; +0xc, 0x46f1f0\nIT EQ                                                                  ; +0xe, 0x46f1f2\nLDREQ.W         R3, [R0,#0x8BC]                                        ; +0x10, 0x46f1f4\nMOV             R0, R3                                                 ; +0x14, 0x46f1f8\nBX              LR                                                     ; +0x16, 0x46f1fa", "xrefs": ["PlayLayer::destroyPlayer @ 0x313e1e", "GJBaseGameLayer::getGroundHeight @ 0x46f230", "GJBaseGameLayer::playerWillSwitchMode @ 0x4916d2"], "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"}