{"type": "func", "start": 6442829104, "end": 6442829168, "name": "cocos2d::CCClippingNode::setStencil", "pseudocode": "// \n// cocos2d::CCClippingNode::setStencil from 0x18005c530 to 0x18005c570 (64 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f9fd0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3084\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\n// Alternative name is '?setSprite@CCRenderTexture@cocos2d@@UEAAXPEAVCCSprite@2@@Z'\nvoid __fastcall cocos2d::CCClippingNode::setStencil(cocos2d::CCClippingNode *this, struct cocos2d::CCNode *a2)\n{\n  cocos2d::CCObject *v4; // rcx\n\n  v4 = *((cocos2d::CCObject **)this + 40);\n  if ( v4 )\n    cocos2d::CCObject::release(v4);\n  *((_QWORD *)this + 40) = a2;\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n}", "assembly": "; \n; cocos2d::CCClippingNode::setStencil from 0x18005c530 to 0x18005c570 (64 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f9fd0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3084\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, 0x18005c530\npush    rdi                                                            ; +0x5, 0x18005c535\nsub     rsp, 20h                                                       ; +0x6, 0x18005c536\nmov     rdi, rcx                                                       ; +0xa, 0x18005c53a\nmov     rbx, rdx                                                       ; +0xd, 0x18005c53d\nmov     rcx, [rcx+140h]; this                                          ; +0x10, 0x18005c540\ntest    rcx, rcx                                                       ; +0x17, 0x18005c547\njz      short loc_18005C551                                            ; +0x1a, 0x18005c54a\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1c, 0x18005c54c\nmov     [rdi+140h], rbx                                                ; +0x21, 0x18005c551\ntest    rbx, rbx                                                       ; +0x28, 0x18005c558\njz      short loc_18005C565                                            ; +0x2b, 0x18005c55b\nmov     rcx, rbx; this                                                 ; +0x2d, 0x18005c55d\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x30, 0x18005c560\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x35, 0x18005c565\nadd     rsp, 20h                                                       ; +0x3a, 0x18005c56a\npop     rdi                                                            ; +0x3e, 0x18005c56e\nretn                                                                   ; +0x3f, 0x18005c56f", "xrefs": ["<???> @ 0x1800f9fd0", "<???> @ 0x1801438a8", "<???> @ 0x1801b3084"], "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"}