{"type": "func", "start": 668138, "end": 668166, "name": "sub_A31EA", "pseudocode": "// \n// sub_A31EA from 0xa31ea to 0xa3206 (28 bytes)\n// \n// 1 xrefs:\n// > sub_A3148 @ 0xa3176\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_A31EA(int a1, int a2, int a3, void *a4)\n{\n  int v4; // r2\n  int result; // r0\n\n  v4 = *(_DWORD *)(a1 + 8);\n  if ( v4 < 0 )\n    v4 = -v4;\n  if ( v4 >= a2 )\n    return 0;\n  result = sub_5BB78(a1, a2, v4, a4);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_A31EA from 0xa31ea to 0xa3206 (28 bytes)\n; \n; 1 xrefs:\n; > sub_A3148 @ 0xa3176\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\nPUSH            {R7,LR}                                                ; +0x0, 0xa31ea\nMOV             R7, SP                                                 ; +0x2, 0xa31ec\nLDR             R2, [R0,#8]                                            ; +0x4, 0xa31ee\nCMP             R2, #0                                                 ; +0x6, 0xa31f0\nBPL             loc_A31F6                                              ; +0x8, 0xa31f2\nNEGS            R2, R2                                                 ; +0xa, 0xa31f4\nCMP             R2, R1                                                 ; +0xc, 0xa31f6\nBGE             loc_A3202                                              ; +0xe, 0xa31f8\nBL              sub_5BB78                                              ; +0x10, 0xa31fa\nCBZ             R0, loc_A3202                                          ; +0x14, 0xa31fe\nPOP             {R7,PC}                                                ; +0x16, 0xa3200\nMOVS            R0, #0                                                 ; +0x18, 0xa3202\nPOP             {R7,PC}                                                ; +0x1a, 0xa3204", "xrefs": ["sub_A3148 @ 0xa3176"], "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"}