{"type": "func", "start": 17326700, "end": 17326792, "name": "ASN1_BIT_STRING_get_bit", "pseudocode": "// \n// ASN1_BIT_STRING_get_bit from 0x108626c to 0x10862c8 (92 bytes)\n// \n// 4 xrefs:\n// > sub_107AA18 @ 0x107ab58\n// > sub_107ACCC @ 0x107ae40\n// > i2v_ASN1_BIT_STRING @ 0x10edf60\n// > <???> @ 0xcfc40\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:17:13 +0000\n// \n\n__int64 __fastcall ASN1_BIT_STRING_get_bit(__int64 a1, int a2)\n{\n  int v2; // w3\n  unsigned int v3; // w2\n  __int64 v4; // x0\n\n  v2 = a2 / 8;\n  if ( !a1 )\n    return 0;\n  v3 = 0;\n  if ( v2 < *(_DWORD *)a1 )\n  {\n    v4 = *(_QWORD *)(a1 + 8);\n    if ( v4 )\n      return (*(unsigned __int8 *)(v4 + v2) & (1 << (~(_BYTE)a2 & 7))) != 0;\n  }\n  return v3;\n}", "assembly": "; \n; ASN1_BIT_STRING_get_bit from 0x108626c to 0x10862c8 (92 bytes)\n; \n; 4 xrefs:\n; > sub_107AA18 @ 0x107ab58\n; > sub_107ACCC @ 0x107ae40\n; > i2v_ASN1_BIT_STRING @ 0x10edf60\n; > <???> @ 0xcfc40\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:17:13 +0000\n; \nADD             W2, W1, #7                                             ; +0x0, 0x108626c\nCMP             W1, WZR                                                ; +0x4, 0x1086270\nCSEL            W2, W2, W1, LT                                         ; +0x8, 0x1086274\nASR             W3, W2, #3                                             ; +0xc, 0x1086278\nCBZ             X0, loc_10862BC                                        ; +0x10, 0x108627c\nLDR             W4, [X0]                                               ; +0x14, 0x1086280\nMOV             W2, #0                                                 ; +0x18, 0x1086284\nCMP             W3, W4                                                 ; +0x1c, 0x1086288\nB.GE            loc_10862B4                                            ; +0x20, 0x108628c\nLDR             X0, [X0,#8]                                            ; +0x24, 0x1086290\nCBZ             X0, loc_10862B4                                        ; +0x28, 0x1086294\nMVN             W1, W1                                                 ; +0x2c, 0x1086298\nLDRB            W2, [X0,W3,SXTW]                                       ; +0x30, 0x108629c\nAND             W1, W1, #7                                             ; +0x34, 0x10862a0\nMOV             W0, #1                                                 ; +0x38, 0x10862a4\nLSL             W1, W0, W1                                             ; +0x3c, 0x10862a8\nTST             W2, W1                                                 ; +0x40, 0x10862ac\nCSET            W2, NE                                                 ; +0x44, 0x10862b0\nMOV             W0, W2                                                 ; +0x48, 0x10862b4\nRET                                                                    ; +0x4c, 0x10862b8\nMOV             W2, W0                                                 ; +0x50, 0x10862bc\nMOV             W0, W2                                                 ; +0x54, 0x10862c0\nRET                                                                    ; +0x58, 0x10862c4", "xrefs": ["sub_107AA18 @ 0x107ab58", "sub_107ACCC @ 0x107ae40", "i2v_ASN1_BIT_STRING @ 0x10edf60", "<???> @ 0xcfc40"], "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"}