{"type": "func", "start": 575864, "end": 575944, "name": "sub_8C978", "pseudocode": "// \n// sub_8C978 from 0x8c978 to 0x8c9c8 (80 bytes)\n// \n// 1 xrefs:\n// > sub_8D6F8 @ 0x8e284\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_8C978(__int64 a1)\n{\n  unsigned int v1; // w11\n  __int64 v2; // x8\n  int v3; // w9\n  int v4; // w9\n\n  v1 = *(unsigned __int8 *)(a1 + 250);\n  v2 = *(_QWORD *)(a1 + 8);\n  if ( (v1 & 0xF) == 0 )\n    *(_DWORD *)(a1 + 224) -= v1 >> 4;\n  v3 = *(_DWORD *)(a1 + 224);\n  if ( (v1 & 0xF0) == 0 )\n  {\n    v3 += v1 & 0xF;\n    *(_DWORD *)(a1 + 224) = v3;\n  }\n  if ( v3 > 64 )\n  {\n    v4 = 64;\nLABEL_9:\n    *(_DWORD *)(a1 + 224) = v4;\n    goto LABEL_10;\n  }\n  if ( v3 < 0 )\n  {\n    v4 = 0;\n    goto LABEL_9;\n  }\nLABEL_10:\n  *(_BYTE *)(v2 + 60) |= 4u;\n  return 0;\n}", "assembly": "; \n; sub_8C978 from 0x8c978 to 0x8c9c8 (80 bytes)\n; \n; 1 xrefs:\n; > sub_8D6F8 @ 0x8e284\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\nLDRB            W11, [X0,#0xFA]                                        ; +0x0, 0x8c978\nLDR             X8, [X0,#8]                                            ; +0x4, 0x8c97c\nANDS            W10, W11, #0xF                                         ; +0x8, 0x8c980\nB.NE            loc_8C994                                              ; +0xc, 0x8c984\nLDR             W9, [X0,#0xE0]                                         ; +0x10, 0x8c988\nSUB             W9, W9, W11,LSR#4                                      ; +0x14, 0x8c98c\nSTR             W9, [X0,#0xE0]                                         ; +0x18, 0x8c990\nLDR             W9, [X0,#0xE0]                                         ; +0x1c, 0x8c994\nTST             W11, #0xF0                                             ; +0x20, 0x8c998\nB.NE            loc_8C9A8                                              ; +0x24, 0x8c99c\nADD             W9, W9, W10                                            ; +0x28, 0x8c9a0\nSTR             W9, [X0,#0xE0]                                         ; +0x2c, 0x8c9a4\nCMP             W9, #0x40 ; '@'                                        ; +0x30, 0x8c9a8\nB.LE            loc_8C9B8                                              ; +0x34, 0x8c9ac\nMOV             W9, #0x40 ; '@'                                        ; +0x38, 0x8c9b0\nB               loc_8C9C0                                              ; +0x3c, 0x8c9b4\nTBZ             W9, #0x1F, loc_8C9C4                                   ; +0x40, 0x8c9b8\nMOV             W9, WZR                                                ; +0x44, 0x8c9bc\nSTR             W9, [X0,#0xE0]                                         ; +0x48, 0x8c9c0\nB               loc_918D0                                              ; +0x4c, 0x8c9c4", "xrefs": ["sub_8D6F8 @ 0x8e284"], "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"}