package com.getkeepsafe.relinker.elf; import com.getkeepsafe.relinker.elf.Elf; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; /* loaded from: classes.dex */ public class Program64Header extends Elf.ProgramHeader { public Program64Header(ElfParser elfParser, Elf.Header header, long j) throws IOException { ByteBuffer allocate = ByteBuffer.allocate(8); allocate.order(header.a ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN); long j2 = header.b + (j * header.d); this.a = elfParser.e(allocate, j2); this.b = elfParser.c(allocate, 8 + j2); this.c = elfParser.c(allocate, 16 + j2); this.d = elfParser.c(allocate, j2 + 40); } }