; ; GJGroundLayer::scaleGround from 0x14027ec40 to 0x14027ede4 (420 bytes) ; ; 9 xrefs: ; > GJBaseGameLayer::preUpdateVisibility @ 0x140236598 ; > GJBaseGameLayer::preUpdateVisibility @ 0x1402365b7 ; > GJBaseGameLayer::resetLevelVariables @ 0x14023b6e1 ; > GJBaseGameLayer::resetLevelVariables @ 0x14023b700 ; > GJBaseGameLayer::updateCameraBGArt @ 0x14023ea94 ; > GJBaseGameLayer::updateCameraBGArt @ 0x14023eaab ; > @ 0x1406879ac ; > @ 0x1406879bc ; > @ 0x1406d125c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rdi ; +0x0, 0x14027ec40 sub rsp, 50h ; +0x2, 0x14027ec42 mov rax, [rcx] ; +0x6, 0x14027ec46 mov rdi, rcx ; +0x9, 0x14027ec49 movaps [rsp+58h+var_18], xmm6 ; +0xc, 0x14027ec4c movaps xmm6, xmm1 ; +0x11, 0x14027ec51 movaps [rsp+58h+var_38], xmm8 ; +0x14, 0x14027ec54 call qword ptr [rax+78h] ; +0x1a, 0x14027ec5a mov rax, [rdi] ; +0x1d, 0x14027ec5d mov rcx, rdi ; +0x20, 0x14027ec60 call qword ptr [rax+90h] ; +0x23, 0x14027ec63 xorps xmm2, xmm2 ; +0x29, 0x14027ec69 comiss xmm2, xmm0 ; +0x2c, 0x14027ec6c jbe short loc_14027EC78 ; +0x2f, 0x14027ec6f xorps xmm6, cs:xmmword_1406243F0 ; +0x31, 0x14027ec71 mov rax, [rdi] ; +0x38, 0x14027ec78 movaps xmm1, xmm6 ; +0x3b, 0x14027ec7b mov rcx, rdi ; +0x3e, 0x14027ec7e call qword ptr [rax+88h] ; +0x41, 0x14027ec81 mov rax, [rdi] ; +0x47, 0x14027ec87 mov rcx, rdi ; +0x4a, 0x14027ec8a movss xmm8, dword ptr [rdi+1C4h] ; +0x4d, 0x14027ec8d call qword ptr [rax+1E8h] ; +0x56, 0x14027ec96 test rax, rax ; +0x5c, 0x14027ec9c jz loc_14027EDBB ; +0x5f, 0x14027ec9f mov [rsp+58h+arg_8], rbx ; +0x65, 0x14027eca5 movaps [rsp+58h+var_28], xmm7 ; +0x6a, 0x14027ecaa call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6f, 0x14027ecaf mov rcx, rax ; +0x75, 0x14027ecb5 lea rdx, [rsp+58h+arg_0] ; +0x78, 0x14027ecb8 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x7d, 0x14027ecbd mov rax, [rdi] ; +0x83, 0x14027ecc3 mov rcx, rdi ; +0x86, 0x14027ecc6 call qword ptr [rax+80h] ; +0x89, 0x14027ecc9 movaps xmm7, xmm0 ; +0x8f, 0x14027eccf movss xmm0, [rsp+58h+arg_0] ; +0x92, 0x14027ecd2 divss xmm0, xmm7 ; +0x98, 0x14027ecd8 addss xmm0, cs:flt_14062307C ; +0x9c, 0x14027ecdc movss dword ptr [rdi+1C4h], xmm0 ; +0xa4, 0x14027ece4 divss xmm0, dword ptr [rdi+1A8h]; X ; +0xac, 0x14027ecec call ceilf ; +0xb4, 0x14027ecf4 cmp byte ptr [rdi+1D0h], 0 ; +0xb9, 0x14027ecf9 mov r8b, 1 ; +0xc0, 0x14027ed00 movss xmm6, cs:flt_140622C24 ; +0xc3, 0x14027ed03 mov rcx, rdi ; +0xcb, 0x14027ed0b addss xmm0, xmm6 ; +0xce, 0x14027ed0e cvttss2si eax, xmm0 ; +0xd2, 0x14027ed12 lea ebx, [rax+1] ; +0xd6, 0x14027ed16 cmovz ebx, eax ; +0xd9, 0x14027ed19 mov edx, ebx ; +0xdc, 0x14027ed1c call GJGroundLayer__loadGroundSprites ; +0xde, 0x14027ed1e xor r8d, r8d ; +0xe3, 0x14027ed23 mov edx, ebx ; +0xe6, 0x14027ed26 mov rcx, rdi ; +0xe8, 0x14027ed28 call GJGroundLayer__loadGroundSprites ; +0xeb, 0x14027ed2b cmp dword ptr [rdi+1C0h], 1 ; +0xf0, 0x14027ed30 mov rcx, [rdi+1B0h] ; +0xf7, 0x14027ed37 mov rax, [rcx] ; +0xfe, 0x14027ed3e jle short loc_14027ED5F ; +0x101, 0x14027ed41 movss xmm1, [rsp+58h+arg_0] ; +0x103, 0x14027ed43 addss xmm1, cs:flt_14062307C ; +0x109, 0x14027ed49 divss xmm1, xmm7 ; +0x111, 0x14027ed51 divss xmm1, dword ptr [rcx+1B0h] ; +0x115, 0x14027ed55 jmp short loc_14027ED66 ; +0x11d, 0x14027ed5d divss xmm6, xmm7 ; +0x11f, 0x14027ed5f movaps xmm1, xmm6 ; +0x123, 0x14027ed63 call qword ptr [rax+78h] ; +0x126, 0x14027ed66 mov rcx, [rdi+1B0h] ; +0x129, 0x14027ed69 mov rbx, [rcx] ; +0x130, 0x14027ed70 call qword ptr [rbx+0C8h] ; +0x133, 0x14027ed73 movss xmm1, dword ptr [rdi+1C4h] ; +0x139, 0x14027ed79 lea rcx, [rsp+58h+arg_10] ; +0x141, 0x14027ed81 mulss xmm1, cs:dword_140622B08 ; +0x146, 0x14027ed86 movss xmm2, dword ptr [rax+4] ; +0x14e, 0x14027ed8e subss xmm1, cs:flt_140623010 ; +0x153, 0x14027ed93 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x15b, 0x14027ed9b mov rcx, [rdi+1B0h] ; +0x161, 0x14027eda1 mov rdx, rax ; +0x168, 0x14027eda8 call qword ptr [rbx+0B8h] ; +0x16b, 0x14027edab movaps xmm7, [rsp+58h+var_28] ; +0x171, 0x14027edb1 mov rbx, [rsp+58h+arg_8] ; +0x176, 0x14027edb6 movss xmm6, dword ptr [rdi+1C4h] ; +0x17b, 0x14027edbb mov rcx, rdi ; +0x183, 0x14027edc3 subss xmm6, xmm8 ; +0x186, 0x14027edc6 call GJGroundLayer__updateShadows ; +0x18b, 0x14027edcb movaps xmm8, [rsp+58h+var_38] ; +0x190, 0x14027edd0 movaps xmm0, xmm6 ; +0x196, 0x14027edd6 movaps xmm6, [rsp+58h+var_18] ; +0x199, 0x14027edd9 add rsp, 50h ; +0x19e, 0x14027edde pop rdi ; +0x1a2, 0x14027ede2 retn ; +0x1a3, 0x14027ede3