{"type": "func", "start": 8187756, "end": 8187836, "name": "BIO_socket_ioctl", "pseudocode": "// \n// BIO_socket_ioctl from 0x7cef6c to 0x7cefbc (80 bytes)\n// \n// 2 xrefs:\n// > BIO_socket_nbio @ 0x7cf2f0\n// > <???> @ 0x5f62c\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_socket_ioctl(int a1, unsigned int a2)\n{\n  int result; // r0\n  int v3; // r4\n  _DWORD *v4; // r0\n\n  result = ioctl(a1, a2);\n  v3 = result;\n  if ( result < 0 )\n  {\n    v4 = (_DWORD *)_errno();\n    ERR_put_error(2, 5, *v4, \"crypto/bio/b_sock.c\", 206);\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; BIO_socket_ioctl from 0x7cef6c to 0x7cefbc (80 bytes)\n; \n; 2 xrefs:\n; > BIO_socket_nbio @ 0x7cf2f0\n; > <???> @ 0x5f62c\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\nPUSH            {R4,LR}                                                ; +0x0, 0x7cef6c\nSUB             SP, SP, #8                                             ; +0x4, 0x7cef70\nBL              ioctl                                                  ; +0x8, 0x7cef74\nSUBS            R4, R0, #0                                             ; +0xc, 0x7cef78\nBLT             loc_7CEF8C                                             ; +0x10, 0x7cef7c\nMOV             R0, R4                                                 ; +0x14, 0x7cef80\nADD             SP, SP, #8                                             ; +0x18, 0x7cef84\nPOP             {R4,PC}                                                ; +0x1c, 0x7cef88\nBL              __errno                                                ; +0x20, 0x7cef8c\nMOV             R3, #0xCE                                              ; +0x24, 0x7cef90\nMOV             R1, #5                                                 ; +0x28, 0x7cef94\nLDR             R2, [R0]                                               ; +0x2c, 0x7cef98\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x7cef9c\nLDR             R3, =(aCryptoBioBSock - 0x7CEFB0); \"crypto/bio/b_sock.c\" ; +0x34, 0x7cefa0\nMOV             R0, #2                                                 ; +0x38, 0x7cefa4\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x3c, 0x7cefa8\nBL              ERR_put_error                                          ; +0x40, 0x7cefac\nMOV             R0, R4                                                 ; +0x44, 0x7cefb0\nADD             SP, SP, #8                                             ; +0x48, 0x7cefb4\nPOP             {R4,PC}                                                ; +0x4c, 0x7cefb8", "xrefs": ["BIO_socket_nbio @ 0x7cf2f0", "<???> @ 0x5f62c"], "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"}