{"type": "func", "start": 4296959732, "end": 4296959908, "name": "GJBaseGameLayer::updateDualGround", "pseudocode": "// \n// GJBaseGameLayer::updateDualGround from 0x1001e66f4 to 0x1001e67a4 (176 bytes)\n// \n// 7 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x100121394\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6028\n// > GJBaseGameLayer::toggleDualMode @ 0x1001e6458\n// > GJBaseGameLayer::updateCameraMode @ 0x1001e6988\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69f0\n// > GJBaseGameLayer::updateZoom @ 0x1001fcfe8\n// > GJBaseGameLayer::exitStaticCamera @ 0x100203fe4\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::updateDualGround(GJBaseGameLayer *a1, PlayerObject *a2, int a3, bool a4, float a5)\n{\n  GameObject *m_lastActivatedPortal1; // x21\n  float GroundHeight; // s0\n  float v10; // s1\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 - 25) <= 0xFFFFFFFD )\n    a1->m_gameState.m_dualRelated = a3;\n  GroundHeight = GJBaseGameLayer::getGroundHeight(a1, a2, a3);\n  if ( a1->m_gameState.m_isFreeMode || a3 != 33 && (v10 = 270.0, GroundHeight == 270.0) && !a1->m_gameState.m_isDualMode )\n    GJBaseGameLayer::animateOutGroundNew(a1, 0);\n  else\n    GJBaseGameLayer::animateInDualGroundNew(a1, m_lastActivatedPortal1, GroundHeight, a4, v10);\n}", "assembly": "; \n; GJBaseGameLayer::updateDualGround from 0x1001e66f4 to 0x1001e67a4 (176 bytes)\n; \n; 7 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x100121394\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6028\n; > GJBaseGameLayer::toggleDualMode @ 0x1001e6458\n; > GJBaseGameLayer::updateCameraMode @ 0x1001e6988\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69f0\n; > GJBaseGameLayer::updateZoom @ 0x1001fcfe8\n; > GJBaseGameLayer::exitStaticCamera @ 0x100203fe4\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001e66f4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001e66f8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001e66fc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001e6700\nMOV             X19, X3                                                ; +0x10, 0x1001e6704\nMOV             X22, X2                                                ; +0x14, 0x1001e6708\nMOV             X20, X0                                                ; +0x18, 0x1001e670c\nLDRB            W8, [X0,#0x3F2]                                        ; +0x1c, 0x1001e6710\nCMP             W8, #1                                                 ; +0x20, 0x1001e6714\nB.NE            loc_1001E6724                                          ; +0x24, 0x1001e6718\nLDR             X21, [X20,#0x3D8]                                      ; +0x28, 0x1001e671c\nCBNZ            X21, loc_1001E6728                                     ; +0x2c, 0x1001e6720\nLDR             X21, [X20,#0x3D0]                                      ; +0x30, 0x1001e6724\nSUB             W8, W22, #0x19                                         ; +0x34, 0x1001e6728\nCMN             W8, #3                                                 ; +0x38, 0x1001e672c\nB.HI            loc_1001E6738                                          ; +0x3c, 0x1001e6730\nSTR             W22, [X20,#0x4E8]                                      ; +0x40, 0x1001e6734\nMOV             X0, X20                                                ; +0x44, 0x1001e6738\nMOV             X2, X22                                                ; +0x48, 0x1001e673c\nBL              GJBaseGameLayer__getGroundHeight                       ; +0x4c, 0x1001e6740\nLDRB            W8, [X20,#0x311]                                       ; +0x50, 0x1001e6744\nTBZ             W8, #0, loc_1001E6764                                  ; +0x54, 0x1001e6748\nMOV             X0, X20                                                ; +0x58, 0x1001e674c\nMOV             W1, #0                                                 ; +0x5c, 0x1001e6750\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1001e6754\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1001e6758\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x1001e675c\nB               GJBaseGameLayer__animateOutGroundNew                   ; +0x6c, 0x1001e6760\nCMP             W22, #0x21 ; '!'                                       ; +0x70, 0x1001e6764\nB.EQ            loc_1001E6788                                          ; +0x74, 0x1001e6768\nMOV             W8, #0x43870000                                        ; +0x78, 0x1001e676c\nFMOV            S1, W8                                                 ; +0x7c, 0x1001e6770\nFCMP            S0, S1                                                 ; +0x80, 0x1001e6774\nB.NE            loc_1001E6788                                          ; +0x84, 0x1001e6778\nLDRB            W8, [X20,#0x3F2]                                       ; +0x88, 0x1001e677c\nCMP             W8, #1                                                 ; +0x8c, 0x1001e6780\nB.NE            loc_1001E674C                                          ; +0x90, 0x1001e6784\nMOV             X0, X20                                                ; +0x94, 0x1001e6788\nMOV             X1, X21                                                ; +0x98, 0x1001e678c\nMOV             X2, X19                                                ; +0x9c, 0x1001e6790\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x1001e6794\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x1001e6798\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa8, 0x1001e679c\nB               GJBaseGameLayer__animateInDualGroundNew                ; +0xac, 0x1001e67a0", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x100121394", "GJBaseGameLayer::setupLevelStart @ 0x1001e6028", "GJBaseGameLayer::toggleDualMode @ 0x1001e6458", "GJBaseGameLayer::updateCameraMode @ 0x1001e6988", "GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69f0", "GJBaseGameLayer::updateZoom @ 0x1001fcfe8", "GJBaseGameLayer::exitStaticCamera @ 0x100203fe4"], "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"}