; ; GameManager::loadBackground from 0x1401828a0 to 0x14018294b (171 bytes) ; ; 9 xrefs: ; > GauntletLayer::init @ 0x1401f6225 ; > GJBaseGameLayer::createBackground @ 0x14020b902 ; > LevelAreaLayer::init @ 0x1402c463e ; > LevelSettingsLayer::selectArtClosed @ 0x140321ed6 ; > LoadingLayer::init @ 0x14032e67d ; > MenuGameLayer::init @ 0x140331512 ; > @ 0x140677a9c ; > @ 0x140677aac ; > @ 0x1406cb46c ; ; 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, 0x1401828a0 push rdi ; +0x5, 0x1401828a5 sub rsp, 20h ; +0x6, 0x1401828a6 mov eax, 3Bh ; ';' ; +0xa, 0x1401828aa mov edi, 1 ; +0xf, 0x1401828af cmp edx, eax ; +0x14, 0x1401828b4 mov rsi, rcx ; +0x16, 0x1401828b6 cmovl eax, edx ; +0x19, 0x1401828b9 mov edx, [rcx+3C0h] ; +0x1c, 0x1401828bc cmp eax, edi ; +0x22, 0x1401828c2 cmovg edi, eax ; +0x24, 0x1401828c4 cmp edi, edx ; +0x27, 0x1401828c7 jz short loc_140182940 ; +0x29, 0x1401828c9 mov [rsp+28h+arg_0], rbx ; +0x2b, 0x1401828cb test edx, edx ; +0x30, 0x1401828d0 jz short loc_1401828FF ; +0x32, 0x1401828d2 lea rcx, aGameBg02d001Pn; "game_bg_%02d_001.png" ; +0x34, 0x1401828d4 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3b, 0x1401828db mov rcx, rax ; +0x41, 0x1401828e1 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x44, 0x1401828e4 mov rbx, rax ; +0x4a, 0x1401828ea call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x4d, 0x1401828ed mov rcx, rax ; +0x53, 0x1401828f3 mov rdx, rbx ; +0x56, 0x1401828f6 call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x59, 0x1401828f9 mov edx, edi ; +0x5f, 0x1401828ff lea rcx, aGameBg02d001Pn; "game_bg_%02d_001.png" ; +0x61, 0x140182901 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x68, 0x140182908 mov rcx, rax ; +0x6e, 0x14018290e call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x71, 0x140182911 mov rbx, rax ; +0x77, 0x140182917 call cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x7a, 0x14018291a call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x80, 0x140182920 xor r8d, r8d ; +0x86, 0x140182926 mov rdx, rbx ; +0x89, 0x140182929 mov rcx, rax ; +0x8c, 0x14018292c call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x8f, 0x14018292f mov rbx, [rsp+28h+arg_0] ; +0x95, 0x140182935 mov [rsi+3C0h], edi ; +0x9a, 0x14018293a mov rsi, [rsp+28h+arg_8] ; +0xa0, 0x140182940 add rsp, 20h ; +0xa5, 0x140182945 pop rdi ; +0xa9, 0x140182949 retn ; +0xaa, 0x14018294a