; ; ConvertUTF8toUTF32 from 0x5ea194 to 0x5ea292 (254 bytes) ; ; 1 xrefs: ; > llvm::ConvertUTF8toWide @ 0x5ea332 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH.W {R4-R11,LR} ; +0x0, 0x5ea194 MOV R10, R2 ; +0x4, 0x5ea198 SUB SP, SP, #0x14 ; +0x6, 0x5ea19a LDR R7, [R2] ; +0x8, 0x5ea19c LDR R2, =(unk_9B0840 - 0x5EA1AA) ; +0xa, 0x5ea19e MOV R11, R0 ; +0xc, 0x5ea1a0 LDR R5, [R0] ; +0xe, 0x5ea1a2 MOV R8, R1 ; +0x10, 0x5ea1a4 ADD R2, PC; unk_9B0840 ; +0x12, 0x5ea1a6 STR R2, [SP,#0x14+var_14] ; +0x14, 0x5ea1a8 LDR R2, =(unk_9B0840 - 0x5EA1B4) ; +0x16, 0x5ea1aa MOV.W R9, #0 ; +0x18, 0x5ea1ac ADD R2, PC; unk_9B0840 ; +0x1c, 0x5ea1b0 STR R2, [SP,#0x14+var_10] ; +0x1e, 0x5ea1b2 MOVW R2, #0xFFFD ; +0x20, 0x5ea1b4 CMP R5, R8 ; +0x24, 0x5ea1b8 BCS loc_5EA282 ; +0x26, 0x5ea1ba STR R3, [SP,#0x14+var_C] ; +0x28, 0x5ea1bc LDRB R4, [R5] ; +0x2a, 0x5ea1be LDR R3, [SP,#0x14+var_14] ; +0x2c, 0x5ea1c0 STR R2, [SP,#0x14+var_8] ; +0x2e, 0x5ea1c2 ADDS R1, R3, R4 ; +0x30, 0x5ea1c4 LDRB R6, [R1,#8] ; +0x32, 0x5ea1c6 RSB.W R1, R5, R8 ; +0x34, 0x5ea1c8 CMP R6, R1 ; +0x38, 0x5ea1cc BGE loc_5EA278 ; +0x3a, 0x5ea1ce MOV R0, R5 ; +0x3c, 0x5ea1d0 ADDS R1, R6, #1 ; +0x3e, 0x5ea1d2 BL sub_5E9C70 ; +0x40, 0x5ea1d4 CMP R0, #0 ; +0x44, 0x5ea1d8 BEQ loc_5EA27E ; +0x46, 0x5ea1da LDR R3, [SP,#0x14+var_C] ; +0x48, 0x5ea1dc LDR R2, [SP,#0x14+var_8] ; +0x4a, 0x5ea1de CMP R6, #5; switch 6 cases ; +0x4c, 0x5ea1e0 BHI def_5EA1E4; jumptable 005EA1E4 default case ; +0x4e, 0x5ea1e2 TBB.W [PC,R6]; switch jump ; +0x50, 0x5ea1e4 DCB 0x1E; jump table for switch statement ; +0x54, 0x5ea1e8 DCB 0x18 ; +0x55, 0x5ea1e9 DCB 0x12 ; +0x56, 0x5ea1ea DCB 0xC ; +0x57, 0x5ea1eb DCB 6 ; +0x58, 0x5ea1ec DCB 3 ; +0x59, 0x5ea1ed ADDS R5, #1; jumptable 005EA1E4 case 5 ; +0x5a, 0x5ea1ee LSLS R4, R4, #6 ; +0x5c, 0x5ea1f0 B loc_5EA1F6 ; +0x5e, 0x5ea1f2 MOVS R4, #0; jumptable 005EA1E4 case 4 ; +0x60, 0x5ea1f4 LDRB R0, [R5] ; +0x62, 0x5ea1f6 ADDS R5, #1 ; +0x64, 0x5ea1f8 ADD R4, R0 ; +0x66, 0x5ea1fa LSLS R4, R4, #6 ; +0x68, 0x5ea1fc B loc_5EA202 ; +0x6a, 0x5ea1fe MOVS R4, #0; jumptable 005EA1E4 case 3 ; +0x6c, 0x5ea200 LDRB R0, [R5] ; +0x6e, 0x5ea202 ADDS R5, #1 ; +0x70, 0x5ea204 ADD R4, R0 ; +0x72, 0x5ea206 LSLS R1, R4, #6 ; +0x74, 0x5ea208 B loc_5EA20E ; +0x76, 0x5ea20a MOVS R1, #0; jumptable 005EA1E4 case 2 ; +0x78, 0x5ea20c LDRB R0, [R5] ; +0x7a, 0x5ea20e ADDS R5, #1 ; +0x7c, 0x5ea210 ADD R1, R0 ; +0x7e, 0x5ea212 LSLS R1, R1, #6 ; +0x80, 0x5ea214 B loc_5EA21A ; +0x82, 0x5ea216 MOVS R1, #0; jumptable 005EA1E4 case 1 ; +0x84, 0x5ea218 LDRB R0, [R5] ; +0x86, 0x5ea21a ADDS R5, #1 ; +0x88, 0x5ea21c ADD R1, R0 ; +0x8a, 0x5ea21e LSLS R1, R1, #6 ; +0x8c, 0x5ea220 B loc_5EA226 ; +0x8e, 0x5ea222 MOVS R1, #0; jumptable 005EA1E4 case 0 ; +0x90, 0x5ea224 LDRB R0, [R5] ; +0x92, 0x5ea226 ADDS R5, #1 ; +0x94, 0x5ea228 ADD R1, R0 ; +0x96, 0x5ea22a B loc_5EA230 ; +0x98, 0x5ea22c MOVS R1, #0; jumptable 005EA1E4 default case ; +0x9a, 0x5ea22e LDR R0, [SP,#0x14+var_10] ; +0x9c, 0x5ea230 CMP R7, R3 ; +0x9e, 0x5ea232 ADD.W R0, R0, R6,LSL#2 ; +0xa0, 0x5ea234 LDR.W R0, [R0,#0x108] ; +0xa4, 0x5ea238 SUB.W R1, R1, R0 ; +0xa8, 0x5ea23c BCC loc_5EA24C ; +0xac, 0x5ea240 MVNS R6, R6 ; +0xae, 0x5ea242 MOV.W R9, #2 ; +0xb0, 0x5ea244 ADD R5, R6 ; +0xb4, 0x5ea248 B loc_5EA282 ; +0xb6, 0x5ea24a LDR R0, =0x10FFFF ; +0xb8, 0x5ea24c CMP R1, R0 ; +0xba, 0x5ea24e BHI loc_5EA26E ; +0xbc, 0x5ea250 SUB.W R0, R1, #0xD800 ; +0xbe, 0x5ea252 CMP.W R0, #0x800 ; +0xc2, 0x5ea256 BCS loc_5EA26A ; +0xc6, 0x5ea25a LDR R1, [SP,#0x14+arg_0] ; +0xc8, 0x5ea25c CBNZ R1, loc_5EA266 ; +0xca, 0x5ea25e MVNS R6, R6 ; +0xcc, 0x5ea260 ADD R5, R6 ; +0xce, 0x5ea262 B loc_5EA27E ; +0xd0, 0x5ea264 STR R2, [R7] ; +0xd2, 0x5ea266 B loc_5EA274 ; +0xd4, 0x5ea268 STR R1, [R7] ; +0xd6, 0x5ea26a B loc_5EA274 ; +0xd8, 0x5ea26c MOV.W R9, #3 ; +0xda, 0x5ea26e STR R2, [R7] ; +0xde, 0x5ea272 ADDS R7, #4 ; +0xe0, 0x5ea274 B loc_5EA1B8 ; +0xe2, 0x5ea276 MOV.W R9, #1 ; +0xe4, 0x5ea278 B loc_5EA282 ; +0xe8, 0x5ea27c MOV.W R9, #3 ; +0xea, 0x5ea27e STR.W R5, [R11] ; +0xee, 0x5ea282 MOV R0, R9 ; +0xf2, 0x5ea286 STR.W R7, [R10] ; +0xf4, 0x5ea288 ADD SP, SP, #0x14 ; +0xf8, 0x5ea28c POP.W {R4-R11,PC} ; +0xfa, 0x5ea28e