; ; GJDifficultySprite::create from 0x1402a4f90 to 0x1402a506d (221 bytes) ; ; 6 xrefs: ; > LevelCell::loadCustomLevelCell @ 0x1400af78f ; > GJRateLevelLayer::init @ 0x1402f4e1b ; > LevelInfoLayer::setupLevelInfo @ 0x1402fb56e ; > StarInfoPopup::init @ 0x1403c8541 ; > RateStarsLayer::init @ 0x1403ca60a ; > @ 0x1406d2060 ; ; 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_10], rbx ; +0x0, 0x1402a4f90 mov [rsp+arg_18], rsi ; +0x5, 0x1402a4f95 push rdi ; +0xa, 0x1402a4f9a sub rsp, 50h ; +0xb, 0x1402a4f9b mov rax, cs:__security_cookie ; +0xf, 0x1402a4f9f xor rax, rsp ; +0x16, 0x1402a4fa6 mov [rsp+58h+var_10], rax ; +0x19, 0x1402a4fa9 mov edi, edx ; +0x1e, 0x1402a4fae mov ebx, ecx ; +0x20, 0x1402a4fb0 mov ecx, 260h; Size ; +0x22, 0x1402a4fb2 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x27, 0x1402a4fb7 mov rsi, rax ; +0x2c, 0x1402a4fbc mov [rsp+58h+var_38], rax ; +0x2f, 0x1402a4fbf mov rcx, rax ; +0x34, 0x1402a4fc4 call cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x37, 0x1402a4fc7 lea rax, ??_7GJDifficultySprite@@6B@; const GJDifficultySprite::`vftable' ; +0x3d, 0x1402a4fcd mov [rsi], rax ; +0x44, 0x1402a4fd4 lea rax, ??_7GJDifficultySprite@@6B@_0; const GJDifficultySprite::`vftable' ; +0x47, 0x1402a4fd7 mov [rsi+140h], rax ; +0x4e, 0x1402a4fde lea rax, ??_7GJDifficultySprite@@6B@_1; const GJDifficultySprite::`vftable' ; +0x55, 0x1402a4fe5 mov [rsi+158h], rax ; +0x5c, 0x1402a4fec mov dword ptr [rsi+258h], 0 ; +0x63, 0x1402a4ff3 mov r8d, edi ; +0x6d, 0x1402a4ffd mov edx, ebx ; +0x70, 0x1402a5000 lea rcx, [rsp+58h+Src]; Src ; +0x72, 0x1402a5002 call GJDifficultySprite__getDifficultyFrame ; +0x77, 0x1402a5007 nop ; +0x7c, 0x1402a500c cmp qword ptr [rax+18h], 0Fh ; +0x7d, 0x1402a500d jbe short loc_1402A5017 ; +0x82, 0x1402a5012 mov rax, [rax] ; +0x84, 0x1402a5014 mov rdx, rax ; +0x87, 0x1402a5017 mov rcx, rsi ; +0x8a, 0x1402a501a call cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x8d, 0x1402a501d movzx ebx, al ; +0x93, 0x1402a5023 lea rcx, [rsp+58h+Src] ; +0x96, 0x1402a5026 call sub_14003A830 ; +0x9b, 0x1402a502b mov rcx, rsi ; +0xa0, 0x1402a5030 test bl, bl ; +0xa3, 0x1402a5033 jz short loc_1402A5042 ; +0xa5, 0x1402a5035 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa7, 0x1402a5037 mov rax, rsi ; +0xad, 0x1402a503d jmp short loc_1402A5050 ; +0xb0, 0x1402a5040 mov r8, [rsi] ; +0xb2, 0x1402a5042 mov edx, 1 ; +0xb5, 0x1402a5045 call qword ptr [r8+8] ; +0xba, 0x1402a504a xor eax, eax ; +0xbe, 0x1402a504e mov rcx, [rsp+58h+var_10] ; +0xc0, 0x1402a5050 xor rcx, rsp; StackCookie ; +0xc5, 0x1402a5055 call __security_check_cookie ; +0xc8, 0x1402a5058 mov rbx, [rsp+58h+arg_10] ; +0xcd, 0x1402a505d mov rsi, [rsp+58h+arg_18] ; +0xd2, 0x1402a5062 add rsp, 50h ; +0xd7, 0x1402a5067 pop rdi ; +0xdb, 0x1402a506b retn ; +0xdc, 0x1402a506c