{"type": "func", "start": 5372561216, "end": 5372561390, "name": "GJRobotSprite::create", "pseudocode": "// \n// GJRobotSprite::create from 0x1403ac740 to 0x1403ac7ee (174 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::init @ 0x14037c198\n// > SimplePlayer::updatePlayerFrame @ 0x140382d35\n// > PlayerObject::createRobot @ 0x1404e621f\n// > <???> @ 0x140923ad4\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\ncocos2d::CCObject *__fastcall GJRobotSprite::create(unsigned int a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCObject *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 = GJRobotSprite::GJRobotSprite((__int64)v8);\n  v3 = (cocos2d::CCObject *)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, a1, &v5) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; GJRobotSprite::create from 0x1403ac740 to 0x1403ac7ee (174 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::init @ 0x14037c198\n; > SimplePlayer::updatePlayerFrame @ 0x140382d35\n; > PlayerObject::createRobot @ 0x1404e621f\n; > <???> @ 0x140923ad4\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, 0x1403ac740\npush    rdi                                                            ; +0x5, 0x1403ac745\nsub     rsp, 40h                                                       ; +0x6, 0x1403ac746\nmov     edi, ecx                                                       ; +0xa, 0x1403ac74a\nmov     ecx, 328h; Size                                                ; +0xc, 0x1403ac74c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x1403ac751\nmov     [rsp+48h+arg_8], rax                                           ; +0x16, 0x1403ac756\nmov     rcx, rax                                                       ; +0x1b, 0x1403ac75b\ncall    GJRobotSprite__GJRobotSprite                                   ; +0x1e, 0x1403ac75e\nmov     rbx, rax                                                       ; +0x23, 0x1403ac763\ntest    rax, rax                                                       ; +0x26, 0x1403ac766\njz      short loc_1403AC7E0                                            ; +0x29, 0x1403ac769\nmov     dword ptr [rax+310h], 5                                        ; +0x2b, 0x1403ac76b\nxorps   xmm0, xmm0                                                     ; +0x35, 0x1403ac775\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x38, 0x1403ac778\nmov     [rsp+48h+var_18], 5                                            ; +0x3d, 0x1403ac77d\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x46, 0x1403ac786\nmov     eax, dword ptr cs:aRobot_0; \"Robot\"                            ; +0x4f, 0x1403ac78f\nmov     dword ptr [rsp+48h+var_28], eax                                ; +0x55, 0x1403ac795\nmovzx   ecx, byte ptr cs:aRobot_0+4; \"t\"                               ; +0x59, 0x1403ac799\nmov     byte ptr [rsp+48h+var_28+4], cl                                ; +0x60, 0x1403ac7a0\nmov     byte ptr [rsp+48h+var_28+5], 0                                 ; +0x64, 0x1403ac7a4\nlea     r8, [rsp+48h+var_28]                                           ; +0x69, 0x1403ac7a9\nmov     edx, edi                                                       ; +0x6e, 0x1403ac7ae\nmov     rcx, rbx                                                       ; +0x70, 0x1403ac7b0\ncall    GJRobotSprite__init                                            ; +0x73, 0x1403ac7b3\nmov     rcx, rbx                                                       ; +0x78, 0x1403ac7b8\ntest    al, al                                                         ; +0x7b, 0x1403ac7bb\njz      short loc_1403AC7D3                                            ; +0x7d, 0x1403ac7bd\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7f, 0x1403ac7bf\nmov     rax, rbx                                                       ; +0x85, 0x1403ac7c5\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x88, 0x1403ac7c8\nadd     rsp, 40h                                                       ; +0x8d, 0x1403ac7cd\npop     rdi                                                            ; +0x91, 0x1403ac7d1\nretn                                                                   ; +0x92, 0x1403ac7d2\nmov     rax, [rbx]                                                     ; +0x93, 0x1403ac7d3\nmov     edx, 1                                                         ; +0x96, 0x1403ac7d6\ncall    qword ptr [rax+8]                                              ; +0x9b, 0x1403ac7db\nxor     ebx, ebx                                                       ; +0x9e, 0x1403ac7de\nmov     rax, rbx                                                       ; +0xa0, 0x1403ac7e0\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa3, 0x1403ac7e3\nadd     rsp, 40h                                                       ; +0xa8, 0x1403ac7e8\npop     rdi                                                            ; +0xac, 0x1403ac7ec\nretn                                                                   ; +0xad, 0x1403ac7ed", "xrefs": ["GJGarageLayer::init @ 0x14037c198", "SimplePlayer::updatePlayerFrame @ 0x140382d35", "PlayerObject::createRobot @ 0x1404e621f", "<???> @ 0x140923ad4"], "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"}