{"type": "func", "start": 323744, "end": 323774, "name": "sub_4F0A0", "pseudocode": "// \n// sub_4F0A0 from 0x4f0a0 to 0x4f0be (30 bytes)\n// \n// 3 xrefs:\n// > sub_4EFF6 @ 0x4f060\n// > sub_51B52 @ 0x51b5e\n// > sub_51BB0 @ 0x51bbc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:42 +0000\n// \n\n_DWORD *__fastcall sub_4F0A0(_DWORD **a1, int a2)\n{\n  _DWORD *result; // r0\n  int v4; // r1\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 = (_DWORD *)*result;\n    if ( result == a1 )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; sub_4F0A0 from 0x4f0a0 to 0x4f0be (30 bytes)\n; \n; 3 xrefs:\n; > sub_4EFF6 @ 0x4f060\n; > sub_51B52 @ 0x51b5e\n; > sub_51BB0 @ 0x51bbc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:42 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x4f0a0\nBMI             loc_4F0BA                                              ; +0x2, 0x4f0a2\nMOV             R2, R0                                                 ; +0x4, 0x4f0a4\nLDR             R0, [R0]                                               ; +0x6, 0x4f0a6\nCMP             R0, R2                                                 ; +0x8, 0x4f0a8\nBEQ             loc_4F0BA                                              ; +0xa, 0x4f0aa\nADDS            R1, #1                                                 ; +0xc, 0x4f0ac\nSUBS            R1, #1                                                 ; +0xe, 0x4f0ae\nCMP             R1, #1                                                 ; +0x10, 0x4f0b0\nBLT             locret_4F0BC                                           ; +0x12, 0x4f0b2\nLDR             R0, [R0]                                               ; +0x14, 0x4f0b4\nCMP             R0, R2                                                 ; +0x16, 0x4f0b6\nBNE             loc_4F0AE                                              ; +0x18, 0x4f0b8\nMOVS            R0, #0                                                 ; +0x1a, 0x4f0ba\nBX              LR                                                     ; +0x1c, 0x4f0bc", "xrefs": ["sub_4EFF6 @ 0x4f060", "sub_51B52 @ 0x51b5e", "sub_51BB0 @ 0x51bbc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}