{"type": "func", "start": 6443036720, "end": 6443036788, "name": "cocos2d::CCSpriteBatchNode::setTexture", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::setTexture from 0x18008f030 to 0x18008f074 (68 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ec640\n// > <???> @ 0x180104008\n// > <???> @ 0x180105d90\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6108\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::CCSpriteBatchNode::setTexture(\n        cocos2d::CCSpriteBatchNode *this,\n        struct cocos2d::CCTexture2D *a2)\n{\n  cocos2d::CCCamera *v3; // rax\n  bool isDirty; // al\n  int v5; // ecx\n\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCTexture2D *))(**(_QWORD **)&this->m_uID + 96LL))(\n    *(_QWORD *)&this->m_uID,\n    a2);\n  v3 = (cocos2d::CCCamera *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&this->m_uID + 88LL))(*(_QWORD *)&this->m_uID);\n  isDirty = cocos2d::CCCamera::isDirty(v3);\n  v5 = 770;\n  if ( isDirty )\n    v5 = 1;\n  this->m_nTag = v5;\n  this->m_uReference = 771;\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::setTexture from 0x18008f030 to 0x18008f074 (68 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ec640\n; > <???> @ 0x180104008\n; > <???> @ 0x180105d90\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6108\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, 0x18008f030\nsub     rsp, 20h                                                       ; +0x2, 0x18008f032\nmov     rbx, rcx                                                       ; +0x6, 0x18008f036\nmov     rcx, [rcx+8]                                                   ; +0x9, 0x18008f039\nmov     rax, [rcx]                                                     ; +0xd, 0x18008f03d\ncall    qword ptr [rax+60h]                                            ; +0x10, 0x18008f040\nmov     rcx, [rbx+8]                                                   ; +0x13, 0x18008f043\nmov     rax, [rcx]                                                     ; +0x17, 0x18008f047\ncall    qword ptr [rax+58h]                                            ; +0x1a, 0x18008f04a\nmov     rcx, rax; this                                                 ; +0x1d, 0x18008f04d\ncall    ?isDirty@CCCamera@cocos2d@@QEAA_NXZ; cocos2d::CCCamera::isDirty(void) ; +0x20, 0x18008f050\ntest    al, al                                                         ; +0x25, 0x18008f055\nmov     ecx, 302h                                                      ; +0x27, 0x18008f057\nmov     edx, 1                                                         ; +0x2c, 0x18008f05c\ncmovnz  ecx, edx                                                       ; +0x31, 0x18008f061\nmov     [rbx+10h], ecx                                                 ; +0x34, 0x18008f064\nmov     dword ptr [rbx+14h], 303h                                      ; +0x37, 0x18008f067\nadd     rsp, 20h                                                       ; +0x3e, 0x18008f06e\npop     rbx                                                            ; +0x42, 0x18008f072\nretn                                                                   ; +0x43, 0x18008f073", "xrefs": ["<???> @ 0x1800ec640", "<???> @ 0x180104008", "<???> @ 0x180105d90", "<???> @ 0x1801438a8", "<???> @ 0x1801b6108"], "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"}