{"type": "func", "start": 5122640, "end": 5122770, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x4e2a50 to 0x4e2ad2 (130 bytes)\n// \n// 0 xrefs:\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:51:02 +0000\n// \n\nint __fastcall CustomSongWidget::onDelete(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r5\n  int *v3; // r5\n  int v4[3]; // [sp+8h] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *(_DWORD *)(this + 272) )\n  {\n    memset(v4, 0, sizeof(v4));\n    std::string::__init(v4, \"Do you want to <cr>delete</c> this song?\", 0x28u);\n    v3 = FLAlertLayer::create(\n           v2 + 268,\n           (cocos2d::CCLabelBMFont *)\"Delete Song\",\n           (int)v4,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Delete\",\n           300.0);\n    std::string::~string((int)v4);\n    (*(void (__fastcall **)(int *, int))(*v3 + 36))(v3, 2);\n    return (*(int (__fastcall **)(int *))(*v3 + 656))(v3);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x4e2a50 to 0x4e2ad2 (130 bytes)\n; \n; 0 xrefs:\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:51:02 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E2A58)                ; +0x0, 0x4e2a50\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x4e2a52\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4e2a54\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4e2a56\nSUB             SP, SP, #0x18                                          ; +0x8, 0x4e2a58\nMOV             R5, R0                                                 ; +0xa, 0x4e2a5a\nLDR             R2, [R3]                                               ; +0xc, 0x4e2a5c\nMOV             R6, R3                                                 ; +0xe, 0x4e2a5e\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x4e2a60\nLDR.W           R2, [R0,#0x110]                                        ; +0x12, 0x4e2a62\nCBZ             R2, loc_4E2AC2                                         ; +0x16, 0x4e2a66\nADD             R4, SP, #0x18+var_10                                   ; +0x18, 0x4e2a68\nLDR             R1, =(aDoYouWantToCrD_0 - 0x4E2A76); \"Do you want to <cr>delete</c> this song\"... ; +0x1a, 0x4e2a6a\nMOVS            R2, #0x28 ; '('                                        ; +0x1c, 0x4e2a6c\nMOVS            R3, #0                                                 ; +0x1e, 0x4e2a6e\nMOV             R0, R4                                                 ; +0x20, 0x4e2a70\nADD             R1, PC; \"Do you want to <cr>delete</c> this song\"...   ; +0x22, 0x4e2a72\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x24, 0x4e2a74\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x26, 0x4e2a76\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x28, 0x4e2a78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2a, 0x4e2a7a\nLDR             R3, =(aDelete - 0x4E2A8C); \"Delete\"                    ; +0x2e, 0x4e2a7e\nADD.W           R0, R5, #0x10C; int                                    ; +0x30, 0x4e2a80\nLDR             R1, =(aDeleteSong - 0x4E2A92); \"Delete Song\"           ; +0x34, 0x4e2a84\nMOV             R2, R4; int                                            ; +0x36, 0x4e2a86\nADD             R3, PC; \"Delete\"                                       ; +0x38, 0x4e2a88\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x3a, 0x4e2a8a\nLDR             R3, flt_4E2AD4                                         ; +0x3c, 0x4e2a8c\nADD             R1, PC; \"Delete Song\"                                  ; +0x3e, 0x4e2a8e\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x40, 0x4e2a90\nLDR             R3, =(aCancel - 0x4E2A98); \"Cancel\"                    ; +0x42, 0x4e2a92\nADD             R3, PC; \"Cancel\"                                       ; +0x44, 0x4e2a94\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x46, 0x4e2a96\nMOV             R5, R0                                                 ; +0x4a, 0x4e2a9a\nMOV             R0, R4                                                 ; +0x4c, 0x4e2a9c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x4e2a9e\nLDR             R3, [R5]                                               ; +0x52, 0x4e2aa2\nMOV             R0, R5                                                 ; +0x54, 0x4e2aa4\nMOVS            R1, #2                                                 ; +0x56, 0x4e2aa6\nLDR             R3, [R3,#0x24]                                         ; +0x58, 0x4e2aa8\nBLX             R3                                                     ; +0x5a, 0x4e2aaa\nLDR             R3, [R5]                                               ; +0x5c, 0x4e2aac\nMOV             R0, R5                                                 ; +0x5e, 0x4e2aae\nLDR.W           R3, [R3,#0x290]                                        ; +0x60, 0x4e2ab0\nBLX             R3                                                     ; +0x64, 0x4e2ab4\nB               loc_4E2AC2                                             ; +0x66, 0x4e2ab6\nMOV             R0, R4                                                 ; +0x68, 0x4e2ab8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x4e2aba\nBL              __cxa_end_cleanup                                      ; +0x6e, 0x4e2abe\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x72, 0x4e2ac2\nLDR             R3, [R6]                                               ; +0x74, 0x4e2ac4\nCMP             R2, R3                                                 ; +0x76, 0x4e2ac6\nBEQ             loc_4E2ACE                                             ; +0x78, 0x4e2ac8\nBLX             __stack_chk_fail                                       ; +0x7a, 0x4e2aca\nADD             SP, SP, #0x18                                          ; +0x7e, 0x4e2ace\nPOP             {R4-R6,PC}                                             ; +0x80, 0x4e2ad0", "xrefs": [], "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"}