{"type": "func", "start": 4297327088, "end": 4297327268, "name": "GJSpiderSprite::create", "pseudocode": "// \n// GJSpiderSprite::create from 0x1002401f0 to 0x1002402a4 (180 bytes)\n// \n// 2 xrefs:\n// > PlayerObject::createSpider @ 0x100218dc0\n// > SimplePlayer::createSpiderSprite @ 0x100303304\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\nGJSpiderSprite *__fastcall GJSpiderSprite::create(int a1)\n{\n  char *v2; // x19\n\n  v2 = (char *)operator new(0x310u);\n  cocos2d::CCSprite::CCSprite((__int64)v2);\n  *((_DWORD *)v2 + 170) = 0;\n  *(_OWORD *)(v2 + 648) = 0u;\n  *(_OWORD *)(v2 + 664) = 0u;\n  *(_OWORD *)(v2 + 616) = 0u;\n  *(_OWORD *)(v2 + 632) = 0u;\n  *(_OWORD *)(v2 + 600) = 0u;\n  *((_OWORD *)v2 + 43) = 0u;\n  *((_OWORD *)v2 + 44) = 0u;\n  v2[728] = 0;\n  *(_DWORD *)(v2 + 729) = -1;\n  *(_WORD *)(v2 + 733) = -1;\n  *((_QWORD *)v2 + 97) = 0;\n  *((_OWORD *)v2 + 46) = 0u;\n  *((_OWORD *)v2 + 47) = 0u;\n  *(_QWORD *)v2 = &off_1007C9BB0;\n  *((_QWORD *)v2 + 40) = off_1007CA0A0;\n  *((_QWORD *)v2 + 43) = off_1007CA120;\n  if ( GJSpiderSprite::init((GJSpiderSprite *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (GJSpiderSprite *)v2;\n}", "assembly": "; \n; GJSpiderSprite::create from 0x1002401f0 to 0x1002402a4 (180 bytes)\n; \n; 2 xrefs:\n; > PlayerObject::createSpider @ 0x100218dc0\n; > SimplePlayer::createSpiderSprite @ 0x100303304\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002401f0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002401f4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002401f8\nMOV             X20, X0                                                ; +0xc, 0x1002401fc\nMOV             W0, #0x310; __sz                                       ; +0x10, 0x100240200\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100240204\nMOV             X19, X0                                                ; +0x18, 0x100240208\nBL              cocos2d__CCSprite__CCSprite                            ; +0x1c, 0x10024020c\nADD             X8, X19, #0x258                                        ; +0x20, 0x100240210\nSTR             WZR, [X19,#0x2A8]                                      ; +0x24, 0x100240214\nMOVI            V0.16B, #0                                             ; +0x28, 0x100240218\nSTP             Q0, Q0, [X8,#0x30]                                     ; +0x2c, 0x10024021c\nSTP             Q0, Q0, [X8,#0x10]                                     ; +0x30, 0x100240220\nSTR             Q0, [X8]                                               ; +0x34, 0x100240224\nSTP             Q0, Q0, [X19,#0x2B0]                                   ; +0x38, 0x100240228\nSTRB            WZR, [X19,#0x2D8]                                      ; +0x3c, 0x10024022c\nADD             X8, X19, #0x2D9                                        ; +0x40, 0x100240230\nMOV             W9, #0xFFFFFFFF                                        ; +0x44, 0x100240234\nSTR             W9, [X8]                                               ; +0x48, 0x100240238\nSTRH            W9, [X8,#4]                                            ; +0x4c, 0x10024023c\nSTR             XZR, [X19,#0x308]                                      ; +0x50, 0x100240240\nADRL            X8, off_1007C9BB0                                      ; +0x54, 0x100240244\nSTP             Q0, Q0, [X19,#0x2E0]                                   ; +0x5c, 0x10024024c\nSTR             X8, [X19]                                              ; +0x60, 0x100240250\nADD             X9, X8, #(off_1007CA0A0 - 0x1007C9BB0)                 ; +0x64, 0x100240254\nSTR             X9, [X19,#0x140]                                       ; +0x68, 0x100240258\nADD             X8, X8, #(off_1007CA120 - 0x1007C9BB0)                 ; +0x6c, 0x10024025c\nSTR             X8, [X19,#0x158]                                       ; +0x70, 0x100240260\nMOV             X0, X19                                                ; +0x74, 0x100240264\nMOV             X1, X20                                                ; +0x78, 0x100240268\nBL              GJSpiderSprite__init                                   ; +0x7c, 0x10024026c\nCBZ             W0, loc_100240280                                      ; +0x80, 0x100240270\nMOV             X0, X19                                                ; +0x84, 0x100240274\nBL              cocos2d__CCObject__autorelease                         ; +0x88, 0x100240278\nB               loc_100240294                                          ; +0x8c, 0x10024027c\nLDR             X8, [X19]                                              ; +0x90, 0x100240280\nLDR             X8, [X8,#0x10]                                         ; +0x94, 0x100240284\nMOV             X0, X19                                                ; +0x98, 0x100240288\nBLR             X8                                                     ; +0x9c, 0x10024028c\nMOV             X19, #0                                                ; +0xa0, 0x100240290\nMOV             X0, X19                                                ; +0xa4, 0x100240294\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa8, 0x100240298\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xac, 0x10024029c\nRET                                                                    ; +0xb0, 0x1002402a0", "xrefs": ["PlayerObject::createSpider @ 0x100218dc0", "SimplePlayer::createSpiderSprite @ 0x100303304"], "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"}