{"type": "func", "start": 5754000, "end": 5754168, "name": "CustomSongLayer::create", "pseudocode": "// \n// CustomSongLayer::create from 0x57cc90 to 0x57cd38 (168 bytes)\n// \n// 1 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x57cd48\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:50 +0000\n// \n\nFLAlertLayer *__fastcall CustomSongLayer::create(CustomSongLayer *this, CustomSongDelegate *a2)\n{\n  FLAlertLayer *v3; // r4\n  int v4; // r3\n  FLAlertLayer *v5; // r0\n\n  v3 = (FLAlertLayer *)operator new(0x220u);\n  FLAlertLayer::FLAlertLayer(v3);\n  *(_DWORD *)v3 = &off_CB1558;\n  *((_DWORD *)v3 + 66) = &off_CB1814;\n  *((_DWORD *)v3 + 67) = &off_CB184C;\n  *((_DWORD *)v3 + 68) = &off_CB1858;\n  *((_DWORD *)v3 + 69) = &off_CB1868;\n  *((_DWORD *)v3 + 70) = &off_CB187C;\n  *((_DWORD *)v3 + 79) = &off_CB1894;\n  *((_DWORD *)v3 + 83) = &off_CB18D4;\n  *((_DWORD *)v3 + 110) = &off_CB18E4;\n  *((_DWORD *)v3 + 130) = &off_CB1908;\n  *((_DWORD *)v3 + 131) = &off_CB1914;\n  *((_DWORD *)v3 + 132) = 0;\n  *((_DWORD *)v3 + 133) = 0;\n  *((_DWORD *)v3 + 135) = 0;\n  if ( CustomSongLayer::init(v3, this) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    v4 = *(_DWORD *)v3;\n    v5 = v3;\n    v3 = nullptr;\n    (*(void (__fastcall **)(FLAlertLayer *))(v4 + 8))(v5);\n  }\n  return v3;\n}", "assembly": "; \n; CustomSongLayer::create from 0x57cc90 to 0x57cd38 (168 bytes)\n; \n; 1 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x57cd48\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:50 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x57cc90\nMOV             R5, R0                                                 ; +0x2, 0x57cc92\nMOV.W           R0, #0x220; unsigned int                               ; +0x4, 0x57cc94\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x57cc98\nMOV             R4, R0                                                 ; +0xc, 0x57cc9c\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0xe, 0x57cc9e\nLDR             R3, =(_ZTV15CustomSongLayer_ptr - 0x57CCAC)            ; +0x12, 0x57cca2\nMOV             R1, R5; CustomSongDelegate *                           ; +0x14, 0x57cca4\nMOV             R0, R4; this                                           ; +0x16, 0x57cca6\nADD             R3, PC; _ZTV15CustomSongLayer_ptr                      ; +0x18, 0x57cca8\nLDR             R3, [R3]; `vtable for'CustomSongLayer ...              ; +0x1a, 0x57ccaa\nADD.W           R2, R3, #8                                             ; +0x1c, 0x57ccac\nSTR             R2, [R4]                                               ; +0x20, 0x57ccb0\nADD.W           R2, R3, #0x2C4                                         ; +0x22, 0x57ccb2\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x57ccb6\nADD.W           R2, R3, #0x2FC                                         ; +0x2a, 0x57ccba\nSTR.W           R2, [R4,#0x10C]                                        ; +0x2e, 0x57ccbe\nADD.W           R2, R3, #0x308                                         ; +0x32, 0x57ccc2\nSTR.W           R2, [R4,#0x110]                                        ; +0x36, 0x57ccc6\nADD.W           R2, R3, #0x318                                         ; +0x3a, 0x57ccca\nSTR.W           R2, [R4,#0x114]                                        ; +0x3e, 0x57ccce\nADD.W           R2, R3, #0x32C                                         ; +0x42, 0x57ccd2\nSTR.W           R2, [R4,#0x118]                                        ; +0x46, 0x57ccd6\nADD.W           R2, R3, #0x344                                         ; +0x4a, 0x57ccda\nSTR.W           R2, [R4,#0x13C]                                        ; +0x4e, 0x57ccde\nADD.W           R2, R3, #0x384                                         ; +0x52, 0x57cce2\nSTR.W           R2, [R4,#0x14C]                                        ; +0x56, 0x57cce6\nADD.W           R2, R3, #0x394                                         ; +0x5a, 0x57ccea\nSTR.W           R2, [R4,#0x1B8]                                        ; +0x5e, 0x57ccee\nADD.W           R2, R3, #0x3B8                                         ; +0x62, 0x57ccf2\nADD.W           R3, R3, #0x3C4                                         ; +0x66, 0x57ccf6\nSTR.W           R2, [R4,#0x208]                                        ; +0x6a, 0x57ccfa\nSTR.W           R3, [R4,#0x20C]                                        ; +0x6e, 0x57ccfe\nMOVS            R3, #0                                                 ; +0x72, 0x57cd02\nSTR.W           R3, [R4,#0x210]                                        ; +0x74, 0x57cd04\nSTR.W           R3, [R4,#0x214]                                        ; +0x78, 0x57cd08\nSTR.W           R3, [R4,#0x21C]                                        ; +0x7c, 0x57cd0c\nBL              _ZN15CustomSongLayer4initEP18CustomSongDelegate; CustomSongLayer::init(CustomSongDelegate *) ; +0x80, 0x57cd10\nMOV             R5, R0                                                 ; +0x84, 0x57cd14\nCBZ             R0, loc_57CD2A                                         ; +0x86, 0x57cd16\nMOV             R0, R4; this                                           ; +0x88, 0x57cd18\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x8a, 0x57cd1a\nB               loc_57CD34                                             ; +0x8e, 0x57cd1e\nMOV             R0, R4; void *                                         ; +0x90, 0x57cd20\nBL              _ZdlPv; operator delete(void *)                        ; +0x92, 0x57cd22\nBL              __cxa_end_cleanup                                      ; +0x96, 0x57cd26\nLDR             R3, [R4]                                               ; +0x9a, 0x57cd2a\nMOV             R0, R4                                                 ; +0x9c, 0x57cd2c\nMOV             R4, R5                                                 ; +0x9e, 0x57cd2e\nLDR             R3, [R3,#8]                                            ; +0xa0, 0x57cd30\nBLX             R3                                                     ; +0xa2, 0x57cd32\nMOV             R0, R4                                                 ; +0xa4, 0x57cd34\nPOP             {R3-R5,PC}                                             ; +0xa6, 0x57cd36", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x57cd48"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}