{"type": "func", "start": 8311748, "end": 8311876, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x7ed3c4 to 0x7ed444 (128 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x867388\n// > <???> @ 0x953b8\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 GJMGLayer::scaleGround(GJMGLayer *a1, float a2)\n{\n  void (*setScaleX)(void); // x1\n  void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // x20\n  long double v6; // q0\n  float m_groundWidth; // s8\n\n  setScaleX = (void (*)(void))a1->setScaleX;\n  a1->m_groundScale = a2;\n  setScaleX();\n  setScaleY = a1->setScaleY;\n  if ( a1->getScaleY(a1) < 0.0 )\n    *(float *)&v6 = -a2;\n  else\n    *(float *)&v6 = a2;\n  setScaleY(a1, v6);\n  m_groundWidth = a1->m_groundWidth;\n  GJMGLayer::updateGroundWidth(a1, 1);\n  return a1->m_groundWidth - m_groundWidth;\n}", "assembly": "; \n; GJMGLayer::scaleGround from 0x7ed3c4 to 0x7ed444 (128 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x867388\n; > <???> @ 0x953b8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7ed3c4\nMOV             X29, SP                                                ; +0x4, 0x7ed3c8\nLDR             X1, [X0]                                               ; +0x8, 0x7ed3cc\nSTR             D8, [SP,#0x30+var_10]                                  ; +0xc, 0x7ed3d0\nFMOV            S8, S0                                                 ; +0x10, 0x7ed3d4\nLDR             X1, [X1,#0x80]                                         ; +0x14, 0x7ed3d8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x18, 0x7ed3dc\nMOV             X19, X0                                                ; +0x1c, 0x7ed3e0\nSTR             S0, [X19,#0x1E0]                                       ; +0x20, 0x7ed3e4\nBLR             X1                                                     ; +0x24, 0x7ed3e8\nLDR             X1, [X19]                                              ; +0x28, 0x7ed3ec\nMOV             X0, X19                                                ; +0x2c, 0x7ed3f0\nLDR             X2, [X1,#0x98]                                         ; +0x30, 0x7ed3f4\nLDR             X20, [X1,#0x90]                                        ; +0x34, 0x7ed3f8\nBLR             X2                                                     ; +0x38, 0x7ed3fc\nFCMPE           S0, #0.0                                               ; +0x3c, 0x7ed400\nB.MI            loc_7ED43C                                             ; +0x40, 0x7ed404\nFMOV            S0, S8                                                 ; +0x44, 0x7ed408\nMOV             X0, X19                                                ; +0x48, 0x7ed40c\nBLR             X20                                                    ; +0x4c, 0x7ed410\nLDR             S8, [X19,#0x1BC]                                       ; +0x50, 0x7ed414\nMOV             X0, X19; this                                          ; +0x54, 0x7ed418\nMOV             W1, #1; bool                                           ; +0x58, 0x7ed41c\nBL              _ZN9GJMGLayer17updateGroundWidthEb; GJMGLayer::updateGroundWidth(bool) ; +0x5c, 0x7ed420\nLDR             S0, [X19,#0x1BC]                                       ; +0x60, 0x7ed424\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0x7ed428\nFSUB            S0, S0, S8                                             ; +0x68, 0x7ed42c\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x6c, 0x7ed430\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x7ed434\nRET                                                                    ; +0x74, 0x7ed438\nFNEG            S0, S8                                                 ; +0x78, 0x7ed43c\nB               loc_7ED40C                                             ; +0x7c, 0x7ed440", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x867388", "<???> @ 0x953b8"], "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"}