{"type": "func", "start": 4301193776, "end": 4301193851, "name": "CCSpriteWithHue::initWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::initWithSpriteFrame from 0x1005f0230 to 0x1005f027b (75 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x10097a5a0\n// > <???> @ 0x10097ab58\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 __fastcall CCSpriteWithHue::initWithSpriteFrame(CCSpriteWithHue *a1, cocos2d::CCSpriteFrame *a2)\n{\n  cocos2d::CCTexture2D *Texture; // rax\n  char v4; // r15\n\n  Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n  v4 = ((__int64 (__fastcall *)(CCSpriteWithHue *, cocos2d::CCTexture2D *, cocos2d::CCRect *))a1->initWithTexture_0)(\n         a1,\n         Texture,\n         &a2->m_obRect);\n  ((void (__fastcall *)(CCSpriteWithHue *, cocos2d::CCSpriteFrame *))a1->setDisplayFrame)(a1, a2);\n  return v4;\n}", "assembly": "; \n; CCSpriteWithHue::initWithSpriteFrame from 0x1005f0230 to 0x1005f027b (75 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x10097a5a0\n; > <???> @ 0x10097ab58\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\npush    rbp                                                            ; +0x0, 0x1005f0230\nmov     rbp, rsp                                                       ; +0x1, 0x1005f0231\npush    r15                                                            ; +0x4, 0x1005f0234\npush    r14                                                            ; +0x6, 0x1005f0236\npush    rbx                                                            ; +0x8, 0x1005f0238\npush    rax                                                            ; +0x9, 0x1005f0239\nmov     rbx, rsi                                                       ; +0xa, 0x1005f023a\nmov     r14, rdi                                                       ; +0xd, 0x1005f023d\nmov     rdi, rsi                                                       ; +0x10, 0x1005f0240\ncall    cocos2d__CCSpriteFrame__getTexture                             ; +0x13, 0x1005f0243\nlea     rdx, [rbx+5Ch]                                                 ; +0x18, 0x1005f0248\nmov     rcx, [r14]                                                     ; +0x1c, 0x1005f024c\nmov     rdi, r14                                                       ; +0x1f, 0x1005f024f\nmov     rsi, rax                                                       ; +0x22, 0x1005f0252\ncall    qword ptr [rcx+3E8h]                                           ; +0x25, 0x1005f0255\nmov     r15d, eax                                                      ; +0x2b, 0x1005f025b\nmov     rax, [r14]                                                     ; +0x2e, 0x1005f025e\nmov     rdi, r14                                                       ; +0x31, 0x1005f0261\nmov     rsi, rbx                                                       ; +0x34, 0x1005f0264\ncall    qword ptr [rax+478h]                                           ; +0x37, 0x1005f0267\nmov     eax, r15d                                                      ; +0x3d, 0x1005f026d\nadd     rsp, 8                                                         ; +0x40, 0x1005f0270\npop     rbx                                                            ; +0x44, 0x1005f0274\npop     r14                                                            ; +0x45, 0x1005f0275\npop     r15                                                            ; +0x47, 0x1005f0277\npop     rbp                                                            ; +0x49, 0x1005f0279\nretn                                                                   ; +0x4a, 0x1005f027a", "xrefs": ["<???> @ 0x10097a5a0", "<???> @ 0x10097ab58"], "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"}