{"type": "func", "start": 5371487888, "end": 5371488062, "name": "GJRobotSprite::create", "pseudocode": "// \n// GJRobotSprite::create from 0x1402a6690 to 0x1402a673e (174 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::init @ 0x140273a0a\n// > SimplePlayer::updatePlayerFrame @ 0x14027a342\n// > PlayerObject::createRobot @ 0x14038803c\n// > <???> @ 0x1406d2108\n// > <???> @ 0x1406d2114\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\nGJRobotSprite *GJRobotSprite::create(int a1)\n{\n  __int64 v2; // rax\n  GJRobotSprite *v3; // rbx\n  __int128 v5; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+30h] [rbp-18h]\n  __int64 v7; // [rsp+38h] [rbp-10h]\n  void *v8; // [rsp+58h] [rbp+10h]\n\n  v8 = operator new(0x328u);\n  v2 = sub_1402A64B0((__int64)v8);\n  v3 = (GJRobotSprite *)v2;\n  if ( v2 )\n  {\n    *(_DWORD *)(v2 + 784) = 5;\n    v5 = 0;\n    v6 = 5;\n    v7 = 15;\n    LODWORD(v5) = *(_DWORD *)\"Robot\";\n    WORD2(v5) = (unsigned __int8)aRobot_0[4];\n    if ( (unsigned __int8)GJRobotSprite::init(v2, (unsigned int)a1, &v5) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    ((void (__fastcall *)(GJRobotSprite *, __int64))v3->~GJRobotSprite)(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; GJRobotSprite::create from 0x1402a6690 to 0x1402a673e (174 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::init @ 0x140273a0a\n; > SimplePlayer::updatePlayerFrame @ 0x14027a342\n; > PlayerObject::createRobot @ 0x14038803c\n; > <???> @ 0x1406d2108\n; > <???> @ 0x1406d2114\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, 0x1402a6690\npush    rdi                                                            ; +0x5, 0x1402a6695\nsub     rsp, 40h                                                       ; +0x6, 0x1402a6696\nmov     edi, ecx                                                       ; +0xa, 0x1402a669a\nmov     ecx, 328h; Size                                                ; +0xc, 0x1402a669c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x1402a66a1\nmov     [rsp+48h+arg_8], rax                                           ; +0x16, 0x1402a66a6\nmov     rcx, rax                                                       ; +0x1b, 0x1402a66ab\ncall    sub_1402A64B0                                                  ; +0x1e, 0x1402a66ae\nmov     rbx, rax                                                       ; +0x23, 0x1402a66b3\ntest    rax, rax                                                       ; +0x26, 0x1402a66b6\njz      short loc_1402A6730                                            ; +0x29, 0x1402a66b9\nmov     dword ptr [rax+310h], 5                                        ; +0x2b, 0x1402a66bb\nxorps   xmm0, xmm0                                                     ; +0x35, 0x1402a66c5\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x38, 0x1402a66c8\nmov     [rsp+48h+var_18], 5                                            ; +0x3d, 0x1402a66cd\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x46, 0x1402a66d6\nmov     eax, dword ptr cs:aRobot_0; \"Robot\"                            ; +0x4f, 0x1402a66df\nmov     dword ptr [rsp+48h+var_28], eax                                ; +0x55, 0x1402a66e5\nmovzx   ecx, byte ptr cs:aRobot_0+4; \"t\"                               ; +0x59, 0x1402a66e9\nmov     byte ptr [rsp+48h+var_28+4], cl                                ; +0x60, 0x1402a66f0\nmov     byte ptr [rsp+48h+var_28+5], 0                                 ; +0x64, 0x1402a66f4\nlea     r8, [rsp+48h+var_28]                                           ; +0x69, 0x1402a66f9\nmov     edx, edi                                                       ; +0x6e, 0x1402a66fe\nmov     rcx, rbx                                                       ; +0x70, 0x1402a6700\ncall    GJRobotSprite__init                                            ; +0x73, 0x1402a6703\nmov     rcx, rbx                                                       ; +0x78, 0x1402a6708\ntest    al, al                                                         ; +0x7b, 0x1402a670b\njz      short loc_1402A6723                                            ; +0x7d, 0x1402a670d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7f, 0x1402a670f\nmov     rax, rbx                                                       ; +0x85, 0x1402a6715\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x88, 0x1402a6718\nadd     rsp, 40h                                                       ; +0x8d, 0x1402a671d\npop     rdi                                                            ; +0x91, 0x1402a6721\nretn                                                                   ; +0x92, 0x1402a6722\nmov     rax, [rbx]                                                     ; +0x93, 0x1402a6723\nmov     edx, 1                                                         ; +0x96, 0x1402a6726\ncall    qword ptr [rax+8]                                              ; +0x9b, 0x1402a672b\nxor     ebx, ebx                                                       ; +0x9e, 0x1402a672e\nmov     rax, rbx                                                       ; +0xa0, 0x1402a6730\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa3, 0x1402a6733\nadd     rsp, 40h                                                       ; +0xa8, 0x1402a6738\npop     rdi                                                            ; +0xac, 0x1402a673c\nretn                                                                   ; +0xad, 0x1402a673d", "xrefs": ["GJGarageLayer::init @ 0x140273a0a", "SimplePlayer::updatePlayerFrame @ 0x14027a342", "PlayerObject::createRobot @ 0x14038803c", "<???> @ 0x1406d2108", "<???> @ 0x1406d2114"], "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"}