{"type": "func", "start": 4295148432, "end": 4295148564, "name": "GJGroundLayer::scaleGround", "pseudocode": "// \n// GJGroundLayer::scaleGround from 0x10002c390 to 0x10002c414 (132 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd750\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd76c\n// > GJBaseGameLayer::resetLevelVariables @ 0x100202640\n// > GJBaseGameLayer::resetLevelVariables @ 0x10020265c\n// > GJBaseGameLayer::updateCameraBGArt @ 0x1002039b0\n// > GJBaseGameLayer::updateCameraBGArt @ 0x1002039c0\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 GJGroundLayer::scaleGround(GJGroundLayer *a1, float a2)\n{\n  __n128 v4; // q0\n  float m_groundWidth; // s8\n  float v6; // s8\n\n  ((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1);\n  if ( ((float (__fastcall *)(GJGroundLayer *))a1->getScaleY)(a1) >= 0.0 )\n    v4.n128_f32[0] = a2;\n  else\n    v4.n128_f32[0] = -a2;\n  ((void (__fastcall *)(GJGroundLayer *, __n128))a1->setScaleY)(a1, v4);\n  m_groundWidth = a1->m_groundWidth;\n  GJGroundLayer::updateGroundWidth(a1, 1);\n  v6 = a1->m_groundWidth - m_groundWidth;\n  GJGroundLayer::updateShadows(a1);\n  return v6;\n}", "assembly": "; \n; GJGroundLayer::scaleGround from 0x10002c390 to 0x10002c414 (132 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd750\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd76c\n; > GJBaseGameLayer::resetLevelVariables @ 0x100202640\n; > GJBaseGameLayer::resetLevelVariables @ 0x10020265c\n; > GJBaseGameLayer::updateCameraBGArt @ 0x1002039b0\n; > GJBaseGameLayer::updateCameraBGArt @ 0x1002039c0\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, 0x10002c390\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002c394\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002c398\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002c39c\nFMOV            S8, S0                                                 ; +0x10, 0x10002c3a0\nMOV             X19, X0                                                ; +0x14, 0x10002c3a4\nLDR             X8, [X0]                                               ; +0x18, 0x10002c3a8\nLDR             X8, [X8,#0x80]                                         ; +0x1c, 0x10002c3ac\nBLR             X8                                                     ; +0x20, 0x10002c3b0\nLDR             X8, [X19]                                              ; +0x24, 0x10002c3b4\nLDR             X8, [X8,#0x98]                                         ; +0x28, 0x10002c3b8\nMOV             X0, X19                                                ; +0x2c, 0x10002c3bc\nBLR             X8                                                     ; +0x30, 0x10002c3c0\nFNEG            S1, S8                                                 ; +0x34, 0x10002c3c4\nFCMP            S0, #0.0                                               ; +0x38, 0x10002c3c8\nFCSEL           S0, S1, S8, MI                                         ; +0x3c, 0x10002c3cc\nLDR             X8, [X19]                                              ; +0x40, 0x10002c3d0\nLDR             X8, [X8,#0x90]                                         ; +0x44, 0x10002c3d4\nMOV             X0, X19                                                ; +0x48, 0x10002c3d8\nBLR             X8                                                     ; +0x4c, 0x10002c3dc\nLDR             S8, [X19,#0x1C4]                                       ; +0x50, 0x10002c3e0\nMOV             X0, X19                                                ; +0x54, 0x10002c3e4\nMOV             W1, #1                                                 ; +0x58, 0x10002c3e8\nBL              GJGroundLayer__updateGroundWidth                       ; +0x5c, 0x10002c3ec\nLDR             S0, [X19,#0x1C4]                                       ; +0x60, 0x10002c3f0\nFSUB            S8, S0, S8                                             ; +0x64, 0x10002c3f4\nMOV             X0, X19                                                ; +0x68, 0x10002c3f8\nBL              GJGroundLayer__updateShadows                           ; +0x6c, 0x10002c3fc\nFMOV            S0, S8                                                 ; +0x70, 0x10002c400\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10002c404\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10002c408\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x7c, 0x10002c40c\nRET                                                                    ; +0x80, 0x10002c410", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x1001fd750", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd76c", "GJBaseGameLayer::resetLevelVariables @ 0x100202640", "GJBaseGameLayer::resetLevelVariables @ 0x10020265c", "GJBaseGameLayer::updateCameraBGArt @ 0x1002039b0", "GJBaseGameLayer::updateCameraBGArt @ 0x1002039c0"], "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"}