{"type": "func", "start": 8173864, "end": 8173988, "name": "BIO_ADDR_make", "pseudocode": "// \n// BIO_ADDR_make from 0x7cb928 to 0x7cb9a4 (124 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f33c\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_make(_DWORD *a1, _DWORD *a2)\n{\n  int v2; // r2\n  int v5; // r0\n  int v6; // r1\n  int v7; // r2\n  int v8; // r3\n  _DWORD *v9; // t0\n  _DWORD *v10; // r12\n  int v11; // r0\n  int v12; // r1\n  int v13; // r2\n  int v14; // r3\n  _DWORD *v15; // lr\n  int v16; // r1\n  int v17; // r2\n\n  v2 = *(unsigned __int16 *)a2;\n  if ( v2 == 2 )\n  {\n    v5 = *a2;\n    v9 = a2 + 1;\n    v6 = a2[1];\n    v7 = *++v9;\n    v8 = v9[1];\n    *a1 = v5;\n    a1[1] = v6;\n    a1[2] = v7;\n    a1[3] = v8;\n    return 1;\n  }\n  else if ( v2 == 10 )\n  {\n    v10 = a2;\n    v11 = *a2;\n    v12 = a2[1];\n    v13 = v10[2];\n    v14 = v10[3];\n    v10 += 4;\n    *a1 = v11;\n    a1[1] = v12;\n    a1[2] = v13;\n    a1[3] = v14;\n    v15 = a1 + 4;\n    v16 = v10[1];\n    v17 = v10[2];\n    *v15 = *v10;\n    v15[1] = v16;\n    v15[2] = v17;\n    return 1;\n  }\n  else if ( *(_WORD *)a1 == 1 )\n  {\n    memcpy(a1, a2, 0x6Eu);\n    return 1;\n  }\n  else\n  {\n    return 0;\n  }\n}", "assembly": "; \n; BIO_ADDR_make from 0x7cb928 to 0x7cb9a4 (124 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f33c\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            R2, [R1]                                               ; +0x0, 0x7cb928\nPUSH            {R4,LR}                                                ; +0x4, 0x7cb92c\nCMP             R2, #2                                                 ; +0x8, 0x7cb930\nMOV             LR, R0                                                 ; +0xc, 0x7cb934\nBEQ             loc_7CB970                                             ; +0x10, 0x7cb938\nCMP             R2, #0xA                                               ; +0x14, 0x7cb93c\nBEQ             loc_7CB984                                             ; +0x18, 0x7cb940\nLDRH            R4, [R0]                                               ; +0x1c, 0x7cb944\nCMP             R4, #1                                                 ; +0x20, 0x7cb948\nMOVNE           R12, #0                                                ; +0x24, 0x7cb94c\nBEQ             loc_7CB95C                                             ; +0x28, 0x7cb950\nMOV             R0, R12; void *                                        ; +0x2c, 0x7cb954\nPOP             {R4,PC}                                                ; +0x30, 0x7cb958\nMOV             R2, #0x6E ; 'n'; size_t                                ; +0x34, 0x7cb95c\nBL              memcpy                                                 ; +0x38, 0x7cb960\nMOV             R12, R4                                                ; +0x3c, 0x7cb964\nMOV             R0, R12                                                ; +0x40, 0x7cb968\nPOP             {R4,PC}                                                ; +0x44, 0x7cb96c\nLDM             R1, {R0-R3}                                            ; +0x48, 0x7cb970\nMOV             R12, #1                                                ; +0x4c, 0x7cb974\nSTM             LR, {R0-R3}                                            ; +0x50, 0x7cb978\nMOV             R0, R12                                                ; +0x54, 0x7cb97c\nPOP             {R4,PC}                                                ; +0x58, 0x7cb980\nMOV             R12, R1                                                ; +0x5c, 0x7cb984\nLDM             R12!, {R0-R3}                                          ; +0x60, 0x7cb988\nSTM             LR!, {R0-R3}                                           ; +0x64, 0x7cb98c\nLDM             R12, {R0-R2}                                           ; +0x68, 0x7cb990\nMOV             R12, #1                                                ; +0x6c, 0x7cb994\nSTM             LR, {R0-R2}                                            ; +0x70, 0x7cb998\nMOV             R0, R12                                                ; +0x74, 0x7cb99c\nPOP             {R4,PC}                                                ; +0x78, 0x7cb9a0", "xrefs": ["<???> @ 0x5f33c"], "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"}