{"type": "func", "start": 16724292, "end": 16724384, "name": "BIO_socket_ioctl", "pseudocode": "// \n// BIO_socket_ioctl from 0xff3144 to 0xff31a0 (92 bytes)\n// \n// 2 xrefs:\n// > BIO_socket_nbio @ 0xff34a8\n// > <???> @ 0xb4898\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:46 +0000\n// \n\n__int64 __fastcall BIO_socket_ioctl(int a1, unsigned __int64 a2)\n{\n  unsigned int v2; // w19\n  unsigned int *v4; // x0\n\n  v2 = ioctl(a1, a2);\n  if ( (v2 & 0x80000000) != 0 )\n  {\n    v4 = (unsigned int *)__errno();\n    ERR_put_error(2, 5, *v4, \"crypto/bio/b_sock.c\", 206);\n  }\n  return v2;\n}", "assembly": "; \n; BIO_socket_ioctl from 0xff3144 to 0xff31a0 (92 bytes)\n; \n; 2 xrefs:\n; > BIO_socket_nbio @ 0xff34a8\n; > <???> @ 0xb4898\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:46 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xff3144\nMOV             X29, SP                                                ; +0x4, 0xff3148\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xff314c\nBL              .ioctl                                                 ; +0xc, 0xff3150\nMOV             W19, W0                                                ; +0x10, 0xff3154\nTBNZ            W19, #0x1F, loc_FF316C                                 ; +0x14, 0xff3158\nMOV             W0, W19                                                ; +0x18, 0xff315c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x1c, 0xff3160\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x20, 0xff3164\nRET                                                                    ; +0x24, 0xff3168\nBL              .__errno                                               ; +0x28, 0xff316c\nMOV             X2, X0                                                 ; +0x2c, 0xff3170\nADRP            X3, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"       ; +0x30, 0xff3174\nMOV             W0, #2                                                 ; +0x34, 0xff3178\nMOV             W1, #5                                                 ; +0x38, 0xff317c\nADD             X3, X3, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0x3c, 0xff3180\nLDR             W2, [X2]                                               ; +0x40, 0xff3184\nMOV             W4, #0xCE                                              ; +0x44, 0xff3188\nBL              ERR_put_error                                          ; +0x48, 0xff318c\nMOV             W0, W19                                                ; +0x4c, 0xff3190\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0xff3194\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0xff3198\nRET                                                                    ; +0x58, 0xff319c", "xrefs": ["BIO_socket_nbio @ 0xff34a8", "<???> @ 0xb4898"], "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"}