{"type": "func", "start": 4300255792, "end": 4300256151, "name": "CreateGuidelinesLayer::create", "pseudocode": "// \n// CreateGuidelinesLayer::create from 0x10050b230 to 0x10050b397 (359 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::onCreateLines @ 0x100215a34\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\nCreateGuidelinesLayer *__fastcall CreateGuidelinesLayer::create(CustomSongDelegate *a1, AudioGuidelinesType a2)\n{\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x2D8u);\n  cocos2d::CCLayerColor::CCLayerColor((__int64)v2);\n  *((_QWORD *)v2 + 72) = 0;\n  *((_DWORD *)v2 + 146) = 0;\n  v2[588] = 0;\n  *((_OWORD *)v2 + 34) = 0;\n  *(_OWORD *)(v2 + 553) = 0;\n  *((_OWORD *)v2 + 37) = 0;\n  *((_QWORD *)v2 + 76) = 0;\n  *((_DWORD *)v2 + 154) = -1;\n  *((_WORD *)v2 + 310) = 0;\n  *((_DWORD *)v2 + 156) = -1;\n  v2[628] = 0;\n  *(_QWORD *)v2 = off_10095BC30;\n  *((_QWORD *)v2 + 40) = off_10095C190;\n  *((_QWORD *)v2 + 41) = &off_10095C200;\n  *((_QWORD *)v2 + 42) = off_10095C218;\n  *((_QWORD *)v2 + 43) = off_10095C238;\n  *((_QWORD *)v2 + 44) = off_10095C258;\n  *((_QWORD *)v2 + 51) = off_10095C280;\n  *((_QWORD *)v2 + 54) = off_10095C300;\n  *((_QWORD *)v2 + 79) = &off_10095C320;\n  *((_QWORD *)v2 + 80) = 0;\n  *((_DWORD *)v2 + 172) = 0;\n  *((_WORD *)v2 + 346) = 0;\n  *((_OWORD *)v2 + 44) = 0;\n  *((_QWORD *)v2 + 90) = 0;\n  if ( CreateGuidelinesLayer::init((CreateGuidelinesLayer *)v2, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (CreateGuidelinesLayer *)v2;\n}", "assembly": "; \n; CreateGuidelinesLayer::create from 0x10050b230 to 0x10050b397 (359 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::onCreateLines @ 0x100215a34\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, 0x10050b230\nmov     rbp, rsp                                                       ; +0x1, 0x10050b231\npush    r15                                                            ; +0x4, 0x10050b234\npush    r14                                                            ; +0x6, 0x10050b236\npush    rbx                                                            ; +0x8, 0x10050b238\npush    rax                                                            ; +0x9, 0x10050b239\nmov     r14d, esi                                                      ; +0xa, 0x10050b23a\nmov     r15, rdi                                                       ; +0xd, 0x10050b23d\nmov     edi, 2D8h; __sz                                                ; +0x10, 0x10050b240\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x10050b245\nmov     rbx, rax                                                       ; +0x1a, 0x10050b24a\nmov     rdi, rax                                                       ; +0x1d, 0x10050b24d\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x20, 0x10050b250\nmov     qword ptr [rbx+240h], 0                                        ; +0x25, 0x10050b255\nmov     dword ptr [rbx+248h], 0                                        ; +0x30, 0x10050b260\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x3a, 0x10050b26a\nxorps   xmm0, xmm0                                                     ; +0x41, 0x10050b271\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x44, 0x10050b274\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x4b, 0x10050b27b\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x52, 0x10050b282\nmov     qword ptr [rbx+260h], 0                                        ; +0x59, 0x10050b289\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x64, 0x10050b294\nmov     word ptr [rbx+26Ch], 0                                         ; +0x6e, 0x10050b29e\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x77, 0x10050b2a7\nmov     byte ptr [rbx+274h], 0                                         ; +0x81, 0x10050b2b1\nlea     rax, off_10095BC30                                             ; +0x88, 0x10050b2b8\nmov     [rbx], rax                                                     ; +0x8f, 0x10050b2bf\nlea     rax, off_10095C190                                             ; +0x92, 0x10050b2c2\nmov     [rbx+140h], rax                                                ; +0x99, 0x10050b2c9\nlea     rax, off_10095C200                                             ; +0xa0, 0x10050b2d0\nmov     [rbx+148h], rax                                                ; +0xa7, 0x10050b2d7\nlea     rax, off_10095C218                                             ; +0xae, 0x10050b2de\nmov     [rbx+150h], rax                                                ; +0xb5, 0x10050b2e5\nlea     rax, off_10095C238                                             ; +0xbc, 0x10050b2ec\nmov     [rbx+158h], rax                                                ; +0xc3, 0x10050b2f3\nlea     rax, off_10095C258                                             ; +0xca, 0x10050b2fa\nmov     [rbx+160h], rax                                                ; +0xd1, 0x10050b301\nlea     rax, off_10095C280                                             ; +0xd8, 0x10050b308\nmov     [rbx+198h], rax                                                ; +0xdf, 0x10050b30f\nlea     rax, off_10095C300                                             ; +0xe6, 0x10050b316\nmov     [rbx+1B0h], rax                                                ; +0xed, 0x10050b31d\nlea     rax, off_10095C320                                             ; +0xf4, 0x10050b324\nmov     [rbx+278h], rax                                                ; +0xfb, 0x10050b32b\nmov     qword ptr [rbx+280h], 0                                        ; +0x102, 0x10050b332\nmov     dword ptr [rbx+2B0h], 0                                        ; +0x10d, 0x10050b33d\nmov     word ptr [rbx+2B4h], 0                                         ; +0x117, 0x10050b347\nmovups  xmmword ptr [rbx+2C0h], xmm0                                   ; +0x120, 0x10050b350\nmov     qword ptr [rbx+2D0h], 0                                        ; +0x127, 0x10050b357\nmov     rdi, rbx                                                       ; +0x132, 0x10050b362\nmov     rsi, r15                                                       ; +0x135, 0x10050b365\nmov     edx, r14d                                                      ; +0x138, 0x10050b368\ncall    CreateGuidelinesLayer__init                                    ; +0x13b, 0x10050b36b\ntest    al, al                                                         ; +0x140, 0x10050b370\njz      short loc_10050B37E                                            ; +0x142, 0x10050b372\nmov     rdi, rbx                                                       ; +0x144, 0x10050b374\ncall    cocos2d__CCObject__autorelease                                 ; +0x147, 0x10050b377\njmp     short loc_10050B389                                            ; +0x14c, 0x10050b37c\nmov     rax, [rbx]                                                     ; +0x14e, 0x10050b37e\nmov     rdi, rbx                                                       ; +0x151, 0x10050b381\ncall    qword ptr [rax+10h]                                            ; +0x154, 0x10050b384\nxor     ebx, ebx                                                       ; +0x157, 0x10050b387\nmov     rax, rbx                                                       ; +0x159, 0x10050b389\nadd     rsp, 8                                                         ; +0x15c, 0x10050b38c\npop     rbx                                                            ; +0x160, 0x10050b390\npop     r14                                                            ; +0x161, 0x10050b391\npop     r15                                                            ; +0x163, 0x10050b393\npop     rbp                                                            ; +0x165, 0x10050b395\nretn                                                                   ; +0x166, 0x10050b396", "xrefs": ["CustomSongLayer::onCreateLines @ 0x100215a34"], "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"}