{"type": "func", "start": 4297394832, "end": 4297394993, "name": "GJMapObject::create", "pseudocode": "// \n// GJMapObject::create from 0x100250a90 to 0x100250b31 (161 bytes)\n// \n// 3 xrefs:\n// > GJMapObject::createMonster @ 0x100250dd5\n// > GJMapObject::createMonster @ 0x100250ed1\n// > MapSelectLayer::init @ 0x100252134\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\n_OWORD *__fastcall GJMapObject::create(__int64 a1)\n{\n  _OWORD *v1; // rbx\n\n  v1 = operator new(0x178u);\n  cocos2d::CCNode::CCNode(v1);\n  *(_QWORD *)v1 = off_100AF06E8;\n  v1[20] = 0;\n  *((_QWORD *)v1 + 42) = 0;\n  sub_1002782A0((char *)v1 + 344);\n  *((_DWORD *)v1 + 88) = 0;\n  *((_WORD *)v1 + 178) = 0;\n  *((_QWORD *)v1 + 45) = 0;\n  *((_DWORD *)v1 + 92) = 0;\n  if ( (unsigned __int8)GJMapObject::init(v1, a1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return v1;\n}", "assembly": "; \n; GJMapObject::create from 0x100250a90 to 0x100250b31 (161 bytes)\n; \n; 3 xrefs:\n; > GJMapObject::createMonster @ 0x100250dd5\n; > GJMapObject::createMonster @ 0x100250ed1\n; > MapSelectLayer::init @ 0x100252134\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; \npush    rbp                                                            ; +0x0, 0x100250a90\nmov     rbp, rsp                                                       ; +0x1, 0x100250a91\npush    r14                                                            ; +0x4, 0x100250a94\npush    rbx                                                            ; +0x6, 0x100250a96\nmov     r14, rdi                                                       ; +0x7, 0x100250a97\nmov     edi, 178h; __sz                                                ; +0xa, 0x100250a9a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x100250a9f\nmov     rbx, rax                                                       ; +0x14, 0x100250aa4\nmov     rdi, rax                                                       ; +0x17, 0x100250aa7\ncall    cocos2d__CCNode__CCNode                                        ; +0x1a, 0x100250aaa\nlea     rax, off_100AF06E8                                             ; +0x1f, 0x100250aaf\nmov     [rbx], rax                                                     ; +0x26, 0x100250ab6\nmov     rdi, rbx                                                       ; +0x29, 0x100250ab9\nadd     rdi, 158h                                                      ; +0x2c, 0x100250abc\nxorps   xmm0, xmm0                                                     ; +0x33, 0x100250ac3\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x36, 0x100250ac6\nmov     qword ptr [rbx+150h], 0                                        ; +0x3d, 0x100250acd\ncall    sub_1002782A0                                                  ; +0x48, 0x100250ad8\nmov     dword ptr [rbx+160h], 0                                        ; +0x4d, 0x100250add\nmov     word ptr [rbx+164h], 0                                         ; +0x57, 0x100250ae7\nmov     qword ptr [rbx+168h], 0                                        ; +0x60, 0x100250af0\nmov     dword ptr [rbx+170h], 0                                        ; +0x6b, 0x100250afb\nmov     rdi, rbx                                                       ; +0x75, 0x100250b05\nmov     rsi, r14                                                       ; +0x78, 0x100250b08\ncall    GJMapObject__init                                              ; +0x7b, 0x100250b0b\ntest    al, al                                                         ; +0x80, 0x100250b10\njz      short loc_100250B1E                                            ; +0x82, 0x100250b12\nmov     rdi, rbx                                                       ; +0x84, 0x100250b14\ncall    cocos2d__CCObject__autorelease                                 ; +0x87, 0x100250b17\njmp     short loc_100250B29                                            ; +0x8c, 0x100250b1c\nmov     rax, [rbx]                                                     ; +0x8e, 0x100250b1e\nmov     rdi, rbx                                                       ; +0x91, 0x100250b21\ncall    qword ptr [rax+10h]                                            ; +0x94, 0x100250b24\nxor     ebx, ebx                                                       ; +0x97, 0x100250b27\nmov     rax, rbx                                                       ; +0x99, 0x100250b29\npop     rbx                                                            ; +0x9c, 0x100250b2c\npop     r14                                                            ; +0x9d, 0x100250b2d\npop     rbp                                                            ; +0x9f, 0x100250b2f\nretn                                                                   ; +0xa0, 0x100250b30", "xrefs": ["GJMapObject::createMonster @ 0x100250dd5", "GJMapObject::createMonster @ 0x100250ed1", "MapSelectLayer::init @ 0x100252134"], "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"}