{"type": "func", "start": 4297395040, "end": 4297395289, "name": "GJMapObject::init", "pseudocode": "// \n// GJMapObject::init from 0x100250b60 to 0x100250c59 (249 bytes)\n// \n// 1 xrefs:\n// > GJMapObject::create @ 0x100250b0b\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 12:27:24 +0000\n// \n\nchar __fastcall GJMapObject::init(_QWORD *a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rbx\n  _BYTE v5[32]; // [rsp-20h] [rbp-20h] BYREF\n\n  if ( !a2 )\n    return 0;\n  if ( !(unsigned __int8)cocos2d::CCNode::init(a1) )\n    return 0;\n  a1[41] = a2;\n  cocos2d::CCObject::retain(a2);\n  (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[41], 2);\n  v2 = cocos2d::CCSprite::createWithSpriteFrameName(\"chest_shadow_001.png\");\n  a1[42] = v2;\n  (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v2, 1);\n  (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[42] + 128LL))(a1[42], 0.16);\n  (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[42] + 144LL))(a1[42], 0.44999999);\n  (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[42] + 912LL))(a1[42], 50);\n  v3 = a1[42];\n  sub_100278250(v5, 0.0, -9.0);\n  (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 184LL))(v3, v5);\n  return 1;\n}", "assembly": "; \n; GJMapObject::init from 0x100250b60 to 0x100250c59 (249 bytes)\n; \n; 1 xrefs:\n; > GJMapObject::create @ 0x100250b0b\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 12:27:24 +0000\n; \ntest    rsi, rsi                                                       ; +0x0, 0x100250b60\njz      loc_100250C4B                                                  ; +0x3, 0x100250b63\npush    rbp                                                            ; +0x9, 0x100250b69\nmov     rbp, rsp                                                       ; +0xa, 0x100250b6a\npush    r14                                                            ; +0xd, 0x100250b6d\npush    rbx                                                            ; +0xf, 0x100250b6f\nsub     rsp, 10h                                                       ; +0x10, 0x100250b70\nmov     r14, rsi                                                       ; +0x14, 0x100250b74\nmov     rbx, rdi                                                       ; +0x17, 0x100250b77\ncall    cocos2d__CCNode__init                                          ; +0x1a, 0x100250b7a\ntest    al, al                                                         ; +0x1f, 0x100250b7f\njz      loc_100250C4E                                                  ; +0x21, 0x100250b81\nmov     [rbx+148h], r14                                                ; +0x27, 0x100250b87\nmov     rdi, r14                                                       ; +0x2e, 0x100250b8e\ncall    cocos2d__CCObject__retain                                      ; +0x31, 0x100250b91\nmov     rax, [rbx]                                                     ; +0x36, 0x100250b96\nmov     rsi, [rbx+148h]                                                ; +0x39, 0x100250b99\nmov     rdi, rbx                                                       ; +0x40, 0x100250ba0\nmov     edx, 2                                                         ; +0x43, 0x100250ba3\ncall    qword ptr [rax+1D0h]                                           ; +0x48, 0x100250ba8\nlea     rdi, aChestShadow001; \"chest_shadow_001.png\"                   ; +0x4e, 0x100250bae\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x55, 0x100250bb5\nmov     [rbx+150h], rax                                                ; +0x5a, 0x100250bba\nmov     rcx, [rbx]                                                     ; +0x61, 0x100250bc1\nmov     rdi, rbx                                                       ; +0x64, 0x100250bc4\nmov     rsi, rax                                                       ; +0x67, 0x100250bc7\nmov     edx, 1                                                         ; +0x6a, 0x100250bca\ncall    qword ptr [rcx+1D0h]                                           ; +0x6f, 0x100250bcf\nmov     rdi, [rbx+150h]                                                ; +0x75, 0x100250bd5\nmov     rax, [rdi]                                                     ; +0x7c, 0x100250bdc\nmovss   xmm0, cs:dword_100A067D8                                       ; +0x7f, 0x100250bdf\ncall    qword ptr [rax+80h]                                            ; +0x87, 0x100250be7\nmov     rdi, [rbx+150h]                                                ; +0x8d, 0x100250bed\nmov     rax, [rdi]                                                     ; +0x94, 0x100250bf4\nmovss   xmm0, cs:dword_100A05D00                                       ; +0x97, 0x100250bf7\ncall    qword ptr [rax+90h]                                            ; +0x9f, 0x100250bff\nmov     rdi, [rbx+150h]                                                ; +0xa5, 0x100250c05\nmov     rax, [rdi]                                                     ; +0xac, 0x100250c0c\nmov     esi, 32h ; '2'                                                 ; +0xaf, 0x100250c0f\ncall    qword ptr [rax+390h]                                           ; +0xb4, 0x100250c14\nmov     rbx, [rbx+150h]                                                ; +0xba, 0x100250c1a\nlea     r14, [rbp-18h]                                                 ; +0xc1, 0x100250c21\nmovss   xmm1, cs:dword_100A063C4                                       ; +0xc5, 0x100250c25\nxorps   xmm0, xmm0                                                     ; +0xcd, 0x100250c2d\nmov     rdi, r14                                                       ; +0xd0, 0x100250c30\ncall    sub_100278250                                                  ; +0xd3, 0x100250c33\nmov     rax, [rbx]                                                     ; +0xd8, 0x100250c38\nmov     rdi, rbx                                                       ; +0xdb, 0x100250c3b\nmov     rsi, r14                                                       ; +0xde, 0x100250c3e\ncall    qword ptr [rax+0B8h]                                           ; +0xe1, 0x100250c41\nmov     al, 1                                                          ; +0xe7, 0x100250c47\njmp     short loc_100250C50                                            ; +0xe9, 0x100250c49\nxor     eax, eax                                                       ; +0xeb, 0x100250c4b\nretn                                                                   ; +0xed, 0x100250c4d\nxor     eax, eax                                                       ; +0xee, 0x100250c4e\nadd     rsp, 10h                                                       ; +0xf0, 0x100250c50\npop     rbx                                                            ; +0xf4, 0x100250c54\npop     r14                                                            ; +0xf5, 0x100250c55\npop     rbp                                                            ; +0xf7, 0x100250c57\nretn                                                                   ; +0xf8, 0x100250c58", "xrefs": ["GJMapObject::create @ 0x100250b0b"], "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"}