{"type": "func", "start": 4295166052, "end": 4295166176, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x100030864 to 0x1000308e0 (124 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a05d8\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 GJMGLayer::scaleGround(float *a1, float a2)\n{\n  __n128 v4; // q0\n  float v5; // s8\n\n  a1[120] = a2;\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[111];\n  sub_1000308E0(a1, 0);\n  return a1[111] - v5;\n}", "assembly": "; \n; GJMGLayer::scaleGround from 0x100030864 to 0x1000308e0 (124 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x1002a05d8\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, 0x100030864\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100030868\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10003086c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100030870\nFMOV            S8, S0                                                 ; +0x10, 0x100030874\nMOV             X19, X0                                                ; +0x14, 0x100030878\nSTR             S0, [X0,#0x1E0]                                        ; +0x18, 0x10003087c\nLDR             X8, [X0]                                               ; +0x1c, 0x100030880\nLDR             X8, [X8,#0x80]                                         ; +0x20, 0x100030884\nBLR             X8                                                     ; +0x24, 0x100030888\nLDR             X8, [X19]                                              ; +0x28, 0x10003088c\nLDR             X8, [X8,#0x98]                                         ; +0x2c, 0x100030890\nMOV             X0, X19                                                ; +0x30, 0x100030894\nBLR             X8                                                     ; +0x34, 0x100030898\nFNEG            S1, S8                                                 ; +0x38, 0x10003089c\nFCMP            S0, #0.0                                               ; +0x3c, 0x1000308a0\nFCSEL           S0, S1, S8, MI                                         ; +0x40, 0x1000308a4\nLDR             X8, [X19]                                              ; +0x44, 0x1000308a8\nLDR             X8, [X8,#0x90]                                         ; +0x48, 0x1000308ac\nMOV             X0, X19                                                ; +0x4c, 0x1000308b0\nBLR             X8                                                     ; +0x50, 0x1000308b4\nLDR             S8, [X19,#0x1BC]                                       ; +0x54, 0x1000308b8\nMOV             X0, X19                                                ; +0x58, 0x1000308bc\nMOV             W1, #0                                                 ; +0x5c, 0x1000308c0\nBL              sub_1000308E0                                          ; +0x60, 0x1000308c4\nLDR             S0, [X19,#0x1BC]                                       ; +0x64, 0x1000308c8\nFSUB            S0, S0, S8                                             ; +0x68, 0x1000308cc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x1000308d0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x1000308d4\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x74, 0x1000308d8\nRET                                                                    ; +0x78, 0x1000308dc", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x1002a05d8"], "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"}