{"type": "func", "start": 4296340080, "end": 4296340335, "name": "GJBaseGameLayer::updateMGOffsetY", "pseudocode": "// \n// GJBaseGameLayer::updateMGOffsetY from 0x10014f270 to 0x10014f36f (255 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1000dda7b\n// > LevelEditorLayer::activateTriggerEffect @ 0x1000ef880\n// > EffectGameObject::triggerObject @ 0x1001b9c71\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::updateMGOffsetY(\n        GJBaseGameLayer *a1,\n        float a2,\n        float a3,\n        int a4,\n        float a5,\n        int a6,\n        int a7)\n{\n  std::unordered_map<int, GJValueTween> *p_m_tweenActions; // rdi\n  int v10[3]; // [rsp+4h] [rbp-5Ch] BYREF\n  __int64 v11; // [rsp+10h] [rbp-50h]\n  int v12; // [rsp+18h] [rbp-48h]\n  float v13; // [rsp+1Ch] [rbp-44h]\n  __int16 v14; // [rsp+20h] [rbp-40h]\n  int v15; // [rsp+24h] [rbp-3Ch]\n  int v16; // [rsp+28h] [rbp-38h]\n  int v17; // [rsp+2Ch] [rbp-34h] BYREF\n  float m_middleGroundOffsetY; // [rsp+30h] [rbp-30h]\n  float v19; // [rsp+34h] [rbp-2Ch]\n  float v20; // [rsp+38h] [rbp-28h]\n  float v21; // [rsp+3Ch] [rbp-24h]\n\n  *(float *)&a1->m_gameState.m_unkInt3 = a2;\n  *(float *)&a1->m_gameState.m_unkInt4 = a3;\n  if ( a3 <= 0.0 )\n  {\n    v10[0] = 20;\n    sub_1000569A0(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, v10);\n    LODWORD(a1->m_gameState.m_middleGroundOffsetY) = a1->m_gameState.m_unkInt3;\n  }\n  else\n  {\n    m_middleGroundOffsetY = a1->m_gameState.m_middleGroundOffsetY;\n    v17 = 20;\n    v10[0] = 20;\n    p_m_tweenActions = &a1->m_gameState.m_tweenActions;\n    v19 = a5;\n    v20 = a3;\n    v21 = a2;\n    sub_1000569A0(p_m_tweenActions, v10);\n    v11 = 0;\n    v14 = 0;\n    *(float *)v10 = m_middleGroundOffsetY;\n    *(float *)&v10[1] = v21;\n    *(float *)&v10[2] = v20;\n    v12 = a4;\n    v13 = v19;\n    v15 = a6;\n    v16 = a7;\n    sub_100165AA0(p_m_tweenActions, &v17, &v17, v10);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateMGOffsetY from 0x10014f270 to 0x10014f36f (255 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1000dda7b\n; > LevelEditorLayer::activateTriggerEffect @ 0x1000ef880\n; > EffectGameObject::triggerObject @ 0x1001b9c71\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, 0x10014f270\nmov     rbp, rsp                                                       ; +0x1, 0x10014f271\npush    r15                                                            ; +0x4, 0x10014f274\npush    r14                                                            ; +0x6, 0x10014f276\npush    r12                                                            ; +0x8, 0x10014f278\npush    rbx                                                            ; +0xa, 0x10014f27a\nsub     rsp, 40h                                                       ; +0xb, 0x10014f27b\nmovss   dword ptr [rdi+2C0h], xmm0                                     ; +0xf, 0x10014f27f\nmovss   dword ptr [rdi+2C4h], xmm1                                     ; +0x17, 0x10014f287\nxorps   xmm3, xmm3                                                     ; +0x1f, 0x10014f28f\nucomiss xmm1, xmm3                                                     ; +0x22, 0x10014f292\njbe     loc_10014F335                                                  ; +0x25, 0x10014f295\nmov     ebx, ecx                                                       ; +0x2b, 0x10014f29b\nmov     r14d, edx                                                      ; +0x2d, 0x10014f29d\nmov     r15d, esi                                                      ; +0x30, 0x10014f2a0\nmovss   xmm3, dword ptr [rdi+2BCh]                                     ; +0x33, 0x10014f2a3\nmovss   [rbp+var_30], xmm3                                             ; +0x3b, 0x10014f2ab\nmov     [rbp+var_34], 14h                                              ; +0x40, 0x10014f2b0\nmov     [rbp+var_5C], 14h                                              ; +0x47, 0x10014f2b7\nadd     rdi, 3F8h                                                      ; +0x4e, 0x10014f2be\nlea     rsi, [rbp+var_5C]                                              ; +0x55, 0x10014f2c5\nmov     r12, rdi                                                       ; +0x59, 0x10014f2c9\nmovss   [rbp+var_2C], xmm2                                             ; +0x5c, 0x10014f2cc\nmovss   [rbp+var_28], xmm1                                             ; +0x61, 0x10014f2d1\nmovss   [rbp+var_24], xmm0                                             ; +0x66, 0x10014f2d6\ncall    sub_1000569A0                                                  ; +0x6b, 0x10014f2db\nxorps   xmm0, xmm0                                                     ; +0x70, 0x10014f2e0\nmovups  [rbp+var_50], xmm0                                             ; +0x73, 0x10014f2e3\nmov     [rbp+var_40], 0                                                ; +0x77, 0x10014f2e7\nmovss   xmm0, [rbp+var_30]                                             ; +0x7d, 0x10014f2ed\nmovss   [rbp+var_5C], xmm0                                             ; +0x82, 0x10014f2f2\nmovss   xmm0, [rbp+var_24]                                             ; +0x87, 0x10014f2f7\nmovss   [rbp+var_58], xmm0                                             ; +0x8c, 0x10014f2fc\nmovss   xmm0, [rbp+var_28]                                             ; +0x91, 0x10014f301\nmovss   [rbp+var_54], xmm0                                             ; +0x96, 0x10014f306\nmov     dword ptr [rbp+var_50+8], r15d                                 ; +0x9b, 0x10014f30b\nmovss   xmm0, [rbp+var_2C]                                             ; +0x9f, 0x10014f30f\nmovss   dword ptr [rbp+var_50+0Ch], xmm0                               ; +0xa4, 0x10014f314\nmov     [rbp+var_3C], r14d                                             ; +0xa9, 0x10014f319\nmov     [rbp+var_38], ebx                                              ; +0xad, 0x10014f31d\nlea     rdx, [rbp+var_34]                                              ; +0xb0, 0x10014f320\nlea     rcx, [rbp+var_5C]                                              ; +0xb4, 0x10014f324\nmov     rdi, r12                                                       ; +0xb8, 0x10014f328\nmov     rsi, rdx                                                       ; +0xbb, 0x10014f32b\ncall    sub_100165AA0                                                  ; +0xbe, 0x10014f32e\njmp     short loc_10014F362                                            ; +0xc3, 0x10014f333\nmov     [rbp+var_5C], 14h                                              ; +0xc5, 0x10014f335\nlea     rax, [rdi+3F8h]                                                ; +0xcc, 0x10014f33c\nlea     rsi, [rbp+var_5C]                                              ; +0xd3, 0x10014f343\nmov     rbx, rdi                                                       ; +0xd7, 0x10014f347\nmov     rdi, rax                                                       ; +0xda, 0x10014f34a\ncall    sub_1000569A0                                                  ; +0xdd, 0x10014f34d\nmovss   xmm0, dword ptr [rbx+2C0h]                                     ; +0xe2, 0x10014f352\nmovss   dword ptr [rbx+2BCh], xmm0                                     ; +0xea, 0x10014f35a\nadd     rsp, 40h                                                       ; +0xf2, 0x10014f362\npop     rbx                                                            ; +0xf6, 0x10014f366\npop     r12                                                            ; +0xf7, 0x10014f367\npop     r14                                                            ; +0xf9, 0x10014f369\npop     r15                                                            ; +0xfb, 0x10014f36b\npop     rbp                                                            ; +0xfd, 0x10014f36d\nretn                                                                   ; +0xfe, 0x10014f36e", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1000dda7b", "LevelEditorLayer::activateTriggerEffect @ 0x1000ef880", "EffectGameObject::triggerObject @ 0x1001b9c71"], "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"}