; ; GJMGLayer::loadGroundSprites from 0x14027f500 to 0x14027f6bd (445 bytes) ; ; 8 xrefs: ; > GJBaseGameLayer::updateCameraBGArt @ 0x14023e875 ; > GJBaseGameLayer::updateCameraBGArt @ 0x14023e882 ; > GJMGLayer::init @ 0x14027f265 ; > GJMGLayer::init @ 0x14027f423 ; > @ 0x140687a64 ; > @ 0x140687ae0 ; > @ 0x140687af8 ; > @ 0x1406d12c8 ; ; 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 rbp ; +0x0, 0x14027f500 push rsi ; +0x2, 0x14027f502 sub rsp, 38h ; +0x3, 0x14027f503 mov ebp, edx ; +0x7, 0x14027f507 test r8b, r8b ; +0x9, 0x14027f509 jz short loc_14027F517 ; +0xc, 0x14027f50c mov rsi, [rcx+198h] ; +0xe, 0x14027f50e jmp short loc_14027F51E ; +0x15, 0x14027f515 mov rsi, [rcx+1A0h] ; +0x17, 0x14027f517 test rsi, rsi ; +0x1e, 0x14027f51e jz loc_14027F65D ; +0x21, 0x14027f521 mov [rsp+48h+arg_0], rbx ; +0x27, 0x14027f527 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x2c, 0x14027f52c mov rdx, [rsi] ; +0x32, 0x14027f532 mov rcx, rsi ; +0x35, 0x14027f535 mov rbx, rax ; +0x38, 0x14027f538 call qword ptr [rdx+1D0h] ; +0x3b, 0x14027f53b test rax, rax ; +0x41, 0x14027f541 jz short loc_14027F55E ; +0x44, 0x14027f544 mov rdx, [rsi] ; +0x46, 0x14027f546 mov rcx, rsi ; +0x49, 0x14027f549 call qword ptr [rdx+1D0h] ; +0x4c, 0x14027f54c mov rdx, rax ; +0x52, 0x14027f552 mov rcx, rbx ; +0x55, 0x14027f555 call cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x58, 0x14027f558 mov rcx, rbx ; +0x5e, 0x14027f55e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x61, 0x14027f561 cmp eax, ebp ; +0x67, 0x14027f567 jz loc_14027F658 ; +0x69, 0x14027f569 mov rcx, rbx ; +0x6f, 0x14027f56f mov [rsp+48h+arg_8], rdi ; +0x72, 0x14027f572 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x77, 0x14027f577 mov rcx, rbx ; +0x7d, 0x14027f57d cmp eax, ebp ; +0x80, 0x14027f580 jnb loc_14027F664 ; +0x82, 0x14027f582 mov [rsp+48h+arg_10], r14 ; +0x88, 0x14027f588 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8d, 0x14027f58d mov r14d, eax ; +0x93, 0x14027f593 cmp eax, ebp ; +0x96, 0x14027f596 jge loc_14027F64E ; +0x98, 0x14027f598 mov [rsp+48h+var_18], r15 ; +0x9e, 0x14027f59e nop dword ptr [rax+00h] ; +0xa3, 0x14027f5a3 nop word ptr [rax+rax+00000000h] ; +0xa7, 0x14027f5a7 mov rdx, [rsi+158h] ; +0xb0, 0x14027f5b0 lea rcx, [rsi+158h] ; +0xb7, 0x14027f5b7 call qword ptr [rdx+10h] ; +0xbe, 0x14027f5be mov rcx, rax ; +0xc1, 0x14027f5c1 call cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *) ; +0xc4, 0x14027f5c4 mov r8, [rsi] ; +0xca, 0x14027f5ca mov rcx, rsi ; +0xcd, 0x14027f5cd mov rdx, rax ; +0xd0, 0x14027f5d0 mov rdi, rax ; +0xd3, 0x14027f5d3 call qword ptr [r8+1C0h] ; +0xd6, 0x14027f5d6 mov rbx, [rdi] ; +0xdd, 0x14027f5dd lea rcx, [rsp+48h+arg_18] ; +0xe0, 0x14027f5e0 movd xmm1, r14d ; +0xe5, 0x14027f5e5 xorps xmm2, xmm2 ; +0xea, 0x14027f5ea cvtdq2ps xmm1, xmm1 ; +0xed, 0x14027f5ed mulss xmm1, dword ptr [rdi+1B0h] ; +0xf0, 0x14027f5f0 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf8, 0x14027f5f8 mov rdx, rax ; +0xfe, 0x14027f5fe mov rcx, rdi ; +0x101, 0x14027f601 call qword ptr [rbx+0B8h] ; +0x104, 0x14027f604 mov rbx, [rdi] ; +0x10a, 0x14027f60a lea rcx, [rsp+48h+var_28] ; +0x10d, 0x14027f60d xorps xmm2, xmm2 ; +0x112, 0x14027f612 xorps xmm1, xmm1 ; +0x115, 0x14027f615 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x118, 0x14027f618 mov rdx, rax ; +0x11e, 0x14027f61e mov rcx, rdi ; +0x121, 0x14027f621 call qword ptr [rbx+110h] ; +0x124, 0x14027f624 lea rcx, [rdi+140h] ; +0x12a, 0x14027f62a mov rax, [rcx] ; +0x131, 0x14027f631 lea rdx, stru_140529AC8 ; +0x134, 0x14027f634 call qword ptr [rax] ; +0x13b, 0x14027f63b inc r14d ; +0x13d, 0x14027f63d cmp r14d, ebp ; +0x140, 0x14027f640 jl loc_14027F5B0 ; +0x143, 0x14027f643 mov r15, [rsp+48h+var_18] ; +0x149, 0x14027f649 mov r14, [rsp+48h+arg_10] ; +0x14e, 0x14027f64e mov rdi, [rsp+48h+arg_8] ; +0x153, 0x14027f653 mov rbx, [rsp+48h+arg_0] ; +0x158, 0x14027f658 add rsp, 38h ; +0x15d, 0x14027f65d pop rsi ; +0x161, 0x14027f661 pop rbp ; +0x162, 0x14027f662 retn ; +0x163, 0x14027f663 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x164, 0x14027f664 mov edi, eax ; +0x16a, 0x14027f66a sub edi, ebp ; +0x16c, 0x14027f66c test edi, edi ; +0x16e, 0x14027f66e jle short loc_14027F653 ; +0x170, 0x14027f670 mov rcx, rbx ; +0x172, 0x14027f672 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x175, 0x14027f675 test eax, eax ; +0x17b, 0x14027f67b jz short loc_14027F653 ; +0x17d, 0x14027f67d mov rcx, rbx ; +0x17f, 0x14027f67f dec edi ; +0x182, 0x14027f682 call cs:?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x184, 0x14027f684 mov r9, [rsi] ; +0x18a, 0x14027f68a mov r8b, 1 ; +0x18d, 0x14027f68d mov rdx, rax ; +0x190, 0x14027f690 mov rcx, rsi ; +0x193, 0x14027f693 call qword ptr [r9+208h] ; +0x196, 0x14027f696 mov dl, 1 ; +0x19d, 0x14027f69d mov rcx, rbx ; +0x19f, 0x14027f69f call cs:?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x1a2, 0x14027f6a2 test edi, edi ; +0x1a8, 0x14027f6a8 jg short loc_14027F672 ; +0x1aa, 0x14027f6aa mov rdi, [rsp+48h+arg_8] ; +0x1ac, 0x14027f6ac mov rbx, [rsp+48h+arg_0] ; +0x1b1, 0x14027f6b1 add rsp, 38h ; +0x1b6, 0x14027f6b6 pop rsi ; +0x1ba, 0x14027f6ba pop rbp ; +0x1bb, 0x14027f6bb retn ; +0x1bc, 0x14027f6bc