def __cs_reg_idx_to_arm_op_reg(self, cs_reg_idx, cs_insn):
        name = str(cs_insn.reg_name(cs_reg_idx))
        if name in arm_alias_reg_map:
            name = arm_alias_reg_map[name]

        if name in self._arch_info.registers_size:
            size = self._arch_info.registers_size[name]
        else:
            size = self._arch_info.architecture_size

        return ArmRegisterOperand(name, size)
dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/arm/armdisassembler.py/ArmDisassembler.__cs_reg_idx_to_arm_op_reg/original