{"type": "func", "start": 5371047616, "end": 5371047833, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x14023aec0 to 0x14023af99 (217 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x1402dfe18\n// > PlayLayer::createObjectsFromSetupFinished @ 0x1403adc22\n// > <???> @ 0x1406817e0\n// > <???> @ 0x140681838\n// > <???> @ 0x1406ce1fc\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 GJBaseGameLayer::updateMaxGameplayY(GJBaseGameLayer *a1)\n{\n  LevelSettingsObject *m_levelSettings; // rax\n  cocos2d::CCArray *m_objects; // rax\n  float v4; // xmm6_4\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n  cocos2d::CCObject *v9; // rcx\n\n  m_levelSettings = a1->m_levelSettings;\n  if ( m_levelSettings && (m_levelSettings->m_platformerMode || m_levelSettings->m_dynamicLevelHeight) )\n  {\n    m_objects = a1->m_objects;\n    v4 = 1200.0;\n    if ( m_objects )\n    {\n      data = m_objects->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1];\n              arr <= i;\n              v4 = fmaxf(*(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v9->__vftable[2].getTag)(v9) + 4), v4) )\n        {\n          v9 = *arr;\n          if ( !*arr )\n            break;\n          ++arr;\n        }\n      }\n    }\n    a1->m_maxGameplayY = (float)(v4 + 90.0) + 300.0;\n  }\n  else\n  {\n    a1->m_maxGameplayY = 2790.0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x14023aec0 to 0x14023af99 (217 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x1402dfe18\n; > PlayLayer::createObjectsFromSetupFinished @ 0x1403adc22\n; > <???> @ 0x1406817e0\n; > <???> @ 0x140681838\n; > <???> @ 0x1406ce1fc\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    rdi                                                            ; +0x0, 0x14023aec0\nsub     rsp, 30h                                                       ; +0x2, 0x14023aec2\nmov     rax, [rcx+0DB0h]                                               ; +0x6, 0x14023aec6\nmov     rdi, rcx                                                       ; +0xd, 0x14023aecd\ntest    rax, rax                                                       ; +0x10, 0x14023aed0\njz      loc_14023AF83                                                  ; +0x13, 0x14023aed3\ncmp     byte ptr [rax+155h], 0                                         ; +0x19, 0x14023aed9\njnz     short loc_14023AEEF                                            ; +0x20, 0x14023aee0\ncmp     byte ptr [rax+1CDh], 0                                         ; +0x22, 0x14023aee2\njz      loc_14023AF83                                                  ; +0x29, 0x14023aee9\nmov     rax, [rcx+0DB8h]                                               ; +0x2f, 0x14023aeef\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x36, 0x14023aef6\nmovss   xmm6, cs:dword_140623524                                       ; +0x3b, 0x14023aefb\ntest    rax, rax                                                       ; +0x43, 0x14023af03\njz      short loc_14023AF60                                            ; +0x46, 0x14023af06\nmov     [rsp+38h+arg_0], rbx                                           ; +0x48, 0x14023af08\nmov     rbx, [rax+38h]                                                 ; +0x4d, 0x14023af0d\nmov     eax, [rbx]                                                     ; +0x51, 0x14023af11\ntest    eax, eax                                                       ; +0x53, 0x14023af13\njz      short loc_14023AF5B                                            ; +0x55, 0x14023af15\nmov     rbx, [rbx+10h]                                                 ; +0x57, 0x14023af17\nmov     [rsp+38h+arg_8], rsi                                           ; +0x5b, 0x14023af1b\nlea     rsi, [rax-1]                                                   ; +0x60, 0x14023af20\nlea     rsi, [rbx+rsi*8]                                               ; +0x64, 0x14023af24\ncmp     rbx, rsi                                                       ; +0x68, 0x14023af28\nja      short loc_14023AF56                                            ; +0x6b, 0x14023af2b\nnop     dword ptr [rax]                                                ; +0x6d, 0x14023af2d\nmov     rcx, [rbx]                                                     ; +0x70, 0x14023af30\ntest    rcx, rcx                                                       ; +0x73, 0x14023af33\njz      short loc_14023AF56                                            ; +0x76, 0x14023af36\nmov     rax, [rcx]                                                     ; +0x78, 0x14023af38\ncall    qword ptr [rax+0C8h]                                           ; +0x7b, 0x14023af3b\nadd     rbx, 8                                                         ; +0x81, 0x14023af41\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x85, 0x14023af45\nmaxss   xmm0, xmm6                                                     ; +0x8a, 0x14023af4a\nmovaps  xmm6, xmm0                                                     ; +0x8e, 0x14023af4e\ncmp     rbx, rsi                                                       ; +0x91, 0x14023af51\njbe     short loc_14023AF30                                            ; +0x94, 0x14023af54\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x96, 0x14023af56\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x9b, 0x14023af5b\naddss   xmm6, cs:dword_140623294                                       ; +0xa0, 0x14023af60\naddss   xmm6, cs:dword_14062343C                                       ; +0xa8, 0x14023af68\nmovss   dword ptr [rdi+36A8h], xmm6                                    ; +0xb0, 0x14023af70\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xb8, 0x14023af78\nadd     rsp, 30h                                                       ; +0xbd, 0x14023af7d\npop     rdi                                                            ; +0xc1, 0x14023af81\nretn                                                                   ; +0xc2, 0x14023af82\nmovss   xmm0, cs:dword_140623594                                       ; +0xc3, 0x14023af83\nmovss   dword ptr [rcx+36A8h], xmm0                                    ; +0xcb, 0x14023af8b\nadd     rsp, 30h                                                       ; +0xd3, 0x14023af93\npop     rdi                                                            ; +0xd7, 0x14023af97\nretn                                                                   ; +0xd8, 0x14023af98", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x1402dfe18", "PlayLayer::createObjectsFromSetupFinished @ 0x1403adc22", "<???> @ 0x1406817e0", "<???> @ 0x140681838", "<???> @ 0x1406ce1fc"], "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"}