; ; CCSpriteGrayscale::createWithSpriteFrame from 0x1006c4180 to 0x1006c423f (191 bytes) ; ; 1 xrefs: ; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x1006c4290 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:35:33 +0000 ; push rbp ; +0x0, 0x1006c4180 mov rbp, rsp ; +0x1, 0x1006c4181 push r15 ; +0x4, 0x1006c4184 push r14 ; +0x6, 0x1006c4186 push rbx ; +0x8, 0x1006c4188 push rax ; +0x9, 0x1006c4189 mov r14, rdi ; +0xa, 0x1006c418a mov rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t * ; +0xd, 0x1006c418d mov edi, 298h; __sz ; +0x14, 0x1006c4194 call __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x19, 0x1006c4199 test rax, rax ; +0x1e, 0x1006c419e jz loc_1006C422F ; +0x21, 0x1006c41a1 mov rbx, rax ; +0x27, 0x1006c41a7 mov esi, 298h ; +0x2a, 0x1006c41aa mov rdi, rax ; +0x2f, 0x1006c41af call ___bzero ; +0x32, 0x1006c41b2 mov rdi, rbx ; +0x37, 0x1006c41b7 call cocos2d__CCSprite__CCSprite ; +0x3a, 0x1006c41ba lea rax, off_100B8DBB8 ; +0x3f, 0x1006c41bf mov [rbx], rax ; +0x46, 0x1006c41c6 lea rcx, off_100B8E0B8 ; +0x49, 0x1006c41c9 mov [rbx+140h], rcx ; +0x50, 0x1006c41d0 lea rcx, off_100B8E138 ; +0x57, 0x1006c41d7 mov [rbx+158h], rcx ; +0x5e, 0x1006c41de test r14, r14 ; +0x65, 0x1006c41e5 jz short loc_1006C4229 ; +0x68, 0x1006c41e8 mov rdi, r14 ; +0x6a, 0x1006c41ea call cocos2d__CCSpriteFrame__getTexture ; +0x6d, 0x1006c41ed lea rdx, [r14+5Ch] ; +0x72, 0x1006c41f2 mov rcx, [rbx] ; +0x76, 0x1006c41f6 mov rdi, rbx ; +0x79, 0x1006c41f9 mov rsi, rax ; +0x7c, 0x1006c41fc call qword ptr [rcx+3F8h] ; +0x7f, 0x1006c41ff mov r15d, eax ; +0x85, 0x1006c4205 mov rax, [rbx] ; +0x88, 0x1006c4208 mov rdi, rbx ; +0x8b, 0x1006c420b mov rsi, r14 ; +0x8e, 0x1006c420e call qword ptr [rax+488h] ; +0x91, 0x1006c4211 test r15b, r15b ; +0x97, 0x1006c4217 jz short loc_1006C4226 ; +0x9a, 0x1006c421a mov rdi, rbx ; +0x9c, 0x1006c421c call cocos2d__CCObject__autorelease ; +0x9f, 0x1006c421f jmp short loc_1006C4231 ; +0xa4, 0x1006c4224 mov rax, [rbx] ; +0xa6, 0x1006c4226 mov rdi, rbx ; +0xa9, 0x1006c4229 call qword ptr [rax+10h] ; +0xac, 0x1006c422c xor ebx, ebx ; +0xaf, 0x1006c422f mov rax, rbx ; +0xb1, 0x1006c4231 add rsp, 8 ; +0xb4, 0x1006c4234 pop rbx ; +0xb8, 0x1006c4238 pop r14 ; +0xb9, 0x1006c4239 pop r15 ; +0xbb, 0x1006c423b pop rbp ; +0xbd, 0x1006c423d retn ; +0xbe, 0x1006c423e