{"type": "func", "start": 326490, "end": 326536, "name": "sub_4FB5A", "pseudocode": "// \n// sub_4FB5A from 0x4fb5a to 0x4fb88 (46 bytes)\n// \n// 1 xrefs:\n// > sub_4FBC8 @ 0x4fbc8\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_4FB5A(int a1, int a2, _DWORD *a3)\n{\n  int result; // r0\n\n  if ( a2 < 0 )\n    return 31;\n  result = 31;\n  if ( a3 )\n  {\n    if ( *(_DWORD *)(a1 + 800) > a2 )\n    {\n      *a3 = *(_DWORD *)(*(_DWORD *)(a1 + 4 * a2 + 808) + 208);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4FB5A from 0x4fb5a to 0x4fb88 (46 bytes)\n; \n; 1 xrefs:\n; > sub_4FBC8 @ 0x4fbc8\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,R6,R7,LR}                                          ; +0x0, 0x4fb5a\nADD             R7, SP, #8                                             ; +0x2, 0x4fb5c\nCMP             R1, #0                                                 ; +0x4, 0x4fb5e\nBMI             loc_4FB84                                              ; +0x6, 0x4fb60\nMOV             R3, R0                                                 ; +0x8, 0x4fb62\nMOVS            R0, #0x1F                                              ; +0xa, 0x4fb64\nCBZ             R2, locret_4FB82                                       ; +0xc, 0x4fb66\nLDR.W           R4, [R3,#0x320]                                        ; +0xe, 0x4fb68\nCMP             R4, R1                                                 ; +0x12, 0x4fb6c\nITTTT GT                                                               ; +0x14, 0x4fb6e\nADDGT.W         R0, R3, R1,LSL#2                                       ; +0x16, 0x4fb70\nLDRGT.W         R0, [R0,#0x328]                                        ; +0x1a, 0x4fb74\nLDRGT.W         R0, [R0,#0xD0]                                         ; +0x1e, 0x4fb78\nSTRGT           R0, [R2]                                               ; +0x22, 0x4fb7c\nIT GT                                                                  ; +0x24, 0x4fb7e\nMOVGT           R0, #0                                                 ; +0x26, 0x4fb80\nPOP             {R4,R6,R7,PC}                                          ; +0x28, 0x4fb82\nMOVS            R0, #0x1F                                              ; +0x2a, 0x4fb84\nPOP             {R4,R6,R7,PC}                                          ; +0x2c, 0x4fb86", "xrefs": ["sub_4FBC8 @ 0x4fbc8"], "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"}