{"type": "func", "start": 387222, "end": 387246, "name": "sub_5E896", "pseudocode": "// \n// sub_5E896 from 0x5e896 to 0x5e8ae (24 bytes)\n// \n// 2 xrefs:\n// > sub_603D4 @ 0x604d6\n// > sub_603D4 @ 0x60508\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 11:40:50 +0000\n// \n\nint __fastcall sub_5E896(int result, int a2, int a3)\n{\n  int v3; // r3\n\n  v3 = a2 - a3;\n  do\n    result += a3 - a2;\n  while ( v3 + result < a2 );\n  do\n    result += v3;\n  while ( result >= a3 );\n  return result;\n}", "assembly": "; \n; sub_5E896 from 0x5e896 to 0x5e8ae (24 bytes)\n; \n; 2 xrefs:\n; > sub_603D4 @ 0x604d6\n; > sub_603D4 @ 0x60508\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 11:40:50 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x5e896\nADD             R7, SP, #8                                             ; +0x2, 0x5e898\nSUBS            R3, R1, R2                                             ; +0x4, 0x5e89a\nSUBS            R4, R2, R1                                             ; +0x6, 0x5e89c\nADD             R0, R4                                                 ; +0x8, 0x5e89e\nADDS            R5, R3, R0                                             ; +0xa, 0x5e8a0\nCMP             R5, R1                                                 ; +0xc, 0x5e8a2\nBLT             loc_5E89E                                              ; +0xe, 0x5e8a4\nADD             R0, R3                                                 ; +0x10, 0x5e8a6\nCMP             R0, R2                                                 ; +0x12, 0x5e8a8\nBGE             loc_5E8A6                                              ; +0x14, 0x5e8aa\nPOP             {R4,R5,R7,PC}                                          ; +0x16, 0x5e8ac", "xrefs": ["sub_603D4 @ 0x604d6", "sub_603D4 @ 0x60508"], "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"}