{"type": "func", "start": 8781628, "end": 8781716, "name": "ASN1_BIT_STRING_get_bit", "pseudocode": "// \n// ASN1_BIT_STRING_get_bit from 0x85ff3c to 0x85ff94 (88 bytes)\n// \n// 4 xrefs:\n// > sub_855934 @ 0x855aa4\n// > sub_855CA0 @ 0x855e18\n// > i2v_ASN1_BIT_STRING @ 0x8c420c\n// > <???> @ 0x68e6c\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 ASN1_BIT_STRING_get_bit(int *result, int a2)\n{\n  int v2; // r3\n\n  v2 = a2 / 8;\n  if ( result )\n  {\n    if ( v2 >= *result )\n    {\n      return nullptr;\n    }\n    else\n    {\n      result = (int *)result[2];\n      if ( result )\n        return (int *)((*((unsigned __int8 *)result + v2) & (1 << (~(_BYTE)a2 & 7))) != 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; ASN1_BIT_STRING_get_bit from 0x85ff3c to 0x85ff94 (88 bytes)\n; \n; 4 xrefs:\n; > sub_855934 @ 0x855aa4\n; > sub_855CA0 @ 0x855e18\n; > i2v_ASN1_BIT_STRING @ 0x8c420c\n; > <???> @ 0x68e6c\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\nCMP             R1, #0                                                 ; +0x0, 0x85ff3c\nADD             R3, R1, #7                                             ; +0x4, 0x85ff40\nMOVGE           R3, R1                                                 ; +0x8, 0x85ff44\nCMP             R0, #0                                                 ; +0xc, 0x85ff48\nMOV             R3, R3,ASR#3                                           ; +0x10, 0x85ff4c\nBXEQ            LR                                                     ; +0x14, 0x85ff50\nLDR             R2, [R0]                                               ; +0x18, 0x85ff54\nCMP             R3, R2                                                 ; +0x1c, 0x85ff58\nBGE             loc_85FF8C                                             ; +0x20, 0x85ff5c\nLDR             R0, [R0,#8]                                            ; +0x24, 0x85ff60\nCMP             R0, #0                                                 ; +0x28, 0x85ff64\nBXEQ            LR                                                     ; +0x2c, 0x85ff68\nLDRB            R3, [R0,R3]                                            ; +0x30, 0x85ff6c\nMVN             R1, R1                                                 ; +0x34, 0x85ff70\nMOV             R2, #1                                                 ; +0x38, 0x85ff74\nAND             R1, R1, #7                                             ; +0x3c, 0x85ff78\nANDS            R3, R3, R2,LSL R1                                      ; +0x40, 0x85ff7c\nMOVNE           R0, R2                                                 ; +0x44, 0x85ff80\nMOVEQ           R0, #0                                                 ; +0x48, 0x85ff84\nBX              LR                                                     ; +0x4c, 0x85ff88\nMOV             R0, #0                                                 ; +0x50, 0x85ff8c\nBX              LR                                                     ; +0x54, 0x85ff90", "xrefs": ["sub_855934 @ 0x855aa4", "sub_855CA0 @ 0x855e18", "i2v_ASN1_BIT_STRING @ 0x8c420c", "<???> @ 0x68e6c"], "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"}