{"type": "func", "start": 8308384, "end": 8308524, "name": "GJGroundLayer::scaleGround", "pseudocode": "// \n// GJGroundLayer::scaleGround from 0x7ec6a0 to 0x7ec72c (140 bytes)\n// \n// 7 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x8673b8\n// > GJBaseGameLayer::updateCameraBGArt @ 0x8673c8\n// > GJBaseGameLayer::preUpdateVisibility @ 0x881cb0\n// > GJBaseGameLayer::preUpdateVisibility @ 0x881ccc\n// > GJBaseGameLayer::resetLevelVariables @ 0x88af10\n// > GJBaseGameLayer::resetLevelVariables @ 0x88af2c\n// > <???> @ 0xb28c0\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 GJGroundLayer::scaleGround(GJGroundLayer *a1, float a2)\n{\n  void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // x20\n  long double v5; // q0\n  float m_groundWidth; // s8\n  float v8; // [xsp+30h] [xbp+30h]\n\n  ((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1);\n  setScaleY = a1->setScaleY;\n  if ( a1->getScaleY(a1) < 0.0 )\n    *(float *)&v5 = -a2;\n  else\n    *(float *)&v5 = a2;\n  setScaleY(a1, v5);\n  m_groundWidth = a1->m_groundWidth;\n  GJGroundLayer::updateGroundWidth(a1, 1);\n  v8 = a1->m_groundWidth - m_groundWidth;\n  GJGroundLayer::updateShadows(a1);\n  return v8;\n}", "assembly": "; \n; GJGroundLayer::scaleGround from 0x7ec6a0 to 0x7ec72c (140 bytes)\n; \n; 7 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x8673b8\n; > GJBaseGameLayer::updateCameraBGArt @ 0x8673c8\n; > GJBaseGameLayer::preUpdateVisibility @ 0x881cb0\n; > GJBaseGameLayer::preUpdateVisibility @ 0x881ccc\n; > GJBaseGameLayer::resetLevelVariables @ 0x88af10\n; > GJBaseGameLayer::resetLevelVariables @ 0x88af2c\n; > <???> @ 0xb28c0\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_40]!                                ; +0x0, 0x7ec6a0\nMOV             X29, SP                                                ; +0x4, 0x7ec6a4\nLDR             X1, [X0]                                               ; +0x8, 0x7ec6a8\nSTR             D8, [SP,#0x40+var_20]                                  ; +0xc, 0x7ec6ac\nFMOV            S8, S0                                                 ; +0x10, 0x7ec6b0\nLDR             X1, [X1,#0x80]                                         ; +0x14, 0x7ec6b4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x18, 0x7ec6b8\nMOV             X19, X0                                                ; +0x1c, 0x7ec6bc\nBLR             X1                                                     ; +0x20, 0x7ec6c0\nMOV             X0, X19                                                ; +0x24, 0x7ec6c4\nLDR             X1, [X19]                                              ; +0x28, 0x7ec6c8\nLDR             X2, [X1,#0x98]                                         ; +0x2c, 0x7ec6cc\nLDR             X20, [X1,#0x90]                                        ; +0x30, 0x7ec6d0\nBLR             X2                                                     ; +0x34, 0x7ec6d4\nFCMPE           S0, #0.0                                               ; +0x38, 0x7ec6d8\nB.MI            loc_7EC724                                             ; +0x3c, 0x7ec6dc\nFMOV            S0, S8                                                 ; +0x40, 0x7ec6e0\nMOV             X0, X19                                                ; +0x44, 0x7ec6e4\nBLR             X20                                                    ; +0x48, 0x7ec6e8\nLDR             S8, [X19,#0x1C4]                                       ; +0x4c, 0x7ec6ec\nMOV             X0, X19; this                                          ; +0x50, 0x7ec6f0\nMOV             W1, #1; bool                                           ; +0x54, 0x7ec6f4\nBL              _ZN13GJGroundLayer17updateGroundWidthEb; GJGroundLayer::updateGroundWidth(bool) ; +0x58, 0x7ec6f8\nLDR             S0, [X19,#0x1C4]                                       ; +0x5c, 0x7ec6fc\nMOV             X0, X19; this                                          ; +0x60, 0x7ec700\nFSUB            S0, S0, S8                                             ; +0x64, 0x7ec704\nSTR             Q0, [X29,#0x40+var_10]                                 ; +0x68, 0x7ec708\nBL              _ZN13GJGroundLayer13updateShadowsEv; GJGroundLayer::updateShadows(void) ; +0x6c, 0x7ec70c\nLDR             Q0, [X29,#0x40+var_10]                                 ; +0x70, 0x7ec710\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x74, 0x7ec714\nLDR             D8, [SP,#0x40+var_20]                                  ; +0x78, 0x7ec718\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x7c, 0x7ec71c\nRET                                                                    ; +0x80, 0x7ec720\nFNEG            S0, S8                                                 ; +0x84, 0x7ec724\nB               loc_7EC6E4                                             ; +0x88, 0x7ec728", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x8673b8", "GJBaseGameLayer::updateCameraBGArt @ 0x8673c8", "GJBaseGameLayer::preUpdateVisibility @ 0x881cb0", "GJBaseGameLayer::preUpdateVisibility @ 0x881ccc", "GJBaseGameLayer::resetLevelVariables @ 0x88af10", "GJBaseGameLayer::resetLevelVariables @ 0x88af2c", "<???> @ 0xb28c0"], "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"}