{"type": "func", "start": 4302042608, "end": 4302042739, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x1006bf5f0 to 0x1006bf673 (131 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x10013aabc\n// \n// This function is hookable on this platform (idp: pc, 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 12:35:31 +0000\n// \n\nfloat __fastcall GJMGLayer::scaleGround(float *a1, __m128 a2)\n{\n  __m128 v2; // xmm0\n  __m128 v4; // [rsp+0h] [rbp-20h]\n\n  v4 = a2;\n  a1[120] = a2.f32[0];\n  (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1);\n  *(double *)a2.i64 = (*(double (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1);\n  v2 = _mm_cmplt_ss(a2, (__m128)0LL);\n  (*(void (__fastcall **)(float *, double))(*(_QWORD *)a1 + 144LL))(\n    a1,\n    COERCE_DOUBLE(_mm_andnot_ps(v2, v4).u64[0] | (v4.i64[0] ^ 0x8000000080000000LL) & v2.i64[0]));\n  v4.f32[0] = a1[111];\n  GJMGLayer::updateGroundWidth(a1, 0);\n  return a1[111] - v4.f32[0];\n}", "assembly": "; \n; GJMGLayer::scaleGround from 0x1006bf5f0 to 0x1006bf673 (131 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x10013aabc\n; \n; This function is hookable on this platform (idp: pc, 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 12:35:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006bf5f0\nmov     rbp, rsp                                                       ; +0x1, 0x1006bf5f1\npush    rbx                                                            ; +0x4, 0x1006bf5f4\nsub     rsp, 18h                                                       ; +0x5, 0x1006bf5f5\nmovaps  [rbp+var_20], xmm0                                             ; +0x9, 0x1006bf5f9\nmov     rbx, rdi                                                       ; +0xd, 0x1006bf5fd\nmovss   dword ptr [rdi+1E0h], xmm0                                     ; +0x10, 0x1006bf600\nmov     rax, [rdi]                                                     ; +0x18, 0x1006bf608\ncall    qword ptr [rax+80h]                                            ; +0x1b, 0x1006bf60b\nmov     rax, [rbx]                                                     ; +0x21, 0x1006bf611\nmov     rdi, rbx                                                       ; +0x24, 0x1006bf614\ncall    qword ptr [rax+98h]                                            ; +0x27, 0x1006bf617\nmovaps  xmm1, cs:xmmword_100A035F0                                     ; +0x2d, 0x1006bf61d\nmovaps  xmm3, [rbp+var_20]                                             ; +0x34, 0x1006bf624\nxorps   xmm1, xmm3                                                     ; +0x38, 0x1006bf628\nxorps   xmm2, xmm2                                                     ; +0x3b, 0x1006bf62b\ncmpltss xmm0, xmm2                                                     ; +0x3e, 0x1006bf62e\nandps   xmm1, xmm0                                                     ; +0x43, 0x1006bf633\nandnps  xmm0, xmm3                                                     ; +0x46, 0x1006bf636\norps    xmm0, xmm1                                                     ; +0x49, 0x1006bf639\nmov     rax, [rbx]                                                     ; +0x4c, 0x1006bf63c\nmov     rdi, rbx                                                       ; +0x4f, 0x1006bf63f\ncall    qword ptr [rax+90h]                                            ; +0x52, 0x1006bf642\nmovss   xmm0, dword ptr [rbx+1BCh]                                     ; +0x58, 0x1006bf648\nmovss   dword ptr [rbp+var_20], xmm0                                   ; +0x60, 0x1006bf650\nmov     rdi, rbx                                                       ; +0x65, 0x1006bf655\nxor     esi, esi                                                       ; +0x68, 0x1006bf658\ncall    GJMGLayer__updateGroundWidth                                   ; +0x6a, 0x1006bf65a\nmovss   xmm0, dword ptr [rbx+1BCh]                                     ; +0x6f, 0x1006bf65f\nsubss   xmm0, dword ptr [rbp+var_20]                                   ; +0x77, 0x1006bf667\nadd     rsp, 18h                                                       ; +0x7c, 0x1006bf66c\npop     rbx                                                            ; +0x80, 0x1006bf670\npop     rbp                                                            ; +0x81, 0x1006bf671\nretn                                                                   ; +0x82, 0x1006bf672", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x10013aabc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}