{"type": "func", "start": 5370376192, "end": 5370376499, "name": "EditorSoundConfigInfoLayer::onMerge", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onMerge from 0x140197000 to 0x140197133 (307 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140193401\n// > EditorSoundConfigInfoLayer::init @ 0x14019347e\n// > <???> @ 0x1409195a4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorSoundConfigInfoLayer::onMerge(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v1 = a1 + 1016;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x50u);\n  v6 = 69;\n  v7 = 79;\n  strcpy((char *)v5, \"This will <cy>merge</c> this pack into your current sounds. Continue?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(\n         v1,\n         (int)\"Merge Sound Pack\",\n         v2,\n         (__int64)\"Cancel\",\n         (__int64)\"Merge\",\n         1136525312,\n         0,\n         0,\n         1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 7006);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onMerge from 0x140197000 to 0x140197133 (307 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140193401\n; > EditorSoundConfigInfoLayer::init @ 0x14019347e\n; > <???> @ 0x1409195a4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x140197000\nsub     rsp, 90h                                                       ; +0x2, 0x140197002\nlea     rbx, [rcx+3F8h]                                                ; +0x9, 0x140197009\nxor     eax, eax                                                       ; +0x10, 0x140197010\ntest    rcx, rcx                                                       ; +0x12, 0x140197012\ncmovz   rbx, rax                                                       ; +0x15, 0x140197015\nxorps   xmm0, xmm0                                                     ; +0x19, 0x140197019\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x14019701c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x140197021\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x140197026\nmov     ecx, 50h ; 'P'                                                 ; +0x2b, 0x14019702b\ncall    sub_14003D460                                                  ; +0x30, 0x140197030\nmov     rcx, rax                                                       ; +0x35, 0x140197035\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x38, 0x140197038\nmov     [rsp+98h+var_38], 45h ; 'E'                                    ; +0x3d, 0x14019703d\nmov     [rsp+98h+var_30], 4Fh ; 'O'                                    ; +0x46, 0x140197046\nmovaps  xmm0, cs:xmmword_14074D3A0                                     ; +0x4f, 0x14019704f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x56, 0x140197056\nmovaps  xmm1, cs:xmmword_14074D3B0                                     ; +0x59, 0x140197059\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x60, 0x140197060\nmovaps  xmm0, cs:xmmword_14074D3C0                                     ; +0x64, 0x140197064\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x6b, 0x14019706b\nmovaps  xmm1, cs:xmmword_14074D3D0                                     ; +0x6f, 0x14019706f\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x76, 0x140197076\nmov     eax, cs:dword_14074D3E0                                        ; +0x7a, 0x14019707a\nmov     [rcx+40h], eax                                                 ; +0x80, 0x140197080\nmovzx   eax, cs:byte_14074D3E4                                         ; +0x83, 0x140197083\nmov     [rcx+44h], al                                                  ; +0x8a, 0x14019708a\nmov     byte ptr [rcx+45h], 0                                          ; +0x8d, 0x14019708d\nlea     rax, [rsp+98h+var_48]                                          ; +0x91, 0x140197091\nmov     [rsp+98h+arg_0], rax                                           ; +0x96, 0x140197096\nlea     rdx, [rsp+98h+var_48]                                          ; +0x9e, 0x14019709e\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa3, 0x1401970a3\ncall    sub_14003F4F0                                                  ; +0xa8, 0x1401970a8\nmovss   xmm0, cs:flt_140835080                                         ; +0xad, 0x1401970ad\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xb5, 0x1401970b5\nxorps   xmm1, xmm1                                                     ; +0xbb, 0x1401970bb\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xbe, 0x1401970be\nmov     [rsp+98h+var_68], 0                                            ; +0xc4, 0x1401970c4\nmovss   xmm0, cs:dword_140835A04                                       ; +0xc9, 0x1401970c9\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd1, 0x1401970d1\nlea     rcx, aMerge; \"Merge\"                                           ; +0xd7, 0x1401970d7\nmov     [rsp+98h+var_78], rcx                                          ; +0xde, 0x1401970de\nlea     r9, aCancel; \"Cancel\"                                          ; +0xe3, 0x1401970e3\nmov     r8, rax                                                        ; +0xea, 0x1401970ea\nlea     rdx, aMergeSoundPack; \"Merge Sound Pack\"                       ; +0xed, 0x1401970ed\nmov     rcx, rbx                                                       ; +0xf4, 0x1401970f4\ncall    FLAlertLayer__create                                           ; +0xf7, 0x1401970f7\nmov     rbx, rax                                                       ; +0xfc, 0x1401970fc\nlea     rcx, [rsp+98h+var_48]                                          ; +0xff, 0x1401970ff\ncall    sub_14003D310                                                  ; +0x104, 0x140197104\nmov     rcx, [rbx]                                                     ; +0x109, 0x140197109\nmov     r8, [rcx+40h]                                                  ; +0x10c, 0x14019710c\nmov     edx, 1B5Eh                                                     ; +0x110, 0x140197110\nmov     rcx, rbx                                                       ; +0x115, 0x140197115\ncall    r8                                                             ; +0x118, 0x140197118\nmov     rcx, [rbx]                                                     ; +0x11b, 0x14019711b\nmov     rdx, [rcx+428h]                                                ; +0x11e, 0x14019711e\nmov     rcx, rbx                                                       ; +0x125, 0x140197125\ncall    rdx                                                            ; +0x128, 0x140197128\nadd     rsp, 90h                                                       ; +0x12a, 0x14019712a\npop     rbx                                                            ; +0x131, 0x140197131\nretn                                                                   ; +0x132, 0x140197132", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140193401", "EditorSoundConfigInfoLayer::init @ 0x14019347e", "<???> @ 0x1409195a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}