{"type": "func", "start": 6972408, "end": 6972538, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x6a63f8 to 0x6a647a (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:56:30 +0000\n// \n\nint __fastcall CustomSFXWidget::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 SFX?\", 0x27u);\n    v3 = FLAlertLayer::create(\n           v2 + 268,\n           (cocos2d::CCLabelBMFont *)\"Delete SFX\",\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, 3);\n    return (*(int (__fastcall **)(int *))(*v3 + 656))(v3);\n  }\n  return this;\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x6a63f8 to 0x6a647a (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:56:30 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x6A6400)                ; +0x0, 0x6a63f8\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x6a63fa\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x6a63fc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x6a63fe\nSUB             SP, SP, #0x18                                          ; +0x8, 0x6a6400\nMOV             R5, R0                                                 ; +0xa, 0x6a6402\nLDR             R2, [R3]                                               ; +0xc, 0x6a6404\nMOV             R6, R3                                                 ; +0xe, 0x6a6406\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x6a6408\nLDR.W           R2, [R0,#0x110]                                        ; +0x12, 0x6a640a\nCBZ             R2, loc_6A646A                                         ; +0x16, 0x6a640e\nADD             R4, SP, #0x18+var_10                                   ; +0x18, 0x6a6410\nLDR             R1, =(aDoYouWantToCrD_2 - 0x6A641E); \"Do you want to <cr>Delete</c> this SFX?\" ; +0x1a, 0x6a6412\nMOVS            R2, #0x27 ; '''                                        ; +0x1c, 0x6a6414\nMOVS            R3, #0                                                 ; +0x1e, 0x6a6416\nMOV             R0, R4                                                 ; +0x20, 0x6a6418\nADD             R1, PC; \"Do you want to <cr>Delete</c> this SFX?\"      ; +0x22, 0x6a641a\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x24, 0x6a641c\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x26, 0x6a641e\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x28, 0x6a6420\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2a, 0x6a6422\nLDR             R3, =(aDelete - 0x6A6434); \"Delete\"                    ; +0x2e, 0x6a6426\nADD.W           R0, R5, #0x10C; int                                    ; +0x30, 0x6a6428\nLDR             R1, =(aDeleteSfx - 0x6A643A); \"Delete SFX\"             ; +0x34, 0x6a642c\nMOV             R2, R4; int                                            ; +0x36, 0x6a642e\nADD             R3, PC; \"Delete\"                                       ; +0x38, 0x6a6430\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x3a, 0x6a6432\nLDR             R3, flt_6A647C                                         ; +0x3c, 0x6a6434\nADD             R1, PC; \"Delete SFX\"                                   ; +0x3e, 0x6a6436\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x40, 0x6a6438\nLDR             R3, =(aCancel - 0x6A6440); \"Cancel\"                    ; +0x42, 0x6a643a\nADD             R3, PC; \"Cancel\"                                       ; +0x44, 0x6a643c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x46, 0x6a643e\nMOV             R5, R0                                                 ; +0x4a, 0x6a6442\nMOV             R0, R4                                                 ; +0x4c, 0x6a6444\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x6a6446\nLDR             R3, [R5]                                               ; +0x52, 0x6a644a\nMOV             R0, R5                                                 ; +0x54, 0x6a644c\nMOVS            R1, #3                                                 ; +0x56, 0x6a644e\nLDR             R3, [R3,#0x24]                                         ; +0x58, 0x6a6450\nBLX             R3                                                     ; +0x5a, 0x6a6452\nLDR             R3, [R5]                                               ; +0x5c, 0x6a6454\nMOV             R0, R5                                                 ; +0x5e, 0x6a6456\nLDR.W           R3, [R3,#0x290]                                        ; +0x60, 0x6a6458\nBLX             R3                                                     ; +0x64, 0x6a645c\nB               loc_6A646A                                             ; +0x66, 0x6a645e\nMOV             R0, R4                                                 ; +0x68, 0x6a6460\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x6a6462\nBL              __cxa_end_cleanup                                      ; +0x6e, 0x6a6466\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x72, 0x6a646a\nLDR             R3, [R6]                                               ; +0x74, 0x6a646c\nCMP             R2, R3                                                 ; +0x76, 0x6a646e\nBEQ             loc_6A6476                                             ; +0x78, 0x6a6470\nBLX             __stack_chk_fail                                       ; +0x7a, 0x6a6472\nADD             SP, SP, #0x18                                          ; +0x7e, 0x6a6476\nPOP             {R4-R6,PC}                                             ; +0x80, 0x6a6478", "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"}