{"type": "func", "start": 7886524, "end": 7886646, "name": "EditorSoundConfigInfoLayer::onOverwrite", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onOverwrite from 0x7856bc to 0x785736 (122 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:59:32 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::onOverwrite(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)\n{\n  int *v3; // r5\n  int v5[3]; // [sp+8h] [bp-10h] BYREF\n\n  memset(v5, 0, sizeof(v5));\n  std::string::__init(v5, \"Replace this sound pack with your current sound settings?\", 0x39u);\n  v3 = FLAlertLayer::create(\n         (int)this + 720,\n         (cocos2d::CCLabelBMFont *)\"Overwrite?\",\n         (int)v5,\n         (ButtonSprite *)\"Cancel\",\n         (ButtonSprite *)\"Overwrite\",\n         380.0);\n  std::string::~string((int)v5);\n  (*(void (__fastcall **)(int *, int))(*v3 + 36))(v3, 7003);\n  return (*(int (__fastcall **)(int *))(*v3 + 656))(v3);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onOverwrite from 0x7856bc to 0x785736 (122 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:59:32 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x7856bc\nSUB             SP, SP, #0x18                                          ; +0x2, 0x7856be\nLDR             R6, =(__stack_chk_guard_ptr - 0x7856CC)                ; +0x4, 0x7856c0\nADD             R4, SP, #0x18+var_10                                   ; +0x6, 0x7856c2\nLDR             R1, =(aReplaceThisSou - 0x7856D2); \"Replace this sound pack with your curre\"... ; +0x8, 0x7856c4\nMOV             R5, R0                                                 ; +0xa, 0x7856c6\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x7856c8\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x7856ca\nMOV             R0, R4                                                 ; +0x10, 0x7856cc\nADD             R1, PC; \"Replace this sound pack with your curre\"...   ; +0x12, 0x7856ce\nMOVS            R2, #0x39 ; '9'                                        ; +0x14, 0x7856d0\nLDR             R3, [R6]                                               ; +0x16, 0x7856d2\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x18, 0x7856d4\nMOVS            R3, #0                                                 ; +0x1a, 0x7856d6\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x1c, 0x7856d8\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x1e, 0x7856da\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x20, 0x7856dc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x22, 0x7856de\nLDR             R3, =(aOverwrite - 0x7856F0); \"Overwrite\"              ; +0x26, 0x7856e2\nADD.W           R0, R5, #0x2D0; int                                    ; +0x28, 0x7856e4\nLDR             R1, =(aOverwrite_0 - 0x7856F6); \"Overwrite?\"           ; +0x2c, 0x7856e8\nMOV             R2, R4; int                                            ; +0x2e, 0x7856ea\nADD             R3, PC; \"Overwrite\"                                    ; +0x30, 0x7856ec\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x32, 0x7856ee\nLDR             R3, flt_785738                                         ; +0x34, 0x7856f0\nADD             R1, PC; \"Overwrite?\"                                   ; +0x36, 0x7856f2\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x7856f4\nLDR             R3, =(aCancel - 0x7856FC); \"Cancel\"                    ; +0x3a, 0x7856f6\nADD             R3, PC; \"Cancel\"                                       ; +0x3c, 0x7856f8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x7856fa\nMOV             R5, R0                                                 ; +0x42, 0x7856fe\nMOV             R0, R4                                                 ; +0x44, 0x785700\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x785702\nLDR             R3, [R5]                                               ; +0x4a, 0x785706\nMOV             R0, R5                                                 ; +0x4c, 0x785708\nMOVW            R1, #0x1B5B                                            ; +0x4e, 0x78570a\nLDR             R3, [R3,#0x24]                                         ; +0x52, 0x78570e\nBLX             R3                                                     ; +0x54, 0x785710\nLDR             R3, [R5]                                               ; +0x56, 0x785712\nMOV             R0, R5                                                 ; +0x58, 0x785714\nLDR.W           R3, [R3,#0x290]                                        ; +0x5a, 0x785716\nBLX             R3                                                     ; +0x5e, 0x78571a\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x60, 0x78571c\nLDR             R3, [R6]                                               ; +0x62, 0x78571e\nCMP             R2, R3                                                 ; +0x64, 0x785720\nBEQ             loc_785732                                             ; +0x66, 0x785722\nBLX             __stack_chk_fail                                       ; +0x68, 0x785724\nMOV             R0, R4                                                 ; +0x6c, 0x785728\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6e, 0x78572a\nBL              __cxa_end_cleanup                                      ; +0x72, 0x78572e\nADD             SP, SP, #0x18                                          ; +0x76, 0x785732\nPOP             {R4-R6,PC}                                             ; +0x78, 0x785734", "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"}