{"type": "func", "start": 4297715068, "end": 4297715280, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x10029ed7c to 0x10029ee50 (212 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x100145268\n// > LevelEditorLayer::onPlaytest @ 0x1004046d8\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:02:11 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateMaxGameplayY(__int64 a1)\n{\n  __int64 result; // x0\n  float v3; // s8\n  __int64 v4; // x8\n  unsigned int *v5; // x9\n  __int64 v6; // x8\n  _QWORD *v7; // x21\n  unsigned __int64 v8; // x22\n  float v9; // s8\n  __int64 v10; // x20\n\n  result = *(_QWORD *)(a1 + 3272);\n  v3 = 2790.0;\n  if ( result )\n  {\n    result = sub_10040E448();\n    if ( (_DWORD)result )\n    {\n      v4 = *(_QWORD *)(a1 + 3280);\n      v3 = 1590.0;\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        v6 = *v5;\n        if ( (_DWORD)v6 )\n        {\n          v7 = *((_QWORD **)v5 + 2);\n          v8 = (unsigned __int64)&v7[v6 - 1];\n          v9 = 1200.0;\n          do\n          {\n            v10 = *v7;\n            if ( !*v7 )\n              break;\n            result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v10 + 192LL))(*v7);\n            if ( *(float *)(result + 4) > v9 )\n            {\n              result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10);\n              v9 = *(float *)(result + 4);\n            }\n            ++v7;\n          }\n          while ( (unsigned __int64)v7 <= v8 );\n          v3 = (float)(v9 + 90.0) + 300.0;\n        }\n      }\n    }\n  }\n  *(float *)(a1 + 13640) = v3;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x10029ed7c to 0x10029ee50 (212 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x100145268\n; > LevelEditorLayer::onPlaytest @ 0x1004046d8\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:02:11 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10029ed7c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10029ed80\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10029ed84\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10029ed88\nADD             X29, SP, #0x30                                         ; +0x10, 0x10029ed8c\nMOV             X19, X0                                                ; +0x14, 0x10029ed90\nLDR             X0, [X0,#0xCC8]                                        ; +0x18, 0x10029ed94\nADRP            X8, #dword_100762EFC@PAGE                              ; +0x1c, 0x10029ed98\nLDR             S8, [X8,#dword_100762EFC@PAGEOFF]                      ; +0x20, 0x10029ed9c\nCBZ             X0, loc_10029EE38                                      ; +0x24, 0x10029eda0\nBL              sub_10040E448                                          ; +0x28, 0x10029eda4\nCBZ             W0, loc_10029EE38                                      ; +0x2c, 0x10029eda8\nLDR             X8, [X19,#0xCD0]                                       ; +0x30, 0x10029edac\nADRP            X9, #dword_100762F00@PAGE                              ; +0x34, 0x10029edb0\nLDR             S8, [X9,#dword_100762F00@PAGEOFF]                      ; +0x38, 0x10029edb4\nCBZ             X8, loc_10029EE38                                      ; +0x3c, 0x10029edb8\nLDR             X9, [X8,#0x38]                                         ; +0x40, 0x10029edbc\nLDR             W8, [X9]                                               ; +0x44, 0x10029edc0\nCBZ             W8, loc_10029EE38                                      ; +0x48, 0x10029edc4\nLDR             X21, [X9,#0x10]                                        ; +0x4c, 0x10029edc8\nADD             X8, X21, X8,LSL#3                                      ; +0x50, 0x10029edcc\nSUB             X22, X8, #8                                            ; +0x54, 0x10029edd0\nMOV             W8, #0x44960000                                        ; +0x58, 0x10029edd4\nFMOV            S8, W8                                                 ; +0x5c, 0x10029edd8\nLDR             X20, [X21]                                             ; +0x60, 0x10029eddc\nCBZ             X20, loc_10029EE20                                     ; +0x64, 0x10029ede0\nLDR             X8, [X20]                                              ; +0x68, 0x10029ede4\nLDR             X8, [X8,#0xC0]                                         ; +0x6c, 0x10029ede8\nMOV             X0, X20                                                ; +0x70, 0x10029edec\nBLR             X8                                                     ; +0x74, 0x10029edf0\nLDR             S0, [X0,#4]                                            ; +0x78, 0x10029edf4\nFCMP            S0, S8                                                 ; +0x7c, 0x10029edf8\nB.LE            loc_10029EE14                                          ; +0x80, 0x10029edfc\nLDR             X8, [X20]                                              ; +0x84, 0x10029ee00\nLDR             X8, [X8,#0xC0]                                         ; +0x88, 0x10029ee04\nMOV             X0, X20                                                ; +0x8c, 0x10029ee08\nBLR             X8                                                     ; +0x90, 0x10029ee0c\nLDR             S8, [X0,#4]                                            ; +0x94, 0x10029ee10\nADD             X21, X21, #8                                           ; +0x98, 0x10029ee14\nCMP             X21, X22                                               ; +0x9c, 0x10029ee18\nB.LS            loc_10029EDDC                                          ; +0xa0, 0x10029ee1c\nMOV             W8, #0x42B40000                                        ; +0xa4, 0x10029ee20\nFMOV            S0, W8                                                 ; +0xa8, 0x10029ee24\nFADD            S0, S8, S0                                             ; +0xac, 0x10029ee28\nMOV             W8, #0x43960000                                        ; +0xb0, 0x10029ee2c\nFMOV            S1, W8                                                 ; +0xb4, 0x10029ee30\nFADD            S8, S0, S1                                             ; +0xb8, 0x10029ee34\nSTR             S8, [X19,#0x3548]                                      ; +0xbc, 0x10029ee38\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc0, 0x10029ee3c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc4, 0x10029ee40\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc8, 0x10029ee44\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0xcc, 0x10029ee48\nRET                                                                    ; +0xd0, 0x10029ee4c", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x100145268", "LevelEditorLayer::onPlaytest @ 0x1004046d8"], "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"}