{"type": "func", "start": 8342068, "end": 8342182, "name": "ConvertUTF16toUTF32", "pseudocode": "// \n// ConvertUTF16toUTF32 from 0x7f4a34 to 0x7f4aa6 (114 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:01:07 +0000\n// \n\nint __fastcall ConvertUTF16toUTF32(unsigned __int16 **a1, unsigned int a2, int **a3, unsigned int a4, int a5)\n{\n  unsigned __int16 *v5; // r4\n  int *i; // r5\n  int v7; // r6\n  unsigned __int16 *v8; // lr\n  int v9; // r7\n  int v10; // r3\n\n  v5 = *a1;\n  for ( i = *a3; ; ++i )\n  {\n    if ( (unsigned int)v5 >= a2 )\n    {\n      v10 = 0;\n      goto LABEL_17;\n    }\n    v7 = *v5;\n    v8 = v5 + 1;\n    if ( (unsigned int)(v7 - 55296) >= 0x400 )\n    {\n      if ( !a5 && (unsigned int)(v7 - 56320) < 0x400 )\n      {\nLABEL_15:\n        v10 = 3;\n        goto LABEL_17;\n      }\n    }\n    else\n    {\n      if ( (unsigned int)v8 >= a2 )\n      {\n        v10 = 1;\n        goto LABEL_17;\n      }\n      v9 = v5[1];\n      if ( (unsigned int)(v9 - 56320) >= 0x400 )\n      {\n        if ( !a5 )\n          goto LABEL_15;\n      }\n      else\n      {\n        v8 = v5 + 2;\n        v7 = v9 + 9216 + ((v7 - 55296) << 10);\n      }\n    }\n    if ( (unsigned int)i >= a4 )\n      break;\n    *i = v7;\n    v5 = v8;\n  }\n  v10 = 2;\nLABEL_17:\n  *a1 = v5;\n  *a3 = i;\n  return v10;\n}", "assembly": "; \n; ConvertUTF16toUTF32 from 0x7f4a34 to 0x7f4aa6 (114 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:01:07 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x7f4a34\nMOV             R8, R3                                                 ; +0x4, 0x7f4a38\nLDR             R4, [R0]                                               ; +0x6, 0x7f4a3a\nLDR             R3, [SP,#arg_0]                                        ; +0x8, 0x7f4a3c\nLDR             R5, [R2]                                               ; +0xa, 0x7f4a3e\nCMP             R4, R1                                                 ; +0xc, 0x7f4a40\nBCS             loc_7F4A8E                                             ; +0xe, 0x7f4a42\nLDRH            R6, [R4]                                               ; +0x10, 0x7f4a44\nADD.W           LR, R4, #2                                             ; +0x12, 0x7f4a46\nSUB.W           R12, R6, #0xD800                                       ; +0x16, 0x7f4a4a\nCMP.W           R12, #0x400                                            ; +0x1a, 0x7f4a4e\nBCS             loc_7F4A76                                             ; +0x1e, 0x7f4a52\nCMP             LR, R1                                                 ; +0x20, 0x7f4a54\nBCS             loc_7F4A92                                             ; +0x22, 0x7f4a56\nLDRH            R7, [R4,#2]                                            ; +0x24, 0x7f4a58\nSUB.W           R9, R7, #0xDC00                                        ; +0x26, 0x7f4a5a\nCMP.W           R9, #0x400                                             ; +0x2a, 0x7f4a5e\nBCS             loc_7F4A72                                             ; +0x2e, 0x7f4a62\nADD.W           R7, R7, #0x2400                                        ; +0x30, 0x7f4a64\nADD.W           LR, R4, #4                                             ; +0x34, 0x7f4a68\nADD.W           R6, R7, R12,LSL#10                                     ; +0x38, 0x7f4a6c\nB               loc_7F4A82                                             ; +0x3c, 0x7f4a70\nCBNZ            R3, loc_7F4A82                                         ; +0x3e, 0x7f4a72\nB               loc_7F4A96                                             ; +0x40, 0x7f4a74\nCBNZ            R3, loc_7F4A82                                         ; +0x42, 0x7f4a76\nSUB.W           R7, R6, #0xDC00                                        ; +0x44, 0x7f4a78\nCMP.W           R7, #0x400                                             ; +0x48, 0x7f4a7c\nBCC             loc_7F4A96                                             ; +0x4c, 0x7f4a80\nCMP             R5, R8                                                 ; +0x4e, 0x7f4a82\nBCS             loc_7F4A9A                                             ; +0x50, 0x7f4a84\nSTR.W           R6, [R5],#4                                            ; +0x52, 0x7f4a86\nMOV             R4, LR                                                 ; +0x56, 0x7f4a8a\nB               loc_7F4A40                                             ; +0x58, 0x7f4a8c\nMOVS            R3, #0                                                 ; +0x5a, 0x7f4a8e\nB               loc_7F4A9C                                             ; +0x5c, 0x7f4a90\nMOVS            R3, #1                                                 ; +0x5e, 0x7f4a92\nB               loc_7F4A9C                                             ; +0x60, 0x7f4a94\nMOVS            R3, #3                                                 ; +0x62, 0x7f4a96\nB               loc_7F4A9C                                             ; +0x64, 0x7f4a98\nMOVS            R3, #2                                                 ; +0x66, 0x7f4a9a\nSTR             R4, [R0]                                               ; +0x68, 0x7f4a9c\nMOV             R0, R3                                                 ; +0x6a, 0x7f4a9e\nSTR             R5, [R2]                                               ; +0x6c, 0x7f4aa0\nPOP.W           {R4-R9,PC}                                             ; +0x6e, 0x7f4aa2", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}