{"type": "func", "start": 6443029488, "end": 6443029573, "name": "cocos2d::CCSprite::updateBlendFunc", "pseudocode": "// \n// cocos2d::CCSprite::updateBlendFunc from 0x18008d3f0 to 0x18008d445 (85 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ebc98\n// > <???> @ 0x1800ec170\n// > <???> @ 0x1800eccf0\n// > <???> @ 0x180103ba8\n// > <???> @ 0x180106ba0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5ec8\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\nvoid __fastcall cocos2d::CCSprite::updateBlendFunc(cocos2d::CCSprite *this)\n{\n  cocos2d::CCCamera *m_pobTexture; // rcx\n  __int64 v3; // rdx\n\n  m_pobTexture = (cocos2d::CCCamera *)this->m_pobTexture;\n  if ( m_pobTexture && cocos2d::CCCamera::isDirty(m_pobTexture) )\n  {\n    this->m_sBlendFunc.src = 1;\n    LOBYTE(v3) = 1;\n  }\n  else\n  {\n    this->m_sBlendFunc.src = 770;\n    v3 = 0;\n  }\n  this->m_sBlendFunc.dst = 771;\n  ((void (__fastcall *)(cocos2d::CCRGBAProtocol *, __int64))this->setOpacityModifyRGB)(\n    &this->cocos2d::CCRGBAProtocol,\n    v3);\n}", "assembly": "; \n; cocos2d::CCSprite::updateBlendFunc from 0x18008d3f0 to 0x18008d445 (85 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ebc98\n; > <???> @ 0x1800ec170\n; > <???> @ 0x1800eccf0\n; > <???> @ 0x180103ba8\n; > <???> @ 0x180106ba0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5ec8\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    rbx                                                            ; +0x0, 0x18008d3f0\nsub     rsp, 20h                                                       ; +0x2, 0x18008d3f2\nmov     rbx, rcx                                                       ; +0x6, 0x18008d3f6\nmov     rcx, [rcx+1A0h]; this                                          ; +0x9, 0x18008d3f9\ntest    rcx, rcx                                                       ; +0x10, 0x18008d400\njz      short loc_18008D41C                                            ; +0x13, 0x18008d403\ncall    ?isDirty@CCCamera@cocos2d@@QEAA_NXZ; cocos2d::CCCamera::isDirty(void) ; +0x15, 0x18008d405\ntest    al, al                                                         ; +0x1a, 0x18008d40a\njz      short loc_18008D41C                                            ; +0x1c, 0x18008d40c\nmov     dword ptr [rbx+194h], 1                                        ; +0x1e, 0x18008d40e\nmov     dl, 1                                                          ; +0x28, 0x18008d418\njmp     short loc_18008D428                                            ; +0x2a, 0x18008d41a\nmov     dword ptr [rbx+194h], 302h                                     ; +0x2c, 0x18008d41c\nxor     edx, edx                                                       ; +0x36, 0x18008d426\nlea     rcx, [rbx+140h]                                                ; +0x38, 0x18008d428\nmov     dword ptr [rbx+198h], 303h                                     ; +0x3f, 0x18008d42f\nmov     rax, [rcx]                                                     ; +0x49, 0x18008d439\nadd     rsp, 20h                                                       ; +0x4c, 0x18008d43c\npop     rbx                                                            ; +0x50, 0x18008d440\njmp     qword ptr [rax+30h]                                            ; +0x51, 0x18008d441", "xrefs": ["<???> @ 0x1800ebc98", "<???> @ 0x1800ec170", "<???> @ 0x1800eccf0", "<???> @ 0x180103ba8", "<???> @ 0x180106ba0", "<???> @ 0x1801438a8", "<???> @ 0x1801b5ec8"], "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"}