{"type": "func", "start": 4296379904, "end": 4296380138, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x100158e00 to 0x100158eea (234 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6bc6\n// > LevelEditorLayer::onPlaytest @ 0x1000f2276\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::updateMaxGameplayY(GJBaseGameLayer *a1)\n{\n  LevelSettingsObject *m_levelSettings; // rdi\n  float v3; // xmm0_4\n  cocos2d::CCArray *m_objects; // rax\n  cocos2d::ccArray *data; // rax\n  cocos2d::CCObject **arr; // r15\n  unsigned __int64 v7; // r12\n  float v8; // xmm0_4\n  cocos2d::CCObject *v9; // r14\n\n  m_levelSettings = a1->m_levelSettings;\n  v3 = 2790.0;\n  if ( m_levelSettings )\n  {\n    v3 = 2790.0;\n    if ( LevelSettingsObject::shouldUseYSection(m_levelSettings) )\n    {\n      m_objects = a1->m_objects;\n      v3 = 1590.0;\n      if ( m_objects )\n      {\n        data = m_objects->data;\n        if ( data->num )\n        {\n          arr = data->arr;\n          v7 = (unsigned __int64)&arr[data->num - 1];\n          v8 = 1200.0;\n          do\n          {\n            v9 = *arr;\n            if ( !*arr )\n              break;\n            if ( *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v9->__vftable[2].acceptVisitor)(*arr) + 4) > v8 )\n              v8 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *, float))v9->__vftable[2].acceptVisitor)(\n                                v9,\n                                v8)\n                            + 4);\n            ++arr;\n          }\n          while ( (unsigned __int64)arr <= v7 );\n          v3 = (float)(v8 + 90.0) + 300.0;\n        }\n      }\n    }\n  }\n  a1->m_maxGameplayY = v3;\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x100158e00 to 0x100158eea (234 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6bc6\n; > LevelEditorLayer::onPlaytest @ 0x1000f2276\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\npush    rbp                                                            ; +0x0, 0x100158e00\nmov     rbp, rsp                                                       ; +0x1, 0x100158e01\npush    r15                                                            ; +0x4, 0x100158e04\npush    r14                                                            ; +0x6, 0x100158e06\npush    r12                                                            ; +0x8, 0x100158e08\npush    rbx                                                            ; +0xa, 0x100158e0a\nsub     rsp, 10h                                                       ; +0xb, 0x100158e0b\nmov     rbx, rdi                                                       ; +0xf, 0x100158e0f\nmov     rdi, [rdi+0CB0h]                                               ; +0x12, 0x100158e12\nmovss   xmm0, cs:dword_1008168D8                                       ; +0x19, 0x100158e19\ntest    rdi, rdi                                                       ; +0x21, 0x100158e21\njz      loc_100158ED5                                                  ; +0x24, 0x100158e24\ncall    LevelSettingsObject__shouldUseYSection                         ; +0x2a, 0x100158e2a\nmovss   xmm0, cs:dword_1008168D8                                       ; +0x2f, 0x100158e2f\ntest    al, al                                                         ; +0x37, 0x100158e37\njz      loc_100158ED5                                                  ; +0x39, 0x100158e39\nmov     rax, [rbx+0CB8h]                                               ; +0x3f, 0x100158e3f\nmovss   xmm0, cs:dword_1008168DC                                       ; +0x46, 0x100158e46\ntest    rax, rax                                                       ; +0x4e, 0x100158e4e\njz      loc_100158ED5                                                  ; +0x51, 0x100158e51\nmov     rax, [rax+38h]                                                 ; +0x57, 0x100158e57\nmov     ecx, [rax]                                                     ; +0x5b, 0x100158e5b\ntest    rcx, rcx                                                       ; +0x5d, 0x100158e5d\njz      short loc_100158ED5                                            ; +0x60, 0x100158e60\nmov     r15, [rax+10h]                                                 ; +0x62, 0x100158e62\nlea     r12, [r15+rcx*8]                                               ; +0x66, 0x100158e66\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x6a, 0x100158e6a\nmovss   xmm0, cs:dword_10081575C                                       ; +0x6e, 0x100158e6e\njmp     short loc_100158E89                                            ; +0x76, 0x100158e76\nalign 20h                                                              ; +0x78, 0x100158e78\nadd     r15, 8                                                         ; +0x80, 0x100158e80\ncmp     r15, r12                                                       ; +0x84, 0x100158e84\nja      short loc_100158EC5                                            ; +0x87, 0x100158e87\nmov     r14, [r15]                                                     ; +0x89, 0x100158e89\ntest    r14, r14                                                       ; +0x8c, 0x100158e8c\njz      short loc_100158EC5                                            ; +0x8f, 0x100158e8f\nmov     rax, [r14]                                                     ; +0x91, 0x100158e91\nmov     rdi, r14                                                       ; +0x94, 0x100158e94\nmovss   [rbp+var_24], xmm0                                             ; +0x97, 0x100158e97\ncall    qword ptr [rax+0C0h]                                           ; +0x9c, 0x100158e9c\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xa2, 0x100158ea2\nucomiss xmm0, [rbp+var_24]                                             ; +0xa7, 0x100158ea7\nmovss   xmm0, [rbp+var_24]                                             ; +0xab, 0x100158eab\njbe     short loc_100158E80                                            ; +0xb0, 0x100158eb0\nmov     rax, [r14]                                                     ; +0xb2, 0x100158eb2\nmov     rdi, r14                                                       ; +0xb5, 0x100158eb5\ncall    qword ptr [rax+0C0h]                                           ; +0xb8, 0x100158eb8\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xbe, 0x100158ebe\njmp     short loc_100158E80                                            ; +0xc3, 0x100158ec3\naddss   xmm0, cs:dword_100815038                                       ; +0xc5, 0x100158ec5\naddss   xmm0, cs:dword_1008152B4                                       ; +0xcd, 0x100158ecd\nmovss   dword ptr [rbx+3490h], xmm0                                    ; +0xd5, 0x100158ed5\nadd     rsp, 10h                                                       ; +0xdd, 0x100158edd\npop     rbx                                                            ; +0xe1, 0x100158ee1\npop     r12                                                            ; +0xe2, 0x100158ee2\npop     r14                                                            ; +0xe4, 0x100158ee4\npop     r15                                                            ; +0xe6, 0x100158ee6\npop     rbp                                                            ; +0xe8, 0x100158ee8\nretn                                                                   ; +0xe9, 0x100158ee9", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x1000b6bc6", "LevelEditorLayer::onPlaytest @ 0x1000f2276"], "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"}