{"type": "func", "start": 5371493088, "end": 5371493293, "name": "GJSpiderSprite::create", "pseudocode": "// \n// GJSpiderSprite::create from 0x1402a7ae0 to 0x1402a7bad (205 bytes)\n// \n// 3 xrefs:\n// > SimplePlayer::createSpiderSprite @ 0x140279b8a\n// > PlayerObject::createSpider @ 0x1403883fc\n// > <???> @ 0x1406d215c\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\nGJSpiderSprite *GJSpiderSprite::create(int a1)\n{\n  GJSpiderSprite *v2; // rdi\n  __int128 v4; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v5; // [rsp+30h] [rbp-18h]\n  __int64 v6; // [rsp+38h] [rbp-10h]\n\n  v2 = (GJSpiderSprite *)operator new(0x328u);\n  sub_1402A64B0((__int64)v2);\n  v2->GJRobotSprite::CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJSpiderSprite_vtbl *)&GJSpiderSprite::`vftable';\n  v2->GJRobotSprite::CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJSpiderSprite::`vftable';\n  v2->GJRobotSprite::CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJSpiderSprite::`vftable';\n  v2->m_iconType = Spider;\n  v4 = 0;\n  v5 = 6;\n  v6 = 15;\n  strcpy((char *)&v4, \"Spider\");\n  if ( GJRobotSprite::init((__int64 *)v2, a1, (const char *)&v4) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJSpiderSprite *, __int64))v2->~GJSpiderSprite)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJSpiderSprite::create from 0x1402a7ae0 to 0x1402a7bad (205 bytes)\n; \n; 3 xrefs:\n; > SimplePlayer::createSpiderSprite @ 0x140279b8a\n; > PlayerObject::createSpider @ 0x1403883fc\n; > <???> @ 0x1406d215c\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, 0x1402a7ae0\npush    rdi                                                            ; +0x5, 0x1402a7ae5\nsub     rsp, 40h                                                       ; +0x6, 0x1402a7ae6\nmov     ebx, ecx                                                       ; +0xa, 0x1402a7aea\nmov     ecx, 328h; Size                                                ; +0xc, 0x1402a7aec\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x1402a7af1\nmov     rdi, rax                                                       ; +0x16, 0x1402a7af6\nmov     [rsp+48h+arg_8], rax                                           ; +0x19, 0x1402a7af9\nmov     rcx, rax                                                       ; +0x1e, 0x1402a7afe\ncall    sub_1402A64B0                                                  ; +0x21, 0x1402a7b01\nlea     rax, ??_7GJSpiderSprite@@6B@; const GJSpiderSprite::`vftable'  ; +0x26, 0x1402a7b06\nmov     [rdi], rax                                                     ; +0x2d, 0x1402a7b0d\nlea     rax, ??_7GJSpiderSprite@@6B@_0; const GJSpiderSprite::`vftable' ; +0x30, 0x1402a7b10\nmov     [rdi+140h], rax                                                ; +0x37, 0x1402a7b17\nlea     rax, ??_7GJSpiderSprite@@6B@_1; const GJSpiderSprite::`vftable' ; +0x3e, 0x1402a7b1e\nmov     [rdi+158h], rax                                                ; +0x45, 0x1402a7b25\nmov     dword ptr [rdi+310h], 6                                        ; +0x4c, 0x1402a7b2c\nxorps   xmm0, xmm0                                                     ; +0x56, 0x1402a7b36\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x59, 0x1402a7b39\nmov     [rsp+48h+var_18], 6                                            ; +0x5e, 0x1402a7b3e\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x67, 0x1402a7b47\nmov     eax, dword ptr cs:aSpider_0; \"Spider\"                          ; +0x70, 0x1402a7b50\nmov     dword ptr [rsp+48h+var_28], eax                                ; +0x76, 0x1402a7b56\nmovzx   ecx, word ptr cs:aSpider_0+4; \"er\"                             ; +0x7a, 0x1402a7b5a\nmov     word ptr [rsp+48h+var_28+4], cx                                ; +0x81, 0x1402a7b61\nmov     byte ptr [rsp+48h+var_28+6], 0                                 ; +0x86, 0x1402a7b66\nlea     r8, [rsp+48h+var_28]                                           ; +0x8b, 0x1402a7b6b\nmov     edx, ebx                                                       ; +0x90, 0x1402a7b70\nmov     rcx, rdi                                                       ; +0x92, 0x1402a7b72\ncall    GJRobotSprite__init                                            ; +0x95, 0x1402a7b75\nmov     rcx, rdi                                                       ; +0x9a, 0x1402a7b7a\ntest    al, al                                                         ; +0x9d, 0x1402a7b7d\njz      short loc_1402A7B95                                            ; +0x9f, 0x1402a7b7f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa1, 0x1402a7b81\nmov     rax, rdi                                                       ; +0xa7, 0x1402a7b87\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xaa, 0x1402a7b8a\nadd     rsp, 40h                                                       ; +0xaf, 0x1402a7b8f\npop     rdi                                                            ; +0xb3, 0x1402a7b93\nretn                                                                   ; +0xb4, 0x1402a7b94\nmov     rax, [rdi]                                                     ; +0xb5, 0x1402a7b95\nmov     edx, 1                                                         ; +0xb8, 0x1402a7b98\ncall    qword ptr [rax+8]                                              ; +0xbd, 0x1402a7b9d\nxor     eax, eax                                                       ; +0xc0, 0x1402a7ba0\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xc2, 0x1402a7ba2\nadd     rsp, 40h                                                       ; +0xc7, 0x1402a7ba7\npop     rdi                                                            ; +0xcb, 0x1402a7bab\nretn                                                                   ; +0xcc, 0x1402a7bac", "xrefs": ["SimplePlayer::createSpiderSprite @ 0x140279b8a", "PlayerObject::createSpider @ 0x1403883fc", "<???> @ 0x1406d215c"], "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"}