{"type": "func", "start": 8174408, "end": 8174460, "name": "BIO_ADDR_sockaddr_size", "pseudocode": "// \n// BIO_ADDR_sockaddr_size from 0x7cbb48 to 0x7cbb7c (52 bytes)\n// \n// 4 xrefs:\n// > sub_7CBB7C @ 0x7cbc04\n// > BIO_connect @ 0x7cf51c\n// > BIO_listen @ 0x7cf83c\n// > <???> @ 0x5f3bc\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_ADDR_sockaddr_size(unsigned __int16 *a1)\n{\n  int v1; // r0\n\n  v1 = *a1;\n  switch ( v1 )\n  {\n    case 2:\n      return 16;\n    case 10:\n      return 28;\n    case 1:\n      return 110;\n  }\n  return 112;\n}", "assembly": "; \n; BIO_ADDR_sockaddr_size from 0x7cbb48 to 0x7cbb7c (52 bytes)\n; \n; 4 xrefs:\n; > sub_7CBB7C @ 0x7cbc04\n; > BIO_connect @ 0x7cf51c\n; > BIO_listen @ 0x7cf83c\n; > <???> @ 0x5f3bc\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\nLDRH            R0, [R0]                                               ; +0x0, 0x7cbb48\nCMP             R0, #2                                                 ; +0x4, 0x7cbb4c\nBEQ             loc_7CBB6C                                             ; +0x8, 0x7cbb50\nCMP             R0, #0xA                                               ; +0xc, 0x7cbb54\nBEQ             loc_7CBB74                                             ; +0x10, 0x7cbb58\nCMP             R0, #1                                                 ; +0x14, 0x7cbb5c\nMOVEQ           R0, #0x6E ; 'n'                                        ; +0x18, 0x7cbb60\nMOVNE           R0, #0x70 ; 'p'                                        ; +0x1c, 0x7cbb64\nBX              LR                                                     ; +0x20, 0x7cbb68\nMOV             R0, #0x10                                              ; +0x24, 0x7cbb6c\nBX              LR                                                     ; +0x28, 0x7cbb70\nMOV             R0, #0x1C                                              ; +0x2c, 0x7cbb74\nBX              LR                                                     ; +0x30, 0x7cbb78", "xrefs": ["sub_7CBB7C @ 0x7cbc04", "BIO_connect @ 0x7cf51c", "BIO_listen @ 0x7cf83c", "<???> @ 0x5f3bc"], "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"}