{"type": "func", "start": 5372799520, "end": 5372799815, "name": "LevelBrowserLayer::updatePageLabel", "pseudocode": "// \n// LevelBrowserLayer::updatePageLabel from 0x1403e6a20 to 0x1403e6b47 (295 bytes)\n// \n// 5 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e288f\n// > LevelBrowserLayer::setupPageInfo @ 0x1403e63ca\n// > <???> @ 0x1408c4b68\n// > <???> @ 0x1408c4b78\n// > <???> @ 0x140924f68\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:31:43 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::updatePageLabel(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 v3; // rax\n  unsigned int v4; // ebp\n  int v5; // edx\n  void (__fastcall **v6)(__int64, const char *); // rbx\n  cocos2d::CCString *v7; // rax\n  const char *CString; // rax\n  __int64 v9; // rdx\n  __int64 v10; // rdi\n  __int64 v11; // rax\n  void (__fastcall **v12)(__int64, const char *); // rbx\n  cocos2d::CCString *v13; // rax\n  const char *v14; // rax\n  __int64 v15; // rcx\n\n  v1 = *(_QWORD *)(a1 + 680);\n  if ( v1 )\n  {\n    v3 = *(_QWORD *)(a1 + 664);\n    v4 = 0;\n    if ( v3 )\n      v5 = *(_DWORD *)(v3 + 424);\n    else\n      v5 = 0;\n    v6 = *(void (__fastcall ***)(__int64, const char *))(v1 + 360);\n    v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)(v5 + 1));\n    CString = cocos2d::CCString::getCString(v7);\n    (*v6)(v1 + 360, CString);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 680), 32.0, 0.80000001, 0.0);\n    v10 = *(_QWORD *)(a1 + 696);\n    if ( v10 )\n    {\n      v11 = *(_QWORD *)(a1 + 664);\n      if ( v11 )\n        v4 = *(_DWORD *)(v11 + 452);\n      v12 = *(void (__fastcall ***)(__int64, const char *))(v10 + 360);\n      v13 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v4);\n      v14 = cocos2d::CCString::getCString(v13);\n      (*v12)(v10 + 360, v14);\n      cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 696), 24.0, 0.55000001, 0.0);\n    }\n    v15 = *(_QWORD *)(a1 + 632);\n    if ( v15 )\n    {\n      LOBYTE(v9) = *(_DWORD *)(a1 + 744) > 0;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 336LL))(v15, v9);\n    }\n  }\n}", "assembly": "; \n; LevelBrowserLayer::updatePageLabel from 0x1403e6a20 to 0x1403e6b47 (295 bytes)\n; \n; 5 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e288f\n; > LevelBrowserLayer::setupPageInfo @ 0x1403e63ca\n; > <???> @ 0x1408c4b68\n; > <???> @ 0x1408c4b78\n; > <???> @ 0x140924f68\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:31:43 +0000\n; \nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x1403e6a20\npush    rdi                                                            ; +0x5, 0x1403e6a25\nsub     rsp, 20h                                                       ; +0x6, 0x1403e6a26\nmov     rdi, [rcx+2A8h]                                                ; +0xa, 0x1403e6a2a\nmov     rsi, rcx                                                       ; +0x11, 0x1403e6a31\ntest    rdi, rdi                                                       ; +0x14, 0x1403e6a34\njz      loc_1403E6B3C                                                  ; +0x17, 0x1403e6a37\nmov     rax, [rcx+298h]                                                ; +0x1d, 0x1403e6a3d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x1403e6a44\nmov     [rsp+28h+arg_8], rbp                                           ; +0x29, 0x1403e6a49\nxor     ebp, ebp                                                       ; +0x2e, 0x1403e6a4e\ntest    rax, rax                                                       ; +0x30, 0x1403e6a50\njz      short loc_1403E6A5D                                            ; +0x33, 0x1403e6a53\nmov     edx, [rax+1A8h]                                                ; +0x35, 0x1403e6a55\njmp     short loc_1403E6A5F                                            ; +0x3b, 0x1403e6a5b\nmov     edx, ebp                                                       ; +0x3d, 0x1403e6a5d\nmov     rbx, [rdi+168h]                                                ; +0x3f, 0x1403e6a5f\nlea     rcx, word_1406ED6F8                                            ; +0x46, 0x1403e6a66\ninc     edx                                                            ; +0x4d, 0x1403e6a6d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4f, 0x1403e6a6f\nmov     rcx, rax                                                       ; +0x55, 0x1403e6a75\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x58, 0x1403e6a78\nmov     rdx, rax                                                       ; +0x5e, 0x1403e6a7e\nlea     rcx, [rdi+168h]                                                ; +0x61, 0x1403e6a81\ncall    qword ptr [rbx]                                                ; +0x68, 0x1403e6a88\nmovss   xmm2, cs:dword_140834FE8                                       ; +0x6a, 0x1403e6a8a\nxorps   xmm3, xmm3                                                     ; +0x72, 0x1403e6a92\nmovss   xmm1, cs:dword_140835640                                       ; +0x75, 0x1403e6a95\nmov     rcx, [rsi+2A8h]                                                ; +0x7d, 0x1403e6a9d\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x84, 0x1403e6aa4\nmov     rdi, [rsi+2B8h]                                                ; +0x8a, 0x1403e6aaa\ntest    rdi, rdi                                                       ; +0x91, 0x1403e6ab1\njz      short loc_1403E6B13                                            ; +0x94, 0x1403e6ab4\nmov     rax, [rsi+298h]                                                ; +0x96, 0x1403e6ab6\ntest    rax, rax                                                       ; +0x9d, 0x1403e6abd\njz      short loc_1403E6AC8                                            ; +0xa0, 0x1403e6ac0\nmov     ebp, [rax+1C4h]                                                ; +0xa2, 0x1403e6ac2\nmov     rbx, [rdi+168h]                                                ; +0xa8, 0x1403e6ac8\nlea     rcx, word_1406ED6F8                                            ; +0xaf, 0x1403e6acf\nmov     edx, ebp                                                       ; +0xb6, 0x1403e6ad6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xb8, 0x1403e6ad8\nmov     rcx, rax                                                       ; +0xbe, 0x1403e6ade\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xc1, 0x1403e6ae1\nmov     rdx, rax                                                       ; +0xc7, 0x1403e6ae7\nlea     rcx, [rdi+168h]                                                ; +0xca, 0x1403e6aea\ncall    qword ptr [rbx]                                                ; +0xd1, 0x1403e6af1\nmovss   xmm2, cs:dword_140834F40                                       ; +0xd3, 0x1403e6af3\nxorps   xmm3, xmm3                                                     ; +0xdb, 0x1403e6afb\nmovss   xmm1, cs:dword_1408355E4                                       ; +0xde, 0x1403e6afe\nmov     rcx, [rsi+2B8h]                                                ; +0xe6, 0x1403e6b06\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xed, 0x1403e6b0d\nmov     rcx, [rsi+278h]                                                ; +0xf3, 0x1403e6b13\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xfa, 0x1403e6b1a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xff, 0x1403e6b1f\ntest    rcx, rcx                                                       ; +0x104, 0x1403e6b24\njz      short loc_1403E6B3C                                            ; +0x107, 0x1403e6b27\ncmp     dword ptr [rsi+2E8h], 0                                        ; +0x109, 0x1403e6b29\nmov     rax, [rcx]                                                     ; +0x110, 0x1403e6b30\nsetnle  dl                                                             ; +0x113, 0x1403e6b33\ncall    qword ptr [rax+150h]                                           ; +0x116, 0x1403e6b36\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x11c, 0x1403e6b3c\nadd     rsp, 20h                                                       ; +0x121, 0x1403e6b41\npop     rdi                                                            ; +0x125, 0x1403e6b45\nretn                                                                   ; +0x126, 0x1403e6b46", "xrefs": ["LevelBrowserLayer::init @ 0x1403e288f", "LevelBrowserLayer::setupPageInfo @ 0x1403e63ca", "<???> @ 0x1408c4b68", "<???> @ 0x1408c4b78", "<???> @ 0x140924f68"], "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"}