{"type": "func", "start": 5692280, "end": 5692402, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x56db78 to 0x56dbf2 (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 CustomSFXWidget::onDelete(CustomSFXWidget *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // r5\n  _BYTE v4[4]; // [sp+10h] [bp-8h] BYREF\n\n  if ( a1->m_sfxObject )\n  {\n    sub_776584((int)v4, \"Do you want to <cr>Delete</c> this SFX?\");\n    v3 = FLAlertLayer::create(\n           (int)&a1->FLAlertLayerProtocol,\n           (int)\"Delete SFX\",\n           (int)v4,\n           (int)\"Cancel\",\n           (int)\"Delete\",\n           300.0);\n    sub_774008(v4);\n    v3->setTag(v3, 3);\n    v3->show(v3);\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x56db78 to 0x56dbf2 (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 - 0x56DB80)                ; +0x0, 0x56db78\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x56db7a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x56db7c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x56db7e\nSUB             SP, SP, #0x18                                          ; +0x8, 0x56db80\nMOV             R5, R0                                                 ; +0xa, 0x56db82\nLDR             R2, [R3]                                               ; +0xc, 0x56db84\nMOV             R6, R3                                                 ; +0xe, 0x56db86\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x56db88\nLDR.W           R2, [R0,#0x110]                                        ; +0x12, 0x56db8a\nCBZ             R2, loc_56DBE2                                         ; +0x16, 0x56db8e\nADD             R4, SP, #0x18+var_8                                    ; +0x18, 0x56db90\nLDR             R1, =(aDoYouWantToCrD_3 - 0x56DB9A); \"Do you want to <cr>Delete</c> this SFX?\" ; +0x1a, 0x56db92\nADD             R2, SP, #0x18+var_C                                    ; +0x1c, 0x56db94\nADD             R1, PC; \"Do you want to <cr>Delete</c> this SFX?\"      ; +0x1e, 0x56db96\nMOV             R0, R4; int                                            ; +0x20, 0x56db98\nBL              sub_776584                                             ; +0x22, 0x56db9a\nLDR             R3, =(aDelete - 0x56DBAA); \"Delete\"                    ; +0x26, 0x56db9e\nLDR             R1, =(aDeleteSfx - 0x56DBB0); \"Delete SFX\"             ; +0x28, 0x56dba0\nADD.W           R0, R5, #0x10C; int                                    ; +0x2a, 0x56dba2\nADD             R3, PC; \"Delete\"                                       ; +0x2e, 0x56dba6\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x30, 0x56dba8\nLDR             R3, flt_56DBF4                                         ; +0x32, 0x56dbaa\nADD             R1, PC; \"Delete SFX\"                                   ; +0x34, 0x56dbac\nMOV             R2, R4; int                                            ; +0x36, 0x56dbae\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x56dbb0\nLDR             R3, =(aCancel - 0x56DBB8); \"Cancel\"                    ; +0x3a, 0x56dbb2\nADD             R3, PC; \"Cancel\"                                       ; +0x3c, 0x56dbb4\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x56dbb6\nMOV             R5, R0                                                 ; +0x42, 0x56dbba\nMOV             R0, R4                                                 ; +0x44, 0x56dbbc\nBL              sub_774008                                             ; +0x46, 0x56dbbe\nLDR             R3, [R5]                                               ; +0x4a, 0x56dbc2\nMOV             R0, R5                                                 ; +0x4c, 0x56dbc4\nMOVS            R1, #3                                                 ; +0x4e, 0x56dbc6\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x56dbc8\nBLX             R3                                                     ; +0x52, 0x56dbca\nLDR             R3, [R5]                                               ; +0x54, 0x56dbcc\nMOV             R0, R5                                                 ; +0x56, 0x56dbce\nLDR.W           R3, [R3,#0x284]                                        ; +0x58, 0x56dbd0\nBLX             R3                                                     ; +0x5c, 0x56dbd4\nB               loc_56DBE2                                             ; +0x5e, 0x56dbd6\nMOV             R0, R4                                                 ; +0x60, 0x56dbd8\nBL              sub_774008                                             ; +0x62, 0x56dbda\nBL              __cxa_end_cleanup                                      ; +0x66, 0x56dbde\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6a, 0x56dbe2\nLDR             R3, [R6]                                               ; +0x6c, 0x56dbe4\nCMP             R2, R3                                                 ; +0x6e, 0x56dbe6\nBEQ             loc_56DBEE                                             ; +0x70, 0x56dbe8\nBLX             __stack_chk_fail                                       ; +0x72, 0x56dbea\nADD             SP, SP, #0x18                                          ; +0x76, 0x56dbee\nPOP             {R4-R6,PC}                                             ; +0x78, 0x56dbf0", "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"}