{"type": "func", "start": 4297050960, "end": 4297051148, "name": "EditLevelLayer::onUpdateDescription", "pseudocode": "// \n// EditLevelLayer::onUpdateDescription from 0x1001fcb50 to 0x1001fcc0c (188 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::init @ 0x1001fb37a\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 __fastcall EditLevelLayer::onUpdateDescription(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  __p = operator new(0x40u);\n  v3[0] = 65;\n  v3[1] = 60;\n  strcpy((char *)__p, \"Do you want to <cg>update</c> the level <cl>description</c>?\");\n  v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Update Level Desc\", v3, \"Cancel\", \"Update\", 380.0);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 9);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n}", "assembly": "; \n; EditLevelLayer::onUpdateDescription from 0x1001fcb50 to 0x1001fcc0c (188 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::init @ 0x1001fb37a\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\npush    rbp                                                            ; +0x0, 0x1001fcb50\nmov     rbp, rsp                                                       ; +0x1, 0x1001fcb51\npush    rbx                                                            ; +0x4, 0x1001fcb54\nsub     rsp, 18h                                                       ; +0x5, 0x1001fcb55\nmov     rbx, rdi                                                       ; +0x9, 0x1001fcb59\nadd     rbx, 1A0h                                                      ; +0xc, 0x1001fcb5c\nmov     edi, 40h ; '@'; __sz                                           ; +0x13, 0x1001fcb63\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1001fcb68\nmov     [rbp+__p], rax                                                 ; +0x1d, 0x1001fcb6d\nmov     [rbp+var_20], 41h ; 'A'                                        ; +0x21, 0x1001fcb71\nmov     [rbp+var_18], 3Ch ; '<'                                        ; +0x29, 0x1001fcb79\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCgU+2Ch; \"description</c>?\"   ; +0x31, 0x1001fcb81\nmovups  xmmword ptr [rax+2Ch], xmm0                                    ; +0x38, 0x1001fcb88\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCgU+20h; \"e level <cl>description</c>?\" ; +0x3c, 0x1001fcb8c\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x43, 0x1001fcb93\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCgU+10h; \"cg>update</c> the level <cl>description\"... ; +0x47, 0x1001fcb97\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x4e, 0x1001fcb9e\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCgU; \"Do you want to <cg>update</c> the level\"... ; +0x52, 0x1001fcba2\nmovups  xmmword ptr [rax], xmm0                                        ; +0x59, 0x1001fcba9\nmov     byte ptr [rax+3Ch], 0                                          ; +0x5c, 0x1001fcbac\nlea     rsi, aUpdateLevelDes; \"Update Level Desc\"                      ; +0x60, 0x1001fcbb0\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x67, 0x1001fcbb7\nlea     r8, aUpdate; \"Update\"                                          ; +0x6e, 0x1001fcbbe\nlea     rdx, [rbp+var_20]                                              ; +0x75, 0x1001fcbc5\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x79, 0x1001fcbc9\nmov     rdi, rbx                                                       ; +0x81, 0x1001fcbd1\ncall    FLAlertLayer__create_1                                         ; +0x84, 0x1001fcbd4\nmov     rbx, rax                                                       ; +0x89, 0x1001fcbd9\ntest    byte ptr [rbp+var_20], 1                                       ; +0x8c, 0x1001fcbdc\njz      short loc_1001FCBEB                                            ; +0x90, 0x1001fcbe0\nmov     rdi, [rbp+__p]; __p                                            ; +0x92, 0x1001fcbe2\ncall    __ZdlPv; operator delete(void *)                               ; +0x96, 0x1001fcbe6\nmov     rax, [rbx]                                                     ; +0x9b, 0x1001fcbeb\nmov     rdi, rbx                                                       ; +0x9e, 0x1001fcbee\nmov     esi, 9                                                         ; +0xa1, 0x1001fcbf1\ncall    qword ptr [rax+48h]                                            ; +0xa6, 0x1001fcbf6\nmov     rax, [rbx]                                                     ; +0xa9, 0x1001fcbf9\nmov     rdi, rbx                                                       ; +0xac, 0x1001fcbfc\ncall    qword ptr [rax+508h]                                           ; +0xaf, 0x1001fcbff\nadd     rsp, 18h                                                       ; +0xb5, 0x1001fcc05\npop     rbx                                                            ; +0xb9, 0x1001fcc09\npop     rbp                                                            ; +0xba, 0x1001fcc0a\nretn                                                                   ; +0xbb, 0x1001fcc0b", "xrefs": ["EditLevelLayer::init @ 0x1001fb37a"], "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"}