{"type": "func", "start": 4297597064, "end": 4297597240, "name": "GJBaseGameLayer::updateDualGround", "pseudocode": "// \n// GJBaseGameLayer::updateDualGround from 0x100282088 to 0x100282138 (176 bytes)\n// \n// 7 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x10014a648\n// > GJBaseGameLayer::setupLevelStart @ 0x100281748\n// > GJBaseGameLayer::toggleDualMode @ 0x100281c38\n// > GJBaseGameLayer::updateCameraMode @ 0x10028231c\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x100282384\n// > GJBaseGameLayer::updateZoom @ 0x1002990b0\n// > GJBaseGameLayer::exitStaticCamera @ 0x1002a0dec\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:56 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateDualGround(__int64 a1, __int64 a2, int a3, __int64 a4)\n{\n  __int64 v7; // x21\n  float v8; // s0\n\n  if ( *(_BYTE *)(a1 + 1010) != 1 || (v7 = *(_QWORD *)(a1 + 984)) == 0 )\n    v7 = *(_QWORD *)(a1 + 976);\n  if ( (unsigned int)(a3 - 25) <= 0xFFFFFFFD )\n    *(_DWORD *)(a1 + 1256) = a3;\n  GJBaseGameLayer::getGroundHeight(a1, a2, a3);\n  if ( (*(_BYTE *)(a1 + 785) & 1) != 0 || a3 != 33 && v8 == 270.0 && *(_BYTE *)(a1 + 1010) != 1 )\n    return GJBaseGameLayer::animateOutGroundNew(a1, 0);\n  else\n    return GJBaseGameLayer::animateInDualGroundNew(a1, v7, a4);\n}", "assembly": "; \n; GJBaseGameLayer::updateDualGround from 0x100282088 to 0x100282138 (176 bytes)\n; \n; 7 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x10014a648\n; > GJBaseGameLayer::setupLevelStart @ 0x100281748\n; > GJBaseGameLayer::toggleDualMode @ 0x100281c38\n; > GJBaseGameLayer::updateCameraMode @ 0x10028231c\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x100282384\n; > GJBaseGameLayer::updateZoom @ 0x1002990b0\n; > GJBaseGameLayer::exitStaticCamera @ 0x1002a0dec\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:56 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100282088\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10028208c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100282090\nADD             X29, SP, #0x20                                         ; +0xc, 0x100282094\nMOV             X19, X3                                                ; +0x10, 0x100282098\nMOV             X22, X2                                                ; +0x14, 0x10028209c\nMOV             X20, X0                                                ; +0x18, 0x1002820a0\nLDRB            W8, [X0,#0x3F2]                                        ; +0x1c, 0x1002820a4\nCMP             W8, #1                                                 ; +0x20, 0x1002820a8\nB.NE            loc_1002820B8                                          ; +0x24, 0x1002820ac\nLDR             X21, [X20,#0x3D8]                                      ; +0x28, 0x1002820b0\nCBNZ            X21, loc_1002820BC                                     ; +0x2c, 0x1002820b4\nLDR             X21, [X20,#0x3D0]                                      ; +0x30, 0x1002820b8\nSUB             W8, W22, #0x19                                         ; +0x34, 0x1002820bc\nCMN             W8, #3                                                 ; +0x38, 0x1002820c0\nB.HI            loc_1002820CC                                          ; +0x3c, 0x1002820c4\nSTR             W22, [X20,#0x4E8]                                      ; +0x40, 0x1002820c8\nMOV             X0, X20                                                ; +0x44, 0x1002820cc\nMOV             X2, X22                                                ; +0x48, 0x1002820d0\nBL              GJBaseGameLayer__getGroundHeight                       ; +0x4c, 0x1002820d4\nLDRB            W8, [X20,#0x311]                                       ; +0x50, 0x1002820d8\nTBZ             W8, #0, loc_1002820F8                                  ; +0x54, 0x1002820dc\nMOV             X0, X20                                                ; +0x58, 0x1002820e0\nMOV             W1, #0                                                 ; +0x5c, 0x1002820e4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1002820e8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1002820ec\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x1002820f0\nB               GJBaseGameLayer__animateOutGroundNew                   ; +0x6c, 0x1002820f4\nCMP             W22, #0x21 ; '!'                                       ; +0x70, 0x1002820f8\nB.EQ            loc_10028211C                                          ; +0x74, 0x1002820fc\nMOV             W8, #0x43870000                                        ; +0x78, 0x100282100\nFMOV            S1, W8                                                 ; +0x7c, 0x100282104\nFCMP            S0, S1                                                 ; +0x80, 0x100282108\nB.NE            loc_10028211C                                          ; +0x84, 0x10028210c\nLDRB            W8, [X20,#0x3F2]                                       ; +0x88, 0x100282110\nCMP             W8, #1                                                 ; +0x8c, 0x100282114\nB.NE            loc_1002820E0                                          ; +0x90, 0x100282118\nMOV             X0, X20                                                ; +0x94, 0x10028211c\nMOV             X1, X21                                                ; +0x98, 0x100282120\nMOV             X2, X19                                                ; +0x9c, 0x100282124\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x100282128\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x10028212c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa8, 0x100282130\nB               GJBaseGameLayer__animateInDualGroundNew                ; +0xac, 0x100282134", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x10014a648", "GJBaseGameLayer::setupLevelStart @ 0x100281748", "GJBaseGameLayer::toggleDualMode @ 0x100281c38", "GJBaseGameLayer::updateCameraMode @ 0x10028231c", "GJBaseGameLayer::playerWillSwitchMode @ 0x100282384", "GJBaseGameLayer::updateZoom @ 0x1002990b0", "GJBaseGameLayer::exitStaticCamera @ 0x1002a0dec"], "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"}