{"type": "func", "start": 4297485088, "end": 4297485337, "name": "GJMapObject::init", "pseudocode": "// \n// GJMapObject::init from 0x100266b20 to 0x100266c19 (249 bytes)\n// \n// 1 xrefs:\n// > GJMapObject::create @ 0x100266ac0\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\nbool __fastcall GJMapObject::init(GJMapObject *a1, cocos2d::CCNode *a2)\n{\n  cocos2d::CCSprite *v2; // rax\n  cocos2d::CCSprite *m_shadowSprite; // rbx\n  _BYTE v5[32]; // [rsp-20h] [rbp-20h] BYREF\n\n  if ( !a2 )\n    return 0;\n  if ( !cocos2d::CCNode::init(a1) )\n    return 0;\n  a1->m_mainNode = a2;\n  cocos2d::CCObject::retain(a2);\n  ((void (__fastcall *)(GJMapObject *, cocos2d::CCNode *, __int64))a1->addChild_0)(a1, a1->m_mainNode, 2);\n  v2 = cocos2d::CCSprite::createWithSpriteFrameName(\"chest_shadow_001.png\");\n  a1->m_shadowSprite = v2;\n  ((void (__fastcall *)(GJMapObject *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v2, 1);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_shadowSprite->setScaleX)(a1->m_shadowSprite, 0.16);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_shadowSprite->setScaleY)(a1->m_shadowSprite, 0.44999999);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_shadowSprite->setOpacity)(a1->m_shadowSprite, 50);\n  m_shadowSprite = a1->m_shadowSprite;\n  sub_10028CBE0(v5, 0.0, -9.0);\n  ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))m_shadowSprite->setPosition)(m_shadowSprite, v5);\n  return 1;\n}", "assembly": "; \n; GJMapObject::init from 0x100266b20 to 0x100266c19 (249 bytes)\n; \n; 1 xrefs:\n; > GJMapObject::create @ 0x100266ac0\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\ntest    rsi, rsi                                                       ; +0x0, 0x100266b20\njz      loc_100266C0B                                                  ; +0x3, 0x100266b23\npush    rbp                                                            ; +0x9, 0x100266b29\nmov     rbp, rsp                                                       ; +0xa, 0x100266b2a\npush    r14                                                            ; +0xd, 0x100266b2d\npush    rbx                                                            ; +0xf, 0x100266b2f\nsub     rsp, 10h                                                       ; +0x10, 0x100266b30\nmov     r14, rsi                                                       ; +0x14, 0x100266b34\nmov     rbx, rdi                                                       ; +0x17, 0x100266b37\ncall    cocos2d__CCNode__init                                          ; +0x1a, 0x100266b3a\ntest    al, al                                                         ; +0x1f, 0x100266b3f\njz      loc_100266C0E                                                  ; +0x21, 0x100266b41\nmov     [rbx+140h], r14                                                ; +0x27, 0x100266b47\nmov     rdi, r14                                                       ; +0x2e, 0x100266b4e\ncall    cocos2d__CCObject__retain                                      ; +0x31, 0x100266b51\nmov     rax, [rbx]                                                     ; +0x36, 0x100266b56\nmov     rsi, [rbx+140h]                                                ; +0x39, 0x100266b59\nmov     rdi, rbx                                                       ; +0x40, 0x100266b60\nmov     edx, 2                                                         ; +0x43, 0x100266b63\ncall    qword ptr [rax+1C0h]                                           ; +0x48, 0x100266b68\nlea     rdi, aChestShadow001; \"chest_shadow_001.png\"                   ; +0x4e, 0x100266b6e\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x55, 0x100266b75\nmov     [rbx+148h], rax                                                ; +0x5a, 0x100266b7a\nmov     rcx, [rbx]                                                     ; +0x61, 0x100266b81\nmov     rdi, rbx                                                       ; +0x64, 0x100266b84\nmov     rsi, rax                                                       ; +0x67, 0x100266b87\nmov     edx, 1                                                         ; +0x6a, 0x100266b8a\ncall    qword ptr [rcx+1C0h]                                           ; +0x6f, 0x100266b8f\nmov     rdi, [rbx+148h]                                                ; +0x75, 0x100266b95\nmov     rax, [rdi]                                                     ; +0x7c, 0x100266b9c\nmovss   xmm0, cs:dword_1008182E8                                       ; +0x7f, 0x100266b9f\ncall    qword ptr [rax+80h]                                            ; +0x87, 0x100266ba7\nmov     rdi, [rbx+148h]                                                ; +0x8d, 0x100266bad\nmov     rax, [rdi]                                                     ; +0x94, 0x100266bb4\nmovss   xmm0, cs:dword_100815434                                       ; +0x97, 0x100266bb7\ncall    qword ptr [rax+90h]                                            ; +0x9f, 0x100266bbf\nmov     rdi, [rbx+148h]                                                ; +0xa5, 0x100266bc5\nmov     rax, [rdi]                                                     ; +0xac, 0x100266bcc\nmov     esi, 32h ; '2'                                                 ; +0xaf, 0x100266bcf\ncall    qword ptr [rax+380h]                                           ; +0xb4, 0x100266bd4\nmov     rbx, [rbx+148h]                                                ; +0xba, 0x100266bda\nlea     r14, [rbp-18h]                                                 ; +0xc1, 0x100266be1\nmovss   xmm1, cs:dword_10081533C                                       ; +0xc5, 0x100266be5\nxorps   xmm0, xmm0                                                     ; +0xcd, 0x100266bed\nmov     rdi, r14                                                       ; +0xd0, 0x100266bf0\ncall    sub_10028CBE0                                                  ; +0xd3, 0x100266bf3\nmov     rax, [rbx]                                                     ; +0xd8, 0x100266bf8\nmov     rdi, rbx                                                       ; +0xdb, 0x100266bfb\nmov     rsi, r14                                                       ; +0xde, 0x100266bfe\ncall    qword ptr [rax+0B8h]                                           ; +0xe1, 0x100266c01\nmov     al, 1                                                          ; +0xe7, 0x100266c07\njmp     short loc_100266C10                                            ; +0xe9, 0x100266c09\nxor     eax, eax                                                       ; +0xeb, 0x100266c0b\nretn                                                                   ; +0xed, 0x100266c0d\nxor     eax, eax                                                       ; +0xee, 0x100266c0e\nadd     rsp, 10h                                                       ; +0xf0, 0x100266c10\npop     rbx                                                            ; +0xf4, 0x100266c14\npop     r14                                                            ; +0xf5, 0x100266c15\npop     rbp                                                            ; +0xf7, 0x100266c17\nretn                                                                   ; +0xf8, 0x100266c18", "xrefs": ["GJMapObject::create @ 0x100266ac0"], "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"}