{"type": "func", "start": 10357556, "end": 10357632, "name": "BIO_ADDRINFO_protocol", "pseudocode": "// \n// BIO_ADDRINFO_protocol from 0x9e0b34 to 0x9e0b80 (76 bytes)\n// \n// 5 xrefs:\n// > BIO_get_accept_socket @ 0x9e3c90\n// > sub_9E60BC @ 0x9e61fc\n// > sub_9E6944 @ 0x9e6af0\n// > sub_9E6E44 @ 0x9e6ff8\n// > <???> @ 0x78eac\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 12:07:20 +0000\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 0x9e0b34 to 0x9e0b80 (76 bytes)\n; \n; 5 xrefs:\n; > BIO_get_accept_socket @ 0x9e3c90\n; > sub_9E60BC @ 0x9e61fc\n; > sub_9E6944 @ 0x9e6af0\n; > sub_9E6E44 @ 0x9e6ff8\n; > <???> @ 0x78eac\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 12:07:20 +0000\n; \nSUBS            R3, R0, #0                                             ; +0x0, 0x9e0b34\nBEQ             loc_9E0B70                                             ; +0x4, 0x9e0b38\nLDR             R0, [R3,#0xC]                                          ; +0x8, 0x9e0b3c\nCMP             R0, #0                                                 ; +0xc, 0x9e0b40\nBXNE            LR                                                     ; +0x10, 0x9e0b44\nLDR             R2, [R3,#4]                                            ; +0x14, 0x9e0b48\nCMP             R2, #1                                                 ; +0x18, 0x9e0b4c\nBXEQ            LR                                                     ; +0x1c, 0x9e0b50\nLDR             R0, [R3,#8]                                            ; +0x20, 0x9e0b54\nCMP             R0, #1                                                 ; +0x24, 0x9e0b58\nBEQ             loc_9E0B78                                             ; +0x28, 0x9e0b5c\nCMP             R0, #2                                                 ; +0x2c, 0x9e0b60\nMOVEQ           R0, #0x11                                              ; +0x30, 0x9e0b64\nMOVNE           R0, #0                                                 ; +0x34, 0x9e0b68\nBX              LR                                                     ; +0x38, 0x9e0b6c\nMOV             R0, R3                                                 ; +0x3c, 0x9e0b70\nBX              LR                                                     ; +0x40, 0x9e0b74\nMOV             R0, #6                                                 ; +0x44, 0x9e0b78\nBX              LR                                                     ; +0x48, 0x9e0b7c", "xrefs": ["BIO_get_accept_socket @ 0x9e3c90", "sub_9E60BC @ 0x9e61fc", "sub_9E6944 @ 0x9e6af0", "sub_9E6E44 @ 0x9e6ff8", "<???> @ 0x78eac"], "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"}