{"type": "func", "start": 10369236, "end": 10369316, "name": "BIO_sock_error", "pseudocode": "// \n// BIO_sock_error from 0x9e38d4 to 0x9e3924 (80 bytes)\n// \n// 4 xrefs:\n// > sub_9E60BC @ 0x9e613c\n// > sub_9E6944 @ 0x9e69ac\n// > sub_9E6E44 @ 0x9e6f70\n// > <???> @ 0x7905c\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:22 +0000\n// \n\nint __fastcall BIO_sock_error(int a1)\n{\n  int v2; // [sp+8h] [bp-Ch] BYREF\n  socklen_t v3[2]; // [sp+Ch] [bp-8h] BYREF\n\n  v3[0] = 4;\n  v2 = 0;\n  if ( getsockopt(a1, 1, 4, &v2, v3) < 0 )\n    return *(_DWORD *)_errno();\n  else\n    return v2;\n}", "assembly": "; \n; BIO_sock_error from 0x9e38d4 to 0x9e3924 (80 bytes)\n; \n; 4 xrefs:\n; > sub_9E60BC @ 0x9e613c\n; > sub_9E6944 @ 0x9e69ac\n; > sub_9E6E44 @ 0x9e6f70\n; > <???> @ 0x7905c\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:22 +0000\n; \nPUSH            {LR}                                                   ; +0x0, 0x9e38d4\nSUB             SP, SP, #0x14                                          ; +0x4, 0x9e38d8\nMOV             R12, #4                                                ; +0x8, 0x9e38dc\nADD             R3, SP, #0x14+var_8                                    ; +0xc, 0x9e38e0\nSTR             R3, [SP,#0x14+var_14]; socklen_t *                     ; +0x10, 0x9e38e4\nMOV             LR, #0                                                 ; +0x14, 0x9e38e8\nMOV             R2, R12; int                                           ; +0x18, 0x9e38ec\nMOV             R1, #1; int                                            ; +0x1c, 0x9e38f0\nADD             R3, SP, #0x14+var_C; void *                            ; +0x20, 0x9e38f4\nSTR             R12, [SP,#0x14+var_8]                                  ; +0x24, 0x9e38f8\nSTR             LR, [SP,#0x14+var_C]                                   ; +0x28, 0x9e38fc\nBL              getsockopt                                             ; +0x2c, 0x9e3900\nCMP             R0, #0                                                 ; +0x30, 0x9e3904\nLDRGE           R0, [SP,#0x14+var_C]                                   ; +0x34, 0x9e3908\nBLT             loc_9E3918                                             ; +0x38, 0x9e390c\nADD             SP, SP, #0x14                                          ; +0x3c, 0x9e3910\nPOP             {PC}                                                   ; +0x40, 0x9e3914\nBL              __errno                                                ; +0x44, 0x9e3918\nLDR             R0, [R0]                                               ; +0x48, 0x9e391c\nB               loc_9E3910                                             ; +0x4c, 0x9e3920", "xrefs": ["sub_9E60BC @ 0x9e613c", "sub_9E6944 @ 0x9e69ac", "sub_9E6E44 @ 0x9e6f70", "<???> @ 0x7905c"], "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"}