; ; GJGroundLayer::loadGroundSprites from 0x14027e790 to 0x14027ea45 (693 bytes) ; ; 9 xrefs: ; > GJGroundLayer::init @ 0x14027e5be ; > GJGroundLayer::init @ 0x14027e6f8 ; > GJGroundLayer::scaleGround @ 0x14027ed1e ; > GJGroundLayer::scaleGround @ 0x14027ed2b ; > @ 0x1406878c0 ; > @ 0x140687940 ; > @ 0x14068795c ; > @ 0x140687970 ; > @ 0x1406d11cc ; ; 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 rsi ; +0x0, 0x14027e790 push rdi ; +0x2, 0x14027e792 push r14 ; +0x3, 0x14027e793 push r15 ; +0x5, 0x14027e795 sub rsp, 58h ; +0x7, 0x14027e797 movzx edi, r8b ; +0xb, 0x14027e79b mov r14d, edx ; +0xf, 0x14027e79f mov r15, rcx ; +0x12, 0x14027e7a2 test r8b, r8b ; +0x15, 0x14027e7a5 jz short loc_14027E7B3 ; +0x18, 0x14027e7a8 mov rsi, [rcx+198h] ; +0x1a, 0x14027e7aa jmp short loc_14027E7BA ; +0x21, 0x14027e7b1 mov rsi, [rcx+1A0h] ; +0x23, 0x14027e7b3 test rsi, rsi ; +0x2a, 0x14027e7ba jz loc_14027E932 ; +0x2d, 0x14027e7bd mov [rsp+78h+arg_0], rbx ; +0x33, 0x14027e7c3 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x3b, 0x14027e7cb mov rdx, [rsi] ; +0x41, 0x14027e7d1 mov rcx, rsi ; +0x44, 0x14027e7d4 mov rbx, rax ; +0x47, 0x14027e7d7 call qword ptr [rdx+1D0h] ; +0x4a, 0x14027e7da test rax, rax ; +0x50, 0x14027e7e0 jz short loc_14027E7FD ; +0x53, 0x14027e7e3 mov rdx, [rsi] ; +0x55, 0x14027e7e5 mov rcx, rsi ; +0x58, 0x14027e7e8 call qword ptr [rdx+1D0h] ; +0x5b, 0x14027e7eb mov rdx, rax ; +0x61, 0x14027e7f1 mov rcx, rbx ; +0x64, 0x14027e7f4 call cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x67, 0x14027e7f7 mov rcx, rbx ; +0x6d, 0x14027e7fd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x70, 0x14027e800 cmp eax, r14d ; +0x76, 0x14027e806 jz loc_14027E92A ; +0x79, 0x14027e809 mov rcx, rbx ; +0x7f, 0x14027e80f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x82, 0x14027e812 mov rcx, rbx ; +0x88, 0x14027e818 cmp eax, r14d ; +0x8b, 0x14027e81b jnb loc_14027E9EF ; +0x8e, 0x14027e81e mov [rsp+78h+arg_8], rbp ; +0x94, 0x14027e824 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x14027e82c mov ebp, eax ; +0xa2, 0x14027e832 cmp eax, r14d ; +0xa4, 0x14027e834 jge loc_14027E922 ; +0xa7, 0x14027e837 movaps [rsp+78h+var_38], xmm6 ; +0xad, 0x14027e83d test dil, dil ; +0xb2, 0x14027e842 jz loc_14027E93D ; +0xb5, 0x14027e845 movss xmm6, dword ptr cs:xmmword_1406243F0 ; +0xbb, 0x14027e84b mov [rsp+78h+var_28], r12 ; +0xc3, 0x14027e853 movaps [rsp+78h+var_48], xmm7 ; +0xc8, 0x14027e858 movss xmm7, cs:flt_140622C24 ; +0xcd, 0x14027e85d nop word ptr [rax+rax+00000000h] ; +0xd5, 0x14027e865 mov rax, [rsi+158h] ; +0xe0, 0x14027e870 lea rcx, [rsi+158h] ; +0xe7, 0x14027e877 call qword ptr [rax+10h] ; +0xee, 0x14027e87e mov rcx, rax ; +0xf1, 0x14027e881 call cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *) ; +0xf4, 0x14027e884 mov r8, [rsi] ; +0xfa, 0x14027e88a mov rcx, rsi ; +0xfd, 0x14027e88d mov rdx, rax ; +0x100, 0x14027e890 mov rdi, rax ; +0x103, 0x14027e893 call qword ptr [r8+1C0h] ; +0x106, 0x14027e896 movss xmm2, dword ptr [r15+1BCh] ; +0x10d, 0x14027e89d lea rcx, [rsp+78h+arg_18] ; +0x116, 0x14027e8a6 mov rbx, [rdi] ; +0x11e, 0x14027e8ae xorps xmm2, xmm6 ; +0x121, 0x14027e8b1 movd xmm1, ebp ; +0x124, 0x14027e8b4 cvtdq2ps xmm1, xmm1 ; +0x128, 0x14027e8b8 mulss xmm1, dword ptr [rdi+1B0h] ; +0x12b, 0x14027e8bb call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x133, 0x14027e8c3 mov rdx, rax ; +0x139, 0x14027e8c9 mov rcx, rdi ; +0x13c, 0x14027e8cc call qword ptr [rbx+0B8h] ; +0x13f, 0x14027e8cf mov rbx, [rdi] ; +0x145, 0x14027e8d5 lea rcx, [rsp+78h+var_58] ; +0x148, 0x14027e8d8 movaps xmm2, xmm7 ; +0x14d, 0x14027e8dd xorps xmm1, xmm1 ; +0x150, 0x14027e8e0 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x153, 0x14027e8e3 mov rdx, rax ; +0x159, 0x14027e8e9 mov rcx, rdi ; +0x15c, 0x14027e8ec call qword ptr [rbx+110h] ; +0x15f, 0x14027e8ef lea rcx, [rdi+140h] ; +0x165, 0x14027e8f5 mov rax, [rcx] ; +0x16c, 0x14027e8fc lea rdx, stru_140529AC8 ; +0x16f, 0x14027e8ff call qword ptr [rax] ; +0x176, 0x14027e906 inc ebp ; +0x178, 0x14027e908 cmp ebp, r14d ; +0x17a, 0x14027e90a jl loc_14027E870 ; +0x17d, 0x14027e90d movaps xmm7, [rsp+78h+var_48] ; +0x183, 0x14027e913 mov r12, [rsp+78h+var_28] ; +0x188, 0x14027e918 movaps xmm6, [rsp+78h+var_38] ; +0x18d, 0x14027e91d mov rbp, [rsp+78h+arg_8] ; +0x192, 0x14027e922 mov rbx, [rsp+78h+arg_0] ; +0x19a, 0x14027e92a add rsp, 58h ; +0x1a2, 0x14027e932 pop r15 ; +0x1a6, 0x14027e936 pop r14 ; +0x1a8, 0x14027e938 pop rdi ; +0x1aa, 0x14027e93a pop rsi ; +0x1ab, 0x14027e93b retn ; +0x1ac, 0x14027e93c movss xmm6, cs:flt_140622C24 ; +0x1ad, 0x14027e93d nop word ptr [rax+rax+00000000h] ; +0x1b5, 0x14027e945 mov rax, [rsi+158h] ; +0x1c0, 0x14027e950 lea rcx, [rsi+158h] ; +0x1c7, 0x14027e957 call qword ptr [rax+10h] ; +0x1ce, 0x14027e95e mov rcx, rax ; +0x1d1, 0x14027e961 call cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *) ; +0x1d4, 0x14027e964 mov r8, [rsi] ; +0x1da, 0x14027e96a mov rcx, rsi ; +0x1dd, 0x14027e96d mov rdx, rax ; +0x1e0, 0x14027e970 mov rdi, rax ; +0x1e3, 0x14027e973 call qword ptr [r8+1C0h] ; +0x1e6, 0x14027e976 mov rbx, [rdi] ; +0x1ed, 0x14027e97d lea rcx, [rsp+78h+arg_18] ; +0x1f0, 0x14027e980 movd xmm1, ebp ; +0x1f8, 0x14027e988 xorps xmm2, xmm2 ; +0x1fc, 0x14027e98c cvtdq2ps xmm1, xmm1 ; +0x1ff, 0x14027e98f mulss xmm1, dword ptr [rdi+1B0h] ; +0x202, 0x14027e992 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x20a, 0x14027e99a mov rdx, rax ; +0x210, 0x14027e9a0 mov rcx, rdi ; +0x213, 0x14027e9a3 call qword ptr [rbx+0B8h] ; +0x216, 0x14027e9a6 mov rbx, [rdi] ; +0x21c, 0x14027e9ac lea rcx, [rsp+78h+var_58] ; +0x21f, 0x14027e9af movaps xmm2, xmm6 ; +0x224, 0x14027e9b4 xorps xmm1, xmm1 ; +0x227, 0x14027e9b7 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x22a, 0x14027e9ba mov rdx, rax ; +0x230, 0x14027e9c0 mov rcx, rdi ; +0x233, 0x14027e9c3 call qword ptr [rbx+110h] ; +0x236, 0x14027e9c6 lea rcx, [rdi+140h] ; +0x23c, 0x14027e9cc mov rax, [rcx] ; +0x243, 0x14027e9d3 lea rdx, stru_140529AC8 ; +0x246, 0x14027e9d6 call qword ptr [rax] ; +0x24d, 0x14027e9dd inc ebp ; +0x24f, 0x14027e9df cmp ebp, r14d ; +0x251, 0x14027e9e1 jl loc_14027E950 ; +0x254, 0x14027e9e4 jmp loc_14027E91D ; +0x25a, 0x14027e9ea call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25f, 0x14027e9ef mov edi, eax ; +0x265, 0x14027e9f5 sub edi, r14d ; +0x267, 0x14027e9f7 test edi, edi ; +0x26a, 0x14027e9fa jle loc_14027E92A ; +0x26c, 0x14027e9fc mov rcx, rbx ; +0x272, 0x14027ea02 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x275, 0x14027ea05 test eax, eax ; +0x27b, 0x14027ea0b jz loc_14027E92A ; +0x27d, 0x14027ea0d mov rcx, rbx ; +0x283, 0x14027ea13 dec edi ; +0x286, 0x14027ea16 call cs:?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x288, 0x14027ea18 mov r9, [rsi] ; +0x28e, 0x14027ea1e mov r8b, 1 ; +0x291, 0x14027ea21 mov rdx, rax ; +0x294, 0x14027ea24 mov rcx, rsi ; +0x297, 0x14027ea27 call qword ptr [r9+208h] ; +0x29a, 0x14027ea2a mov dl, 1 ; +0x2a1, 0x14027ea31 mov rcx, rbx ; +0x2a3, 0x14027ea33 call cs:?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x2a6, 0x14027ea36 test edi, edi ; +0x2ac, 0x14027ea3c jg short loc_14027EA02 ; +0x2ae, 0x14027ea3e jmp loc_14027E92A ; +0x2b0, 0x14027ea40