{"type": "func", "start": 4297484880, "end": 4297485030, "name": "GJMapObject::create", "pseudocode": "// \n// GJMapObject::create from 0x100266a50 to 0x100266ae6 (150 bytes)\n// \n// 3 xrefs:\n// > GJMapObject::createMonster @ 0x100266d95\n// > GJMapObject::createMonster @ 0x100266e91\n// > MapSelectLayer::init @ 0x100268134\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\nGJMapObject *__fastcall GJMapObject::create(cocos2d::CCNode *a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x168u);\n  cocos2d::CCNode::CCNode(v1);\n  *(_QWORD *)v1 = off_1008EACD8;\n  *(_OWORD *)(v1 + 316) = 0;\n  *((_DWORD *)v1 + 83) = 0;\n  sub_10028CC30(v1 + 336);\n  *((_DWORD *)v1 + 86) = 0;\n  *((_WORD *)v1 + 174) = 0;\n  *((_QWORD *)v1 + 44) = 0;\n  if ( GJMapObject::init((GJMapObject *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (GJMapObject *)v1;\n}", "assembly": "; \n; GJMapObject::create from 0x100266a50 to 0x100266ae6 (150 bytes)\n; \n; 3 xrefs:\n; > GJMapObject::createMonster @ 0x100266d95\n; > GJMapObject::createMonster @ 0x100266e91\n; > MapSelectLayer::init @ 0x100268134\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\npush    rbp                                                            ; +0x0, 0x100266a50\nmov     rbp, rsp                                                       ; +0x1, 0x100266a51\npush    r14                                                            ; +0x4, 0x100266a54\npush    rbx                                                            ; +0x6, 0x100266a56\nmov     r14, rdi                                                       ; +0x7, 0x100266a57\nmov     edi, 168h; __sz                                                ; +0xa, 0x100266a5a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x100266a5f\nmov     rbx, rax                                                       ; +0x14, 0x100266a64\nmov     rdi, rax                                                       ; +0x17, 0x100266a67\ncall    cocos2d__CCNode__CCNode                                        ; +0x1a, 0x100266a6a\nlea     rax, off_1008EACD8                                             ; +0x1f, 0x100266a6f\nmov     [rbx], rax                                                     ; +0x26, 0x100266a76\nmov     rdi, rbx                                                       ; +0x29, 0x100266a79\nadd     rdi, 150h                                                      ; +0x2c, 0x100266a7c\nxorps   xmm0, xmm0                                                     ; +0x33, 0x100266a83\nmovups  xmmword ptr [rbx+13Ch], xmm0                                   ; +0x36, 0x100266a86\nmov     dword ptr [rbx+14Ch], 0                                        ; +0x3d, 0x100266a8d\ncall    sub_10028CC30                                                  ; +0x47, 0x100266a97\nmov     dword ptr [rbx+158h], 0                                        ; +0x4c, 0x100266a9c\nmov     word ptr [rbx+15Ch], 0                                         ; +0x56, 0x100266aa6\nmov     qword ptr [rbx+160h], 0                                        ; +0x5f, 0x100266aaf\nmov     rdi, rbx                                                       ; +0x6a, 0x100266aba\nmov     rsi, r14                                                       ; +0x6d, 0x100266abd\ncall    GJMapObject__init                                              ; +0x70, 0x100266ac0\ntest    al, al                                                         ; +0x75, 0x100266ac5\njz      short loc_100266AD3                                            ; +0x77, 0x100266ac7\nmov     rdi, rbx                                                       ; +0x79, 0x100266ac9\ncall    cocos2d__CCObject__autorelease                                 ; +0x7c, 0x100266acc\njmp     short loc_100266ADE                                            ; +0x81, 0x100266ad1\nmov     rax, [rbx]                                                     ; +0x83, 0x100266ad3\nmov     rdi, rbx                                                       ; +0x86, 0x100266ad6\ncall    qword ptr [rax+10h]                                            ; +0x89, 0x100266ad9\nxor     ebx, ebx                                                       ; +0x8c, 0x100266adc\nmov     rax, rbx                                                       ; +0x8e, 0x100266ade\npop     rbx                                                            ; +0x91, 0x100266ae1\npop     r14                                                            ; +0x92, 0x100266ae2\npop     rbp                                                            ; +0x94, 0x100266ae4\nretn                                                                   ; +0x95, 0x100266ae5", "xrefs": ["GJMapObject::createMonster @ 0x100266d95", "GJMapObject::createMonster @ 0x100266e91", "MapSelectLayer::init @ 0x100268134"], "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"}