{"type": "func", "start": 391480, "end": 391536, "name": "sub_5F938", "pseudocode": "// \n// sub_5F938 from 0x5f938 to 0x5f970 (56 bytes)\n// \n// 3 xrefs:\n// > sub_5F848 @ 0x5f8e8\n// > sub_62E54 @ 0x62e6c\n// > sub_62EE4 @ 0x62efc\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_QWORD *__fastcall sub_5F938(_QWORD **a1, int a2)\n{\n  _QWORD *result; // x0\n  int v4; // w9\n\n  if ( a2 < 0 )\n    return nullptr;\n  result = *a1;\n  if ( result == a1 )\n    return nullptr;\n  v4 = a2 + 1;\n  while ( --v4 >= 1 )\n  {\n    result = (_QWORD *)*result;\n    if ( result == a1 )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; sub_5F938 from 0x5f938 to 0x5f970 (56 bytes)\n; \n; 3 xrefs:\n; > sub_5F848 @ 0x5f8e8\n; > sub_62E54 @ 0x62e6c\n; > sub_62EE4 @ 0x62efc\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\nTBNZ            W1, #0x1F, loc_5F968                                   ; +0x0, 0x5f938\nMOV             X8, X0                                                 ; +0x4, 0x5f93c\nLDR             X0, [X0]                                               ; +0x8, 0x5f940\nCMP             X0, X8                                                 ; +0xc, 0x5f944\nB.EQ            loc_5F968                                              ; +0x10, 0x5f948\nADD             W9, W1, #1                                             ; +0x14, 0x5f94c\nSUB             W9, W9, #1                                             ; +0x18, 0x5f950\nCMP             W9, #1                                                 ; +0x1c, 0x5f954\nB.LT            locret_5F96C                                           ; +0x20, 0x5f958\nLDR             X0, [X0]                                               ; +0x24, 0x5f95c\nCMP             X0, X8                                                 ; +0x28, 0x5f960\nB.NE            loc_5F950                                              ; +0x2c, 0x5f964\nMOV             X0, XZR                                                ; +0x30, 0x5f968\nRET                                                                    ; +0x34, 0x5f96c", "xrefs": ["sub_5F848 @ 0x5f8e8", "sub_62E54 @ 0x62e6c", "sub_62EE4 @ 0x62efc"], "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"}