{"type": "func", "start": 14098276, "end": 14098356, "name": "BIO_ADDRINFO_protocol", "pseudocode": "// \n// BIO_ADDRINFO_protocol from 0xd71f64 to 0xd71fb4 (80 bytes)\n// \n// 5 xrefs:\n// > BIO_get_accept_socket @ 0xd74f08\n// > sub_D773BC @ 0xd774d8\n// > sub_D77C14 @ 0xd77d70\n// > sub_D780A0 @ 0xd781fc\n// > <???> @ 0x6a938\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 BIO_ADDRINFO_protocol(_DWORD *a1)\n{\n  unsigned int v1; // w1\n  int v2; // w0\n\n  if ( !a1 )\n    return 0;\n  v1 = a1[3];\n  if ( v1 || a1[1] == 1 )\n    return v1;\n  v2 = a1[2];\n  if ( v2 != 1 )\n  {\n    if ( v2 == 2 )\n      return 17;\n    else\n      return 0;\n  }\n  return 6;\n}", "assembly": "; \n; BIO_ADDRINFO_protocol from 0xd71f64 to 0xd71fb4 (80 bytes)\n; \n; 5 xrefs:\n; > BIO_get_accept_socket @ 0xd74f08\n; > sub_D773BC @ 0xd774d8\n; > sub_D77C14 @ 0xd77d70\n; > sub_D780A0 @ 0xd781fc\n; > <???> @ 0x6a938\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\nCBZ             X0, loc_D71F9C                                         ; +0x0, 0xd71f64\nLDR             W1, [X0,#0xC]                                          ; +0x4, 0xd71f68\nCBNZ            W1, loc_D71F94                                         ; +0x8, 0xd71f6c\nLDR             W2, [X0,#4]                                            ; +0xc, 0xd71f70\nCMP             W2, #1                                                 ; +0x10, 0xd71f74\nB.EQ            loc_D71F94                                             ; +0x14, 0xd71f78\nLDR             W0, [X0,#8]                                            ; +0x18, 0xd71f7c\nCMP             W0, #1                                                 ; +0x1c, 0xd71f80\nB.EQ            loc_D71FA8                                             ; +0x20, 0xd71f84\nCMP             W0, #2                                                 ; +0x24, 0xd71f88\nMOV             W1, #0x11                                              ; +0x28, 0xd71f8c\nCSEL            W1, WZR, W1, NE                                        ; +0x2c, 0xd71f90\nMOV             W0, W1                                                 ; +0x30, 0xd71f94\nRET                                                                    ; +0x34, 0xd71f98\nMOV             W1, W0                                                 ; +0x38, 0xd71f9c\nMOV             W0, W1                                                 ; +0x3c, 0xd71fa0\nRET                                                                    ; +0x40, 0xd71fa4\nMOV             W1, #6                                                 ; +0x44, 0xd71fa8\nMOV             W0, W1                                                 ; +0x48, 0xd71fac\nRET                                                                    ; +0x4c, 0xd71fb0", "xrefs": ["BIO_get_accept_socket @ 0xd74f08", "sub_D773BC @ 0xd774d8", "sub_D77C14 @ 0xd77d70", "sub_D780A0 @ 0xd781fc", "<???> @ 0x6a938"], "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"}