{"type": "func", "start": 4297149200, "end": 4297149542, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x100214b10 to 0x100214c66 (342 bytes)\n// \n// 4 xrefs:\n// > SongSelectNode::onOpenCustomSong @ 0x100219588\n// > SongSelectNode::showCustomSongSelect @ 0x100219880\n// > SongSelectNode::FLAlert_Clicked @ 0x1002198f5\n// > sub_100219920 @ 0x100219962\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\nCustomSongLayer *__fastcall CustomSongLayer::create(CustomSongDelegate *a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x2B0u);\n  cocos2d::CCLayerColor::CCLayerColor(v1);\n  *((_QWORD *)v1 + 72) = 0;\n  *((_DWORD *)v1 + 146) = 0;\n  v1[588] = 0;\n  *((_OWORD *)v1 + 34) = 0;\n  *(_OWORD *)(v1 + 553) = 0;\n  *((_OWORD *)v1 + 37) = 0;\n  *((_QWORD *)v1 + 76) = 0;\n  *((_DWORD *)v1 + 154) = -1;\n  *((_WORD *)v1 + 310) = 0;\n  *((_DWORD *)v1 + 156) = -1;\n  v1[628] = 0;\n  *(_QWORD *)v1 = off_1008DDB20;\n  *((_QWORD *)v1 + 40) = off_1008DE078;\n  *((_QWORD *)v1 + 41) = &off_1008DE0E8;\n  *((_QWORD *)v1 + 42) = off_1008DE100;\n  *((_QWORD *)v1 + 43) = off_1008DE120;\n  *((_QWORD *)v1 + 44) = off_1008DE140;\n  *((_QWORD *)v1 + 51) = off_1008DE168;\n  *((_QWORD *)v1 + 54) = off_1008DE1E8;\n  *((_QWORD *)v1 + 79) = off_1008DE208;\n  *((_QWORD *)v1 + 80) = &off_1008DE250;\n  *((_QWORD *)v1 + 81) = &off_1008DE268;\n  *((_QWORD *)v1 + 85) = 0;\n  *((_OWORD *)v1 + 41) = 0;\n  if ( CustomSongLayer::init((CustomSongLayer *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (CustomSongLayer *)v1;\n}", "assembly": "; \n; CustomSongLayer::create from 0x100214b10 to 0x100214c66 (342 bytes)\n; \n; 4 xrefs:\n; > SongSelectNode::onOpenCustomSong @ 0x100219588\n; > SongSelectNode::showCustomSongSelect @ 0x100219880\n; > SongSelectNode::FLAlert_Clicked @ 0x1002198f5\n; > sub_100219920 @ 0x100219962\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, 0x100214b10\nmov     rbp, rsp                                                       ; +0x1, 0x100214b11\npush    r14                                                            ; +0x4, 0x100214b14\npush    rbx                                                            ; +0x6, 0x100214b16\nmov     r14, rdi                                                       ; +0x7, 0x100214b17\nmov     edi, 2B0h; __sz                                                ; +0xa, 0x100214b1a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x100214b1f\nmov     rbx, rax                                                       ; +0x14, 0x100214b24\nmov     rdi, rax                                                       ; +0x17, 0x100214b27\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x1a, 0x100214b2a\nmov     qword ptr [rbx+240h], 0                                        ; +0x1f, 0x100214b2f\nmov     dword ptr [rbx+248h], 0                                        ; +0x2a, 0x100214b3a\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x34, 0x100214b44\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x100214b4b\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x3e, 0x100214b4e\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x45, 0x100214b55\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x4c, 0x100214b5c\nmov     qword ptr [rbx+260h], 0                                        ; +0x53, 0x100214b63\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x5e, 0x100214b6e\nmov     word ptr [rbx+26Ch], 0                                         ; +0x68, 0x100214b78\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x71, 0x100214b81\nmov     byte ptr [rbx+274h], 0                                         ; +0x7b, 0x100214b8b\nlea     rax, off_1008DDB20                                             ; +0x82, 0x100214b92\nmov     [rbx], rax                                                     ; +0x89, 0x100214b99\nlea     rax, off_1008DE078                                             ; +0x8c, 0x100214b9c\nmov     [rbx+140h], rax                                                ; +0x93, 0x100214ba3\nlea     rax, off_1008DE0E8                                             ; +0x9a, 0x100214baa\nmov     [rbx+148h], rax                                                ; +0xa1, 0x100214bb1\nlea     rax, off_1008DE100                                             ; +0xa8, 0x100214bb8\nmov     [rbx+150h], rax                                                ; +0xaf, 0x100214bbf\nlea     rax, off_1008DE120                                             ; +0xb6, 0x100214bc6\nmov     [rbx+158h], rax                                                ; +0xbd, 0x100214bcd\nlea     rax, off_1008DE140                                             ; +0xc4, 0x100214bd4\nmov     [rbx+160h], rax                                                ; +0xcb, 0x100214bdb\nlea     rax, off_1008DE168                                             ; +0xd2, 0x100214be2\nmov     [rbx+198h], rax                                                ; +0xd9, 0x100214be9\nlea     rax, off_1008DE1E8                                             ; +0xe0, 0x100214bf0\nmov     [rbx+1B0h], rax                                                ; +0xe7, 0x100214bf7\nlea     rax, off_1008DE208                                             ; +0xee, 0x100214bfe\nmov     [rbx+278h], rax                                                ; +0xf5, 0x100214c05\nlea     rax, off_1008DE250                                             ; +0xfc, 0x100214c0c\nmov     [rbx+280h], rax                                                ; +0x103, 0x100214c13\nlea     rax, off_1008DE268                                             ; +0x10a, 0x100214c1a\nmov     [rbx+288h], rax                                                ; +0x111, 0x100214c21\nmov     qword ptr [rbx+2A8h], 0                                        ; +0x118, 0x100214c28\nmovups  xmmword ptr [rbx+290h], xmm0                                   ; +0x123, 0x100214c33\nmov     rdi, rbx                                                       ; +0x12a, 0x100214c3a\nmov     rsi, r14                                                       ; +0x12d, 0x100214c3d\ncall    CustomSongLayer__init                                          ; +0x130, 0x100214c40\ntest    al, al                                                         ; +0x135, 0x100214c45\njz      short loc_100214C53                                            ; +0x137, 0x100214c47\nmov     rdi, rbx                                                       ; +0x139, 0x100214c49\ncall    cocos2d__CCObject__autorelease                                 ; +0x13c, 0x100214c4c\njmp     short loc_100214C5E                                            ; +0x141, 0x100214c51\nmov     rax, [rbx]                                                     ; +0x143, 0x100214c53\nmov     rdi, rbx                                                       ; +0x146, 0x100214c56\ncall    qword ptr [rax+10h]                                            ; +0x149, 0x100214c59\nxor     ebx, ebx                                                       ; +0x14c, 0x100214c5c\nmov     rax, rbx                                                       ; +0x14e, 0x100214c5e\npop     rbx                                                            ; +0x151, 0x100214c61\npop     r14                                                            ; +0x152, 0x100214c62\npop     rbp                                                            ; +0x154, 0x100214c64\nretn                                                                   ; +0x155, 0x100214c65", "xrefs": ["SongSelectNode::onOpenCustomSong @ 0x100219588", "SongSelectNode::showCustomSongSelect @ 0x100219880", "SongSelectNode::FLAlert_Clicked @ 0x1002198f5", "sub_100219920 @ 0x100219962"], "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"}