{"type": "func", "start": 16725180, "end": 16725404, "name": "BIO_sock_info", "pseudocode": "// \n// BIO_sock_info from 0xff34bc to 0xff359c (224 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa8148\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:47 +0000\n// \n\n__int64 __fastcall BIO_sock_info(int a1, int a2)\n{\n  struct sockaddr *v3; // x0\n  __int64 result; // x0\n  unsigned int *v5; // x0\n  socklen_t v6; // [xsp+2Ch] [xbp+2Ch] BYREF\n\n  if ( a2 )\n  {\n    ERR_put_error(32, 141, 140, \"crypto/bio/b_sock.c\", 375);\n  }\n  else\n  {\n    v6 = 112;\n    BIO_ADDR_sockaddr_noconst();\n    if ( getsockname(a1, v3, &v6) == -1 )\n    {\n      v5 = (unsigned int *)__errno();\n      ERR_put_error(2, 16, *v5, \"crypto/bio/b_sock.c\", 364);\n      ERR_put_error(32, 141, 132, \"crypto/bio/b_sock.c\", 365);\n    }\n    else\n    {\n      result = 1;\n      if ( v6 <= 0x70 )\n        return result;\n      ERR_put_error(32, 141, 133, \"crypto/bio/b_sock.c\", 369);\n    }\n  }\n  return 0;\n}", "assembly": "; \n; BIO_sock_info from 0xff34bc to 0xff359c (224 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa8148\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:47 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xff34bc\nMOV             X29, SP                                                ; +0x4, 0xff34c0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xff34c4\nMOV             W20, W0                                                ; +0xc, 0xff34c8\nCBNZ            W1, loc_FF3538                                         ; +0x10, 0xff34cc\nADD             X19, X29, #0x30+arg_0                                  ; +0x14, 0xff34d0\nLDR             X0, [X2]                                               ; +0x18, 0xff34d4\nMOV             W1, #0x70 ; 'p'                                        ; +0x1c, 0xff34d8\nSTR             W1, [X19,#-4]!                                         ; +0x20, 0xff34dc\nBL              BIO_ADDR_sockaddr_noconst                              ; +0x24, 0xff34e0\nMOV             X1, X0; struct sockaddr *                              ; +0x28, 0xff34e4\nMOV             W0, W20; int                                           ; +0x2c, 0xff34e8\nMOV             X2, X19; socklen_t *                                   ; +0x30, 0xff34ec\nBL              .getsockname                                           ; +0x34, 0xff34f0\nCMN             W0, #1                                                 ; +0x38, 0xff34f4\nB.EQ            loc_FF3558                                             ; +0x3c, 0xff34f8\nLDR             W1, [X29,#0x30+var_4]                                  ; +0x40, 0xff34fc\nMOV             W0, #1                                                 ; +0x44, 0xff3500\nCMP             W1, #0x70 ; 'p'                                        ; +0x48, 0xff3504\nB.LS            loc_FF352C                                             ; +0x4c, 0xff3508\nADRP            X3, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"       ; +0x50, 0xff350c\nMOV             W0, #0x20 ; ' '                                        ; +0x54, 0xff3510\nMOV             W1, #0x8D                                              ; +0x58, 0xff3514\nMOV             W2, #0x85                                              ; +0x5c, 0xff3518\nADD             X3, X3, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0x60, 0xff351c\nMOV             W4, #0x171                                             ; +0x64, 0xff3520\nBL              ERR_put_error                                          ; +0x68, 0xff3524\nMOV             W0, #0                                                 ; +0x6c, 0xff3528\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x70, 0xff352c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x74, 0xff3530\nRET                                                                    ; +0x78, 0xff3534\nADRP            X3, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"       ; +0x7c, 0xff3538\nMOV             W0, #0x20 ; ' '                                        ; +0x80, 0xff353c\nMOV             W1, #0x8D                                              ; +0x84, 0xff3540\nMOV             W2, #0x8C                                              ; +0x88, 0xff3544\nADD             X3, X3, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0x8c, 0xff3548\nMOV             W4, #0x177                                             ; +0x90, 0xff354c\nBL              ERR_put_error                                          ; +0x94, 0xff3550\nB               loc_FF3528                                             ; +0x98, 0xff3554\nBL              .__errno                                               ; +0x9c, 0xff3558\nMOV             X2, X0                                                 ; +0xa0, 0xff355c\nADRP            X19, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"      ; +0xa4, 0xff3560\nMOV             W0, #2                                                 ; +0xa8, 0xff3564\nADD             X19, X19, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0xac, 0xff3568\nMOV             W1, #0x10                                              ; +0xb0, 0xff356c\nLDR             W2, [X2]                                               ; +0xb4, 0xff3570\nMOV             X3, X19                                                ; +0xb8, 0xff3574\nMOV             W4, #0x16C                                             ; +0xbc, 0xff3578\nBL              ERR_put_error                                          ; +0xc0, 0xff357c\nMOV             W0, #0x20 ; ' '                                        ; +0xc4, 0xff3580\nMOV             W1, #0x8D                                              ; +0xc8, 0xff3584\nMOV             W2, #0x84                                              ; +0xcc, 0xff3588\nMOV             X3, X19                                                ; +0xd0, 0xff358c\nMOV             W4, #0x16D                                             ; +0xd4, 0xff3590\nBL              ERR_put_error                                          ; +0xd8, 0xff3594\nB               loc_FF3528                                             ; +0xdc, 0xff3598", "xrefs": ["<???> @ 0xa8148"], "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"}