; ; CCSpriteGrayscale::createWithSpriteFrame from 0x1005f1040 to 0x1005f10ff (191 bytes) ; ; 1 xrefs: ; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x1005f1150 ; ; 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, 0x1005f1040 mov rbp, rsp ; +0x1, 0x1005f1041 push r15 ; +0x4, 0x1005f1044 push r14 ; +0x6, 0x1005f1046 push rbx ; +0x8, 0x1005f1048 push rax ; +0x9, 0x1005f1049 mov r14, rdi ; +0xa, 0x1005f104a mov rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t * ; +0xd, 0x1005f104d mov edi, 298h; __sz ; +0x14, 0x1005f1054 call __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x19, 0x1005f1059 test rax, rax ; +0x1e, 0x1005f105e jz loc_1005F10EF ; +0x21, 0x1005f1061 mov rbx, rax ; +0x27, 0x1005f1067 mov esi, 298h ; +0x2a, 0x1005f106a mov rdi, rax ; +0x2f, 0x1005f106f call ___bzero ; +0x32, 0x1005f1072 mov rdi, rbx ; +0x37, 0x1005f1077 call cocos2d__CCSprite__CCSprite ; +0x3a, 0x1005f107a lea rax, off_10097A760 ; +0x3f, 0x1005f107f mov [rbx], rax ; +0x46, 0x1005f1086 lea rcx, off_10097AC50 ; +0x49, 0x1005f1089 mov [rbx+140h], rcx ; +0x50, 0x1005f1090 lea rcx, off_10097ACD0 ; +0x57, 0x1005f1097 mov [rbx+158h], rcx ; +0x5e, 0x1005f109e test r14, r14 ; +0x65, 0x1005f10a5 jz short loc_1005F10E9 ; +0x68, 0x1005f10a8 mov rdi, r14 ; +0x6a, 0x1005f10aa call cocos2d__CCSpriteFrame__getTexture ; +0x6d, 0x1005f10ad lea rdx, [r14+5Ch] ; +0x72, 0x1005f10b2 mov rcx, [rbx] ; +0x76, 0x1005f10b6 mov rdi, rbx ; +0x79, 0x1005f10b9 mov rsi, rax ; +0x7c, 0x1005f10bc call qword ptr [rcx+3E8h] ; +0x7f, 0x1005f10bf mov r15d, eax ; +0x85, 0x1005f10c5 mov rax, [rbx] ; +0x88, 0x1005f10c8 mov rdi, rbx ; +0x8b, 0x1005f10cb mov rsi, r14 ; +0x8e, 0x1005f10ce call qword ptr [rax+478h] ; +0x91, 0x1005f10d1 test r15b, r15b ; +0x97, 0x1005f10d7 jz short loc_1005F10E6 ; +0x9a, 0x1005f10da mov rdi, rbx ; +0x9c, 0x1005f10dc call cocos2d__CCObject__autorelease ; +0x9f, 0x1005f10df jmp short loc_1005F10F1 ; +0xa4, 0x1005f10e4 mov rax, [rbx] ; +0xa6, 0x1005f10e6 mov rdi, rbx ; +0xa9, 0x1005f10e9 call qword ptr [rax+10h] ; +0xac, 0x1005f10ec xor ebx, ebx ; +0xaf, 0x1005f10ef mov rax, rbx ; +0xb1, 0x1005f10f1 add rsp, 8 ; +0xb4, 0x1005f10f4 pop rbx ; +0xb8, 0x1005f10f8 pop r14 ; +0xb9, 0x1005f10f9 pop r15 ; +0xbb, 0x1005f10fb pop rbp ; +0xbd, 0x1005f10fd retn ; +0xbe, 0x1005f10fe