{"type": "func", "start": 16710920, "end": 16711164, "name": "BIO_ADDR_rawmake", "pseudocode": "// \n// BIO_ADDR_rawmake from 0xfefd08 to 0xfefdfc (244 bytes)\n// \n// 2 xrefs:\n// > BIO_lookup @ 0xff06a4\n// > <???> @ 0x41668\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:45 +0000\n// \n\n__int64 __fastcall BIO_ADDR_rawmake(__int64 a1, int a2, char *a3, __int64 a4, __int16 a5)\n{\n  __int64 result; // x0\n  __int64 v7; // x3\n\n  if ( a2 == 1 )\n  {\n    result = 0;\n    if ( (unsigned __int64)(a4 + 1) <= 0x6C )\n    {\n      *(_DWORD *)(a1 + 104) = 0;\n      *(_WORD *)(a1 + 108) = 0;\n      *(_QWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 8) = 0;\n      *(_QWORD *)(a1 + 16) = 0;\n      *(_QWORD *)(a1 + 24) = 0;\n      *(_QWORD *)(a1 + 32) = 0;\n      *(_QWORD *)(a1 + 40) = 0;\n      *(_QWORD *)(a1 + 48) = 0;\n      *(_QWORD *)(a1 + 56) = 0;\n      *(_QWORD *)(a1 + 64) = 0;\n      *(_QWORD *)(a1 + 72) = 0;\n      *(_QWORD *)(a1 + 80) = 0;\n      *(_QWORD *)(a1 + 88) = 0;\n      *(_QWORD *)(a1 + 96) = 0;\n      *(_WORD *)a1 = 1;\n      strncpy((char *)(a1 + 2), a3, 0x6Bu);\n      return 1;\n    }\n  }\n  else if ( a2 == 2 )\n  {\n    result = 0;\n    if ( a4 == 4 )\n    {\n      *(_QWORD *)a1 = 0;\n      *(_QWORD *)(a1 + 8) = 0;\n      *(_WORD *)a1 = 2;\n      *(_WORD *)(a1 + 2) = a5;\n      *(_DWORD *)(a1 + 4) = *(_DWORD *)a3;\n      return 1;\n    }\n  }\n  else if ( a2 == 10 && a4 == 16 )\n  {\n    *(_QWORD *)a1 = 0;\n    *(_QWORD *)(a1 + 8) = 0;\n    *(_DWORD *)(a1 + 24) = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n    *(_WORD *)(a1 + 2) = a5;\n    *(_WORD *)a1 = 10;\n    v7 = *((_QWORD *)a3 + 1);\n    *(_QWORD *)(a1 + 8) = *(_QWORD *)a3;\n    *(_QWORD *)(a1 + 16) = v7;\n    return 1;\n  }\n  else\n  {\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; BIO_ADDR_rawmake from 0xfefd08 to 0xfefdfc (244 bytes)\n; \n; 2 xrefs:\n; > BIO_lookup @ 0xff06a4\n; > <???> @ 0x41668\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:45 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xfefd08\nCMP             W1, #1                                                 ; +0x4, 0xfefd0c\nMOV             X5, X0                                                 ; +0x8, 0xfefd10\nMOV             X29, SP                                                ; +0xc, 0xfefd14\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x10, 0xfefd18\nUXTH            W4, W4                                                 ; +0x14, 0xfefd1c\nMOV             W19, W1                                                ; +0x18, 0xfefd20\nB.EQ            loc_FEFD54                                             ; +0x1c, 0xfefd24\nCMP             W1, #2                                                 ; +0x20, 0xfefd28\nB.EQ            loc_FEFDA8                                             ; +0x24, 0xfefd2c\nCMP             W1, #0xA                                               ; +0x28, 0xfefd30\nB.NE            loc_FEFD44                                             ; +0x2c, 0xfefd34\nCMP             X3, #0x10                                              ; +0x30, 0xfefd38\nCSET            W0, NE                                                 ; +0x34, 0xfefd3c\nCBZ             W0, loc_FEFDD0                                         ; +0x38, 0xfefd40\nMOV             W0, #0                                                 ; +0x3c, 0xfefd44\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0xfefd48\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0xfefd4c\nRET                                                                    ; +0x48, 0xfefd50\nADD             X3, X3, #1                                             ; +0x4c, 0xfefd54\nMOV             W0, #0                                                 ; +0x50, 0xfefd58\nCMP             X3, #0x6C ; 'l'                                        ; +0x54, 0xfefd5c\nB.HI            loc_FEFD48                                             ; +0x58, 0xfefd60\nMOV             X3, X5                                                 ; +0x5c, 0xfefd64\nSTR             W0, [X5,#0x68]                                         ; +0x60, 0xfefd68\nSTRH            W0, [X5,#0x6C]                                         ; +0x64, 0xfefd6c\nSTP             XZR, XZR, [X5]                                         ; +0x68, 0xfefd70\nSTP             XZR, XZR, [X5,#0x10]                                   ; +0x6c, 0xfefd74\nSTP             XZR, XZR, [X5,#0x20]                                   ; +0x70, 0xfefd78\nSTP             XZR, XZR, [X5,#0x30]                                   ; +0x74, 0xfefd7c\nSTP             XZR, XZR, [X5,#0x40]                                   ; +0x78, 0xfefd80\nSTP             XZR, XZR, [X5,#0x50]                                   ; +0x7c, 0xfefd84\nSTR             XZR, [X5,#0x60]                                        ; +0x80, 0xfefd88\nSTRH            W1, [X3],#2                                            ; +0x84, 0xfefd8c\nMOV             X1, X2; char *                                         ; +0x88, 0xfefd90\nMOV             X2, #0x6B ; 'k'; size_t                                ; +0x8c, 0xfefd94\nMOV             X0, X3; char *                                         ; +0x90, 0xfefd98\nBL              .strncpy                                               ; +0x94, 0xfefd9c\nMOV             W0, W19                                                ; +0x98, 0xfefda0\nB               loc_FEFD48                                             ; +0x9c, 0xfefda4\nCMP             X3, #4                                                 ; +0xa0, 0xfefda8\nMOV             W0, #0                                                 ; +0xa4, 0xfefdac\nB.NE            loc_FEFD48                                             ; +0xa8, 0xfefdb0\nSTP             XZR, XZR, [X5]                                         ; +0xac, 0xfefdb4\nSTRH            W1, [X5]                                               ; +0xb0, 0xfefdb8\nMOV             W0, #1                                                 ; +0xb4, 0xfefdbc\nSTRH            W4, [X5,#2]                                            ; +0xb8, 0xfefdc0\nLDR             W1, [X2]                                               ; +0xbc, 0xfefdc4\nSTR             W1, [X5,#4]                                            ; +0xc0, 0xfefdc8\nB               loc_FEFD48                                             ; +0xc4, 0xfefdcc\nSTP             XZR, XZR, [X5]                                         ; +0xc8, 0xfefdd0\nSTR             W0, [X5,#0x18]                                         ; +0xcc, 0xfefdd4\nADD             X1, X5, #8                                             ; +0xd0, 0xfefdd8\nSTR             XZR, [X5,#0x10]                                        ; +0xd4, 0xfefddc\nMOV             W0, #0xA                                               ; +0xd8, 0xfefde0\nSTRH            W4, [X5,#2]                                            ; +0xdc, 0xfefde4\nSTRH            W0, [X5]                                               ; +0xe0, 0xfefde8\nMOV             W0, #1                                                 ; +0xe4, 0xfefdec\nLDP             X2, X3, [X2]                                           ; +0xe8, 0xfefdf0\nSTP             X2, X3, [X1]                                           ; +0xec, 0xfefdf4\nB               loc_FEFD48                                             ; +0xf0, 0xfefdf8", "xrefs": ["BIO_lookup @ 0xff06a4", "<???> @ 0x41668"], "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"}