{"type": "func", "start": 6035684, "end": 6036016, "name": "CreateGuidelinesLayer::create", "pseudocode": "// \n// CreateGuidelinesLayer::create from 0x5c18e4 to 0x5c1a30 (332 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::onCreateLines @ 0x83ad7c\n// > <???> @ 0x9a308\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 *CreateGuidelinesLayer::create(CustomSongDelegate *a1, AudioGuidelinesType a2)\n{\n  __int64 v4; // x19\n\n  v4 = operator new(0x2C8u);\n  cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v4);\n  *(_DWORD *)(v4 + 616) = -1;\n  *(_DWORD *)(v4 + 624) = -1;\n  *(_QWORD *)(v4 + 544) = 0;\n  *(_QWORD *)(v4 + 552) = 0;\n  *(_QWORD *)(v4 + 560) = 0;\n  *(_BYTE *)(v4 + 568) = 0;\n  *(_QWORD *)(v4 + 576) = 0;\n  *(_DWORD *)(v4 + 584) = 0;\n  *(_BYTE *)(v4 + 588) = 0;\n  *(_QWORD *)(v4 + 592) = 0;\n  *(_QWORD *)(v4 + 600) = 0;\n  *(_QWORD *)(v4 + 608) = 0;\n  *(_BYTE *)(v4 + 620) = 0;\n  *(_BYTE *)(v4 + 621) = 0;\n  *(_BYTE *)(v4 + 628) = 0;\n  *(_QWORD *)(v4 + 640) = 0;\n  *(_QWORD *)v4 = &off_1145E80;\n  *(_QWORD *)(v4 + 320) = off_11463E0;\n  *(_QWORD *)(v4 + 328) = &off_1146450;\n  *(_QWORD *)(v4 + 336) = &off_1146468;\n  *(_QWORD *)(v4 + 344) = off_1146488;\n  *(_QWORD *)(v4 + 352) = off_11464A8;\n  *(_QWORD *)(v4 + 632) = &off_1146570;\n  *(_QWORD *)(v4 + 408) = &off_11464D0;\n  *(_QWORD *)(v4 + 432) = &off_1146550;\n  *(_BYTE *)(v4 + 692) = 0;\n  *(_BYTE *)(v4 + 693) = 0;\n  *(_DWORD *)(v4 + 688) = 0;\n  *(_QWORD *)(v4 + 704) = &byte_124B6C8;\n  if ( CreateGuidelinesLayer::init((CreateGuidelinesLayer *)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return (CreateGuidelinesLayer *)v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::create from 0x5c18e4 to 0x5c1a30 (332 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::onCreateLines @ 0x83ad7c\n; > <???> @ 0x9a308\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x5c18e4\nMOV             X29, SP                                                ; +0x4, 0x5c18e8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x5c18ec\nMOV             X21, X0                                                ; +0xc, 0x5c18f0\nMOV             X0, #0x2C8; unsigned __int64                           ; +0x10, 0x5c18f4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0x5c18f8\nMOV             W20, W1                                                ; +0x18, 0x5c18fc\nBL              _Znwm; operator new(ulong)                             ; +0x1c, 0x5c1900\nMOV             X19, X0                                                ; +0x20, 0x5c1904\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x24, 0x5c1908\nMOV             W3, #0xFFFFFFFF                                        ; +0x28, 0x5c190c\nSTR             W3, [X19,#0x268]                                       ; +0x2c, 0x5c1910\nSTR             W3, [X19,#0x270]                                       ; +0x30, 0x5c1914\nADRP            X3, #_ZTV21CreateGuidelinesLayer_ptr@PAGE              ; +0x34, 0x5c1918\nSTR             XZR, [X19,#0x220]                                      ; +0x38, 0x5c191c\nMOV             X0, X19                                                ; +0x3c, 0x5c1920\nSTR             XZR, [X19,#0x228]                                      ; +0x40, 0x5c1924\nMOV             X1, X21                                                ; +0x44, 0x5c1928\nSTR             XZR, [X19,#0x230]                                      ; +0x48, 0x5c192c\nMOV             W2, W20                                                ; +0x4c, 0x5c1930\nSTRB            WZR, [X19,#0x238]                                      ; +0x50, 0x5c1934\nSTR             XZR, [X19,#0x240]                                      ; +0x54, 0x5c1938\nSTR             WZR, [X19,#0x248]                                      ; +0x58, 0x5c193c\nSTRB            WZR, [X19,#0x24C]                                      ; +0x5c, 0x5c1940\nSTR             XZR, [X19,#0x250]                                      ; +0x60, 0x5c1944\nSTR             XZR, [X19,#0x258]                                      ; +0x64, 0x5c1948\nSTR             XZR, [X19,#0x260]                                      ; +0x68, 0x5c194c\nSTRB            WZR, [X19,#0x26C]                                      ; +0x6c, 0x5c1950\nSTRB            WZR, [X19,#0x26D]                                      ; +0x70, 0x5c1954\nSTRB            WZR, [X19,#0x274]                                      ; +0x74, 0x5c1958\nFMOV            S0, WZR                                                ; +0x78, 0x5c195c\nLDR             X3, [X3,#_ZTV21CreateGuidelinesLayer_ptr@PAGEOFF]; `vtable for'CreateGuidelinesLayer ... ; +0x7c, 0x5c1960\nSTR             XZR, [X19,#0x280]                                      ; +0x80, 0x5c1964\nADD             X5, X3, #0x10                                          ; +0x84, 0x5c1968\nADD             X4, X3, #0x570                                         ; +0x88, 0x5c196c\nSTR             X5, [X19]                                              ; +0x8c, 0x5c1970\nADD             X5, X3, #0x5E0                                         ; +0x90, 0x5c1974\nSTR             X4, [X19,#0x140]                                       ; +0x94, 0x5c1978\nADD             X4, X3, #0x5F8                                         ; +0x98, 0x5c197c\nSTR             X5, [X19,#0x148]                                       ; +0x9c, 0x5c1980\nADD             X5, X3, #0x618                                         ; +0xa0, 0x5c1984\nSTR             X4, [X19,#0x150]                                       ; +0xa4, 0x5c1988\nADD             X4, X3, #0x638                                         ; +0xa8, 0x5c198c\nSTR             X5, [X19,#0x158]                                       ; +0xac, 0x5c1990\nADD             X5, X3, #0x660                                         ; +0xb0, 0x5c1994\nSTR             X4, [X19,#0x160]                                       ; +0xb4, 0x5c1998\nADD             X4, X3, #0x6E0                                         ; +0xb8, 0x5c199c\nADD             X3, X3, #0x700                                         ; +0xbc, 0x5c19a0\nSTR             X3, [X19,#0x278]                                       ; +0xc0, 0x5c19a4\nADRP            X3, #off_122EFE8@PAGE                                  ; +0xc4, 0x5c19a8\nSTR             X5, [X19,#0x198]                                       ; +0xc8, 0x5c19ac\nSTR             X4, [X19,#0x1B0]                                       ; +0xcc, 0x5c19b0\nSTRB            WZR, [X19,#0x2B4]                                      ; +0xd0, 0x5c19b4\nSTRB            WZR, [X19,#0x2B5]                                      ; +0xd4, 0x5c19b8\nSTR             S0, [X19,#0x2B0]                                       ; +0xd8, 0x5c19bc\nLDR             X3, [X3,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xdc, 0x5c19c0\nADD             X3, X3, #0x18                                          ; +0xe0, 0x5c19c4\nSTR             X3, [X19,#0x2C0]                                       ; +0xe4, 0x5c19c8\nBL              _ZN21CreateGuidelinesLayer4initEP18CustomSongDelegate19AudioGuidelinesType; CreateGuidelinesLayer::init(CustomSongDelegate *,AudioGuidelinesType) ; +0xe8, 0x5c19cc\nUXTB            W0, W0                                                 ; +0xec, 0x5c19d0\nCBZ             W0, loc_5C19F4                                         ; +0xf0, 0x5c19d4\nMOV             X0, X19; this                                          ; +0xf4, 0x5c19d8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xf8, 0x5c19dc\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xfc, 0x5c19e0\nMOV             X0, X19                                                ; +0x100, 0x5c19e4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x104, 0x5c19e8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x108, 0x5c19ec\nRET                                                                    ; +0x10c, 0x5c19f0\nLDR             X1, [X19]                                              ; +0x110, 0x5c19f4\nMOV             X0, X19                                                ; +0x114, 0x5c19f8\nMOV             X19, #0                                                ; +0x118, 0x5c19fc\nLDR             X1, [X1,#0x10]                                         ; +0x11c, 0x5c1a00\nBLR             X1                                                     ; +0x120, 0x5c1a04\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x124, 0x5c1a08\nMOV             X0, X19                                                ; +0x128, 0x5c1a0c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x12c, 0x5c1a10\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x130, 0x5c1a14\nRET                                                                    ; +0x134, 0x5c1a18\nMOV             X20, X0                                                ; +0x138, 0x5c1a1c\nMOV             X0, X19; p                                             ; +0x13c, 0x5c1a20\nBL              _ZdlPv; operator delete(void *)                        ; +0x140, 0x5c1a24\nMOV             X0, X20                                                ; +0x144, 0x5c1a28\nBL              _Unwind_Resume                                         ; +0x148, 0x5c1a2c", "xrefs": ["CustomSongLayer::onCreateLines @ 0x83ad7c", "<???> @ 0x9a308"], "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"}