{"type": "func", "start": 6442753280, "end": 6442753380, "name": "sub_180049D00", "pseudocode": "// \n// sub_180049D00 from 0x180049d00 to 0x180049d64 (100 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004afc7\n// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004b0b9\n// > <???> @ 0x1801bbb6c\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:42 +0000\n// \n\n__int64 __fastcall sub_180049D00(_QWORD *a1, unsigned __int8 a2, unsigned __int64 a3)\n{\n  _QWORD *v3; // rdi\n  unsigned __int64 v4; // rax\n  char *v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rdx\n\n  v3 = a1;\n  if ( a1[3] > 0xFu )\n    v3 = (_QWORD *)*a1;\n  v4 = a1[2];\n  if ( a3 >= v4 )\n    return -1;\n  v6 = (char *)v3 + v4;\n  v7 = sub_1800E4920((char *)v3 + a3, (char *)v3 + v4, a2);\n  v8 = -1;\n  if ( (char *)v7 != v6 )\n    return v7 - (_QWORD)v3;\n  return v8;\n}", "assembly": "; \n; sub_180049D00 from 0x180049d00 to 0x180049d64 (100 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004afc7\n; > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004b0b9\n; > <???> @ 0x1801bbb6c\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:42 +0000\n; \npush    rdi                                                            ; +0x0, 0x180049d00\nsub     rsp, 20h                                                       ; +0x2, 0x180049d02\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x6, 0x180049d06\nmov     rdi, rcx                                                       ; +0xb, 0x180049d0b\njbe     short loc_180049D13                                            ; +0xe, 0x180049d0e\nmov     rdi, [rcx]                                                     ; +0x10, 0x180049d10\nmov     rax, [rcx+10h]                                                 ; +0x13, 0x180049d13\ncmp     r8, rax                                                        ; +0x17, 0x180049d17\njb      short loc_180049D29                                            ; +0x1a, 0x180049d1a\nmov     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x1c, 0x180049d1c\nadd     rsp, 20h                                                       ; +0x23, 0x180049d23\npop     rdi                                                            ; +0x27, 0x180049d27\nretn                                                                   ; +0x28, 0x180049d28\nlea     rcx, [rdi+r8]                                                  ; +0x29, 0x180049d29\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2d, 0x180049d2d\nlea     rbx, [rax+rdi]                                                 ; +0x32, 0x180049d32\nmovzx   r8d, dl                                                        ; +0x36, 0x180049d36\nmov     rdx, rbx                                                       ; +0x3a, 0x180049d3a\ncall    sub_1800E4920                                                  ; +0x3d, 0x180049d3d\nmov     rcx, rax                                                       ; +0x42, 0x180049d42\nmov     rdx, 0FFFFFFFFFFFFFFFFh                                        ; +0x45, 0x180049d45\nsub     rcx, rdi                                                       ; +0x4c, 0x180049d4c\ncmp     rax, rbx                                                       ; +0x4f, 0x180049d4f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180049d52\ncmovnz  rdx, rcx                                                       ; +0x57, 0x180049d57\nmov     rax, rdx                                                       ; +0x5b, 0x180049d5b\nadd     rsp, 20h                                                       ; +0x5e, 0x180049d5e\npop     rdi                                                            ; +0x62, 0x180049d62\nretn                                                                   ; +0x63, 0x180049d63", "xrefs": ["cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004afc7", "cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004b0b9", "<???> @ 0x1801bbb6c"], "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"}