{"type": "func", "start": 778738, "end": 778784, "name": "sub_BE1F2", "pseudocode": "// \n// sub_BE1F2 from 0xbe1f2 to 0xbe220 (46 bytes)\n// \n// 2 xrefs:\n// > sub_BE220 @ 0xbe236\n// > sub_BE220 @ 0xbe25a\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\nint __fastcall sub_BE1F2(char a1)\n{\n  int result; // r0\n  int v2; // r1\n\n  if ( (a1 & 0x80) == 0 )\n    return 1;\n  if ( (a1 & 0xE0) == 0xC0 )\n    return 2;\n  if ( (a1 & 0xF0) == 0xE0 )\n    return 3;\n  v2 = a1 & 0xF8;\n  result = 1;\n  if ( v2 == 240 )\n    return 4;\n  return result;\n}", "assembly": "; \n; sub_BE1F2 from 0xbe1f2 to 0xbe220 (46 bytes)\n; \n; 2 xrefs:\n; > sub_BE220 @ 0xbe236\n; > sub_BE220 @ 0xbe25a\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\nLSLS            R1, R0, #0x18                                          ; +0x0, 0xbe1f2\nITT PL                                                                 ; +0x2, 0xbe1f4\nMOVPL           R0, #1                                                 ; +0x4, 0xbe1f6\nBXPL            LR                                                     ; +0x6, 0xbe1f8\nAND.W           R1, R0, #0xE0                                          ; +0x8, 0xbe1fa\nCMP             R1, #0xC0                                              ; +0xc, 0xbe1fe\nITT EQ                                                                 ; +0xe, 0xbe200\nMOVEQ           R0, #2                                                 ; +0x10, 0xbe202\nBXEQ            LR                                                     ; +0x12, 0xbe204\nAND.W           R1, R0, #0xF0                                          ; +0x14, 0xbe206\nCMP             R1, #0xE0                                              ; +0x18, 0xbe20a\nITT EQ                                                                 ; +0x1a, 0xbe20c\nMOVEQ           R0, #3                                                 ; +0x1c, 0xbe20e\nBXEQ            LR                                                     ; +0x1e, 0xbe210\nAND.W           R1, R0, #0xF8                                          ; +0x20, 0xbe212\nMOVS            R0, #1                                                 ; +0x24, 0xbe216\nCMP             R1, #0xF0                                              ; +0x26, 0xbe218\nIT EQ                                                                  ; +0x28, 0xbe21a\nMOVEQ           R0, #4                                                 ; +0x2a, 0xbe21c\nBX              LR                                                     ; +0x2c, 0xbe21e", "xrefs": ["sub_BE220 @ 0xbe236", "sub_BE220 @ 0xbe25a"], "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"}