{"type": "func", "start": 16712388, "end": 16712468, "name": "BIO_ADDRINFO_protocol", "pseudocode": "// \n// BIO_ADDRINFO_protocol from 0xff02c4 to 0xff0314 (80 bytes)\n// \n// 5 xrefs:\n// > BIO_get_accept_socket @ 0xff3268\n// > sub_FF571C @ 0xff5838\n// > sub_FF5F74 @ 0xff60d0\n// > sub_FF6400 @ 0xff655c\n// > <???> @ 0x90298\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:45 +0000\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 0xff02c4 to 0xff0314 (80 bytes)\n; \n; 5 xrefs:\n; > BIO_get_accept_socket @ 0xff3268\n; > sub_FF571C @ 0xff5838\n; > sub_FF5F74 @ 0xff60d0\n; > sub_FF6400 @ 0xff655c\n; > <???> @ 0x90298\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:45 +0000\n; \nCBZ             X0, loc_FF02FC                                         ; +0x0, 0xff02c4\nLDR             W1, [X0,#0xC]                                          ; +0x4, 0xff02c8\nCBNZ            W1, loc_FF02F4                                         ; +0x8, 0xff02cc\nLDR             W2, [X0,#4]                                            ; +0xc, 0xff02d0\nCMP             W2, #1                                                 ; +0x10, 0xff02d4\nB.EQ            loc_FF02F4                                             ; +0x14, 0xff02d8\nLDR             W0, [X0,#8]                                            ; +0x18, 0xff02dc\nCMP             W0, #1                                                 ; +0x1c, 0xff02e0\nB.EQ            loc_FF0308                                             ; +0x20, 0xff02e4\nCMP             W0, #2                                                 ; +0x24, 0xff02e8\nMOV             W1, #0x11                                              ; +0x28, 0xff02ec\nCSEL            W1, WZR, W1, NE                                        ; +0x2c, 0xff02f0\nMOV             W0, W1                                                 ; +0x30, 0xff02f4\nRET                                                                    ; +0x34, 0xff02f8\nMOV             W1, W0                                                 ; +0x38, 0xff02fc\nMOV             W0, W1                                                 ; +0x3c, 0xff0300\nRET                                                                    ; +0x40, 0xff0304\nMOV             W1, #6                                                 ; +0x44, 0xff0308\nMOV             W0, W1                                                 ; +0x48, 0xff030c\nRET                                                                    ; +0x4c, 0xff0310", "xrefs": ["BIO_get_accept_socket @ 0xff3268", "sub_FF571C @ 0xff5838", "sub_FF5F74 @ 0xff60d0", "sub_FF6400 @ 0xff655c", "<???> @ 0x90298"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}