{"type": "func", "start": 375252, "end": 375282, "name": "sub_5B9D4", "pseudocode": "// \n// sub_5B9D4 from 0x5b9d4 to 0x5b9f2 (30 bytes)\n// \n// 1 xrefs:\n// > sub_5793C @ 0x57952\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_5B9D4(int a1)\n{\n  int v1; // r1\n  int v2; // r2\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 8);\n  v1 = *(_DWORD *)(a1 + 4);\n  if ( v2 < 0 )\n    v2 = -v2;\n  if ( v1 >= v2 )\n    return 0;\n  result = sub_5B9F2(a1, v1);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_5B9D4 from 0x5b9d4 to 0x5b9f2 (30 bytes)\n; \n; 1 xrefs:\n; > sub_5793C @ 0x57952\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            {R7,LR}                                                ; +0x0, 0x5b9d4\nMOV             R7, SP                                                 ; +0x2, 0x5b9d6\nLDRD.W          R1, R2, [R0,#4]                                        ; +0x4, 0x5b9d8\nCMP             R2, #0                                                 ; +0x8, 0x5b9dc\nBPL             loc_5B9E2                                              ; +0xa, 0x5b9de\nNEGS            R2, R2                                                 ; +0xc, 0x5b9e0\nCMP             R1, R2                                                 ; +0xe, 0x5b9e2\nBGE             loc_5B9EE                                              ; +0x10, 0x5b9e4\nBL              sub_5B9F2                                              ; +0x12, 0x5b9e6\nCBZ             R0, loc_5B9EE                                          ; +0x16, 0x5b9ea\nPOP             {R7,PC}                                                ; +0x18, 0x5b9ec\nMOVS            R0, #0                                                 ; +0x1a, 0x5b9ee\nPOP             {R7,PC}                                                ; +0x1c, 0x5b9f0", "xrefs": ["sub_5793C @ 0x57952"], "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"}