{"type": "func", "start": 6442769344, "end": 6442769705, "name": "cocos2d::CCBMFontConfiguration::purgeFontDefDictionary", "pseudocode": "// \n// cocos2d::CCBMFontConfiguration::purgeFontDefDictionary from 0x18004dbc0 to 0x18004dd29 (361 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration @ 0x1800488ad\n// > <???> @ 0x18014091c\n// > <???> @ 0x18014092c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbc08\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:21:44 +0000\n// \n\nvoid __fastcall cocos2d::CCBMFontConfiguration::purgeFontDefDictionary(cocos2d::CCBMFontConfiguration *this)\n{\n  __int64 v1; // rdi\n  __int64 i; // rsi\n  __int64 v4; // r8\n  __int64 v5; // r10\n  __int64 v6; // r9\n  __int64 v7; // r11\n  __int64 v8; // r9\n  __int64 v9; // r8\n  __int64 v10; // r9\n  __int64 v11; // rdx\n  __int64 v12; // r9\n  _QWORD *v13; // rdx\n  __int64 v14; // rdx\n  __int64 v15; // rcx\n\n  v1 = *((_QWORD *)this + 7);\n  if ( v1 )\n  {\n    for ( i = *(_QWORD *)(v1 + 48); ; i = *(_QWORD *)(i + 48) )\n    {\n      v4 = *(_QWORD *)(v1 + 40);\n      if ( v4 || *(_QWORD *)(v1 + 48) )\n      {\n        v5 = *((_QWORD *)this + 7);\n        v6 = *(_QWORD *)(v5 + 32);\n        v7 = *(_QWORD *)(v6 + 32);\n        if ( v1 == *(_QWORD *)(v6 + 24) - v7 )\n        {\n          *(_QWORD *)(v6 + 24) = v4 + v7;\n          v5 = *((_QWORD *)this + 7);\n        }\n        v8 = *(_QWORD *)(v1 + 40);\n        v9 = *(_QWORD *)(v1 + 48);\n        if ( v8 )\n        {\n          *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v5 + 32) + 32LL) + v8 + 16) = v9;\n          v9 = *((_QWORD *)this + 7);\n        }\n        else\n        {\n          *((_QWORD *)this + 7) = v9;\n        }\n        v10 = *(_QWORD *)(v1 + 48);\n        if ( v10 )\n          *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v9 + 32) + 32LL) + v10 + 8) = *(_QWORD *)(v1 + 40);\n        v11 = *(_QWORD *)(*((_QWORD *)this + 7) + 32LL);\n        v12 = *(_DWORD *)(v1 + 84) & (unsigned int)(*(_DWORD *)(v11 + 8) - 1);\n        --*(_DWORD *)(16 * v12 + *(_QWORD *)v11 + 8);\n        v13 = *(_QWORD **)(*((_QWORD *)this + 7) + 32LL);\n        if ( *(_QWORD *)(16 * v12 + *v13) == v1 + 32 )\n          *(_QWORD *)(*v13 + 16 * v12) = *(_QWORD *)(v1 + 64);\n        v14 = *(_QWORD *)(v1 + 56);\n        if ( v14 )\n          *(_QWORD *)(v14 + 32) = *(_QWORD *)(v1 + 64);\n        v15 = *(_QWORD *)(v1 + 64);\n        if ( v15 )\n          *(_QWORD *)(v15 + 24) = *(_QWORD *)(v1 + 56);\n        --*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 32LL) + 16LL);\n      }\n      else\n      {\n        free(**(void ***)(*((_QWORD *)this + 7) + 32LL));\n        free(*(void **)(*((_QWORD *)this + 7) + 32LL));\n        *((_QWORD *)this + 7) = 0;\n      }\n      free((void *)v1);\n      v1 = i;\n      if ( !i )\n        break;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCBMFontConfiguration::purgeFontDefDictionary from 0x18004dbc0 to 0x18004dd29 (361 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration @ 0x1800488ad\n; > <???> @ 0x18014091c\n; > <???> @ 0x18014092c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbc08\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:21:44 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18004dbc0\npush    rdi                                                            ; +0x5, 0x18004dbc5\nsub     rsp, 20h                                                       ; +0x6, 0x18004dbc6\nmov     rdi, [rcx+38h]                                                 ; +0xa, 0x18004dbca\nmov     rbx, rcx                                                       ; +0xe, 0x18004dbce\ntest    rdi, rdi                                                       ; +0x11, 0x18004dbd1\njz      loc_18004DD1E                                                  ; +0x14, 0x18004dbd4\nmov     [rsp+28h+arg_0], rbp                                           ; +0x1a, 0x18004dbda\nxor     ebp, ebp                                                       ; +0x1f, 0x18004dbdf\nmov     [rsp+28h+arg_8], rsi                                           ; +0x21, 0x18004dbe1\nmov     rsi, [rdi+30h]                                                 ; +0x26, 0x18004dbe6\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x18004dbea\nmov     r8, [rdi+28h]                                                  ; +0x30, 0x18004dbf0\ntest    r8, r8                                                         ; +0x34, 0x18004dbf4\njnz     short loc_18004DC27                                            ; +0x37, 0x18004dbf7\ncmp     [rdi+30h], rbp                                                 ; +0x39, 0x18004dbf9\njnz     short loc_18004DC27                                            ; +0x3d, 0x18004dbfd\nmov     rax, [rbx+38h]                                                 ; +0x3f, 0x18004dbff\nmov     rcx, [rax+20h]                                                 ; +0x43, 0x18004dc03\nmov     rcx, [rcx]; Block                                              ; +0x47, 0x18004dc07\ncall    cs:__imp_free                                                  ; +0x4a, 0x18004dc0a\nmov     rcx, [rbx+38h]                                                 ; +0x50, 0x18004dc10\nmov     rcx, [rcx+20h]; Block                                          ; +0x54, 0x18004dc14\ncall    cs:__imp_free                                                  ; +0x58, 0x18004dc18\nmov     [rbx+38h], rbp                                                 ; +0x5e, 0x18004dc1e\njmp     loc_18004DCFA                                                  ; +0x62, 0x18004dc22\nmov     r10, [rbx+38h]                                                 ; +0x67, 0x18004dc27\nlea     rax, [rdi+20h]                                                 ; +0x6b, 0x18004dc2b\nmov     r9, [r10+20h]                                                  ; +0x6f, 0x18004dc2f\nmov     r11, [r9+20h]                                                  ; +0x73, 0x18004dc33\nmov     rcx, [r9+18h]                                                  ; +0x77, 0x18004dc37\nsub     rcx, r11                                                       ; +0x7b, 0x18004dc3b\ncmp     rdi, rcx                                                       ; +0x7e, 0x18004dc3e\njnz     short loc_18004DC4F                                            ; +0x81, 0x18004dc41\nlea     rcx, [r8+r11]                                                  ; +0x83, 0x18004dc43\nmov     [r9+18h], rcx                                                  ; +0x87, 0x18004dc47\nmov     r10, [rbx+38h]                                                 ; +0x8b, 0x18004dc4b\nmov     r9, [rdi+28h]                                                  ; +0x8f, 0x18004dc4f\nmov     r8, [rdi+30h]                                                  ; +0x93, 0x18004dc53\ntest    r9, r9                                                         ; +0x97, 0x18004dc57\njz      short loc_18004DC6F                                            ; +0x9a, 0x18004dc5a\nmov     rcx, [r10+20h]                                                 ; +0x9c, 0x18004dc5c\nmov     rdx, [rcx+20h]                                                 ; +0xa0, 0x18004dc60\nmov     [rdx+r9+10h], r8                                               ; +0xa4, 0x18004dc64\nmov     r8, [rbx+38h]                                                  ; +0xa9, 0x18004dc69\njmp     short loc_18004DC73                                            ; +0xad, 0x18004dc6d\nmov     [rbx+38h], r8                                                  ; +0xaf, 0x18004dc6f\nmov     r9, [rax+10h]                                                  ; +0xb3, 0x18004dc73\ntest    r9, r9                                                         ; +0xb7, 0x18004dc77\njz      short loc_18004DC8D                                            ; +0xba, 0x18004dc7a\nmov     rcx, [r8+20h]                                                  ; +0xbc, 0x18004dc7c\nmov     rdx, [rcx+20h]                                                 ; +0xc0, 0x18004dc80\nmov     rcx, [rax+8]                                                   ; +0xc4, 0x18004dc84\nmov     [rdx+r9+8], rcx                                                ; +0xc8, 0x18004dc88\nmov     rcx, [rbx+38h]                                                 ; +0xcd, 0x18004dc8d\nmov     rdx, [rcx+20h]                                                 ; +0xd1, 0x18004dc91\nmov     ecx, [rax+34h]                                                 ; +0xd5, 0x18004dc95\nmov     r9d, [rdx+8]                                                   ; +0xd8, 0x18004dc98\ndec     r9d                                                            ; +0xdc, 0x18004dc9c\nand     r9, rcx                                                        ; +0xdf, 0x18004dc9f\nmov     rcx, [rdx]                                                     ; +0xe2, 0x18004dca2\nmov     r8, r9                                                         ; +0xe5, 0x18004dca5\nshl     r8, 4                                                          ; +0xe8, 0x18004dca8\ndec     dword ptr [r8+rcx+8]                                           ; +0xec, 0x18004dcac\nmov     rcx, [rbx+38h]                                                 ; +0xf1, 0x18004dcb1\nmov     rdx, [rcx+20h]                                                 ; +0xf5, 0x18004dcb5\nmov     r10, [rdx]                                                     ; +0xf9, 0x18004dcb9\ncmp     [r8+r10], rax                                                  ; +0xfc, 0x18004dcbc\njnz     short loc_18004DCCD                                            ; +0x100, 0x18004dcc0\nmov     rcx, [rax+20h]                                                 ; +0x102, 0x18004dcc2\nadd     r9, r9                                                         ; +0x106, 0x18004dcc6\nmov     [r10+r9*8], rcx                                                ; +0x109, 0x18004dcc9\nmov     rdx, [rax+18h]                                                 ; +0x10d, 0x18004dccd\ntest    rdx, rdx                                                       ; +0x111, 0x18004dcd1\njz      short loc_18004DCDE                                            ; +0x114, 0x18004dcd4\nmov     rcx, [rax+20h]                                                 ; +0x116, 0x18004dcd6\nmov     [rdx+20h], rcx                                                 ; +0x11a, 0x18004dcda\nmov     rcx, [rax+20h]                                                 ; +0x11e, 0x18004dcde\ntest    rcx, rcx                                                       ; +0x122, 0x18004dce2\njz      short loc_18004DCEF                                            ; +0x125, 0x18004dce5\nmov     rdx, [rax+18h]                                                 ; +0x127, 0x18004dce7\nmov     [rcx+18h], rdx                                                 ; +0x12b, 0x18004dceb\nmov     rax, [rbx+38h]                                                 ; +0x12f, 0x18004dcef\nmov     rdx, [rax+20h]                                                 ; +0x133, 0x18004dcf3\ndec     dword ptr [rdx+10h]                                            ; +0x137, 0x18004dcf7\nmov     rcx, rdi; Block                                                ; +0x13a, 0x18004dcfa\ncall    cs:__imp_free                                                  ; +0x13d, 0x18004dcfd\nmov     rdi, rsi                                                       ; +0x143, 0x18004dd03\ntest    rsi, rsi                                                       ; +0x146, 0x18004dd06\njz      short loc_18004DD14                                            ; +0x149, 0x18004dd09\nmov     rsi, [rsi+30h]                                                 ; +0x14b, 0x18004dd0b\njmp     loc_18004DBF0                                                  ; +0x14f, 0x18004dd0f\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x154, 0x18004dd14\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x159, 0x18004dd19\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x15e, 0x18004dd1e\nadd     rsp, 20h                                                       ; +0x163, 0x18004dd23\npop     rdi                                                            ; +0x167, 0x18004dd27\nretn                                                                   ; +0x168, 0x18004dd28", "xrefs": ["cocos2d::CCBMFontConfiguration::~CCBMFontConfiguration @ 0x1800488ad", "<???> @ 0x18014091c", "<???> @ 0x18014092c", "<???> @ 0x18014cf68", "<???> @ 0x1801bbc08"], "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"}