{"type": "func", "start": 4299981648, "end": 4299981812, "name": "GJUINode::create", "pseudocode": "// \n// GJUINode::create from 0x1004c8350 to 0x1004c83f4 (164 bytes)\n// \n// 9 xrefs:\n// > UIOptionsLayer::init @ 0x1002b29b6\n// > UIOptionsLayer::init @ 0x1002b29fb\n// > UIOptionsLayer::init @ 0x1002b2aa0\n// > UIOptionsLayer::init @ 0x1002b2ae5\n// > UIOptionsLayer::init @ 0x1002b2b7b\n// > UILayer::init @ 0x1004c7c83\n// > UILayer::init @ 0x1004c7cc8\n// > UILayer::init @ 0x1004c7d15\n// > UILayer::init @ 0x1004c7d5a\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\nGJUINode *__fastcall GJUINode::create(UIButtonConfig *a1)\n{\n  _OWORD *v1; // rbx\n\n  v1 = operator new(0x188u);\n  cocos2d::CCNode::CCNode((__int64)v1);\n  *(_QWORD *)v1 = off_100950F00;\n  v1[20] = 0;\n  sub_10028D130(v1 + 21);\n  *((_DWORD *)v1 + 88) = -1;\n  sub_10028CC30((_OWORD *)((char *)v1 + 356));\n  sub_10028CC30((_OWORD *)((char *)v1 + 364));\n  *(_OWORD *)((char *)v1 + 372) = 0;\n  *((_DWORD *)v1 + 97) = 0;\n  if ( GJUINode::init((GJUINode *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (GJUINode *)v1;\n}", "assembly": "; \n; GJUINode::create from 0x1004c8350 to 0x1004c83f4 (164 bytes)\n; \n; 9 xrefs:\n; > UIOptionsLayer::init @ 0x1002b29b6\n; > UIOptionsLayer::init @ 0x1002b29fb\n; > UIOptionsLayer::init @ 0x1002b2aa0\n; > UIOptionsLayer::init @ 0x1002b2ae5\n; > UIOptionsLayer::init @ 0x1002b2b7b\n; > UILayer::init @ 0x1004c7c83\n; > UILayer::init @ 0x1004c7cc8\n; > UILayer::init @ 0x1004c7d15\n; > UILayer::init @ 0x1004c7d5a\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, 0x1004c8350\nmov     rbp, rsp                                                       ; +0x1, 0x1004c8351\npush    r14                                                            ; +0x4, 0x1004c8354\npush    rbx                                                            ; +0x6, 0x1004c8356\nmov     r14, rdi                                                       ; +0x7, 0x1004c8357\nmov     edi, 188h; __sz                                                ; +0xa, 0x1004c835a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1004c835f\nmov     rbx, rax                                                       ; +0x14, 0x1004c8364\nmov     rdi, rax                                                       ; +0x17, 0x1004c8367\ncall    cocos2d__CCNode__CCNode                                        ; +0x1a, 0x1004c836a\nlea     rax, off_100950F00                                             ; +0x1f, 0x1004c836f\nmov     [rbx], rax                                                     ; +0x26, 0x1004c8376\nlea     rdi, [rbx+150h]                                                ; +0x29, 0x1004c8379\nxorps   xmm0, xmm0                                                     ; +0x30, 0x1004c8380\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x33, 0x1004c8383\ncall    sub_10028D130                                                  ; +0x3a, 0x1004c838a\nmov     dword ptr [rbx+160h], 0FFFFFFFFh                               ; +0x3f, 0x1004c838f\nlea     rdi, [rbx+164h]                                                ; +0x49, 0x1004c8399\ncall    sub_10028CC30                                                  ; +0x50, 0x1004c83a0\nmov     rdi, rbx                                                       ; +0x55, 0x1004c83a5\nadd     rdi, 16Ch                                                      ; +0x58, 0x1004c83a8\ncall    sub_10028CC30                                                  ; +0x5f, 0x1004c83af\nxorps   xmm0, xmm0                                                     ; +0x64, 0x1004c83b4\nmovups  xmmword ptr [rbx+174h], xmm0                                   ; +0x67, 0x1004c83b7\nmov     dword ptr [rbx+184h], 0                                        ; +0x6e, 0x1004c83be\nmov     rdi, rbx                                                       ; +0x78, 0x1004c83c8\nmov     rsi, r14                                                       ; +0x7b, 0x1004c83cb\ncall    GJUINode__init                                                 ; +0x7e, 0x1004c83ce\ntest    al, al                                                         ; +0x83, 0x1004c83d3\njz      short loc_1004C83E1                                            ; +0x85, 0x1004c83d5\nmov     rdi, rbx                                                       ; +0x87, 0x1004c83d7\ncall    cocos2d__CCObject__autorelease                                 ; +0x8a, 0x1004c83da\njmp     short loc_1004C83EC                                            ; +0x8f, 0x1004c83df\nmov     rax, [rbx]                                                     ; +0x91, 0x1004c83e1\nmov     rdi, rbx                                                       ; +0x94, 0x1004c83e4\ncall    qword ptr [rax+10h]                                            ; +0x97, 0x1004c83e7\nxor     ebx, ebx                                                       ; +0x9a, 0x1004c83ea\nmov     rax, rbx                                                       ; +0x9c, 0x1004c83ec\npop     rbx                                                            ; +0x9f, 0x1004c83ef\npop     r14                                                            ; +0xa0, 0x1004c83f0\npop     rbp                                                            ; +0xa2, 0x1004c83f2\nretn                                                                   ; +0xa3, 0x1004c83f3", "xrefs": ["UIOptionsLayer::init @ 0x1002b29b6", "UIOptionsLayer::init @ 0x1002b29fb", "UIOptionsLayer::init @ 0x1002b2aa0", "UIOptionsLayer::init @ 0x1002b2ae5", "UIOptionsLayer::init @ 0x1002b2b7b", "UILayer::init @ 0x1004c7c83", "UILayer::init @ 0x1004c7cc8", "UILayer::init @ 0x1004c7d15", "UILayer::init @ 0x1004c7d5a"], "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"}