{"type": "func", "start": 545212, "end": 545260, "name": "sub_851BC", "pseudocode": "// \n// sub_851BC from 0x851bc to 0x851ec (48 bytes)\n// \n// 1 xrefs:\n// > sub_85114 @ 0x85148\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_851BC(__int64 a1)\n{\n  __int64 v1; // x1\n  int v2; // w8\n  __int64 result; // x0\n\n  v1 = *(unsigned int *)(a1 + 8);\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( v2 < 0 )\n    v2 = -v2;\n  if ( (int)v1 >= v2 )\n    return 0;\n  result = sub_851EC(a1, v1);\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_851BC from 0x851bc to 0x851ec (48 bytes)\n; \n; 1 xrefs:\n; > sub_85114 @ 0x85148\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x851bc\nLDP             W1, W8, [X0,#8]                                        ; +0x4, 0x851c0\nMOV             X29, SP                                                ; +0x8, 0x851c4\nCMP             W8, #0                                                 ; +0xc, 0x851c8\nCNEG            W8, W8, MI                                             ; +0x10, 0x851cc\nCMP             W1, W8                                                 ; +0x14, 0x851d0\nB.GE            loc_851E0                                              ; +0x18, 0x851d4\nBL              sub_851EC                                              ; +0x1c, 0x851d8\nCBNZ            W0, loc_851E4                                          ; +0x20, 0x851dc\nMOV             W0, WZR                                                ; +0x24, 0x851e0\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x28, 0x851e4\nRET                                                                    ; +0x2c, 0x851e8", "xrefs": ["sub_85114 @ 0x85148"], "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"}