{"type": "func", "start": 5372396784, "end": 5372396975, "name": "ExplodeItemNode::create", "pseudocode": "// \n// ExplodeItemNode::create from 0x1403844f0 to 0x1403845af (191 bytes)\n// \n// 2 xrefs:\n// > PlayerObject::playDeathEffect @ 0x140383def\n// > <???> @ 0x1406d5e58\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// Hidden C++ exception states: #wind=1\nExplodeItemNode *ExplodeItemNode::create(cocos2d::CCRenderTexture *a1)\n{\n  ExplodeItemNode *v2; // rbx\n  __int64 v3; // rcx\n  cocos2d::CCObject *v4; // rax\n\n  v2 = (ExplodeItemNode *)operator new(0x160u);\n  cocos2d::CCNode::CCNode(v2);\n  v2->__vftable = (ExplodeItemNode_vtbl *)&ExplodeItemNode::`vftable';\n  v2->m_renderTexture = nullptr;\n  *(_QWORD *)&v2->m_unk1 = 0;\n  v2->m_noGravity = 0;\n  if ( cocos2d::CCNode::init(v2) )\n  {\n    v2->m_floorHeight = 90.0;\n    v2->m_renderTexture = a1;\n    cocos2d::CCObject::retain(a1);\n    v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3);\n    v2->m_sprites = (cocos2d::CCArray *)v4;\n    cocos2d::CCObject::retain(v4);\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(ExplodeItemNode *, __int64))v2->~ExplodeItemNode)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ExplodeItemNode::create from 0x1403844f0 to 0x1403845af (191 bytes)\n; \n; 2 xrefs:\n; > PlayerObject::playDeathEffect @ 0x140383def\n; > <???> @ 0x1406d5e58\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, 0x1403844f0\npush    rdi                                                            ; +0x5, 0x1403844f5\nsub     rsp, 20h                                                       ; +0x6, 0x1403844f6\nmov     rdi, rcx                                                       ; +0xa, 0x1403844fa\nmov     ecx, 160h; Size                                                ; +0xd, 0x1403844fd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x140384502\nmov     rbx, rax                                                       ; +0x17, 0x140384507\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x14038450a\nmov     rcx, rax                                                       ; +0x1f, 0x14038450f\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x22, 0x140384512\nlea     rax, ??_7ExplodeItemNode@@6B@; const ExplodeItemNode::`vftable' ; +0x28, 0x140384518\nmov     [rbx], rax                                                     ; +0x2f, 0x14038451f\nmov     qword ptr [rbx+140h], 0                                        ; +0x32, 0x140384522\nmov     qword ptr [rbx+150h], 0                                        ; +0x3d, 0x14038452d\nmov     byte ptr [rbx+158h], 0                                         ; +0x48, 0x140384538\nmov     rcx, rbx                                                       ; +0x4f, 0x14038453f\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x52, 0x140384542\ntest    al, al                                                         ; +0x58, 0x140384548\njz      short loc_140384593                                            ; +0x5a, 0x14038454a\nmov     dword ptr [rbx+154h], 42B40000h                                ; +0x5c, 0x14038454c\nmov     [rbx+140h], rdi                                                ; +0x66, 0x140384556\nmov     rcx, rdi                                                       ; +0x6d, 0x14038455d\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x70, 0x140384560\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x76, 0x140384566\nmov     [rbx+148h], rax                                                ; +0x7c, 0x14038456c\nmov     rcx, rax                                                       ; +0x83, 0x140384573\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x86, 0x140384576\nmov     rcx, rbx                                                       ; +0x8c, 0x14038457c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8f, 0x14038457f\nmov     rax, rbx                                                       ; +0x95, 0x140384585\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x140384588\nadd     rsp, 20h                                                       ; +0x9d, 0x14038458d\npop     rdi                                                            ; +0xa1, 0x140384591\nretn                                                                   ; +0xa2, 0x140384592\nmov     r8, [rbx]                                                      ; +0xa3, 0x140384593\nmov     edx, 1                                                         ; +0xa6, 0x140384596\nmov     rcx, rbx                                                       ; +0xab, 0x14038459b\ncall    qword ptr [r8+8]                                               ; +0xae, 0x14038459e\nxor     eax, eax                                                       ; +0xb2, 0x1403845a2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x1403845a4\nadd     rsp, 20h                                                       ; +0xb9, 0x1403845a9\npop     rdi                                                            ; +0xbd, 0x1403845ad\nretn                                                                   ; +0xbe, 0x1403845ae", "xrefs": ["PlayerObject::playDeathEffect @ 0x140383def", "<???> @ 0x1406d5e58"], "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"}