package jxl.biff.drawing;

import common.Logger;
import jxl.biff.IntegerHelper;

/* JADX INFO: loaded from: classes.dex */
class Sp extends EscherAtom {
    static /* synthetic */ Class class$jxl$biff$drawing$Sp;
    private static Logger logger;
    private byte[] data;
    private int persistenceFlags;
    private int shapeId;
    private int shapeType;

    static {
        Class clsClass$ = class$jxl$biff$drawing$Sp;
        if (clsClass$ == null) {
            clsClass$ = class$("jxl.biff.drawing.Sp");
            class$jxl$biff$drawing$Sp = clsClass$;
        }
        logger = Logger.getLogger(clsClass$);
    }

    public Sp(EscherRecordData escherRecordData) {
        super(escherRecordData);
        this.shapeType = getInstance();
        byte[] bytes = getBytes();
        this.shapeId = IntegerHelper.getInt(bytes[0], bytes[1], bytes[2], bytes[3]);
        this.persistenceFlags = IntegerHelper.getInt(bytes[4], bytes[5], bytes[6], bytes[7]);
    }

    static /* synthetic */ Class class$(String str) {
        try {
            return Class.forName(str);
        } catch (ClassNotFoundException e) {
            throw new NoClassDefFoundError(e.getMessage());
        }
    }

    @Override // jxl.biff.drawing.EscherAtom, jxl.biff.drawing.EscherRecord
    byte[] getData() {
        byte[] bArr = new byte[8];
        this.data = bArr;
        IntegerHelper.getFourBytes(this.shapeId, bArr, 0);
        IntegerHelper.getFourBytes(this.persistenceFlags, this.data, 4);
        return setHeaderData(this.data);
    }

    int getShapeId() {
        return this.shapeId;
    }

    int getShapeType() {
        return this.shapeType;
    }

    public Sp(ShapeType shapeType, int i2, int i3) {
        super(EscherRecordType.SP);
        setVersion(2);
        int value = shapeType.getValue();
        this.shapeType = value;
        this.shapeId = i2;
        this.persistenceFlags = i3;
        setInstance(value);
    }
}
