{"type": "func", "start": 4295162992, "end": 4295163124, "name": "GJGroundLayer::scaleGround", "pseudocode": "// \n// GJGroundLayer::scaleGround from 0x10002fc70 to 0x10002fcf4 (132 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x100299888\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1002998a4\n// > GJBaseGameLayer::resetLevelVariables @ 0x10029f3b8\n// > GJBaseGameLayer::resetLevelVariables @ 0x10029f3d4\n// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0784\n// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0794\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:30 +0000\n// \n\nfloat __fastcall GJGroundLayer::scaleGround(float *a1, float a2)\n{\n  __n128 v4; // q0\n  float v5; // s8\n  float v6; // s8\n\n  (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1);\n  if ( (*(float (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1) >= 0.0 )\n    v4.n128_f32[0] = a2;\n  else\n    v4.n128_f32[0] = -a2;\n  (*(void (__fastcall **)(float *, __n128))(*(_QWORD *)a1 + 144LL))(a1, v4);\n  v5 = a1[113];\n  sub_10002FCF4(a1, 1);\n  v6 = a1[113] - v5;\n  sub_10002FE5C(a1);\n  return v6;\n}", "assembly": "; \n; GJGroundLayer::scaleGround from 0x10002fc70 to 0x10002fcf4 (132 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x100299888\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1002998a4\n; > GJBaseGameLayer::resetLevelVariables @ 0x10029f3b8\n; > GJBaseGameLayer::resetLevelVariables @ 0x10029f3d4\n; > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0784\n; > GJBaseGameLayer::updateCameraBGArt @ 0x1002a0794\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:30 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10002fc70\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002fc74\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002fc78\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002fc7c\nFMOV            S8, S0                                                 ; +0x10, 0x10002fc80\nMOV             X19, X0                                                ; +0x14, 0x10002fc84\nLDR             X8, [X0]                                               ; +0x18, 0x10002fc88\nLDR             X8, [X8,#0x80]                                         ; +0x1c, 0x10002fc8c\nBLR             X8                                                     ; +0x20, 0x10002fc90\nLDR             X8, [X19]                                              ; +0x24, 0x10002fc94\nLDR             X8, [X8,#0x98]                                         ; +0x28, 0x10002fc98\nMOV             X0, X19                                                ; +0x2c, 0x10002fc9c\nBLR             X8                                                     ; +0x30, 0x10002fca0\nFNEG            S1, S8                                                 ; +0x34, 0x10002fca4\nFCMP            S0, #0.0                                               ; +0x38, 0x10002fca8\nFCSEL           S0, S1, S8, MI                                         ; +0x3c, 0x10002fcac\nLDR             X8, [X19]                                              ; +0x40, 0x10002fcb0\nLDR             X8, [X8,#0x90]                                         ; +0x44, 0x10002fcb4\nMOV             X0, X19                                                ; +0x48, 0x10002fcb8\nBLR             X8                                                     ; +0x4c, 0x10002fcbc\nLDR             S8, [X19,#0x1C4]                                       ; +0x50, 0x10002fcc0\nMOV             X0, X19                                                ; +0x54, 0x10002fcc4\nMOV             W1, #1                                                 ; +0x58, 0x10002fcc8\nBL              sub_10002FCF4                                          ; +0x5c, 0x10002fccc\nLDR             S0, [X19,#0x1C4]                                       ; +0x60, 0x10002fcd0\nFSUB            S8, S0, S8                                             ; +0x64, 0x10002fcd4\nMOV             X0, X19                                                ; +0x68, 0x10002fcd8\nBL              sub_10002FE5C                                          ; +0x6c, 0x10002fcdc\nFMOV            S0, S8                                                 ; +0x70, 0x10002fce0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10002fce4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10002fce8\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x7c, 0x10002fcec\nRET                                                                    ; +0x80, 0x10002fcf0", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x100299888", "GJBaseGameLayer::preUpdateVisibility @ 0x1002998a4", "GJBaseGameLayer::resetLevelVariables @ 0x10029f3b8", "GJBaseGameLayer::resetLevelVariables @ 0x10029f3d4", "GJBaseGameLayer::updateCameraBGArt @ 0x1002a0784", "GJBaseGameLayer::updateCameraBGArt @ 0x1002a0794"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}