{"type": "func", "start": 5369594240, "end": 5369594535, "name": "EditLevelLayer::onUpdateDescription", "pseudocode": "// \n// EditLevelLayer::onUpdateDescription from 0x1400d8180 to 0x1400d82a7 (295 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x1400d600f\n// > <???> @ 0x1406c8808\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 EditLevelLayer::onUpdateDescription(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // 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  v2 = (_DWORD)a1 + 416;\n  if ( !a1 )\n    v2 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x40u);\n  v6 = 60;\n  v7 = 63;\n  strcpy((char *)v5, \"Do you want to <cg>update</c> the level <cl>description</c>?\");\n  v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n  v4 = FLAlertLayer::create(\n         v2,\n         (int)\"Update Level Desc\",\n         v3,\n         (__int64)\"Cancel\",\n         (__int64)\"Update\",\n         1136525312,\n         0,\n         0,\n         1065353216);\n  sub_14003A830((__int64)&v5);\n  v4->setTag(v4, 9);\n  v4->show(v4);\n}", "assembly": "; \n; EditLevelLayer::onUpdateDescription from 0x1400d8180 to 0x1400d82a7 (295 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x1400d600f\n; > <???> @ 0x1406c8808\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    rbx                                                            ; +0x0, 0x1400d8180\nsub     rsp, 90h                                                       ; +0x2, 0x1400d8182\nlea     rbx, [rcx+1A0h]                                                ; +0x9, 0x1400d8189\nxor     eax, eax                                                       ; +0x10, 0x1400d8190\ntest    rcx, rcx                                                       ; +0x12, 0x1400d8192\ncmovz   rbx, rax                                                       ; +0x15, 0x1400d8195\nxorps   xmm0, xmm0                                                     ; +0x19, 0x1400d8199\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x1400d819c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x1400d81a1\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x26, 0x1400d81a6\nlea     ecx, [rax+40h]                                                 ; +0x2f, 0x1400d81af\ncall    sub_14003AA10                                                  ; +0x32, 0x1400d81b2\nmov     rcx, rax                                                       ; +0x37, 0x1400d81b7\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3a, 0x1400d81ba\nmov     [rsp+98h+var_38], 3Ch ; '<'                                    ; +0x3f, 0x1400d81bf\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x48, 0x1400d81c8\nmovups  xmm0, cs:xmmword_140551160                                     ; +0x51, 0x1400d81d1\nmovups  xmmword ptr [rax], xmm0                                        ; +0x58, 0x1400d81d8\nmovups  xmm1, cs:xmmword_140551170                                     ; +0x5b, 0x1400d81db\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x62, 0x1400d81e2\nmovups  xmm0, cs:xmmword_140551180                                     ; +0x66, 0x1400d81e6\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x6d, 0x1400d81ed\nmovsd   xmm0, cs:qword_140551190                                       ; +0x71, 0x1400d81f1\nmovsd   qword ptr [rax+30h], xmm0                                      ; +0x79, 0x1400d81f9\nmov     eax, cs:dword_140551198                                        ; +0x7e, 0x1400d81fe\nmov     [rcx+38h], eax                                                 ; +0x84, 0x1400d8204\nmov     byte ptr [rcx+3Ch], 0                                          ; +0x87, 0x1400d8207\nlea     rax, [rsp+98h+var_48]                                          ; +0x8b, 0x1400d820b\nmov     [rsp+98h+arg_0], rax                                           ; +0x90, 0x1400d8210\nlea     rdx, [rsp+98h+var_48]                                          ; +0x98, 0x1400d8218\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9d, 0x1400d821d\ncall    sub_14003BDB0                                                  ; +0xa2, 0x1400d8222\nmovss   xmm0, cs:flt_140622C24                                         ; +0xa7, 0x1400d8227\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xaf, 0x1400d822f\nxorps   xmm1, xmm1                                                     ; +0xb5, 0x1400d8235\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb8, 0x1400d8238\nmov     [rsp+98h+var_68], 0                                            ; +0xbe, 0x1400d823e\nmovss   xmm0, cs:dword_140623478                                       ; +0xc3, 0x1400d8243\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xcb, 0x1400d824b\nlea     rcx, aUpdate; \"Update\"                                         ; +0xd1, 0x1400d8251\nmov     [rsp+98h+var_78], rcx                                          ; +0xd8, 0x1400d8258\nlea     r9, aCancel; \"Cancel\"                                          ; +0xdd, 0x1400d825d\nmov     r8, rax                                                        ; +0xe4, 0x1400d8264\nlea     rdx, aUpdateLevelDes; \"Update Level Desc\"                      ; +0xe7, 0x1400d8267\nmov     rcx, rbx                                                       ; +0xee, 0x1400d826e\ncall    FLAlertLayer__create                                           ; +0xf1, 0x1400d8271\nmov     rbx, rax                                                       ; +0xf6, 0x1400d8276\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf9, 0x1400d8279\ncall    sub_14003A830                                                  ; +0xfe, 0x1400d827e\nmov     r8, [rbx]                                                      ; +0x103, 0x1400d8283\nmov     edx, 9                                                         ; +0x106, 0x1400d8286\nmov     rcx, rbx                                                       ; +0x10b, 0x1400d828b\ncall    qword ptr [r8+40h]                                             ; +0x10e, 0x1400d828e\nmov     rdx, [rbx]                                                     ; +0x112, 0x1400d8292\nmov     rcx, rbx                                                       ; +0x115, 0x1400d8295\ncall    qword ptr [rdx+410h]                                           ; +0x118, 0x1400d8298\nadd     rsp, 90h                                                       ; +0x11e, 0x1400d829e\npop     rbx                                                            ; +0x125, 0x1400d82a5\nretn                                                                   ; +0x126, 0x1400d82a6", "xrefs": ["EditLevelLayer::init @ 0x1400d600f", "<???> @ 0x1406c8808"], "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"}