{"type": "func", "start": 4681264, "end": 4681406, "name": "GJBaseGameLayer::updateMaxGameplayY", "pseudocode": "// \n// GJBaseGameLayer::updateMaxGameplayY from 0x476e30 to 0x476ebe (142 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x31ad1e\n// > LevelEditorLayer::onPlaytest @ 0x36ea20\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; // r0\n  cocos2d::CCArray *m_objects; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r5\n  float v6; // s16\n  cocos2d::CCObject **v7; // r6\n  int v8; // r7\n  int v9; // t1\n\n  m_levelSettings = a1->m_levelSettings;\n  if ( m_levelSettings && LevelSettingsObject::shouldUseYSection(m_levelSettings) )\n  {\n    m_objects = a1->m_objects;\n    if ( m_objects && (data = m_objects->data, data->num) )\n    {\n      arr = data->arr;\n      v6 = 1200.0;\n      v7 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v7 )\n      {\n        v9 = (int)*arr++;\n        v8 = v9;\n        if ( !v9 )\n          break;\n        if ( *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v8 + 96))(v8) + 4) > v6 )\n          v6 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v8 + 96))(v8) + 4);\n      }\n    }\n    else\n    {\n      v6 = 1200.0;\n    }\n    a1->m_maxGameplayY = (float)(v6 + 90.0) + 300.0;\n  }\n  else\n  {\n    a1->m_maxGameplayY = 2790.0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateMaxGameplayY from 0x476e30 to 0x476ebe (142 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x31ad1e\n; > LevelEditorLayer::onPlaytest @ 0x36ea20\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            {R3-R7,LR}                                             ; +0x0, 0x476e30\nMOV             R4, R0                                                 ; +0x2, 0x476e32\nLDR.W           R0, [R0,#0x8C0]; this                                  ; +0x4, 0x476e34\nVPUSH           {D8}                                                   ; +0x8, 0x476e38\nCBZ             R0, loc_476E8A                                         ; +0xc, 0x476e3c\nBL              _ZN19LevelSettingsObject17shouldUseYSectionEv; LevelSettingsObject::shouldUseYSection(void) ; +0xe, 0x476e3e\nCBZ             R0, loc_476E8A                                         ; +0x12, 0x476e42\nLDR.W           R3, [R4,#0x8C4]                                        ; +0x14, 0x476e44\nCBZ             R3, loc_476E6C                                         ; +0x18, 0x476e48\nLDR             R2, [R3,#0x34]                                         ; +0x1a, 0x476e4a\nLDR             R3, [R2]                                               ; +0x1c, 0x476e4c\nCBZ             R3, loc_476E6C                                         ; +0x1e, 0x476e4e\nADD.W           R3, R3, #0x40000000                                    ; +0x20, 0x476e50\nLDR             R5, [R2,#0xC]                                          ; +0x24, 0x476e54\nSUBS            R3, #1                                                 ; +0x26, 0x476e56\nVLDR            S16, =1200.0                                           ; +0x28, 0x476e58\nADD.W           R6, R5, R3,LSL#2                                       ; +0x2c, 0x476e5c\nCMP             R5, R6                                                 ; +0x30, 0x476e60\nBHI             loc_476E70                                             ; +0x32, 0x476e62\nLDR.W           R7, [R5],#4                                            ; +0x34, 0x476e64\nCBNZ            R7, loc_476E94                                         ; +0x38, 0x476e68\nB               loc_476E70                                             ; +0x3a, 0x476e6a\nVLDR            S16, =1200.0                                           ; +0x3c, 0x476e6c\nADD.W           R4, R4, #0x2D00                                        ; +0x40, 0x476e70\nVLDR            S15, =90.0                                             ; +0x44, 0x476e74\nVADD.F32        S16, S16, S15                                          ; +0x48, 0x476e78\nVLDR            S15, =300.0                                            ; +0x4c, 0x476e7c\nVADD.F32        S16, S16, S15                                          ; +0x50, 0x476e80\nVSTR            S16, [R4,#0x38]                                        ; +0x54, 0x476e84\nB               loc_476EB8                                             ; +0x58, 0x476e88\nLDR             R3, =0x452E6000                                        ; +0x5a, 0x476e8a\nADD.W           R4, R4, #0x2D00                                        ; +0x5c, 0x476e8c\nSTR             R3, [R4,#0x38]                                         ; +0x60, 0x476e90\nB               loc_476EB8                                             ; +0x62, 0x476e92\nLDR             R3, [R7]                                               ; +0x64, 0x476e94\nMOV             R0, R7                                                 ; +0x66, 0x476e96\nLDR             R3, [R3,#0x60]                                         ; +0x68, 0x476e98\nBLX             R3                                                     ; +0x6a, 0x476e9a\nVLDR            S15, [R0,#4]                                           ; +0x6c, 0x476e9c\nVCMPE.F32       S15, S16                                               ; +0x70, 0x476ea0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x74, 0x476ea4\nBLE             loc_476E60                                             ; +0x78, 0x476ea8\nLDR             R3, [R7]                                               ; +0x7a, 0x476eaa\nMOV             R0, R7                                                 ; +0x7c, 0x476eac\nLDR             R3, [R3,#0x60]                                         ; +0x7e, 0x476eae\nBLX             R3                                                     ; +0x80, 0x476eb0\nVLDR            S16, [R0,#4]                                           ; +0x82, 0x476eb2\nB               loc_476E60                                             ; +0x86, 0x476eb6\nVPOP            {D8}                                                   ; +0x88, 0x476eb8\nPOP             {R3-R7,PC}                                             ; +0x8c, 0x476ebc", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x31ad1e", "LevelEditorLayer::onPlaytest @ 0x36ea20"], "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"}