{"type": "func", "start": 620650, "end": 620682, "name": "sub_9786A", "pseudocode": "// \n// sub_9786A from 0x9786a to 0x9788a (32 bytes)\n// \n// 0 xrefs:\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_9786A(int *a1, int a2, unsigned int a3)\n{\n  int v3; // r0\n  unsigned int v4; // r1\n  bool v5; // cf\n  int v6; // r1\n\n  v3 = *a1;\n  if ( !a2 )\n  {\n    v6 = 4;\nLABEL_7:\n    *(_DWORD *)(v3 + 992) = v6;\n    return 0;\n  }\n  v4 = *(_DWORD *)(v3 + 992);\n  if ( v4 )\n  {\n    v5 = v4 >= a3;\n    v6 = v4 - a3;\n    if ( !v5 )\n      v6 = 0;\n    goto LABEL_7;\n  }\n  return 11;\n}", "assembly": "; \n; sub_9786A from 0x9786a to 0x9788a (32 bytes)\n; \n; 0 xrefs:\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             R0, [R0]                                               ; +0x0, 0x9786a\nCBZ             R1, loc_9787C                                          ; +0x2, 0x9786c\nLDR.W           R1, [R0,#0x3E0]                                        ; +0x4, 0x9786e\nCBZ             R1, loc_97886                                          ; +0x8, 0x97872\nSUBS            R1, R1, R2                                             ; +0xa, 0x97874\nIT CC                                                                  ; +0xc, 0x97876\nMOVCC           R1, #0                                                 ; +0xe, 0x97878\nB               loc_9787E                                              ; +0x10, 0x9787a\nMOVS            R1, #4                                                 ; +0x12, 0x9787c\nSTR.W           R1, [R0,#0x3E0]                                        ; +0x14, 0x9787e\nMOVS            R0, #0                                                 ; +0x18, 0x97882\nBX              LR                                                     ; +0x1a, 0x97884\nMOVS            R0, #0xB                                               ; +0x1c, 0x97886\nBX              LR                                                     ; +0x1e, 0x97888", "xrefs": [], "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"}