{"type": "func", "start": 5372566576, "end": 5372566781, "name": "GJSpiderSprite::create", "pseudocode": "// \n// GJSpiderSprite::create from 0x1403adc30 to 0x1403adcfd (205 bytes)\n// \n// 3 xrefs:\n// > SimplePlayer::createSpiderSprite @ 0x14038258a\n// > PlayerObject::createSpider @ 0x1404e660f\n// > <???> @ 0x140923b1c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:21 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GJSpiderSprite::create(unsigned int a1)\n{\n  _QWORD *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 = operator new(0x328u);\n  GJRobotSprite::GJRobotSprite((__int64)v2);\n  *v2 = &GJSpiderSprite::`vftable';\n  v2[40] = &GJSpiderSprite::`vftable';\n  v2[43] = &GJSpiderSprite::`vftable';\n  *((_DWORD *)v2 + 196) = 6;\n  v4 = 0;\n  v5 = 6;\n  v6 = 15;\n  strcpy((char *)&v4, \"Spider\");\n  if ( GJRobotSprite::init(v2, a1, &v4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJSpiderSprite::create from 0x1403adc30 to 0x1403adcfd (205 bytes)\n; \n; 3 xrefs:\n; > SimplePlayer::createSpiderSprite @ 0x14038258a\n; > PlayerObject::createSpider @ 0x1404e660f\n; > <???> @ 0x140923b1c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403adc30\npush    rdi                                                            ; +0x5, 0x1403adc35\nsub     rsp, 40h                                                       ; +0x6, 0x1403adc36\nmov     ebx, ecx                                                       ; +0xa, 0x1403adc3a\nmov     ecx, 328h; Size                                                ; +0xc, 0x1403adc3c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x1403adc41\nmov     rdi, rax                                                       ; +0x16, 0x1403adc46\nmov     [rsp+48h+arg_8], rax                                           ; +0x19, 0x1403adc49\nmov     rcx, rax                                                       ; +0x1e, 0x1403adc4e\ncall    GJRobotSprite__GJRobotSprite                                   ; +0x21, 0x1403adc51\nlea     rax, ??_7GJSpiderSprite@@6B@; const GJSpiderSprite::`vftable'  ; +0x26, 0x1403adc56\nmov     [rdi], rax                                                     ; +0x2d, 0x1403adc5d\nlea     rax, ??_7GJSpiderSprite@@6B@_0; const GJSpiderSprite::`vftable' ; +0x30, 0x1403adc60\nmov     [rdi+140h], rax                                                ; +0x37, 0x1403adc67\nlea     rax, ??_7GJSpiderSprite@@6B@_1; const GJSpiderSprite::`vftable' ; +0x3e, 0x1403adc6e\nmov     [rdi+158h], rax                                                ; +0x45, 0x1403adc75\nmov     dword ptr [rdi+310h], 6                                        ; +0x4c, 0x1403adc7c\nxorps   xmm0, xmm0                                                     ; +0x56, 0x1403adc86\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x59, 0x1403adc89\nmov     [rsp+48h+var_18], 6                                            ; +0x5e, 0x1403adc8e\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x67, 0x1403adc97\nmov     eax, dword ptr cs:aSpider_0; \"Spider\"                          ; +0x70, 0x1403adca0\nmov     dword ptr [rsp+48h+var_28], eax                                ; +0x76, 0x1403adca6\nmovzx   ecx, word ptr cs:aSpider_0+4; \"er\"                             ; +0x7a, 0x1403adcaa\nmov     word ptr [rsp+48h+var_28+4], cx                                ; +0x81, 0x1403adcb1\nmov     byte ptr [rsp+48h+var_28+6], 0                                 ; +0x86, 0x1403adcb6\nlea     r8, [rsp+48h+var_28]                                           ; +0x8b, 0x1403adcbb\nmov     edx, ebx                                                       ; +0x90, 0x1403adcc0\nmov     rcx, rdi                                                       ; +0x92, 0x1403adcc2\ncall    GJRobotSprite__init                                            ; +0x95, 0x1403adcc5\nmov     rcx, rdi                                                       ; +0x9a, 0x1403adcca\ntest    al, al                                                         ; +0x9d, 0x1403adccd\njz      short loc_1403ADCE5                                            ; +0x9f, 0x1403adccf\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa1, 0x1403adcd1\nmov     rax, rdi                                                       ; +0xa7, 0x1403adcd7\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xaa, 0x1403adcda\nadd     rsp, 40h                                                       ; +0xaf, 0x1403adcdf\npop     rdi                                                            ; +0xb3, 0x1403adce3\nretn                                                                   ; +0xb4, 0x1403adce4\nmov     rax, [rdi]                                                     ; +0xb5, 0x1403adce5\nmov     edx, 1                                                         ; +0xb8, 0x1403adce8\ncall    qword ptr [rax+8]                                              ; +0xbd, 0x1403adced\nxor     eax, eax                                                       ; +0xc0, 0x1403adcf0\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xc2, 0x1403adcf2\nadd     rsp, 40h                                                       ; +0xc7, 0x1403adcf7\npop     rdi                                                            ; +0xcb, 0x1403adcfb\nretn                                                                   ; +0xcc, 0x1403adcfc", "xrefs": ["SimplePlayer::createSpiderSprite @ 0x14038258a", "PlayerObject::createSpider @ 0x1404e660f", "<???> @ 0x140923b1c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}