{"type": "func", "start": 5369005776, "end": 5369005875, "name": "CCSpriteWithHue::initWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::initWithSpriteFrame from 0x1400486d0 to 0x140048733 (99 bytes)\n// \n// 7 xrefs:\n// > sub_140048500 @ 0x1400485b3\n// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049143\n// > sub_140048500 @ 0x1400485a1\n// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049131\n// > <???> @ 0x140530fb8\n// > <???> @ 0x1405314f8\n// > <???> @ 0x1406c4ba8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool CCSpriteWithHue::initWithSpriteFrame(CCSpriteWithHue *a1, cocos2d::CCSpriteFrame *a2)\n{\n  CCSpriteWithHue_vtbl *v2; // rdi\n  struct cocos2d::CCTexture2D *Texture; // rax\n  bool v6; // bl\n\n  v2 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n  v6 = v2->initWithTexture_0(a1, Texture, &a2->m_obRect);\n  a1->setDisplayFrame(a1, a2);\n  return v6;\n}", "assembly": "; \n; CCSpriteWithHue::initWithSpriteFrame from 0x1400486d0 to 0x140048733 (99 bytes)\n; \n; 7 xrefs:\n; > sub_140048500 @ 0x1400485b3\n; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049143\n; > sub_140048500 @ 0x1400485a1\n; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049131\n; > <???> @ 0x140530fb8\n; > <???> @ 0x1405314f8\n; > <???> @ 0x1406c4ba8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400486d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400486d5\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1400486da\npush    r14                                                            ; +0xf, 0x1400486df\nsub     rsp, 20h                                                       ; +0x11, 0x1400486e1\nmov     rdi, [rcx]                                                     ; +0x15, 0x1400486e5\nmov     r14, rcx                                                       ; +0x18, 0x1400486e8\nmov     rcx, rdx                                                       ; +0x1b, 0x1400486eb\nmov     rsi, rdx                                                       ; +0x1e, 0x1400486ee\ncall    cs:?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x21, 0x1400486f1\nlea     r8, [rsi+5Ch]                                                  ; +0x27, 0x1400486f7\nmov     rcx, r14                                                       ; +0x2b, 0x1400486fb\nmov     rdx, rax                                                       ; +0x2e, 0x1400486fe\ncall    qword ptr [rdi+370h]                                           ; +0x31, 0x140048701\nmov     r8, [r14]                                                      ; +0x37, 0x140048707\nmov     rdx, rsi                                                       ; +0x3a, 0x14004870a\nmov     rcx, r14                                                       ; +0x3d, 0x14004870d\nmovzx   ebx, al                                                        ; +0x40, 0x140048710\ncall    qword ptr [r8+3E0h]                                            ; +0x43, 0x140048713\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4a, 0x14004871a\nmovzx   eax, bl                                                        ; +0x4f, 0x14004871f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x140048722\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x57, 0x140048727\nadd     rsp, 20h                                                       ; +0x5c, 0x14004872c\npop     r14                                                            ; +0x60, 0x140048730\nretn                                                                   ; +0x62, 0x140048732", "xrefs": ["sub_140048500 @ 0x1400485b3", "CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049143", "sub_140048500 @ 0x1400485a1", "CCSpriteGrayscale::createWithSpriteFrameName @ 0x140049131", "<???> @ 0x140530fb8", "<???> @ 0x1405314f8", "<???> @ 0x1406c4ba8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}