{"type": "func", "start": 665996, "end": 666084, "name": "sub_A298C", "pseudocode": "// \n// sub_A298C from 0xa298c to 0xa29e4 (88 bytes)\n// \n// 1 xrefs:\n// > sub_A1F18 @ 0xa1f24\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:14:30 +0000\n// \n\n__int64 __fastcall sub_A298C(__int64 a1, __int64 a2, _DWORD *a3, int *a4)\n{\n  unsigned __int16 *v4; // x8\n  int v5; // w8\n\n  if ( a3 )\n    *a3 = 0;\n  if ( a4 )\n  {\n    *a4 = 64;\n    v4 = *(unsigned __int16 **)(a1 + 552);\n    if ( v4 && (*v4 | 2) != 3 )\n    {\n      v5 = v4[9];\n      if ( v5 )\n        goto LABEL_10;\n    }\n    else\n    {\n      if ( *(_DWORD *)(a1 + 164) == 2 )\n      {\n        v5 = 64;\nLABEL_10:\n        *a4 = v5;\n        return 0;\n      }\n      *a4 = 0;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_A298C from 0xa298c to 0xa29e4 (88 bytes)\n; \n; 1 xrefs:\n; > sub_A1F18 @ 0xa1f24\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:14:30 +0000\n; \nCBZ             X2, loc_A2994                                          ; +0x0, 0xa298c\nSTR             WZR, [X2]                                              ; +0x4, 0xa2990\nCBZ             X3, loc_A29E0                                          ; +0x8, 0xa2994\nMOV             W8, #0x40 ; '@'                                        ; +0xc, 0xa2998\nSTR             W8, [X3]                                               ; +0x10, 0xa299c\nLDR             X8, [X0,#0x228]                                        ; +0x14, 0xa29a0\nCBZ             X8, loc_A29B8                                          ; +0x18, 0xa29a4\nLDRH            W9, [X8]                                               ; +0x1c, 0xa29a8\nORR             W9, W9, #2                                             ; +0x20, 0xa29ac\nCMP             W9, #3                                                 ; +0x24, 0xa29b0\nB.NE            loc_A29D4                                              ; +0x28, 0xa29b4\nLDR             W8, [X0,#0xA4]                                         ; +0x2c, 0xa29b8\nCMP             W8, #2                                                 ; +0x30, 0xa29bc\nB.NE            loc_A29CC                                              ; +0x34, 0xa29c0\nMOV             W8, #0x40 ; '@'                                        ; +0x38, 0xa29c4\nB               loc_A29DC                                              ; +0x3c, 0xa29c8\nSTR             WZR, [X3]                                              ; +0x40, 0xa29cc\nB               loc_A29E0                                              ; +0x44, 0xa29d0\nLDRH            W8, [X8,#0x12]                                         ; +0x48, 0xa29d4\nCBZ             W8, loc_A29E0                                          ; +0x4c, 0xa29d8\nSTR             W8, [X3]                                               ; +0x50, 0xa29dc\nB               loc_A2CA8                                              ; +0x54, 0xa29e0", "xrefs": ["sub_A1F18 @ 0xa1f24"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}