{"type": "func", "start": 4298928544, "end": 4298928842, "name": "DialogLayer::createDialogLayer", "pseudocode": "// \n// DialogLayer::createDialogLayer from 0x1003c71a0 to 0x1003c72ca (298 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::create @ 0x1003c7199\n// > DialogLayer::createWithObjects @ 0x1003c72ec\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\nDialogLayer *__fastcall DialogLayer::createDialogLayer(DialogObject *a1, cocos2d::CCArray *a2, int a3)\n{\n  char *v4; // rbx\n\n  v4 = (char *)operator new(0x288u);\n  cocos2d::CCLayerColor::CCLayerColor(v4);\n  *(_QWORD *)v4 = off_10092E370;\n  *((_QWORD *)v4 + 40) = off_10092E890;\n  *((_QWORD *)v4 + 41) = &off_10092E900;\n  *((_QWORD *)v4 + 42) = off_10092E918;\n  *((_QWORD *)v4 + 43) = off_10092E938;\n  *((_QWORD *)v4 + 44) = off_10092E958;\n  *((_QWORD *)v4 + 51) = off_10092E980;\n  *((_QWORD *)v4 + 54) = off_10092EA00;\n  *((_QWORD *)v4 + 68) = &off_10092EA20;\n  *((_DWORD *)v4 + 138) = 0;\n  *(_OWORD *)(v4 + 568) = 0;\n  *(_OWORD *)(v4 + 584) = 0;\n  *((_DWORD *)v4 + 150) = -1;\n  *((_WORD *)v4 + 308) = 0;\n  *((_QWORD *)v4 + 78) = 0;\n  v4[632] = 0;\n  *((_DWORD *)v4 + 159) = 1;\n  v4[640] = 0;\n  if ( DialogLayer::init((DialogLayer *)v4, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return (DialogLayer *)v4;\n}", "assembly": "; \n; DialogLayer::createDialogLayer from 0x1003c71a0 to 0x1003c72ca (298 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::create @ 0x1003c7199\n; > DialogLayer::createWithObjects @ 0x1003c72ec\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, 0x1003c71a0\nmov     rbp, rsp                                                       ; +0x1, 0x1003c71a1\npush    r15                                                            ; +0x4, 0x1003c71a4\npush    r14                                                            ; +0x6, 0x1003c71a6\npush    r12                                                            ; +0x8, 0x1003c71a8\npush    rbx                                                            ; +0xa, 0x1003c71aa\nmov     r14d, edx                                                      ; +0xb, 0x1003c71ab\nmov     r15, rsi                                                       ; +0xe, 0x1003c71ae\nmov     r12, rdi                                                       ; +0x11, 0x1003c71b1\nmov     edi, 288h; __sz                                                ; +0x14, 0x1003c71b4\ncall    __Znwm; operator new(ulong)                                    ; +0x19, 0x1003c71b9\nmov     rbx, rax                                                       ; +0x1e, 0x1003c71be\nmov     rdi, rax                                                       ; +0x21, 0x1003c71c1\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x24, 0x1003c71c4\nlea     rax, off_10092E370                                             ; +0x29, 0x1003c71c9\nmov     [rbx], rax                                                     ; +0x30, 0x1003c71d0\nlea     rax, off_10092E890                                             ; +0x33, 0x1003c71d3\nmov     [rbx+140h], rax                                                ; +0x3a, 0x1003c71da\nlea     rax, off_10092E900                                             ; +0x41, 0x1003c71e1\nmov     [rbx+148h], rax                                                ; +0x48, 0x1003c71e8\nlea     rax, off_10092E918                                             ; +0x4f, 0x1003c71ef\nmov     [rbx+150h], rax                                                ; +0x56, 0x1003c71f6\nlea     rax, off_10092E938                                             ; +0x5d, 0x1003c71fd\nmov     [rbx+158h], rax                                                ; +0x64, 0x1003c7204\nlea     rax, off_10092E958                                             ; +0x6b, 0x1003c720b\nmov     [rbx+160h], rax                                                ; +0x72, 0x1003c7212\nlea     rax, off_10092E980                                             ; +0x79, 0x1003c7219\nmov     [rbx+198h], rax                                                ; +0x80, 0x1003c7220\nlea     rax, off_10092EA00                                             ; +0x87, 0x1003c7227\nmov     [rbx+1B0h], rax                                                ; +0x8e, 0x1003c722e\nlea     rax, off_10092EA20                                             ; +0x95, 0x1003c7235\nmov     [rbx+220h], rax                                                ; +0x9c, 0x1003c723c\nmov     dword ptr [rbx+228h], 0                                        ; +0xa3, 0x1003c7243\nxorps   xmm0, xmm0                                                     ; +0xad, 0x1003c724d\nmovups  xmmword ptr [rbx+238h], xmm0                                   ; +0xb0, 0x1003c7250\nmovups  xmmword ptr [rbx+248h], xmm0                                   ; +0xb7, 0x1003c7257\nmov     dword ptr [rbx+258h], 0FFFFFFFFh                               ; +0xbe, 0x1003c725e\nmov     word ptr [rbx+268h], 0                                         ; +0xc8, 0x1003c7268\nmov     qword ptr [rbx+270h], 0                                        ; +0xd1, 0x1003c7271\nmov     byte ptr [rbx+278h], 0                                         ; +0xdc, 0x1003c727c\nmov     dword ptr [rbx+27Ch], 1                                        ; +0xe3, 0x1003c7283\nmov     byte ptr [rbx+280h], 0                                         ; +0xed, 0x1003c728d\nmov     rdi, rbx                                                       ; +0xf4, 0x1003c7294\nmov     rsi, r12                                                       ; +0xf7, 0x1003c7297\nmov     rdx, r15                                                       ; +0xfa, 0x1003c729a\nmov     ecx, r14d                                                      ; +0xfd, 0x1003c729d\ncall    DialogLayer__init                                              ; +0x100, 0x1003c72a0\ntest    al, al                                                         ; +0x105, 0x1003c72a5\njz      short loc_1003C72B3                                            ; +0x107, 0x1003c72a7\nmov     rdi, rbx                                                       ; +0x109, 0x1003c72a9\ncall    cocos2d__CCObject__autorelease                                 ; +0x10c, 0x1003c72ac\njmp     short loc_1003C72BE                                            ; +0x111, 0x1003c72b1\nmov     rax, [rbx]                                                     ; +0x113, 0x1003c72b3\nmov     rdi, rbx                                                       ; +0x116, 0x1003c72b6\ncall    qword ptr [rax+10h]                                            ; +0x119, 0x1003c72b9\nxor     ebx, ebx                                                       ; +0x11c, 0x1003c72bc\nmov     rax, rbx                                                       ; +0x11e, 0x1003c72be\npop     rbx                                                            ; +0x121, 0x1003c72c1\npop     r12                                                            ; +0x122, 0x1003c72c2\npop     r14                                                            ; +0x124, 0x1003c72c4\npop     r15                                                            ; +0x126, 0x1003c72c6\npop     rbp                                                            ; +0x128, 0x1003c72c8\nretn                                                                   ; +0x129, 0x1003c72c9", "xrefs": ["DialogLayer::create @ 0x1003c7199", "DialogLayer::createWithObjects @ 0x1003c72ec"], "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"}