{"type": "func", "start": 920156, "end": 920216, "name": "sub_E0A5C", "pseudocode": "// \n// sub_E0A5C from 0xe0a5c to 0xe0a98 (60 bytes)\n// \n// 1 xrefs:\n// > sub_A1300 @ 0xa137c\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\n__int64 __fastcall sub_E0A5C(_DWORD *a1, int a2)\n{\n  int v2; // w8\n  int v3; // w9\n  unsigned int v4; // w10\n\n  v2 = a1[8];\n  v3 = a1[94];\n  a1[94] = a2;\n  if ( v2 == -1 )\n    return 0;\n  v4 = a1[9];\n  a1[8] = v3 - a2 + v2;\n  if ( v2 + v3 <= v4 )\n    return 0;\n  else\n    return 28;\n}", "assembly": "; \n; sub_E0A5C from 0xe0a5c to 0xe0a98 (60 bytes)\n; \n; 1 xrefs:\n; > sub_A1300 @ 0xa137c\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\nLDR             W8, [X0,#0x20]                                         ; +0x0, 0xe0a5c\nLDR             W9, [X0,#0x178]                                        ; +0x4, 0xe0a60\nSTR             W1, [X0,#0x178]                                        ; +0x8, 0xe0a64\nCMN             W8, #1                                                 ; +0xc, 0xe0a68\nB.EQ            loc_E0A94                                              ; +0x10, 0xe0a6c\nLDR             W10, [X0,#0x24]                                        ; +0x14, 0xe0a70\nSUB             W11, W9, W1                                            ; +0x18, 0xe0a74\nADD             W11, W11, W8                                           ; +0x1c, 0xe0a78\nADD             W8, W8, W9                                             ; +0x20, 0xe0a7c\nCMP             W8, W10                                                ; +0x24, 0xe0a80\nSTR             W11, [X0,#0x20]                                        ; +0x28, 0xe0a84\nB.LS            loc_E0A94                                              ; +0x2c, 0xe0a88\nMOV             W0, #0x1C                                              ; +0x30, 0xe0a8c\nRET                                                                    ; +0x34, 0xe0a90\nB               loc_E0CFC                                              ; +0x38, 0xe0a94", "xrefs": ["sub_A1300 @ 0xa137c"], "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"}