{"type": "func", "start": 547076, "end": 547148, "name": "sub_85904", "pseudocode": "// \n// sub_85904 from 0x85904 to 0x8594c (72 bytes)\n// \n// 4 xrefs:\n// > sub_83E04 @ 0x8495c\n// > sub_83E04 @ 0x84a04\n// > sub_83E04 @ 0x84ce4\n// > sub_83E04 @ 0x84e34\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_85904(__int64 a1, int **a2, int *a3, _QWORD *a4)\n{\n  int v4; // w8\n  int *i; // x9\n  __int64 v6; // x9\n  _DWORD *v7; // x9\n\n  v4 = *a3;\n  for ( i = *a2; ; *a2 = i )\n  {\n    v6 = *i;\n    if ( (_DWORD)v6 == -1 )\n      return 74;\n    v7 = (_DWORD *)(*(_QWORD *)(a1 + 16) + 16 * v6);\n    if ( *v7 == v4 )\n      break;\n    i = v7 + 1;\n  }\n  *a4 = v7;\n  return 0;\n}", "assembly": "; \n; sub_85904 from 0x85904 to 0x8594c (72 bytes)\n; \n; 4 xrefs:\n; > sub_83E04 @ 0x8495c\n; > sub_83E04 @ 0x84a04\n; > sub_83E04 @ 0x84ce4\n; > sub_83E04 @ 0x84e34\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\nLDR             W8, [X2]                                               ; +0x0, 0x85904\nLDR             X9, [X1]                                               ; +0x4, 0x85908\nLDRSW           X9, [X9]                                               ; +0x8, 0x8590c\nCMN             W9, #1                                                 ; +0xc, 0x85910\nB.EQ            loc_85938                                              ; +0x10, 0x85914\nLDR             X10, [X0,#0x10]                                        ; +0x14, 0x85918\nADD             X9, X10, X9,LSL#4                                      ; +0x18, 0x8591c\nLDR             W10, [X9]                                              ; +0x1c, 0x85920\nCMP             W10, W8                                                ; +0x20, 0x85924\nB.EQ            loc_85940                                              ; +0x24, 0x85928\nADD             X9, X9, #4                                             ; +0x28, 0x8592c\nSTR             X9, [X1]                                               ; +0x2c, 0x85930\nB               loc_8590C                                              ; +0x30, 0x85934\nMOV             W0, #0x4A ; 'J'                                        ; +0x34, 0x85938\nRET                                                                    ; +0x38, 0x8593c\nMOV             W0, WZR                                                ; +0x3c, 0x85940\nSTR             X9, [X3]                                               ; +0x40, 0x85944\nRET                                                                    ; +0x44, 0x85948", "xrefs": ["sub_83E04 @ 0x8495c", "sub_83E04 @ 0x84a04", "sub_83E04 @ 0x84ce4", "sub_83E04 @ 0x84e34"], "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"}