/* If necessary, first collects the instruction up to and including the ModRM byte. No effect if @insn->x86_64 is 0.  */
int insn_rip_relative(struct insn *insn)
/* If necessary, first collects the instruction up to and including the ModRM byte. No effect if @insn->x86_64 is 0.  */
int insn_rip_relative(struct insn *insn)
{
	struct insn_field *modrm = &insn->modrm;
	if (!insn->x86_64)
		return 0;
	if (!modrm->got)
		insn_get_modrm(insn);
	return (modrm->nbytes && (modrm->value & 0xc7) == 0x5);
}