; ; GameManager::loadGround from 0x140182c50 to 0x140182d6a (282 bytes) ; ; 5 xrefs: ; > GJGroundLayer::init @ 0x14027e2d3 ; > LevelSettingsLayer::selectArtClosed @ 0x140321ff8 ; > @ 0x140677b2c ; > @ 0x140677b3c ; > @ 0x1406cb514 ; ; 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 ; mov [rsp+arg_8], rsi ; +0x0, 0x140182c50 push rdi ; +0x5, 0x140182c55 sub rsp, 20h ; +0x6, 0x140182c56 mov eax, 16h ; +0xa, 0x140182c5a mov edi, 1 ; +0xf, 0x140182c5f cmp edx, eax ; +0x14, 0x140182c64 mov rsi, rcx ; +0x16, 0x140182c66 cmovl eax, edx ; +0x19, 0x140182c69 mov edx, [rcx+3C4h] ; +0x1c, 0x140182c6c cmp eax, edi ; +0x22, 0x140182c72 cmovg edi, eax ; +0x24, 0x140182c74 cmp edi, edx ; +0x27, 0x140182c77 jz loc_140182D5F ; +0x29, 0x140182c79 mov [rsp+28h+arg_0], rbx ; +0x2f, 0x140182c7f test edx, edx ; +0x34, 0x140182c84 jz short loc_140182CEC ; +0x36, 0x140182c86 lea rcx, aGroundsquare02; "groundSquare_%02d_001.png" ; +0x38, 0x140182c88 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3f, 0x140182c8f mov rcx, rax ; +0x45, 0x140182c95 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x48, 0x140182c98 mov rbx, rax ; +0x4e, 0x140182c9e call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x51, 0x140182ca1 mov rcx, rax ; +0x57, 0x140182ca7 mov rdx, rbx ; +0x5a, 0x140182caa call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x5d, 0x140182cad mov edx, [rsi+3C4h] ; +0x63, 0x140182cb3 lea eax, [rdx-8] ; +0x69, 0x140182cb9 cmp eax, 3 ; +0x6c, 0x140182cbc ja short loc_140182CEC ; +0x6f, 0x140182cbf lea rcx, aGroundsquare02_0; "groundSquare_%02d_2_001.png" ; +0x71, 0x140182cc1 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x78, 0x140182cc8 mov rcx, rax ; +0x7e, 0x140182cce call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x81, 0x140182cd1 mov rbx, rax ; +0x87, 0x140182cd7 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x8a, 0x140182cda mov rcx, rax ; +0x90, 0x140182ce0 mov rdx, rbx ; +0x93, 0x140182ce3 call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x96, 0x140182ce6 mov edx, edi ; +0x9c, 0x140182cec lea rcx, aGroundsquare02; "groundSquare_%02d_001.png" ; +0x9e, 0x140182cee call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xa5, 0x140182cf5 mov rcx, rax ; +0xab, 0x140182cfb call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xae, 0x140182cfe mov rbx, rax ; +0xb4, 0x140182d04 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xb7, 0x140182d07 xor r8d, r8d ; +0xbd, 0x140182d0d mov rdx, rbx ; +0xc0, 0x140182d10 mov rcx, rax ; +0xc3, 0x140182d13 call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0xc6, 0x140182d16 lea eax, [rdi-8] ; +0xcc, 0x140182d1c cmp eax, 3 ; +0xcf, 0x140182d1f ja short loc_140182D54 ; +0xd2, 0x140182d22 mov edx, edi ; +0xd4, 0x140182d24 lea rcx, aGroundsquare02_0; "groundSquare_%02d_2_001.png" ; +0xd6, 0x140182d26 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xdd, 0x140182d2d mov rcx, rax ; +0xe3, 0x140182d33 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xe6, 0x140182d36 mov rbx, rax ; +0xec, 0x140182d3c call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xef, 0x140182d3f xor r8d, r8d ; +0xf5, 0x140182d45 mov rdx, rbx ; +0xf8, 0x140182d48 mov rcx, rax ; +0xfb, 0x140182d4b call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0xfe, 0x140182d4e mov rbx, [rsp+28h+arg_0] ; +0x104, 0x140182d54 mov [rsi+3C4h], edi ; +0x109, 0x140182d59 mov rsi, [rsp+28h+arg_8] ; +0x10f, 0x140182d5f add rsp, 20h ; +0x114, 0x140182d64 pop rdi ; +0x118, 0x140182d68 retn ; +0x119, 0x140182d69