{"type": "func", "start": 4410404, "end": 4410490, "name": "GJGroundLayer::scaleGround", "pseudocode": "// \n// GJGroundLayer::scaleGround from 0x434c24 to 0x434c7a (86 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x4775b8\n// > GJBaseGameLayer::updateCameraBGArt @ 0x4775c8\n// > GJBaseGameLayer::preUpdateVisibility @ 0x4890ee\n// > GJBaseGameLayer::preUpdateVisibility @ 0x489102\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e04\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e1a\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); // r6\n  float v5; // r1\n  float m_groundWidth; // s16\n  float v7; // s15\n\n  ((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1);\n  setScaleY = a1->setScaleY;\n  if ( COERCE_FLOAT(((int (__fastcall *)(GJGroundLayer *))a1->getScaleY)(a1)) >= 0.0 )\n    v5 = a2;\n  else\n    LODWORD(v5) = LODWORD(a2) ^ 0x80000000;\n  ((void (__fastcall *)(GJGroundLayer *, _DWORD))setScaleY)(a1, LODWORD(v5));\n  m_groundWidth = a1->m_groundWidth;\n  GJGroundLayer::updateGroundWidth(a1, 1);\n  v7 = a1->m_groundWidth;\n  GJGroundLayer::updateShadows(a1);\n  return v7 - m_groundWidth;\n}", "assembly": "; \n; GJGroundLayer::scaleGround from 0x434c24 to 0x434c7a (86 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x4775b8\n; > GJBaseGameLayer::updateCameraBGArt @ 0x4775c8\n; > GJBaseGameLayer::preUpdateVisibility @ 0x4890ee\n; > GJBaseGameLayer::preUpdateVisibility @ 0x489102\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e04\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e1a\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\nLDR             R3, [R0]                                               ; +0x0, 0x434c24\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x434c26\nMOV             R4, R0                                                 ; +0x4, 0x434c28\nVPUSH           {D8}                                                   ; +0x6, 0x434c2a\nMOV             R5, R1                                                 ; +0xa, 0x434c2e\nLDR             R3, [R3,#0x40]                                         ; +0xc, 0x434c30\nBLX             R3                                                     ; +0xe, 0x434c32\nLDR             R3, [R4]                                               ; +0x10, 0x434c34\nMOV             R0, R4                                                 ; +0x12, 0x434c36\nLDR             R6, [R3,#0x48]                                         ; +0x14, 0x434c38\nLDR             R3, [R3,#0x4C]                                         ; +0x16, 0x434c3a\nBLX             R3                                                     ; +0x18, 0x434c3c\nVMOV            S15, R0                                                ; +0x1a, 0x434c3e\nMOV             R0, R4                                                 ; +0x1e, 0x434c42\nVCMPE.F32       S15, #0.0                                              ; +0x20, 0x434c44\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x434c48\nITE MI                                                                 ; +0x28, 0x434c4c\nEORMI.W         R1, R5, #0x80000000                                    ; +0x2a, 0x434c4e\nMOVPL           R1, R5                                                 ; +0x2e, 0x434c52\nBLX             R6                                                     ; +0x30, 0x434c54\nMOV             R0, R4; this                                           ; +0x32, 0x434c56\nMOVS            R1, #1; bool                                           ; +0x34, 0x434c58\nVLDR            S16, [R4,#0x158]                                       ; +0x36, 0x434c5a\nBL              _ZN13GJGroundLayer17updateGroundWidthEb; GJGroundLayer::updateGroundWidth(bool) ; +0x3a, 0x434c5e\nMOV             R0, R4; this                                           ; +0x3e, 0x434c62\nVLDR            S15, [R4,#0x158]                                       ; +0x40, 0x434c64\nVSUB.F32        S16, S15, S16                                          ; +0x44, 0x434c68\nBL              _ZN13GJGroundLayer13updateShadowsEv; GJGroundLayer::updateShadows(void) ; +0x48, 0x434c6c\nVMOV            R0, S16                                                ; +0x4c, 0x434c70\nVPOP            {D8}                                                   ; +0x50, 0x434c74\nPOP             {R4-R6,PC}                                             ; +0x54, 0x434c78", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x4775b8", "GJBaseGameLayer::updateCameraBGArt @ 0x4775c8", "GJBaseGameLayer::preUpdateVisibility @ 0x4890ee", "GJBaseGameLayer::preUpdateVisibility @ 0x489102", "GJBaseGameLayer::resetLevelVariables @ 0x491e04", "GJBaseGameLayer::resetLevelVariables @ 0x491e1a"], "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"}