{"type": "func", "start": 9966276, "end": 9966712, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x9812c4 to 0x981478 (436 bytes)\n// \n// 2 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x981490\n// > <???> @ 0xbbe28\n// \n// This function is hookable on this platform (idp: arm, 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:57:51 +0000\n// \n\n__int64 __fastcall CustomSongLayer::create(CustomSongLayer *this, CustomSongDelegate *a2)\n{\n  __int64 v3; // x19\n\n  v3 = operator new(0x2C8u);\n  cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);\n  *(_QWORD *)(v3 + 552) = 0;\n  *(_QWORD *)v3 = &off_1419A40;\n  *(_QWORD *)(v3 + 320) = off_1419F90;\n  *(_QWORD *)(v3 + 328) = &off_141A000;\n  *(_QWORD *)(v3 + 336) = off_141A018;\n  *(_QWORD *)(v3 + 344) = off_141A038;\n  *(_QWORD *)(v3 + 352) = off_141A060;\n  *(_QWORD *)(v3 + 408) = &off_141A090;\n  *(_QWORD *)(v3 + 432) = &off_141A110;\n  *(_QWORD *)(v3 + 544) = off_141A130;\n  *(_QWORD *)(v3 + 560) = 0;\n  *(_QWORD *)(v3 + 568) = 0;\n  *(_BYTE *)(v3 + 576) = 0;\n  *(_QWORD *)(v3 + 584) = 0;\n  *(_DWORD *)(v3 + 592) = 0;\n  *(_BYTE *)(v3 + 596) = 0;\n  *(_BYTE *)(v3 + 597) = 0;\n  *(_BYTE *)(v3 + 598) = 0;\n  *(_BYTE *)(v3 + 599) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 600));\n  *(_DWORD *)(v3 + 632) = -1;\n  *(_DWORD *)(v3 + 640) = -1;\n  *(_QWORD *)(v3 + 608) = 0;\n  *(_QWORD *)(v3 + 616) = 0;\n  *(_QWORD *)(v3 + 624) = 0;\n  *(_BYTE *)(v3 + 636) = 0;\n  *(_BYTE *)(v3 + 637) = 0;\n  *(_BYTE *)(v3 + 644) = 0;\n  *(_BYTE *)(v3 + 656) = 0;\n  *(_DWORD *)(v3 + 648) = 0;\n  *(_DWORD *)(v3 + 652) = 0;\n  *(_QWORD *)(v3 + 680) = 0;\n  *(_QWORD *)v3 = &off_146F250;\n  *(_QWORD *)(v3 + 320) = off_146F7C8;\n  *(_QWORD *)(v3 + 328) = &off_146F838;\n  *(_QWORD *)(v3 + 336) = off_146F850;\n  *(_QWORD *)(v3 + 344) = off_146F870;\n  *(_QWORD *)(v3 + 352) = off_146F898;\n  *(_QWORD *)(v3 + 408) = &off_146F8C8;\n  *(_QWORD *)(v3 + 432) = &off_146F948;\n  *(_QWORD *)(v3 + 544) = off_146F968;\n  *(_QWORD *)(v3 + 664) = &off_146F9B0;\n  *(_QWORD *)(v3 + 672) = &off_146F9C8;\n  *(_QWORD *)(v3 + 688) = 0;\n  *(_QWORD *)(v3 + 704) = 0;\n  if ( (unsigned __int8)CustomSongLayer::init((SongInfoObject **)v3, this) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n    return v3;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);\n    return 0;\n  }\n}", "assembly": "; \n; CustomSongLayer::create from 0x9812c4 to 0x981478 (436 bytes)\n; \n; 2 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x981490\n; > <???> @ 0xbbe28\n; \n; This function is hookable on this platform (idp: arm, 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:57:51 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x9812c4\nMOV             X29, SP                                                ; +0x4, 0x9812c8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x9812cc\nMOV             X20, X0                                                ; +0xc, 0x9812d0\nMOV             X0, #0x2C8; unsigned __int64                           ; +0x10, 0x9812d4\nBL              _Znwm; operator new(ulong)                             ; +0x14, 0x9812d8\nMOV             X19, X0                                                ; +0x18, 0x9812dc\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x1c, 0x9812e0\nADRP            X1, #_ZTV12FLAlertLayer_ptr@PAGE                       ; +0x20, 0x9812e4\nADD             X0, X19, #0x258; this                                  ; +0x24, 0x9812e8\nLDR             X1, [X1,#_ZTV12FLAlertLayer_ptr@PAGEOFF]; `vtable for'FLAlertLayer ... ; +0x28, 0x9812ec\nSTR             XZR, [X19,#0x228]                                      ; +0x2c, 0x9812f0\nADD             X9, X1, #0x10                                          ; +0x30, 0x9812f4\nADD             X8, X1, #0x560                                         ; +0x34, 0x9812f8\nADD             X7, X1, #0x5D0                                         ; +0x38, 0x9812fc\nADD             X6, X1, #0x5E8                                         ; +0x3c, 0x981300\nADD             X5, X1, #0x608                                         ; +0x40, 0x981304\nADD             X4, X1, #0x630                                         ; +0x44, 0x981308\nADD             X3, X1, #0x660                                         ; +0x48, 0x98130c\nADD             X2, X1, #0x6E0                                         ; +0x4c, 0x981310\nSTR             X9, [X19]                                              ; +0x50, 0x981314\nADD             X1, X1, #0x700                                         ; +0x54, 0x981318\nSTR             X8, [X19,#0x140]                                       ; +0x58, 0x98131c\nSTR             X7, [X19,#0x148]                                       ; +0x5c, 0x981320\nSTR             X6, [X19,#0x150]                                       ; +0x60, 0x981324\nSTR             X5, [X19,#0x158]                                       ; +0x64, 0x981328\nSTR             X4, [X19,#0x160]                                       ; +0x68, 0x98132c\nSTR             X3, [X19,#0x198]                                       ; +0x6c, 0x981330\nSTR             X2, [X19,#0x1B0]                                       ; +0x70, 0x981334\nSTR             X1, [X19,#0x220]                                       ; +0x74, 0x981338\nSTR             XZR, [X19,#0x230]                                      ; +0x78, 0x98133c\nSTR             XZR, [X19,#0x238]                                      ; +0x7c, 0x981340\nSTRB            WZR, [X19,#0x240]                                      ; +0x80, 0x981344\nSTR             XZR, [X19,#0x248]                                      ; +0x84, 0x981348\nSTR             WZR, [X19,#0x250]                                      ; +0x88, 0x98134c\nSTRB            WZR, [X19,#0x254]                                      ; +0x8c, 0x981350\nSTRB            WZR, [X19,#0x255]                                      ; +0x90, 0x981354\nSTRB            WZR, [X19,#0x256]                                      ; +0x94, 0x981358\nSTRB            WZR, [X19,#0x257]                                      ; +0x98, 0x98135c\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x9c, 0x981360\nFMOV            S0, WZR                                                ; +0xa0, 0x981364\nMOV             W2, #0xFFFFFFFF                                        ; +0xa4, 0x981368\nSTR             W2, [X19,#0x278]                                       ; +0xa8, 0x98136c\nMOV             X0, X19; this                                          ; +0xac, 0x981370\nSTR             W2, [X19,#0x280]                                       ; +0xb0, 0x981374\nADRP            X2, #_ZTV15CustomSongLayer_ptr@PAGE                    ; +0xb4, 0x981378\nSTR             XZR, [X19,#0x260]                                      ; +0xb8, 0x98137c\nMOV             X1, X20; CustomSongDelegate *                          ; +0xbc, 0x981380\nSTR             XZR, [X19,#0x268]                                      ; +0xc0, 0x981384\nSTR             XZR, [X19,#0x270]                                      ; +0xc4, 0x981388\nSTRB            WZR, [X19,#0x27C]                                      ; +0xc8, 0x98138c\nSTRB            WZR, [X19,#0x27D]                                      ; +0xcc, 0x981390\nSTRB            WZR, [X19,#0x284]                                      ; +0xd0, 0x981394\nSTRB            WZR, [X19,#0x290]                                      ; +0xd4, 0x981398\nSTR             S0, [X19,#0x288]                                       ; +0xd8, 0x98139c\nSTR             S0, [X19,#0x28C]                                       ; +0xdc, 0x9813a0\nLDR             X2, [X2,#_ZTV15CustomSongLayer_ptr@PAGEOFF]; `vtable for'CustomSongLayer ... ; +0xe0, 0x9813a4\nSTR             XZR, [X19,#0x2A8]                                      ; +0xe4, 0x9813a8\nADD             X12, X2, #0x10                                         ; +0xe8, 0x9813ac\nADD             X11, X2, #0x588                                        ; +0xec, 0x9813b0\nADD             X10, X2, #0x5F8                                        ; +0xf0, 0x9813b4\nADD             X9, X2, #0x610                                         ; +0xf4, 0x9813b8\nADD             X8, X2, #0x630                                         ; +0xf8, 0x9813bc\nADD             X7, X2, #0x658                                         ; +0xfc, 0x9813c0\nADD             X6, X2, #0x688                                         ; +0x100, 0x9813c4\nADD             X5, X2, #0x708                                         ; +0x104, 0x9813c8\nADD             X4, X2, #0x728                                         ; +0x108, 0x9813cc\nADD             X3, X2, #0x770                                         ; +0x10c, 0x9813d0\nSTR             X12, [X19]                                             ; +0x110, 0x9813d4\nADD             X2, X2, #0x788                                         ; +0x114, 0x9813d8\nSTR             X11, [X19,#0x140]                                      ; +0x118, 0x9813dc\nSTR             X10, [X19,#0x148]                                      ; +0x11c, 0x9813e0\nSTR             X9, [X19,#0x150]                                       ; +0x120, 0x9813e4\nSTR             X8, [X19,#0x158]                                       ; +0x124, 0x9813e8\nSTR             X7, [X19,#0x160]                                       ; +0x128, 0x9813ec\nSTR             X6, [X19,#0x198]                                       ; +0x12c, 0x9813f0\nSTR             X5, [X19,#0x1B0]                                       ; +0x130, 0x9813f4\nSTR             X4, [X19,#0x220]                                       ; +0x134, 0x9813f8\nSTR             X3, [X19,#0x298]                                       ; +0x138, 0x9813fc\nSTR             X2, [X19,#0x2A0]                                       ; +0x13c, 0x981400\nSTR             XZR, [X19,#0x2B0]                                      ; +0x140, 0x981404\nSTR             XZR, [X19,#0x2C0]                                      ; +0x144, 0x981408\nBL              _ZN15CustomSongLayer4initEP18CustomSongDelegate; CustomSongLayer::init(CustomSongDelegate *) ; +0x148, 0x98140c\nUXTB            W0, W0                                                 ; +0x14c, 0x981410\nCBZ             W0, loc_981430                                         ; +0x150, 0x981414\nMOV             X0, X19; this                                          ; +0x154, 0x981418\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x158, 0x98141c\nMOV             X0, X19                                                ; +0x15c, 0x981420\nLDP             X19, X20, [SP,#var_s10]                                ; +0x160, 0x981424\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x164, 0x981428\nRET                                                                    ; +0x168, 0x98142c\nLDR             X1, [X19]                                              ; +0x16c, 0x981430\nMOV             X0, X19                                                ; +0x170, 0x981434\nMOV             X19, #0                                                ; +0x174, 0x981438\nLDR             X1, [X1,#0x10]                                         ; +0x178, 0x98143c\nBLR             X1                                                     ; +0x17c, 0x981440\nMOV             X0, X19                                                ; +0x180, 0x981444\nLDP             X19, X20, [SP,#var_s10]                                ; +0x184, 0x981448\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x188, 0x98144c\nRET                                                                    ; +0x18c, 0x981450\nMOV             X20, X0                                                ; +0x190, 0x981454\nMOV             X0, X19; void *                                        ; +0x194, 0x981458\nBL              _ZdlPv; operator delete(void *)                        ; +0x198, 0x98145c\nMOV             X0, X20                                                ; +0x19c, 0x981460\nBL              _Unwind_Resume                                         ; +0x1a0, 0x981464\nMOV             X20, X0                                                ; +0x1a4, 0x981468\nMOV             X0, X19; this                                          ; +0x1a8, 0x98146c\nBL              _ZN7cocos2d12CCLayerColorD1Ev; cocos2d::CCLayerColor::~CCLayerColor() ; +0x1ac, 0x981470\nB               loc_981458                                             ; +0x1b0, 0x981474", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x981490", "<???> @ 0xbbe28"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}