{"type": "func", "start": 4412456, "end": 4412540, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x435428 to 0x43547c (84 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x47743e\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  GJMGLayer_vtbl *v2; // r3\n  void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // r6\n  float v6; // r1\n  float m_groundWidth; // s16\n\n  v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  a1->m_groundScale = a2;\n  ((void (*)(void))v2->setScaleX)();\n  setScaleY = a1->setScaleY;\n  if ( COERCE_FLOAT(((int (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1)) >= 0.0 )\n    v6 = a2;\n  else\n    LODWORD(v6) = LODWORD(a2) ^ 0x80000000;\n  ((void (__fastcall *)(GJMGLayer *, _DWORD))setScaleY)(a1, LODWORD(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 0x435428 to 0x43547c (84 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x47743e\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, 0x435428\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x43542a\nMOV             R4, R0                                                 ; +0x4, 0x43542c\nVPUSH           {D8}                                                   ; +0x6, 0x43542e\nMOV             R5, R1                                                 ; +0xa, 0x435432\nSTR.W           R1, [R4,#0x168]                                        ; +0xc, 0x435434\nLDR             R3, [R3,#0x40]                                         ; +0x10, 0x435438\nBLX             R3                                                     ; +0x12, 0x43543a\nLDR             R3, [R4]                                               ; +0x14, 0x43543c\nMOV             R0, R4                                                 ; +0x16, 0x43543e\nLDR             R6, [R3,#0x48]                                         ; +0x18, 0x435440\nLDR             R3, [R3,#0x4C]                                         ; +0x1a, 0x435442\nBLX             R3                                                     ; +0x1c, 0x435444\nVMOV            S15, R0                                                ; +0x1e, 0x435446\nMOV             R0, R4                                                 ; +0x22, 0x43544a\nVCMPE.F32       S15, #0.0                                              ; +0x24, 0x43544c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x435450\nITE MI                                                                 ; +0x2c, 0x435454\nEORMI.W         R1, R5, #0x80000000                                    ; +0x2e, 0x435456\nMOVPL           R1, R5                                                 ; +0x32, 0x43545a\nBLX             R6                                                     ; +0x34, 0x43545c\nMOV             R0, R4; this                                           ; +0x36, 0x43545e\nMOVS            R1, #1; bool                                           ; +0x38, 0x435460\nVLDR            S16, [R4,#0x150]                                       ; +0x3a, 0x435462\nBL              _ZN9GJMGLayer17updateGroundWidthEb; GJMGLayer::updateGroundWidth(bool) ; +0x3e, 0x435466\nVLDR            S15, [R4,#0x150]                                       ; +0x42, 0x43546a\nVSUB.F32        S15, S15, S16                                          ; +0x46, 0x43546e\nVPOP            {D8}                                                   ; +0x4a, 0x435472\nVMOV            R0, S15                                                ; +0x4e, 0x435476\nPOP             {R4-R6,PC}                                             ; +0x52, 0x43547a", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x47743e"], "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"}