{"type": "func", "start": 4302038512, "end": 4302038769, "name": "GJGroundLayer::scaleGround", "pseudocode": "// \n// GJGroundLayer::scaleGround from 0x1006be5f0 to 0x1006be6f1 (257 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6ab\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6c6\n// > GJBaseGameLayer::resetLevelVariables @ 0x100138cc5\n// > GJBaseGameLayer::resetLevelVariables @ 0x100138ce0\n// > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad22\n// > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad3b\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:30 +0000\n// \n\nfloat __fastcall GJGroundLayer::scaleGround(float *a1, __m128 a2)\n{\n  __m128 v3; // xmm0\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __m128 v8; // [rsp+0h] [rbp-40h]\n  float v9; // [rsp+0h] [rbp-40h]\n  __int64 v10; // [rsp+1Ch] [rbp-24h] BYREF\n  float v11; // [rsp+24h] [rbp-1Ch]\n  float v12; // [rsp+28h] [rbp-18h]\n  float v13; // [rsp+2Ch] [rbp-14h]\n\n  v8 = a2;\n  (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1);\n  *(double *)a2.i64 = (*(double (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1);\n  v3 = _mm_cmplt_ss(a2, (__m128)0LL);\n  (*(void (__fastcall **)(float *, double))(*(_QWORD *)a1 + 144LL))(\n    a1,\n    COERCE_DOUBLE(_mm_andnot_ps(v3, v8).u64[0] | (v8.i64[0] ^ 0x8000000080000000LL) & v3.i64[0]));\n  v9 = a1[113];\n  GJGroundLayer::updateGroundWidth(a1, 1);\n  v11 = a1[113];\n  v12 = (*(float (__fastcall **)(float *))(*(_QWORD *)a1 + 136LL))(a1);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v10, v4);\n  v13 = *(float *)&v10;\n  v5 = (*(__int64 (__fastcall **)(float *, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);\n  if ( v5 )\n  {\n    v6 = v5;\n    sub_100278250((float *)&v10, (float)(v13 / v12) + 1.0, 0.0);\n    (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL))(v6, &v10);\n  }\n  return v11 - v9;\n}", "assembly": "; \n; GJGroundLayer::scaleGround from 0x1006be5f0 to 0x1006be6f1 (257 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6ab\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6c6\n; > GJBaseGameLayer::resetLevelVariables @ 0x100138cc5\n; > GJBaseGameLayer::resetLevelVariables @ 0x100138ce0\n; > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad22\n; > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad3b\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:30 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006be5f0\nmov     rbp, rsp                                                       ; +0x1, 0x1006be5f1\npush    r14                                                            ; +0x4, 0x1006be5f4\npush    rbx                                                            ; +0x6, 0x1006be5f6\nsub     rsp, 30h                                                       ; +0x7, 0x1006be5f7\nmovaps  [rbp+var_40], xmm0                                             ; +0xb, 0x1006be5fb\nmov     rbx, rdi                                                       ; +0xf, 0x1006be5ff\nmov     rax, [rdi]                                                     ; +0x12, 0x1006be602\ncall    qword ptr [rax+80h]                                            ; +0x15, 0x1006be605\nmov     rax, [rbx]                                                     ; +0x1b, 0x1006be60b\nmov     rdi, rbx                                                       ; +0x1e, 0x1006be60e\ncall    qword ptr [rax+98h]                                            ; +0x21, 0x1006be611\nmovaps  xmm1, cs:xmmword_100A035F0                                     ; +0x27, 0x1006be617\nmovaps  xmm3, [rbp+var_40]                                             ; +0x2e, 0x1006be61e\nxorps   xmm1, xmm3                                                     ; +0x32, 0x1006be622\nxorps   xmm2, xmm2                                                     ; +0x35, 0x1006be625\ncmpltss xmm0, xmm2                                                     ; +0x38, 0x1006be628\nandps   xmm1, xmm0                                                     ; +0x3d, 0x1006be62d\nandnps  xmm0, xmm3                                                     ; +0x40, 0x1006be630\norps    xmm0, xmm1                                                     ; +0x43, 0x1006be633\nmov     rax, [rbx]                                                     ; +0x46, 0x1006be636\nmov     rdi, rbx                                                       ; +0x49, 0x1006be639\ncall    qword ptr [rax+90h]                                            ; +0x4c, 0x1006be63c\nmovss   xmm0, dword ptr [rbx+1C4h]                                     ; +0x52, 0x1006be642\nmovss   dword ptr [rbp+var_40], xmm0                                   ; +0x5a, 0x1006be64a\nmov     rdi, rbx                                                       ; +0x5f, 0x1006be64f\nmov     esi, 1                                                         ; +0x62, 0x1006be652\ncall    GJGroundLayer__updateGroundWidth                               ; +0x67, 0x1006be657\nmovss   xmm0, dword ptr [rbx+1C4h]                                     ; +0x6c, 0x1006be65c\nmovss   [rbp+var_1C], xmm0                                             ; +0x74, 0x1006be664\nmov     rax, [rbx]                                                     ; +0x79, 0x1006be669\nmov     rdi, rbx                                                       ; +0x7c, 0x1006be66c\ncall    qword ptr [rax+88h]                                            ; +0x7f, 0x1006be66f\nmovss   [rbp+var_18], xmm0                                             ; +0x85, 0x1006be675\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8a, 0x1006be67a\nlea     rdi, [rbp+var_24]                                              ; +0x8f, 0x1006be67f\nmov     rsi, rax                                                       ; +0x93, 0x1006be683\ncall    cocos2d__CCDirector__getWinSize                                ; +0x96, 0x1006be686\nmovss   xmm0, dword ptr [rbp+var_24]                                   ; +0x9b, 0x1006be68b\nmovss   [rbp+var_14], xmm0                                             ; +0xa0, 0x1006be690\nmov     rax, [rbx]                                                     ; +0xa5, 0x1006be695\nmov     rdi, rbx                                                       ; +0xa8, 0x1006be698\nmov     esi, 1                                                         ; +0xab, 0x1006be69b\ncall    qword ptr [rax+1E0h]                                           ; +0xb0, 0x1006be6a0\ntest    rax, rax                                                       ; +0xb6, 0x1006be6a6\njz      short loc_1006BE6DE                                            ; +0xb9, 0x1006be6a9\nmov     rbx, rax                                                       ; +0xbb, 0x1006be6ab\nmovss   xmm0, [rbp+var_14]                                             ; +0xbe, 0x1006be6ae\ndivss   xmm0, [rbp+var_18]                                             ; +0xc3, 0x1006be6b3\naddss   xmm0, cs:alpha                                                 ; +0xc8, 0x1006be6b8\nlea     r14, [rbp+var_24]                                              ; +0xd0, 0x1006be6c0\nxorps   xmm1, xmm1                                                     ; +0xd4, 0x1006be6c4\nmov     rdi, r14                                                       ; +0xd7, 0x1006be6c7\ncall    sub_100278250                                                  ; +0xda, 0x1006be6ca\nmov     rax, [rbx]                                                     ; +0xdf, 0x1006be6cf\nmov     rdi, rbx                                                       ; +0xe2, 0x1006be6d2\nmov     rsi, r14                                                       ; +0xe5, 0x1006be6d5\ncall    qword ptr [rax+0B8h]                                           ; +0xe8, 0x1006be6d8\nmovss   xmm0, [rbp+var_1C]                                             ; +0xee, 0x1006be6de\nsubss   xmm0, dword ptr [rbp+var_40]                                   ; +0xf3, 0x1006be6e3\nadd     rsp, 30h                                                       ; +0xf8, 0x1006be6e8\npop     rbx                                                            ; +0xfc, 0x1006be6ec\npop     r14                                                            ; +0xfd, 0x1006be6ed\npop     rbp                                                            ; +0xff, 0x1006be6ef\nretn                                                                   ; +0x100, 0x1006be6f0", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x10012d6ab", "GJBaseGameLayer::preUpdateVisibility @ 0x10012d6c6", "GJBaseGameLayer::resetLevelVariables @ 0x100138cc5", "GJBaseGameLayer::resetLevelVariables @ 0x100138ce0", "GJBaseGameLayer::updateCameraBGArt @ 0x10013ad22", "GJBaseGameLayer::updateCameraBGArt @ 0x10013ad3b"], "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"}