{"type": "func", "start": 4297072664, "end": 4297072876, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x100202018 to 0x1002020ec (212 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x10011c230\n// > LevelEditorLayer::onPlaytest @ 0x100362b40\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; // x0\n  float v3; // s8\n  cocos2d::CCArray *m_objects; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x21\n  unsigned __int64 v8; // x22\n  float v9; // s8\n  cocos2d::CCObject *v10; // x20\n\n  m_levelSettings = a1->m_levelSettings;\n  v3 = 2790.0;\n  if ( m_levelSettings )\n  {\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        num = data->num;\n        if ( (_DWORD)num )\n        {\n          arr = data->arr;\n          v8 = (unsigned __int64)&arr[num - 1];\n          v9 = 1200.0;\n          do\n          {\n            v10 = *arr;\n            if ( !*arr )\n              break;\n            if ( *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v10->__vftable[2].acceptVisitor)(*arr) + 4) > v9 )\n              v9 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v10->__vftable[2].acceptVisitor)(v10) + 4);\n            ++arr;\n          }\n          while ( (unsigned __int64)arr <= v8 );\n          v3 = (float)(v9 + 90.0) + 300.0;\n        }\n      }\n    }\n  }\n  a1->m_maxGameplayY = v3;\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x100202018 to 0x1002020ec (212 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x10011c230\n; > LevelEditorLayer::onPlaytest @ 0x100362b40\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x100202018\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10020201c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100202020\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100202024\nADD             X29, SP, #0x30                                         ; +0x10, 0x100202028\nMOV             X19, X0                                                ; +0x14, 0x10020202c\nLDR             X0, [X0,#0xCD8]                                        ; +0x18, 0x100202030\nADRP            X8, #dword_10063A204@PAGE                              ; +0x1c, 0x100202034\nLDR             S8, [X8,#dword_10063A204@PAGEOFF]                      ; +0x20, 0x100202038\nCBZ             X0, loc_1002020D4                                      ; +0x24, 0x10020203c\nBL              LevelSettingsObject__shouldUseYSection                 ; +0x28, 0x100202040\nCBZ             W0, loc_1002020D4                                      ; +0x2c, 0x100202044\nLDR             X8, [X19,#0xCE0]                                       ; +0x30, 0x100202048\nADRP            X9, #dword_10063A208@PAGE                              ; +0x34, 0x10020204c\nLDR             S8, [X9,#dword_10063A208@PAGEOFF]                      ; +0x38, 0x100202050\nCBZ             X8, loc_1002020D4                                      ; +0x3c, 0x100202054\nLDR             X9, [X8,#0x38]                                         ; +0x40, 0x100202058\nLDR             W8, [X9]                                               ; +0x44, 0x10020205c\nCBZ             W8, loc_1002020D4                                      ; +0x48, 0x100202060\nLDR             X21, [X9,#0x10]                                        ; +0x4c, 0x100202064\nADD             X8, X21, X8,LSL#3                                      ; +0x50, 0x100202068\nSUB             X22, X8, #8                                            ; +0x54, 0x10020206c\nMOV             W8, #0x44960000                                        ; +0x58, 0x100202070\nFMOV            S8, W8                                                 ; +0x5c, 0x100202074\nLDR             X20, [X21]                                             ; +0x60, 0x100202078\nCBZ             X20, loc_1002020BC                                     ; +0x64, 0x10020207c\nLDR             X8, [X20]                                              ; +0x68, 0x100202080\nLDR             X8, [X8,#0xC0]                                         ; +0x6c, 0x100202084\nMOV             X0, X20                                                ; +0x70, 0x100202088\nBLR             X8                                                     ; +0x74, 0x10020208c\nLDR             S0, [X0,#4]                                            ; +0x78, 0x100202090\nFCMP            S0, S8                                                 ; +0x7c, 0x100202094\nB.LE            loc_1002020B0                                          ; +0x80, 0x100202098\nLDR             X8, [X20]                                              ; +0x84, 0x10020209c\nLDR             X8, [X8,#0xC0]                                         ; +0x88, 0x1002020a0\nMOV             X0, X20                                                ; +0x8c, 0x1002020a4\nBLR             X8                                                     ; +0x90, 0x1002020a8\nLDR             S8, [X0,#4]                                            ; +0x94, 0x1002020ac\nADD             X21, X21, #8                                           ; +0x98, 0x1002020b0\nCMP             X21, X22                                               ; +0x9c, 0x1002020b4\nB.LS            loc_100202078                                          ; +0xa0, 0x1002020b8\nMOV             W8, #0x42B40000                                        ; +0xa4, 0x1002020bc\nFMOV            S0, W8                                                 ; +0xa8, 0x1002020c0\nFADD            S0, S8, S0                                             ; +0xac, 0x1002020c4\nMOV             W8, #0x43960000                                        ; +0xb0, 0x1002020c8\nFMOV            S1, W8                                                 ; +0xb4, 0x1002020cc\nFADD            S8, S0, S1                                             ; +0xb8, 0x1002020d0\nSTR             S8, [X19,#0x34C0]                                      ; +0xbc, 0x1002020d4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc0, 0x1002020d8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc4, 0x1002020dc\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc8, 0x1002020e0\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0xcc, 0x1002020e4\nRET                                                                    ; +0xd0, 0x1002020e8", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x10011c230", "LevelEditorLayer::onPlaytest @ 0x100362b40"], "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"}