{"type": "func", "start": 4295151492, "end": 4295151616, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x10002cf84 to 0x10002d000 (124 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x100203804\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\nfloat __fastcall GJMGLayer::scaleGround(GJMGLayer *a1, float a2)\n{\n  __n128 v4; // q0\n  float m_groundWidth; // s8\n\n  a1->m_groundScale = a2;\n  ((void (__fastcall *)(GJMGLayer *))a1->setScaleX)(a1);\n  if ( ((float (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1) >= 0.0 )\n    v4.n128_f32[0] = a2;\n  else\n    v4.n128_f32[0] = -a2;\n  ((void (__fastcall *)(GJMGLayer *, __n128))a1->setScaleY)(a1, v4);\n  m_groundWidth = a1->m_groundWidth;\n  GJMGLayer::updateGroundWidth(a1, 0);\n  return a1->m_groundWidth - m_groundWidth;\n}", "assembly": "; \n; GJMGLayer::scaleGround from 0x10002cf84 to 0x10002d000 (124 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x100203804\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_20]!                            ; +0x0, 0x10002cf84\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002cf88\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002cf8c\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002cf90\nFMOV            S8, S0                                                 ; +0x10, 0x10002cf94\nMOV             X19, X0                                                ; +0x14, 0x10002cf98\nSTR             S0, [X0,#0x1E0]                                        ; +0x18, 0x10002cf9c\nLDR             X8, [X0]                                               ; +0x1c, 0x10002cfa0\nLDR             X8, [X8,#0x80]                                         ; +0x20, 0x10002cfa4\nBLR             X8                                                     ; +0x24, 0x10002cfa8\nLDR             X8, [X19]                                              ; +0x28, 0x10002cfac\nLDR             X8, [X8,#0x98]                                         ; +0x2c, 0x10002cfb0\nMOV             X0, X19                                                ; +0x30, 0x10002cfb4\nBLR             X8                                                     ; +0x34, 0x10002cfb8\nFNEG            S1, S8                                                 ; +0x38, 0x10002cfbc\nFCMP            S0, #0.0                                               ; +0x3c, 0x10002cfc0\nFCSEL           S0, S1, S8, MI                                         ; +0x40, 0x10002cfc4\nLDR             X8, [X19]                                              ; +0x44, 0x10002cfc8\nLDR             X8, [X8,#0x90]                                         ; +0x48, 0x10002cfcc\nMOV             X0, X19                                                ; +0x4c, 0x10002cfd0\nBLR             X8                                                     ; +0x50, 0x10002cfd4\nLDR             S8, [X19,#0x1BC]                                       ; +0x54, 0x10002cfd8\nMOV             X0, X19                                                ; +0x58, 0x10002cfdc\nMOV             W1, #0                                                 ; +0x5c, 0x10002cfe0\nBL              GJMGLayer__updateGroundWidth                           ; +0x60, 0x10002cfe4\nLDR             S0, [X19,#0x1BC]                                       ; +0x64, 0x10002cfe8\nFSUB            S0, S0, S8                                             ; +0x68, 0x10002cfec\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x10002cff0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x10002cff4\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x74, 0x10002cff8\nRET                                                                    ; +0x78, 0x10002cffc", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x100203804"], "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"}