{"type": "func", "start": 5373749936, "end": 5373750151, "name": "GJUINode::create", "pseudocode": "// \n// GJUINode::create from 0x1404ceab0 to 0x1404ceb87 (215 bytes)\n// \n// 7 xrefs:\n// > UIOptionsLayer::init @ 0x1402a1273\n// > UIOptionsLayer::init @ 0x1402a1387\n// > UIOptionsLayer::init @ 0x1402a140d\n// > UIOptionsLayer::init @ 0x1402a14e1\n// > UIOptionsLayer::init @ 0x1402a1567\n// > UILayer::init @ 0x1404ccc8b\n// > <???> @ 0x1406dd514\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\n// Hidden C++ exception states: #wind=2\nGJUINode *GJUINode::create(UIButtonConfig *a1)\n{\n  char *v2; // rdi\n\n  v2 = (char *)operator new(0x188u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);\n  *(_QWORD *)v2 = &GJUINode::`vftable';\n  *((_QWORD *)v2 + 40) = 0;\n  *((_QWORD *)v2 + 41) = 0;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v2 + 21);\n  *((_DWORD *)v2 + 88) = -1;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 356));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 364));\n  *(_QWORD *)(v2 + 372) = 0;\n  *((_DWORD *)v2 + 95) = 0;\n  *((_QWORD *)v2 + 48) = 0;\n  if ( GJUINode::init((GJUINode *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return (GJUINode *)v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJUINode::create from 0x1404ceab0 to 0x1404ceb87 (215 bytes)\n; \n; 7 xrefs:\n; > UIOptionsLayer::init @ 0x1402a1273\n; > UIOptionsLayer::init @ 0x1402a1387\n; > UIOptionsLayer::init @ 0x1402a140d\n; > UIOptionsLayer::init @ 0x1402a14e1\n; > UIOptionsLayer::init @ 0x1402a1567\n; > UILayer::init @ 0x1404ccc8b\n; > <???> @ 0x1406dd514\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404ceab0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404ceab5\npush    rdi                                                            ; +0xa, 0x1404ceaba\nsub     rsp, 20h                                                       ; +0xb, 0x1404ceabb\nmov     rbx, rcx                                                       ; +0xf, 0x1404ceabf\nmov     ecx, 188h; Size                                                ; +0x12, 0x1404ceac2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x1404ceac7\nmov     rdi, rax                                                       ; +0x1c, 0x1404ceacc\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x1404ceacf\nmov     rcx, rax                                                       ; +0x24, 0x1404cead4\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x27, 0x1404cead7\nnop                                                                    ; +0x2d, 0x1404ceadd\nlea     rax, ??_7GJUINode@@6B@; const GJUINode::`vftable'              ; +0x2e, 0x1404ceade\nmov     [rdi], rax                                                     ; +0x35, 0x1404ceae5\nxor     esi, esi                                                       ; +0x38, 0x1404ceae8\nmov     [rdi+140h], rsi                                                ; +0x3a, 0x1404ceaea\nmov     [rdi+148h], rsi                                                ; +0x41, 0x1404ceaf1\nlea     rcx, [rdi+150h]                                                ; +0x48, 0x1404ceaf8\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0x4f, 0x1404ceaff\nmov     dword ptr [rdi+160h], 0FFFFFFFFh                               ; +0x55, 0x1404ceb05\nlea     rcx, [rdi+164h]                                                ; +0x5f, 0x1404ceb0f\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x66, 0x1404ceb16\nlea     rcx, [rdi+16Ch]                                                ; +0x6c, 0x1404ceb1c\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x73, 0x1404ceb23\nmov     [rdi+174h], rsi                                                ; +0x79, 0x1404ceb29\nmov     [rdi+17Ch], esi                                                ; +0x80, 0x1404ceb30\nmov     [rdi+180h], rsi                                                ; +0x86, 0x1404ceb36\nmov     rdx, rbx                                                       ; +0x8d, 0x1404ceb3d\nmov     rcx, rdi                                                       ; +0x90, 0x1404ceb40\ncall    GJUINode__init                                                 ; +0x93, 0x1404ceb43\nmov     rcx, rdi                                                       ; +0x98, 0x1404ceb48\ntest    al, al                                                         ; +0x9b, 0x1404ceb4b\njz      short loc_1404CEB68                                            ; +0x9d, 0x1404ceb4d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x9f, 0x1404ceb4f\nmov     rax, rdi                                                       ; +0xa5, 0x1404ceb55\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa8, 0x1404ceb58\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xad, 0x1404ceb5d\nadd     rsp, 20h                                                       ; +0xb2, 0x1404ceb62\npop     rdi                                                            ; +0xb6, 0x1404ceb66\nretn                                                                   ; +0xb7, 0x1404ceb67\nmov     r8, [rdi]                                                      ; +0xb8, 0x1404ceb68\nmov     edx, 1                                                         ; +0xbb, 0x1404ceb6b\ncall    qword ptr [r8+8]                                               ; +0xc0, 0x1404ceb70\nmov     rax, rsi                                                       ; +0xc4, 0x1404ceb74\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc7, 0x1404ceb77\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xcc, 0x1404ceb7c\nadd     rsp, 20h                                                       ; +0xd1, 0x1404ceb81\npop     rdi                                                            ; +0xd5, 0x1404ceb85\nretn                                                                   ; +0xd6, 0x1404ceb86", "xrefs": ["UIOptionsLayer::init @ 0x1402a1273", "UIOptionsLayer::init @ 0x1402a1387", "UIOptionsLayer::init @ 0x1402a140d", "UIOptionsLayer::init @ 0x1402a14e1", "UIOptionsLayer::init @ 0x1402a1567", "UILayer::init @ 0x1404ccc8b", "<???> @ 0x1406dd514"], "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"}