{"type": "func", "start": 4301178208, "end": 4301178339, "name": "GJMGLayer::scaleGround", "pseudocode": "// \n// GJMGLayer::scaleGround from 0x1005ec560 to 0x1005ec5e3 (131 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateCameraBGArt @ 0x10015b5aa\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\n// local variable allocation has failed, the output may be wrong!\nfloat __fastcall GJMGLayer::scaleGround(GJMGLayer *a1, float a2)\n{\n  __m128 v2; // xmm0\n  __m128 v3; // xmm0\n  __m128 v5; // [rsp+0h] [rbp-20h]\n\n  v5 = *(__m128 *)&a2;\n  a1->m_groundScale = a2;\n  ((void (__fastcall *)(GJMGLayer *))a1->setScaleX)(a1);\n  *(double *)v2.i64 = ((double (__fastcall *)(GJMGLayer *))a1->getScaleY)(a1);\n  v3 = _mm_cmplt_ss(v2, (__m128)0LL);\n  ((void (__fastcall *)(GJMGLayer *, double))a1->setScaleY)(\n    a1,\n    COERCE_DOUBLE(_mm_andnot_ps(v3, v5).u64[0] | (v5.i64[0] ^ 0x8000000080000000LL) & v3.i64[0]));\n  v5.i32[0] = LODWORD(a1->m_groundWidth);\n  GJMGLayer::updateGroundWidth(a1, 0);\n  return a1->m_groundWidth - v5.f32[0];\n}", "assembly": "; \n; GJMGLayer::scaleGround from 0x1005ec560 to 0x1005ec5e3 (131 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateCameraBGArt @ 0x10015b5aa\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\npush    rbp                                                            ; +0x0, 0x1005ec560\nmov     rbp, rsp                                                       ; +0x1, 0x1005ec561\npush    rbx                                                            ; +0x4, 0x1005ec564\nsub     rsp, 18h                                                       ; +0x5, 0x1005ec565\nmovaps  [rbp+var_20], xmm0                                             ; +0x9, 0x1005ec569\nmov     rbx, rdi                                                       ; +0xd, 0x1005ec56d\nmovss   dword ptr [rdi+1E0h], xmm0                                     ; +0x10, 0x1005ec570\nmov     rax, [rdi]                                                     ; +0x18, 0x1005ec578\ncall    qword ptr [rax+80h]                                            ; +0x1b, 0x1005ec57b\nmov     rax, [rbx]                                                     ; +0x21, 0x1005ec581\nmov     rdi, rbx                                                       ; +0x24, 0x1005ec584\ncall    qword ptr [rax+98h]                                            ; +0x27, 0x1005ec587\nmovaps  xmm1, cs:xmmword_1008150B0                                     ; +0x2d, 0x1005ec58d\nmovaps  xmm3, [rbp+var_20]                                             ; +0x34, 0x1005ec594\nxorps   xmm1, xmm3                                                     ; +0x38, 0x1005ec598\nxorps   xmm2, xmm2                                                     ; +0x3b, 0x1005ec59b\ncmpltss xmm0, xmm2                                                     ; +0x3e, 0x1005ec59e\nandps   xmm1, xmm0                                                     ; +0x43, 0x1005ec5a3\nandnps  xmm0, xmm3                                                     ; +0x46, 0x1005ec5a6\norps    xmm0, xmm1                                                     ; +0x49, 0x1005ec5a9\nmov     rax, [rbx]                                                     ; +0x4c, 0x1005ec5ac\nmov     rdi, rbx                                                       ; +0x4f, 0x1005ec5af\ncall    qword ptr [rax+90h]                                            ; +0x52, 0x1005ec5b2\nmovss   xmm0, dword ptr [rbx+1BCh]                                     ; +0x58, 0x1005ec5b8\nmovss   dword ptr [rbp+var_20], xmm0                                   ; +0x60, 0x1005ec5c0\nmov     rdi, rbx                                                       ; +0x65, 0x1005ec5c5\nxor     esi, esi                                                       ; +0x68, 0x1005ec5c8\ncall    GJMGLayer__updateGroundWidth                                   ; +0x6a, 0x1005ec5ca\nmovss   xmm0, dword ptr [rbx+1BCh]                                     ; +0x6f, 0x1005ec5cf\nsubss   xmm0, dword ptr [rbp+var_20]                                   ; +0x77, 0x1005ec5d7\nadd     rsp, 18h                                                       ; +0x7c, 0x1005ec5dc\npop     rbx                                                            ; +0x80, 0x1005ec5e0\npop     rbp                                                            ; +0x81, 0x1005ec5e1\nretn                                                                   ; +0x82, 0x1005ec5e2", "xrefs": ["GJBaseGameLayer::updateCameraBGArt @ 0x10015b5aa"], "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"}