{"type": "func", "start": 360826, "end": 360856, "name": "sub_5817A", "pseudocode": "// \n// sub_5817A from 0x5817a to 0x58198 (30 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_5817A(int a1, _DWORD *a2)\n{\n  int result; // r0\n\n  result = sub_BBC8C(*(_DWORD *)(a1 + 220));\n  if ( a2 )\n    *a2 -= *(_DWORD *)(a1 + 152);\n  return result;\n}", "assembly": "; \n; sub_5817A from 0x5817a to 0x58198 (30 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\nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x5817a\nADD             R7, SP, #8                                             ; +0x2, 0x5817c\nMOV             R5, R0                                                 ; +0x4, 0x5817e\nLDR.W           R0, [R0,#0xDC]                                         ; +0x6, 0x58180\nMOV             R4, R1                                                 ; +0xa, 0x58184\nBL              sub_BBC8C                                              ; +0xc, 0x58186\nCBZ             R4, locret_58196                                       ; +0x10, 0x5818a\nLDR.W           R1, [R5,#0x98]                                         ; +0x12, 0x5818c\nLDR             R2, [R4]                                               ; +0x16, 0x58190\nSUBS            R1, R2, R1                                             ; +0x18, 0x58192\nSTR             R1, [R4]                                               ; +0x1a, 0x58194\nPOP             {R4,R5,R7,PC}                                          ; +0x1c, 0x58196", "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"}