{"type": "func", "start": 8912524, "end": 8912712, "name": "GJBaseGameLayer::updateDualGround", "pseudocode": "// \n// GJBaseGameLayer::updateDualGround from 0x87fe8c to 0x87ff48 (188 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x5e4e98\n// > GJBaseGameLayer::updateCameraMode @ 0x87ffc8\n// > GJBaseGameLayer::updateZoom @ 0x8800f4\n// > GJBaseGameLayer::exitStaticCamera @ 0x880520\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x88a1c0\n// > GJBaseGameLayer::toggleDualMode @ 0x88a434\n// > GJBaseGameLayer::setupLevelStart @ 0x88a680\n// > <???> @ 0xabff0\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::updateDualGround(GJBaseGameLayer *a1, PlayerObject *a2, int a3, bool a4, float a5)\n{\n  GameObject *m_lastActivatedPortal1; // x22\n  float GroundHeight; // s0\n\n  if ( !a1->m_gameState.m_isDualMode || (m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal2) == nullptr )\n    m_lastActivatedPortal1 = a1->m_gameState.m_lastActivatedPortal1;\n  if ( (unsigned int)(a3 - 23) > 1 )\n    a1->m_gameState.m_dualRelated = a3;\n  GroundHeight = GJBaseGameLayer::getGroundHeight(a1, a2, a3);\n  if ( !a1->m_gameState.m_isFreeMode && (GroundHeight != 270.0 || a3 == 33 || a1->m_gameState.m_isDualMode) )\n    GJBaseGameLayer::animateInDualGroundNew(a1, m_lastActivatedPortal1, GroundHeight, a4, a5);\n  else\n    GJBaseGameLayer::animateOutGroundNew(a1, a4);\n}", "assembly": "; \n; GJBaseGameLayer::updateDualGround from 0x87fe8c to 0x87ff48 (188 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x5e4e98\n; > GJBaseGameLayer::updateCameraMode @ 0x87ffc8\n; > GJBaseGameLayer::updateZoom @ 0x8800f4\n; > GJBaseGameLayer::exitStaticCamera @ 0x880520\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x88a1c0\n; > GJBaseGameLayer::toggleDualMode @ 0x88a434\n; > GJBaseGameLayer::setupLevelStart @ 0x88a680\n; > <???> @ 0xabff0\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_40]!                                ; +0x0, 0x87fe8c\nMOV             X29, SP                                                ; +0x4, 0x87fe90\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x87fe94\nMOV             X19, X0                                                ; +0xc, 0x87fe98\nLDRB            W0, [X0,#0x412]                                        ; +0x10, 0x87fe9c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x87fea0\nSTR             D8, [SP,#0x40+var_10]                                  ; +0x18, 0x87fea4\nMOV             W20, W2                                                ; +0x1c, 0x87fea8\nUXTB            W21, W3                                                ; +0x20, 0x87feac\nFMOV            S8, S0                                                 ; +0x24, 0x87feb0\nCBZ             W0, loc_87FF1C                                         ; +0x28, 0x87feb4\nLDR             X22, [X19,#0x3F8]                                      ; +0x2c, 0x87feb8\nCBZ             X22, loc_87FF1C                                        ; +0x30, 0x87febc\nSUB             W0, W20, #0x17                                         ; +0x34, 0x87fec0\nCMP             W0, #1                                                 ; +0x38, 0x87fec4\nB.LS            loc_87FED0                                             ; +0x3c, 0x87fec8\nSTR             W20, [X19,#0x540]                                      ; +0x40, 0x87fecc\nMOV             X0, X19; this                                          ; +0x44, 0x87fed0\nMOV             W2, W20; int                                           ; +0x48, 0x87fed4\nBL              _ZN15GJBaseGameLayer15getGroundHeightEP12PlayerObjecti; GJBaseGameLayer::getGroundHeight(PlayerObject *,int) ; +0x4c, 0x87fed8\nLDRB            W0, [X19,#0x311]                                       ; +0x50, 0x87fedc\nCBNZ            W0, loc_87FF00                                         ; +0x54, 0x87fee0\nLDR             S2, =0x43870000                                        ; +0x58, 0x87fee4\nFCMP            S0, S2; float                                          ; +0x5c, 0x87fee8\nB.NE            loc_87FF24                                             ; +0x60, 0x87feec\nCMP             W20, #0x21 ; '!'                                       ; +0x64, 0x87fef0\nB.EQ            loc_87FF24                                             ; +0x68, 0x87fef4\nLDRB            W0, [X19,#0x412]                                       ; +0x6c, 0x87fef8\nCBNZ            W0, loc_87FF24                                         ; +0x70, 0x87fefc\nLDR             D8, [SP,#0x40+var_10]                                  ; +0x74, 0x87ff00\nMOV             X0, X19; this                                          ; +0x78, 0x87ff04\nMOV             W1, W21; bool                                          ; +0x7c, 0x87ff08\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0x87ff0c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x84, 0x87ff10\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x88, 0x87ff14\nB               _ZN15GJBaseGameLayer19animateOutGroundNewEb; GJBaseGameLayer::animateOutGroundNew(bool) ; +0x8c, 0x87ff18\nLDR             X22, [X19,#0x3F0]                                      ; +0x90, 0x87ff1c\nB               loc_87FEC0                                             ; +0x94, 0x87ff20\nFMOV            S1, S8; float                                          ; +0x98, 0x87ff24\nMOV             X0, X19; this                                          ; +0x9c, 0x87ff28\nLDR             D8, [SP,#0x40+var_10]                                  ; +0xa0, 0x87ff2c\nMOV             X1, X22; GameObject *                                  ; +0xa4, 0x87ff30\nMOV             W2, W21; bool                                          ; +0xa8, 0x87ff34\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xac, 0x87ff38\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb0, 0x87ff3c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb4, 0x87ff40\nB               _ZN15GJBaseGameLayer22animateInDualGroundNewEP10GameObjectfbf; GJBaseGameLayer::animateInDualGroundNew(GameObject *,float,bool,float) ; +0xb8, 0x87ff44", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x5e4e98", "GJBaseGameLayer::updateCameraMode @ 0x87ffc8", "GJBaseGameLayer::updateZoom @ 0x8800f4", "GJBaseGameLayer::exitStaticCamera @ 0x880520", "GJBaseGameLayer::playerWillSwitchMode @ 0x88a1c0", "GJBaseGameLayer::toggleDualMode @ 0x88a434", "GJBaseGameLayer::setupLevelStart @ 0x88a680", "<???> @ 0xabff0"], "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"}