; ; GJDifficultySprite::getDifficultyFrame from 0x1402a5070 to 0x1402a5148 (216 bytes) ; ; 3 xrefs: ; > GJDifficultySprite::create @ 0x1402a5007 ; > GJDifficultySprite::updateDifficultyFrame @ 0x1402a5174 ; > @ 0x1406d206c ; ; 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], rbx ; +0x0, 0x1402a5070 mov [rsp+arg_10], rsi ; +0x5, 0x1402a5075 mov [rsp+arg_0], rcx ; +0xa, 0x1402a507a push rdi ; +0xf, 0x1402a507f sub rsp, 30h ; +0x10, 0x1402a5080 mov esi, r8d ; +0x14, 0x1402a5084 mov edi, edx ; +0x17, 0x1402a5087 mov rbx, rcx ; +0x19, 0x1402a5089 mov [rsp+38h+var_18], 0 ; +0x1c, 0x1402a508c lea rcx, aDifficulty02d; "difficulty_%02d_" ; +0x24, 0x1402a5094 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2b, 0x1402a509b mov rcx, rax ; +0x31, 0x1402a50a1 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x34, 0x1402a50a4 xorps xmm0, xmm0 ; +0x3a, 0x1402a50aa movups xmmword ptr [rbx], xmm0 ; +0x3d, 0x1402a50ad mov qword ptr [rbx+10h], 0 ; +0x40, 0x1402a50b0 mov qword ptr [rbx+18h], 0 ; +0x48, 0x1402a50b8 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x50, 0x1402a50c0 nop word ptr [rax+rax+00000000h] ; +0x57, 0x1402a50c7 inc r8 ; +0x60, 0x1402a50d0 cmp byte ptr [rax+r8], 0 ; +0x63, 0x1402a50d3 jnz short loc_1402A50D0 ; +0x68, 0x1402a50d8 mov rdx, rax ; +0x6a, 0x1402a50da mov rcx, rbx ; +0x6d, 0x1402a50dd call sub_14003A930 ; +0x70, 0x1402a50e0 mov [rsp+38h+var_18], 1 ; +0x75, 0x1402a50e5 cmp esi, 1 ; +0x7d, 0x1402a50ed jnz short loc_1402A5107 ; +0x80, 0x1402a50f0 lea eax, [rdi-6] ; +0x82, 0x1402a50f2 cmp eax, 4 ; +0x85, 0x1402a50f5 ja short loc_1402A5107 ; +0x88, 0x1402a50f8 lea r8d, [rsi+0Bh] ; +0x8a, 0x1402a50fa lea rdx, aBtn2001Png; "btn2_001.png" ; +0x8e, 0x1402a50fe jmp short loc_1402A5114 ; +0x95, 0x1402a5105 mov r8d, 0Bh; Size ; +0x97, 0x1402a5107 lea rdx, aBtn001Png; "btn_001.png" ; +0x9d, 0x1402a510d mov rcx, rbx; Src ; +0xa4, 0x1402a5114 call sub_140041270 ; +0xa7, 0x1402a5117 cmp edi, 0FFFFFFFFh ; +0xac, 0x1402a511c jnz short loc_1402A5134 ; +0xaf, 0x1402a511f lea r8d, [rdi+1Ch]; Size ; +0xb1, 0x1402a5121 lea rdx, aDifficultyAuto; "difficulty_auto_btn_001.png" ; +0xb5, 0x1402a5125 mov rcx, rbx; void * ; +0xbc, 0x1402a512c call sub_14003CCE0 ; +0xbf, 0x1402a512f mov rax, rbx ; +0xc4, 0x1402a5134 mov rbx, [rsp+38h+arg_8] ; +0xc7, 0x1402a5137 mov rsi, [rsp+38h+arg_10] ; +0xcc, 0x1402a513c add rsp, 30h ; +0xd1, 0x1402a5141 pop rdi ; +0xd5, 0x1402a5145 retn ; +0xd6, 0x1402a5146 db 0CCh ; +0xd7, 0x1402a5147