TLRPC$TL_messageService.smali

.class public Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;
.super Lim/tpelyyftgw/tgnet/TLRPC$Message;
.source "TLRPC.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/tgnet/TLRPC;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "TL_messageService"
.end annotation


# static fields
.field public static constructor:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 40773
    const v0, -0x61e65e0a

    sput v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->constructor:I

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .line 40772
    invoke-direct {p0}, Lim/tpelyyftgw/tgnet/TLRPC$Message;-><init>()V

    return-void
.end method


# virtual methods
.method public readParams(Lim/tpelyyftgw/tgnet/AbstractSerializedData;Z)V
    .registers 7
    .param p1, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;
    .param p2, "exception"    # Z

    .line 40776
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40777
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    const/4 v1, 0x1

    and-int/2addr v0, v1

    const/4 v2, 0x0

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    goto :goto_10

    :cond_f
    const/4 v0, 0x0

    :goto_10
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->unread:Z

    .line 40778
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_1a

    const/4 v0, 0x1

    goto :goto_1b

    :cond_1a
    const/4 v0, 0x0

    :goto_1b
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->out:Z

    .line 40779
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, 0x10

    if-eqz v0, :cond_25

    const/4 v0, 0x1

    goto :goto_26

    :cond_25
    const/4 v0, 0x0

    :goto_26
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->mentioned:Z

    .line 40780
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, 0x20

    if-eqz v0, :cond_30

    const/4 v0, 0x1

    goto :goto_31

    :cond_30
    const/4 v0, 0x0

    :goto_31
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->media_unread:Z

    .line 40781
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, 0x2000

    if-eqz v0, :cond_3b

    const/4 v0, 0x1

    goto :goto_3c

    :cond_3b
    const/4 v0, 0x0

    :goto_3c
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->silent:Z

    .line 40782
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, 0x4000

    if-eqz v0, :cond_46

    const/4 v0, 0x1

    goto :goto_47

    :cond_46
    const/4 v0, 0x0

    :goto_47
    iput-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->post:Z

    .line 40783
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    const/high16 v3, 0x80000

    and-int/2addr v0, v3

    if-eqz v0, :cond_51

    goto :goto_52

    :cond_51
    const/4 v1, 0x0

    :goto_52
    iput-boolean v1, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->legacy:Z

    .line 40784
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->id:I

    .line 40785
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, 0x100

    if-eqz v0, :cond_66

    .line 40786
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->from_id:I

    .line 40788
    :cond_66
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    invoke-static {p1, v0, p2}, Lim/tpelyyftgw/tgnet/TLRPC$Peer;->TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPC$Peer;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->to_id:Lim/tpelyyftgw/tgnet/TLRPC$Peer;

    .line 40789
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_7c

    .line 40790
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->reply_to_msg_id:I

    .line 40792
    :cond_7c
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->date:I

    .line 40793
    invoke-virtual {p1, p2}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->readInt32(Z)I

    move-result v0

    invoke-static {p1, v0, p2}, Lim/tpelyyftgw/tgnet/TLRPC$MessageAction;->TLdeserialize(Lim/tpelyyftgw/tgnet/AbstractSerializedData;IZ)Lim/tpelyyftgw/tgnet/TLRPC$MessageAction;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->action:Lim/tpelyyftgw/tgnet/TLRPC$MessageAction;

    .line 40794
    return-void
.end method

.method public serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V
    .registers 4
    .param p1, "stream"    # Lim/tpelyyftgw/tgnet/AbstractSerializedData;

    .line 40797
    sget v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->constructor:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40798
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->unread:Z

    if-eqz v0, :cond_e

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit8 v0, v0, 0x1

    goto :goto_12

    :cond_e
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, -0x2

    :goto_12
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40799
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->out:Z

    if-eqz v0, :cond_1d

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit8 v0, v0, 0x2

    goto :goto_21

    :cond_1d
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, -0x3

    :goto_21
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40800
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->mentioned:Z

    if-eqz v0, :cond_2c

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit8 v0, v0, 0x10

    goto :goto_30

    :cond_2c
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, -0x11

    :goto_30
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40801
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->media_unread:Z

    if-eqz v0, :cond_3b

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit8 v0, v0, 0x20

    goto :goto_3f

    :cond_3b
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, -0x21

    :goto_3f
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40802
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->silent:Z

    if-eqz v0, :cond_4a

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit16 v0, v0, 0x2000

    goto :goto_4e

    :cond_4a
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, -0x2001

    :goto_4e
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40803
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->post:Z

    if-eqz v0, :cond_59

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    or-int/lit16 v0, v0, 0x4000

    goto :goto_5d

    :cond_59
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, -0x4001

    :goto_5d
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40804
    iget-boolean v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->legacy:Z

    if-eqz v0, :cond_69

    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    const/high16 v1, 0x80000

    or-int/2addr v0, v1

    goto :goto_6f

    :cond_69
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    const v1, -0x80001

    and-int/2addr v0, v1

    :goto_6f
    iput v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    .line 40805
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40806
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->id:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40807
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit16 v0, v0, 0x100

    if-eqz v0, :cond_86

    .line 40808
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->from_id:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40810
    :cond_86
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->to_id:Lim/tpelyyftgw/tgnet/TLRPC$Peer;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/tgnet/TLRPC$Peer;->serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V

    .line 40811
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->flags:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_96

    .line 40812
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->reply_to_msg_id:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40814
    :cond_96
    iget v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->date:I

    invoke-virtual {p1, v0}, Lim/tpelyyftgw/tgnet/AbstractSerializedData;->writeInt32(I)V

    .line 40815
    iget-object v0, p0, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->action:Lim/tpelyyftgw/tgnet/TLRPC$MessageAction;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/tgnet/TLRPC$MessageAction;->serializeToStream(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V

    .line 40816
    invoke-virtual {p0, p1}, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageService;->writeAttachPath(Lim/tpelyyftgw/tgnet/AbstractSerializedData;)V

    .line 40817
    return-void
.end method