{"type": "func", "start": 8175412, "end": 8175488, "name": "BIO_ADDRINFO_protocol", "pseudocode": "// \n// BIO_ADDRINFO_protocol from 0x7cbf34 to 0x7cbf80 (76 bytes)\n// \n// 5 xrefs:\n// > BIO_get_accept_socket @ 0x7cf090\n// > sub_7D14BC @ 0x7d15fc\n// > sub_7D1D44 @ 0x7d1ef0\n// > sub_7D2244 @ 0x7d23f8\n// > <???> @ 0x5f42c\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 BIO_ADDRINFO_protocol(_DWORD *a1)\n{\n  int result; // r0\n  int v3; // r0\n\n  if ( !a1 )\n    return 0;\n  result = a1[3];\n  if ( !result && a1[1] != 1 )\n  {\n    v3 = a1[2];\n    if ( v3 == 1 )\n    {\n      return 6;\n    }\n    else if ( v3 == 2 )\n    {\n      return 17;\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; BIO_ADDRINFO_protocol from 0x7cbf34 to 0x7cbf80 (76 bytes)\n; \n; 5 xrefs:\n; > BIO_get_accept_socket @ 0x7cf090\n; > sub_7D14BC @ 0x7d15fc\n; > sub_7D1D44 @ 0x7d1ef0\n; > sub_7D2244 @ 0x7d23f8\n; > <???> @ 0x5f42c\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\nSUBS            R3, R0, #0                                             ; +0x0, 0x7cbf34\nBEQ             loc_7CBF70                                             ; +0x4, 0x7cbf38\nLDR             R0, [R3,#0xC]                                          ; +0x8, 0x7cbf3c\nCMP             R0, #0                                                 ; +0xc, 0x7cbf40\nBXNE            LR                                                     ; +0x10, 0x7cbf44\nLDR             R2, [R3,#4]                                            ; +0x14, 0x7cbf48\nCMP             R2, #1                                                 ; +0x18, 0x7cbf4c\nBXEQ            LR                                                     ; +0x1c, 0x7cbf50\nLDR             R0, [R3,#8]                                            ; +0x20, 0x7cbf54\nCMP             R0, #1                                                 ; +0x24, 0x7cbf58\nBEQ             loc_7CBF78                                             ; +0x28, 0x7cbf5c\nCMP             R0, #2                                                 ; +0x2c, 0x7cbf60\nMOVEQ           R0, #0x11                                              ; +0x30, 0x7cbf64\nMOVNE           R0, #0                                                 ; +0x34, 0x7cbf68\nBX              LR                                                     ; +0x38, 0x7cbf6c\nMOV             R0, R3                                                 ; +0x3c, 0x7cbf70\nBX              LR                                                     ; +0x40, 0x7cbf74\nMOV             R0, #6                                                 ; +0x44, 0x7cbf78\nBX              LR                                                     ; +0x48, 0x7cbf7c", "xrefs": ["BIO_get_accept_socket @ 0x7cf090", "sub_7D14BC @ 0x7d15fc", "sub_7D1D44 @ 0x7d1ef0", "sub_7D2244 @ 0x7d23f8", "<???> @ 0x5f42c"], "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"}