{"type": "func", "start": 4301367088, "end": 4301367507, "name": "CustomSongWidget::create", "pseudocode": "// \n// CustomSongWidget::create from 0x10061a730 to 0x10061a8d3 (419 bytes)\n// \n// 5 xrefs:\n// > CustomSongLayer::init @ 0x1002157fc\n// > SongSelectNode::init @ 0x100219330\n// > CustomSongCell::loadFromObject @ 0x100243e60\n// > CustomMusicCell::loadFromObject @ 0x10024408e\n// > LevelInfoLayer::init @ 0x1002befa5\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\nCustomSongWidget *__fastcall CustomSongWidget::create(\n        SongInfoObject *a1,\n        CustomSongDelegate *a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7,\n        bool a8,\n        int a9)\n{\n  char *v12; // rbx\n\n  v12 = (char *)operator new(0x278u);\n  cocos2d::CCNode::CCNode((__int64)v12);\n  *(_QWORD *)v12 = off_100981EC8;\n  *((_QWORD *)v12 + 40) = off_1009822A0;\n  *((_QWORD *)v12 + 41) = &off_100982300;\n  *((_QWORD *)v12 + 42) = 0;\n  *((_QWORD *)v12 + 48) = 0;\n  *((_QWORD *)v12 + 50) = 0;\n  *((_QWORD *)v12 + 52) = 0;\n  *((_QWORD *)v12 + 54) = 0;\n  *(_OWORD *)(v12 + 536) = 0;\n  *((_OWORD *)v12 + 22) = 0;\n  *((_QWORD *)v12 + 46) = 0;\n  *((_OWORD *)v12 + 28) = 0;\n  *((_OWORD *)v12 + 29) = 0;\n  *(_OWORD *)(v12 + 478) = 0;\n  *((_QWORD *)v12 + 62) = 0;\n  v12[504] = 0;\n  *(_DWORD *)(v12 + 519) = 0;\n  *((_QWORD *)v12 + 64) = 0;\n  *((_QWORD *)v12 + 66) = v12 + 536;\n  *((_OWORD *)v12 + 35) = 0;\n  *((_QWORD *)v12 + 69) = v12 + 560;\n  *(_OWORD *)(v12 + 616) = 0;\n  *((_OWORD *)v12 + 36) = 0;\n  *(_OWORD *)(v12 + 588) = 0;\n  *((_QWORD *)v12 + 76) = v12 + 616;\n  if ( CustomSongWidget::init((CustomSongWidget *)v12, a1, a2, a3, a4, a5, a6, a7, a8, a9) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v12);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 16LL))(v12);\n    return nullptr;\n  }\n  return (CustomSongWidget *)v12;\n}", "assembly": "; \n; CustomSongWidget::create from 0x10061a730 to 0x10061a8d3 (419 bytes)\n; \n; 5 xrefs:\n; > CustomSongLayer::init @ 0x1002157fc\n; > SongSelectNode::init @ 0x100219330\n; > CustomSongCell::loadFromObject @ 0x100243e60\n; > CustomMusicCell::loadFromObject @ 0x10024408e\n; > LevelInfoLayer::init @ 0x1002befa5\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, 0x10061a730\nmov     rbp, rsp                                                       ; +0x1, 0x10061a731\npush    r15                                                            ; +0x4, 0x10061a734\npush    r14                                                            ; +0x6, 0x10061a736\npush    r13                                                            ; +0x8, 0x10061a738\npush    r12                                                            ; +0xa, 0x10061a73a\npush    rbx                                                            ; +0xc, 0x10061a73c\nsub     rsp, 38h                                                       ; +0xd, 0x10061a73d\nmov     r14d, r9d                                                      ; +0x11, 0x10061a741\nmov     [rbp+var_2C], r8d                                              ; +0x14, 0x10061a744\nmov     r13d, ecx                                                      ; +0x18, 0x10061a748\nmov     r15d, edx                                                      ; +0x1b, 0x10061a74b\nmov     [rbp+var_38], rsi                                              ; +0x1e, 0x10061a74e\nmov     r12, rdi                                                       ; +0x22, 0x10061a752\nmov     edi, 278h; __sz                                                ; +0x25, 0x10061a755\ncall    __Znwm; operator new(ulong)                                    ; +0x2a, 0x10061a75a\nmov     rbx, rax                                                       ; +0x2f, 0x10061a75f\nmov     rdi, rax                                                       ; +0x32, 0x10061a762\ncall    cocos2d__CCNode__CCNode                                        ; +0x35, 0x10061a765\nmov     edx, [rbp+arg_10]                                              ; +0x3a, 0x10061a76a\nmovzx   ecx, [rbp+arg_8]                                               ; +0x3d, 0x10061a76d\nmovzx   eax, [rbp+arg_0]                                               ; +0x41, 0x10061a771\nlea     rsi, off_100981EC8                                             ; +0x45, 0x10061a775\nmov     [rbx], rsi                                                     ; +0x4c, 0x10061a77c\nlea     rsi, off_1009822A0                                             ; +0x4f, 0x10061a77f\nmov     [rbx+140h], rsi                                                ; +0x56, 0x10061a786\nlea     rsi, off_100982300                                             ; +0x5d, 0x10061a78d\nmov     [rbx+148h], rsi                                                ; +0x64, 0x10061a794\nmov     qword ptr [rbx+150h], 0                                        ; +0x6b, 0x10061a79b\nmov     qword ptr [rbx+180h], 0                                        ; +0x76, 0x10061a7a6\nmov     qword ptr [rbx+190h], 0                                        ; +0x81, 0x10061a7b1\nmov     qword ptr [rbx+1A0h], 0                                        ; +0x8c, 0x10061a7bc\nmov     qword ptr [rbx+1B0h], 0                                        ; +0x97, 0x10061a7c7\nlea     rsi, [rbx+218h]                                                ; +0xa2, 0x10061a7d2\nxorps   xmm0, xmm0                                                     ; +0xa9, 0x10061a7d9\nmovups  xmmword ptr [rbx+218h], xmm0                                   ; +0xac, 0x10061a7dc\nmovups  xmmword ptr [rbx+160h], xmm0                                   ; +0xb3, 0x10061a7e3\nmov     qword ptr [rbx+170h], 0                                        ; +0xba, 0x10061a7ea\nmovups  xmmword ptr [rbx+1C0h], xmm0                                   ; +0xc5, 0x10061a7f5\nmovups  xmmword ptr [rbx+1D0h], xmm0                                   ; +0xcc, 0x10061a7fc\nmovups  xmmword ptr [rbx+1DEh], xmm0                                   ; +0xd3, 0x10061a803\nmov     qword ptr [rbx+1F0h], 0                                        ; +0xda, 0x10061a80a\nmov     byte ptr [rbx+1F8h], 0                                         ; +0xe5, 0x10061a815\nmov     dword ptr [rbx+207h], 0                                        ; +0xec, 0x10061a81c\nmov     qword ptr [rbx+200h], 0                                        ; +0xf6, 0x10061a826\nmov     [rbx+210h], rsi                                                ; +0x101, 0x10061a831\nlea     rsi, [rbx+230h]                                                ; +0x108, 0x10061a838\nmovups  xmmword ptr [rbx+230h], xmm0                                   ; +0x10f, 0x10061a83f\nmov     [rbx+228h], rsi                                                ; +0x116, 0x10061a846\nmov     rsi, rbx                                                       ; +0x11d, 0x10061a84d\nadd     rsi, 268h                                                      ; +0x120, 0x10061a850\nmovups  xmmword ptr [rbx+268h], xmm0                                   ; +0x127, 0x10061a857\nmovups  xmmword ptr [rbx+240h], xmm0                                   ; +0x12e, 0x10061a85e\nmovups  xmmword ptr [rbx+24Ch], xmm0                                   ; +0x135, 0x10061a865\nmov     [rbx+260h], rsi                                                ; +0x13c, 0x10061a86c\nmov     [rsp+60h+var_48], edx                                          ; +0x143, 0x10061a873\nmovzx   ecx, cl                                                        ; +0x147, 0x10061a877\nmov     [rsp+60h+var_50], ecx                                          ; +0x14a, 0x10061a87a\nmovzx   eax, al                                                        ; +0x14e, 0x10061a87e\nmov     [rsp+60h+var_58], eax                                          ; +0x151, 0x10061a881\nmovzx   eax, r14b                                                      ; +0x155, 0x10061a885\nmov     [rsp+60h+var_60], eax                                          ; +0x159, 0x10061a889\nmovzx   ecx, r15b                                                      ; +0x15c, 0x10061a88c\nmovzx   r8d, r13b                                                      ; +0x160, 0x10061a890\nmovzx   r9d, byte ptr [rbp+var_2C]                                     ; +0x164, 0x10061a894\nmov     rdi, rbx                                                       ; +0x169, 0x10061a899\nmov     rsi, r12                                                       ; +0x16c, 0x10061a89c\nmov     rdx, [rbp+var_38]                                              ; +0x16f, 0x10061a89f\ncall    CustomSongWidget__init                                         ; +0x173, 0x10061a8a3\ntest    al, al                                                         ; +0x178, 0x10061a8a8\njz      short loc_10061A8B6                                            ; +0x17a, 0x10061a8aa\nmov     rdi, rbx                                                       ; +0x17c, 0x10061a8ac\ncall    cocos2d__CCObject__autorelease                                 ; +0x17f, 0x10061a8af\njmp     short loc_10061A8C1                                            ; +0x184, 0x10061a8b4\nmov     rax, [rbx]                                                     ; +0x186, 0x10061a8b6\nmov     rdi, rbx                                                       ; +0x189, 0x10061a8b9\ncall    qword ptr [rax+10h]                                            ; +0x18c, 0x10061a8bc\nxor     ebx, ebx                                                       ; +0x18f, 0x10061a8bf\nmov     rax, rbx                                                       ; +0x191, 0x10061a8c1\nadd     rsp, 38h                                                       ; +0x194, 0x10061a8c4\npop     rbx                                                            ; +0x198, 0x10061a8c8\npop     r12                                                            ; +0x199, 0x10061a8c9\npop     r13                                                            ; +0x19b, 0x10061a8cb\npop     r14                                                            ; +0x19d, 0x10061a8cd\npop     r15                                                            ; +0x19f, 0x10061a8cf\npop     rbp                                                            ; +0x1a1, 0x10061a8d1\nretn                                                                   ; +0x1a2, 0x10061a8d2", "xrefs": ["CustomSongLayer::init @ 0x1002157fc", "SongSelectNode::init @ 0x100219330", "CustomSongCell::loadFromObject @ 0x100243e60", "CustomMusicCell::loadFromObject @ 0x10024408e", "LevelInfoLayer::init @ 0x1002befa5"], "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"}