{"type": "func", "start": 4296245904, "end": 4296246138, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x100138290 to 0x10013837a (234 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x1000844c6\n// > LevelEditorLayer::onPlaytest @ 0x1000c5b00\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:51 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::updateMaxGameplayY(__int64 a1)\n{\n  __int64 v2; // rdi\n  float v3; // xmm0_4\n  __int64 v4; // rax\n  unsigned int *v5; // rax\n  _QWORD *v6; // r15\n  unsigned __int64 v7; // r12\n  float v8; // xmm0_4\n  __int64 v9; // r14\n\n  v2 = *(_QWORD *)(a1 + 3272);\n  v3 = 2790.0;\n  if ( v2 )\n  {\n    v3 = 2790.0;\n    if ( LevelSettingsObject::shouldUseYSection(v2) )\n    {\n      v4 = *(_QWORD *)(a1 + 3280);\n      v3 = 1590.0;\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        if ( *v5 )\n        {\n          v6 = *((_QWORD **)v5 + 2);\n          v7 = (unsigned __int64)&v6[*v5 - 1];\n          v8 = 1200.0;\n          do\n          {\n            v9 = *v6;\n            if ( !*v6 )\n              break;\n            if ( *(float *)((*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v9 + 192LL))(*v6) + 4) > v8 )\n              v8 = *(float *)((*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 192LL))(v9, v8) + 4);\n            ++v6;\n          }\n          while ( (unsigned __int64)v6 <= v7 );\n          v3 = (float)(v8 + 90.0) + 300.0;\n        }\n      }\n    }\n  }\n  *(float *)(a1 + 13640) = v3;\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x100138290 to 0x10013837a (234 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x1000844c6\n; > LevelEditorLayer::onPlaytest @ 0x1000c5b00\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x100138290\nmov     rbp, rsp                                                       ; +0x1, 0x100138291\npush    r15                                                            ; +0x4, 0x100138294\npush    r14                                                            ; +0x6, 0x100138296\npush    r12                                                            ; +0x8, 0x100138298\npush    rbx                                                            ; +0xa, 0x10013829a\nsub     rsp, 10h                                                       ; +0xb, 0x10013829b\nmov     rbx, rdi                                                       ; +0xf, 0x10013829f\nmov     rdi, [rdi+0CC8h]                                               ; +0x12, 0x1001382a2\nmovss   xmm0, cs:dword_100A04CB0                                       ; +0x19, 0x1001382a9\ntest    rdi, rdi                                                       ; +0x21, 0x1001382b1\njz      loc_100138365                                                  ; +0x24, 0x1001382b4\ncall    LevelSettingsObject__shouldUseYSection                         ; +0x2a, 0x1001382ba\nmovss   xmm0, cs:dword_100A04CB0                                       ; +0x2f, 0x1001382bf\ntest    al, al                                                         ; +0x37, 0x1001382c7\njz      loc_100138365                                                  ; +0x39, 0x1001382c9\nmov     rax, [rbx+0CD0h]                                               ; +0x3f, 0x1001382cf\nmovss   xmm0, cs:dword_100A04CB4                                       ; +0x46, 0x1001382d6\ntest    rax, rax                                                       ; +0x4e, 0x1001382de\njz      loc_100138365                                                  ; +0x51, 0x1001382e1\nmov     rax, [rax+38h]                                                 ; +0x57, 0x1001382e7\nmov     ecx, [rax]                                                     ; +0x5b, 0x1001382eb\ntest    rcx, rcx                                                       ; +0x5d, 0x1001382ed\njz      short loc_100138365                                            ; +0x60, 0x1001382f0\nmov     r15, [rax+10h]                                                 ; +0x62, 0x1001382f2\nlea     r12, [r15+rcx*8]                                               ; +0x66, 0x1001382f6\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x6a, 0x1001382fa\nmovss   xmm0, cs:dword_100A03AA8                                       ; +0x6e, 0x1001382fe\njmp     short loc_100138319                                            ; +0x76, 0x100138306\nalign 10h                                                              ; +0x78, 0x100138308\nadd     r15, 8                                                         ; +0x80, 0x100138310\ncmp     r15, r12                                                       ; +0x84, 0x100138314\nja      short loc_100138355                                            ; +0x87, 0x100138317\nmov     r14, [r15]                                                     ; +0x89, 0x100138319\ntest    r14, r14                                                       ; +0x8c, 0x10013831c\njz      short loc_100138355                                            ; +0x8f, 0x10013831f\nmov     rax, [r14]                                                     ; +0x91, 0x100138321\nmov     rdi, r14                                                       ; +0x94, 0x100138324\nmovss   [rbp+var_24], xmm0                                             ; +0x97, 0x100138327\ncall    qword ptr [rax+0C0h]                                           ; +0x9c, 0x10013832c\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xa2, 0x100138332\nucomiss xmm0, [rbp+var_24]                                             ; +0xa7, 0x100138337\nmovss   xmm0, [rbp+var_24]                                             ; +0xab, 0x10013833b\njbe     short loc_100138310                                            ; +0xb0, 0x100138340\nmov     rax, [r14]                                                     ; +0xb2, 0x100138342\nmov     rdi, r14                                                       ; +0xb5, 0x100138345\ncall    qword ptr [rax+0C0h]                                           ; +0xb8, 0x100138348\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xbe, 0x10013834e\njmp     short loc_100138310                                            ; +0xc3, 0x100138353\naddss   xmm0, cs:flt_100A035A4                                         ; +0xc5, 0x100138355\naddss   xmm0, cs:dword_100A03734                                       ; +0xcd, 0x10013835d\nmovss   dword ptr [rbx+3548h], xmm0                                    ; +0xd5, 0x100138365\nadd     rsp, 10h                                                       ; +0xdd, 0x10013836d\npop     rbx                                                            ; +0xe1, 0x100138371\npop     r12                                                            ; +0xe2, 0x100138372\npop     r14                                                            ; +0xe4, 0x100138374\npop     r15                                                            ; +0xe6, 0x100138376\npop     rbp                                                            ; +0xe8, 0x100138378\nretn                                                                   ; +0xe9, 0x100138379", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x1000844c6", "LevelEditorLayer::onPlaytest @ 0x1000c5b00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}