{"type": "func", "start": 4051444, "end": 4051566, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x3dd1f4 to 0x3dd26e (122 bytes)\n// \n// 0 xrefs:\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\nvoid CustomSongWidget::onDelete(CustomSongWidget *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // r5\n  _BYTE v4[4]; // [sp+10h] [bp-8h] BYREF\n\n  if ( a1->m_songInfoObject )\n  {\n    sub_776584((int)v4, \"Do you want to <cr>delete</c> this song?\");\n    v3 = FLAlertLayer::create(\n           (int)&a1->FLAlertLayerProtocol,\n           (int)\"Delete Song\",\n           (int)v4,\n           (int)\"Cancel\",\n           (int)\"Delete\",\n           300.0);\n    sub_774008(v4);\n    v3->setTag(v3, 2);\n    v3->show(v3);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x3dd1f4 to 0x3dd26e (122 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3DD1FC)                ; +0x0, 0x3dd1f4\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x3dd1f6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3dd1f8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3dd1fa\nSUB             SP, SP, #0x18                                          ; +0x8, 0x3dd1fc\nMOV             R5, R0                                                 ; +0xa, 0x3dd1fe\nLDR             R2, [R3]                                               ; +0xc, 0x3dd200\nMOV             R6, R3                                                 ; +0xe, 0x3dd202\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x3dd204\nLDR.W           R2, [R0,#0x110]                                        ; +0x12, 0x3dd206\nCBZ             R2, loc_3DD25E                                         ; +0x16, 0x3dd20a\nADD             R4, SP, #0x18+var_8                                    ; +0x18, 0x3dd20c\nLDR             R1, =(aDoYouWantToCrD_1 - 0x3DD216); \"Do you want to <cr>delete</c> this song\"... ; +0x1a, 0x3dd20e\nADD             R2, SP, #0x18+var_C                                    ; +0x1c, 0x3dd210\nADD             R1, PC; \"Do you want to <cr>delete</c> this song\"...   ; +0x1e, 0x3dd212\nMOV             R0, R4; int                                            ; +0x20, 0x3dd214\nBL              sub_776584                                             ; +0x22, 0x3dd216\nLDR             R3, =(aDelete - 0x3DD226); \"Delete\"                    ; +0x26, 0x3dd21a\nLDR             R1, =(aDeleteSong - 0x3DD22C); \"Delete Song\"           ; +0x28, 0x3dd21c\nADD.W           R0, R5, #0x10C; int                                    ; +0x2a, 0x3dd21e\nADD             R3, PC; \"Delete\"                                       ; +0x2e, 0x3dd222\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x30, 0x3dd224\nLDR             R3, flt_3DD270                                         ; +0x32, 0x3dd226\nADD             R1, PC; \"Delete Song\"                                  ; +0x34, 0x3dd228\nMOV             R2, R4; int                                            ; +0x36, 0x3dd22a\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x3dd22c\nLDR             R3, =(aCancel - 0x3DD234); \"Cancel\"                    ; +0x3a, 0x3dd22e\nADD             R3, PC; \"Cancel\"                                       ; +0x3c, 0x3dd230\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x3dd232\nMOV             R5, R0                                                 ; +0x42, 0x3dd236\nMOV             R0, R4                                                 ; +0x44, 0x3dd238\nBL              sub_774008                                             ; +0x46, 0x3dd23a\nLDR             R3, [R5]                                               ; +0x4a, 0x3dd23e\nMOV             R0, R5                                                 ; +0x4c, 0x3dd240\nMOVS            R1, #2                                                 ; +0x4e, 0x3dd242\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x3dd244\nBLX             R3                                                     ; +0x52, 0x3dd246\nLDR             R3, [R5]                                               ; +0x54, 0x3dd248\nMOV             R0, R5                                                 ; +0x56, 0x3dd24a\nLDR.W           R3, [R3,#0x284]                                        ; +0x58, 0x3dd24c\nBLX             R3                                                     ; +0x5c, 0x3dd250\nB               loc_3DD25E                                             ; +0x5e, 0x3dd252\nMOV             R0, R4                                                 ; +0x60, 0x3dd254\nBL              sub_774008                                             ; +0x62, 0x3dd256\nBL              __cxa_end_cleanup                                      ; +0x66, 0x3dd25a\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6a, 0x3dd25e\nLDR             R3, [R6]                                               ; +0x6c, 0x3dd260\nCMP             R2, R3                                                 ; +0x6e, 0x3dd262\nBEQ             loc_3DD26A                                             ; +0x70, 0x3dd264\nBLX             __stack_chk_fail                                       ; +0x72, 0x3dd266\nADD             SP, SP, #0x18                                          ; +0x76, 0x3dd26a\nPOP             {R4-R6,PC}                                             ; +0x78, 0x3dd26c", "xrefs": [], "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"}