{"type": "func", "start": 4297031744, "end": 4297032226, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x1001f8040 to 0x1001f8222 (482 bytes)\n// \n// 4 xrefs:\n// > SongSelectNode::onOpenCustomSong @ 0x1001fca18\n// > SongSelectNode::showCustomSongSelect @ 0x1001fcd10\n// > SongSelectNode::FLAlert_Clicked @ 0x1001fcd85\n// > sub_1001FCDB0 @ 0x1001fcdf2\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:26:48 +0000\n// \n\nchar *__fastcall CustomSongLayer::create(__int64 a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x2C8u);\n  cocos2d::CCLayerColor::CCLayerColor(v1);\n  *(_QWORD *)v1 = off_100B4FB70;\n  *((_QWORD *)v1 + 40) = off_100B500C0;\n  *((_QWORD *)v1 + 41) = &off_100B50130;\n  *((_QWORD *)v1 + 42) = off_100B50148;\n  *((_QWORD *)v1 + 43) = off_100B50168;\n  *((_QWORD *)v1 + 44) = off_100B50190;\n  *((_QWORD *)v1 + 51) = off_100B501C0;\n  *((_QWORD *)v1 + 54) = off_100B50240;\n  *((_QWORD *)v1 + 68) = off_100B50260;\n  *(_OWORD *)(v1 + 552) = 0;\n  *(_OWORD *)(v1 + 561) = 0;\n  *(_OWORD *)(v1 + 584) = 0;\n  sub_1002782A0(v1 + 600);\n  *((_OWORD *)v1 + 38) = 0;\n  *((_QWORD *)v1 + 78) = 0;\n  *((_DWORD *)v1 + 158) = -1;\n  *((_WORD *)v1 + 318) = 0;\n  *((_DWORD *)v1 + 160) = -1;\n  v1[644] = 0;\n  *((_QWORD *)v1 + 81) = 0;\n  v1[656] = 0;\n  *(_QWORD *)v1 = off_100AE1E78;\n  *((_QWORD *)v1 + 40) = off_100AE23F0;\n  *((_QWORD *)v1 + 41) = &off_100AE2460;\n  *((_QWORD *)v1 + 42) = off_100AE2478;\n  *((_QWORD *)v1 + 43) = off_100AE2498;\n  *((_QWORD *)v1 + 44) = off_100AE24C0;\n  *((_QWORD *)v1 + 51) = off_100AE24F0;\n  *((_QWORD *)v1 + 54) = off_100AE2570;\n  *((_QWORD *)v1 + 68) = off_100AE2590;\n  *((_QWORD *)v1 + 83) = &off_100AE25D8;\n  *((_QWORD *)v1 + 84) = &off_100AE25F0;\n  *((_QWORD *)v1 + 88) = 0;\n  *(_OWORD *)(v1 + 680) = 0;\n  if ( (unsigned __int8)CustomSongLayer::init(v1, a1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return v1;\n}", "assembly": "; \n; CustomSongLayer::create from 0x1001f8040 to 0x1001f8222 (482 bytes)\n; \n; 4 xrefs:\n; > SongSelectNode::onOpenCustomSong @ 0x1001fca18\n; > SongSelectNode::showCustomSongSelect @ 0x1001fcd10\n; > SongSelectNode::FLAlert_Clicked @ 0x1001fcd85\n; > sub_1001FCDB0 @ 0x1001fcdf2\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:26:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001f8040\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8041\npush    r14                                                            ; +0x4, 0x1001f8044\npush    rbx                                                            ; +0x6, 0x1001f8046\nmov     r14, rdi                                                       ; +0x7, 0x1001f8047\nmov     edi, 2C8h; __sz                                                ; +0xa, 0x1001f804a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1001f804f\nmov     rbx, rax                                                       ; +0x14, 0x1001f8054\nmov     rdi, rax                                                       ; +0x17, 0x1001f8057\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x1a, 0x1001f805a\nlea     rax, _ZTV12FLAlertLayer; `vtable for'FLAlertLayer              ; +0x1f, 0x1001f805f\nlea     rcx, [rax+10h]                                                 ; +0x26, 0x1001f8066\nmov     [rbx], rcx                                                     ; +0x2a, 0x1001f806a\nlea     rcx, [rax+560h]                                                ; +0x2d, 0x1001f806d\nmov     [rbx+140h], rcx                                                ; +0x34, 0x1001f8074\nlea     rcx, [rax+5D0h]                                                ; +0x3b, 0x1001f807b\nmov     [rbx+148h], rcx                                                ; +0x42, 0x1001f8082\nlea     rcx, [rax+5E8h]                                                ; +0x49, 0x1001f8089\nmov     [rbx+150h], rcx                                                ; +0x50, 0x1001f8090\nlea     rcx, [rax+608h]                                                ; +0x57, 0x1001f8097\nmov     [rbx+158h], rcx                                                ; +0x5e, 0x1001f809e\nlea     rcx, [rax+630h]                                                ; +0x65, 0x1001f80a5\nmov     [rbx+160h], rcx                                                ; +0x6c, 0x1001f80ac\nlea     rcx, [rax+660h]                                                ; +0x73, 0x1001f80b3\nmov     [rbx+198h], rcx                                                ; +0x7a, 0x1001f80ba\nlea     rcx, [rax+6E0h]                                                ; +0x81, 0x1001f80c1\nmov     [rbx+1B0h], rcx                                                ; +0x88, 0x1001f80c8\nadd     rax, 700h                                                      ; +0x8f, 0x1001f80cf\nmov     [rbx+220h], rax                                                ; +0x95, 0x1001f80d5\nmov     rdi, rbx                                                       ; +0x9c, 0x1001f80dc\nadd     rdi, 258h                                                      ; +0x9f, 0x1001f80df\nxorps   xmm0, xmm0                                                     ; +0xa6, 0x1001f80e6\nmovups  xmmword ptr [rbx+228h], xmm0                                   ; +0xa9, 0x1001f80e9\nmovups  xmmword ptr [rbx+231h], xmm0                                   ; +0xb0, 0x1001f80f0\nmovups  xmmword ptr [rbx+248h], xmm0                                   ; +0xb7, 0x1001f80f7\ncall    sub_1002782A0                                                  ; +0xbe, 0x1001f80fe\nxorps   xmm0, xmm0                                                     ; +0xc3, 0x1001f8103\nmovups  xmmword ptr [rbx+260h], xmm0                                   ; +0xc6, 0x1001f8106\nmov     qword ptr [rbx+270h], 0                                        ; +0xcd, 0x1001f810d\nmov     dword ptr [rbx+278h], 0FFFFFFFFh                               ; +0xd8, 0x1001f8118\nmov     word ptr [rbx+27Ch], 0                                         ; +0xe2, 0x1001f8122\nmov     dword ptr [rbx+280h], 0FFFFFFFFh                               ; +0xeb, 0x1001f812b\nmov     byte ptr [rbx+284h], 0                                         ; +0xf5, 0x1001f8135\nmov     qword ptr [rbx+288h], 0                                        ; +0xfc, 0x1001f813c\nmov     byte ptr [rbx+290h], 0                                         ; +0x107, 0x1001f8147\nlea     rax, off_100AE1E78                                             ; +0x10e, 0x1001f814e\nmov     [rbx], rax                                                     ; +0x115, 0x1001f8155\nlea     rax, off_100AE23F0                                             ; +0x118, 0x1001f8158\nmov     [rbx+140h], rax                                                ; +0x11f, 0x1001f815f\nlea     rax, off_100AE2460                                             ; +0x126, 0x1001f8166\nmov     [rbx+148h], rax                                                ; +0x12d, 0x1001f816d\nlea     rax, off_100AE2478                                             ; +0x134, 0x1001f8174\nmov     [rbx+150h], rax                                                ; +0x13b, 0x1001f817b\nlea     rax, off_100AE2498                                             ; +0x142, 0x1001f8182\nmov     [rbx+158h], rax                                                ; +0x149, 0x1001f8189\nlea     rax, off_100AE24C0                                             ; +0x150, 0x1001f8190\nmov     [rbx+160h], rax                                                ; +0x157, 0x1001f8197\nlea     rax, off_100AE24F0                                             ; +0x15e, 0x1001f819e\nmov     [rbx+198h], rax                                                ; +0x165, 0x1001f81a5\nlea     rax, off_100AE2570                                             ; +0x16c, 0x1001f81ac\nmov     [rbx+1B0h], rax                                                ; +0x173, 0x1001f81b3\nlea     rax, off_100AE2590                                             ; +0x17a, 0x1001f81ba\nmov     [rbx+220h], rax                                                ; +0x181, 0x1001f81c1\nlea     rax, off_100AE25D8                                             ; +0x188, 0x1001f81c8\nmov     [rbx+298h], rax                                                ; +0x18f, 0x1001f81cf\nlea     rax, off_100AE25F0                                             ; +0x196, 0x1001f81d6\nmov     [rbx+2A0h], rax                                                ; +0x19d, 0x1001f81dd\nmov     qword ptr [rbx+2C0h], 0                                        ; +0x1a4, 0x1001f81e4\nmovups  xmmword ptr [rbx+2A8h], xmm0                                   ; +0x1af, 0x1001f81ef\nmov     rdi, rbx                                                       ; +0x1b6, 0x1001f81f6\nmov     rsi, r14                                                       ; +0x1b9, 0x1001f81f9\ncall    CustomSongLayer__init                                          ; +0x1bc, 0x1001f81fc\ntest    al, al                                                         ; +0x1c1, 0x1001f8201\njz      short loc_1001F820F                                            ; +0x1c3, 0x1001f8203\nmov     rdi, rbx                                                       ; +0x1c5, 0x1001f8205\ncall    cocos2d__CCObject__autorelease                                 ; +0x1c8, 0x1001f8208\njmp     short loc_1001F821A                                            ; +0x1cd, 0x1001f820d\nmov     rax, [rbx]                                                     ; +0x1cf, 0x1001f820f\nmov     rdi, rbx                                                       ; +0x1d2, 0x1001f8212\ncall    qword ptr [rax+10h]                                            ; +0x1d5, 0x1001f8215\nxor     ebx, ebx                                                       ; +0x1d8, 0x1001f8218\nmov     rax, rbx                                                       ; +0x1da, 0x1001f821a\npop     rbx                                                            ; +0x1dd, 0x1001f821d\npop     r14                                                            ; +0x1de, 0x1001f821e\npop     rbp                                                            ; +0x1e0, 0x1001f8220\nretn                                                                   ; +0x1e1, 0x1001f8221", "xrefs": ["SongSelectNode::onOpenCustomSong @ 0x1001fca18", "SongSelectNode::showCustomSongSelect @ 0x1001fcd10", "SongSelectNode::FLAlert_Clicked @ 0x1001fcd85", "sub_1001FCDB0 @ 0x1001fcdf2"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}