private static void smethod_4(Class908 A_0, Class398 A_1) { A_1.method_4(BookmarkStart.b("弧ဩ伫䄭崯䈱唳䈵", 2)); A_1.method_31(BookmarkStart.b("弧ဩ䌫尭夯唱挳夵䨷帹栻弽∿⹁⅃ᑅ㵇♉⥋㵍", 2), A_0.method_19()); A_1.method_31(BookmarkStart.b("弧ဩ嬫席稯䜱䜳䈵儷尹唻崽ℿ㙁ⵃ⥅♇", 2), A_0.method_63()); A_1.method_31(BookmarkStart.b("弧ဩ䈫䄭搯匱嘳縵夷吹嬻眽⸿♁", 2), A_0.method_3()); A_1.method_31(BookmarkStart.b("弧ဩ䈫䄭簯圱唳刵儷吹嬻", 2), A_0.method_41()); A_1.method_31(BookmarkStart.b("弧ဩ弫席儯儱儳瀵圷䠹椻爽", 2), A_0.method_43()); A_1.method_31(BookmarkStart.b("弧ဩ䈫䄭猯崱堳䌵唷吹縻弽ⰿ⍁⩃╅ⵇ", 2), A_0.method_13()); A_1.method_31(BookmarkStart.b("弧ဩ丫伭尯匱娳唵崷椹唻倽✿⹁⅃хㅇ㹉⥋੍㽏❑㙓㩕㵗ᡙ╛⩝՟㕡ൣɥᱧɩ", 2), A_0.method_33()); A_1.method_31(BookmarkStart.b("弧ဩ堫尭儯就䜳䘵夷䠹夻倽㐿ཁ⅃㉅⥇ⱉ╋≍㕏⅑", 2), A_0.method_21()); A_1.method_31(BookmarkStart.b("弧ဩ䈫䄭甯䨱䀳䐵夷瘹唻倽┿ᅁ㑃❅⭇⍉≋⥍", 2), A_0.method_57()); A_1.method_31(BookmarkStart.b("弧ဩ䠫䄭縯崱䀳稵崷嬹䨻嬽ȿ⍁❃ⵅ㭇♉ⵋ㵍㡏ፑ㡓㥕㙗㽙", 2), A_0.method_27()); A_1.method_31(BookmarkStart.b("弧ဩ夫䈭搯䀱唳張吷椹䰻弽⌿❁", 2), A_0.method_31()); A_1.method_31(BookmarkStart.b("弧ဩ䠫䄭縯崱䀳猵䀷䨹崻倽ᅁⱃ⽅⹇㹉ṋ⭍❑♓㡕", 2), A_0.method_29()); A_1.method_31(BookmarkStart.b("弧ဩ弫席儯儱崳堵強猹刻椽⠿ⵁ⡃⍅ᡇ╉╋⁍⅑", 2), A_0.method_37()); A_1.method_31(BookmarkStart.b("弧ဩ䀫䜭帯圱挳䐵夷䨹瀻圽⬿❁ፃ⥅㩇⹉穋", 2), A_0.method_53()); A_1.method_31(BookmarkStart.b("弧ဩ尫尭夯就䀳琵圷帹䔻樽┿㩁ぃхⵇⱉ⍋㱍㕏ᩑㅓ㝕㱗㽙⹛", 2), A_0.method_39()); A_1.method_31(BookmarkStart.b("弧ဩ尫尭夯就䀳电圷嘹縻刽ℿ⅁⽃", 2), A_0.method_11()); A_1.method_31(BookmarkStart.b("弧ဩ嬫席振䈱唳唵崷洹唻娽㐿⩁", 2), A_0.method_61()); A_1.method_31(BookmarkStart.b("弧ဩ弫䘭弯䔱瘳䐵崷嬹圻䴽िⱁɃ㑅⥇❉⥋㵍", 2), A_0.method_23()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭刯琱嬳堵䰷砹䔻洽⤿㡁⅃", 2), A_0.method_51()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭䀯䈱䘳匵䬷䤹縻儽㐿㙁⭃⭅ᭇ㩉ⵋⵍ㥏㱑㍓", 2), A_0.method_59()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭䀯䈱䘳匵䬷䤹栻儽〿ᅁ㑃❅⭇⍉≋⥍", 2), A_0.method_17()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭䀯䈱䘳匵䬷䤹栻儽〿ᅁ㑃❅⭇⍉≋⥍ᵏ㍑㝓捕", 2), A_0.method_35()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭䀯䈱䘳匵䬷䤹栻儽〿ᅁ㑃❅⭇⍉≋⥍ݏɑ", 2), A_0.method_47()); A_1.method_31(BookmarkStart.b("弧ဩ弫嬭䀯䈱䘳匵䬷䤹漻丽ȿ⑁Ճ⁅㱇⽉㹋ṍ㝏ၑ♓㵕", 2), A_0.method_7()); A_1.method_31(BookmarkStart.b("弧ဩ弫夭儯䈱瘳夵䨷帹夻䰽㌿с╃╅ⅇ⑉⭋ṍㅏ㕑ㅓ╕", 2), A_0.method_25()); A_1.method_31(BookmarkStart.b("弧ဩ伫䄭帯䐱礳圵儷嘹焻嬽㈿╁⅃ͅ㭇⥉", 2), A_0.method_15()); A_1.method_31(BookmarkStart.b("弧ဩ堫尭䔯就圳圵䰷弹稻儽⸿㙁ృ⍅ⅇⵉ㩍", 2), A_0.method_49()); A_1.method_31(BookmarkStart.b("弧ဩ䄫夭振弱唳娵吷礹崻丽㌿", 2), A_0.method_45()); A_1.method_31(BookmarkStart.b("弧ဩ夫崭唯戱䘳張嘷丹夻䰽ി❁ぃ㑅ⅇ⥉㽋", 2), A_0.method_65()); A_1.method_31(BookmarkStart.b("弧ဩ嬫夭د瀱嬳䐵尷弹主氽㔿⹁⅃㕅", 2), A_0.method_55()); A_1.method_31(BookmarkStart.b("弧ဩ嬫尭儯䈱怳䐵夷匹倻洽〿⍁❃⍅㭇", 2), A_0.method_9()); A_1.method_31(BookmarkStart.b("弧ဩ䨫䄭弯䘱娳夵䰷弹瀻弽㤿ⵁㅃ㉅ч⍉❋⭍ݏՑ汓", 2), A_0.method_69()); A_1.method_31(BookmarkStart.b("弧ဩ弫䘭儯䈱儳稵夷䌹医䬽㐿แⵃⵅⵇᵉᭋ癍", 2), A_0.method_67()); A_1.method_31(BookmarkStart.b("弧ဩ䴫䈭夯唱娳戵夷堹倻嬽㌿၁⭃ㅅੇ㍉ṋ⅍❏", 2), A_0.method_79()); A_1.method_31(BookmarkStart.b("弧ဩ䨫䄭䈯唱儳䈵琷嬹伻䨽ᐿ⍁♃݅⑇⍉⭋⁍㵏㝑㩓≕", 2), A_0.method_75()); A_1.method_31(BookmarkStart.b("弧ဩ䴫䨭娯䜱䜳䈵琷匹刻嬽❁ⵃⅅ⁇㹉Ջ⁍я㍑㙓㩕㵗", 2), !A_0.method_73()); A_1.method_31(BookmarkStart.b("弧ဩ䴫嬭䐯崱朳䘵夷夹夻爽⤿⥁⅃ᅅ❇㡉⡋睍敏", 2), A_0.method_77()); A_1.method_31(BookmarkStart.b("弧ဩ䈫䄭振䈱唳唵崷根崻圽㌿❁ࡃ⥅㽇⽉㹋", 2), A_0.method_5()); A_1.method_31(BookmarkStart.b("弧ဩ䠫䄭縯崱䀳挵䬷弹琻樽ിแᑃ❅㩇⭉⭋㱍ㅏ≑㱓ⵗ⹙㍛൝ၟ͡ݣཥ٧൩", 2), A_0.method_71()); A_1.method_31(BookmarkStart.b("弧ဩ䀫伭䤯崱䄳䈵樷嬹䬻樽ℿ⁁⡃⍅⍉⡋㩍㡏", 2), A_0.method_81()); A_1.method_31(BookmarkStart.b("弧ဩ䀫伭䤯崱䄳䈵氷嬹帻刽┿၁⭃ㅅ㭇㱋⽍≏♑", 2), A_0.method_83()); A_1.method_31(BookmarkStart.b("弧ဩ夫崭唯攱嬳䐵尷̹爽⤿ⱁ⅃х㩇⽉ⵋ╍㥏㱑㍓ѕⵗ㙙㥛ⵝ", 2), A_0.method_85()); A_1.vmethod_0(BookmarkStart.b("弧ဩ丫尭唯匱弳愵䨷嬹䰻丽┿♁၃❅⩇♉⥋㵍", 2), !A_0.method_87()); A_1.method_31(BookmarkStart.b("弧ဩ弫䀭儯䈱怳夵缷䠹唻娽िⱁ݃⍅⑇♉", 2), !A_0.method_89()); A_1.method_31(BookmarkStart.b("弧ဩ䠫䄭帯䘱申娵吷唹䬻砽⤿❁⡃≅േ⑉⡋ᵍ㕏㹑ㅓ㕕ⱗ", 2), A_0.method_91()); A_1.method_31(BookmarkStart.b("弧ဩ䴫席䀯帱䴳琵䨷弹崻唽⤿ⱁ⍃ᑅ㵇♉⥋㵍", 2), A_0.method_93()); A_1.method_31(BookmarkStart.b("弧ဩ嬫尭儯䈱怳匵䀷丹欻圽㐿⩁ᑃ㍅♇⥉㡋", 2), !A_0.method_95()); A_1.method_31(BookmarkStart.b("弧ဩ夫崭唯猱䜳張夷吹縻䰽┿⍁⽃ᑅ㵇♉⥋㵍", 2), !A_0.method_97()); A_1.method_31(BookmarkStart.b("弧ဩ夫崭唯攱嬳䐵尷࠹爿ᙁ╃⑅⑇⽉Ὃ㩍⥏㹑ㅓѕⵗ㙙㥛ⵝ", 2), A_0.method_99()); A_1.method_31(BookmarkStart.b("弧ဩ䠫䄭帯䘱猳䐵圷䴹紻䬽㐿ⵁ≃⽅㱇", 2), !A_0.method_101()); A_1.method_31(BookmarkStart.b("弧ဩ夫䀭启圱䘳娵儷吹夻樽ℿ⁁ൃ⡅ه㽉⅋ɍ㥏⅑⁓", 2), A_0.method_117()); A_1.method_5(); }
internal static int smethod_3(Document A_0, BinaryWriter A_1) { int num = 14; Class907 settings = A_0.Settings; int position = (int)A_1.BaseStream.Position; int num3 = 0; num3 = 0 | (settings.bool_37 ? 1 : 0); num3 |= settings.bool_67 ? 2 : 0; num3 |= (settings.class460_0.method_27() != MailMergeMainDocumentType.NotAMergeDocument) ? 4 : 0; num3 |= ((int)A_0.FootnoteOptions.Position) << 5; A_1.Write((ushort)num3); num3 = 0; num3 = (int)(FootnoteRestartRule.DoNotRestart | A_0.FootnoteOptions.RestartRule); num3 |= A_0.FootnoteOptions.StartNumber << 2; A_1.Write((ushort)num3); num3 = 0; num3 = 0xf1; num3 = 0xf1 | (!settings.bool_28 ? 0x800 : 0); num3 |= settings.bool_27 ? 0x1000 : 0; num3 |= settings.bool_16 ? 0x4000 : 0; num3 |= settings.bool_21 ? 0x8000 : 0; A_1.Write((ushort)num3); num3 = 0; num3 = 0x80; num3 = 0x80 | (settings.bool_63 ? 4 : 0); num3 |= settings.bool_64 ? 8 : 0; num3 |= settings.bool_34 ? 0x10 : 0; num3 |= settings.bool_11 ? 0x20 : 0; num3 |= settings.bool_36 ? 0x200 : 0; num3 |= settings.bool_0 ? 0x400 : 0; num3 |= settings.method_1() ? 0x800 : 0; num3 |= settings.bool_65 ? 0x1000 : 0; num3 |= settings.bool_35 ? 0x4000 : 0; num3 |= settings.bool_7 ? 0x8000 : 0; A_1.Write((ushort)num3); Class908 class3 = settings.method_5(); num3 = smethod_5(class3); A_1.Write((ushort)num3); A_1.Write((ushort)settings.float_0); A_1.Write((ushort)0); A_1.Write((ushort)settings.int_16); A_1.Write((ushort)settings.int_15); A_1.Write((ushort)0); Class353.smethod_4(A_0.BuiltinDocumentProperties.CreateDate, A_1); Class353.smethod_4(A_0.BuiltinDocumentProperties.LastSaveDate, A_1); Class353.smethod_4(A_0.BuiltinDocumentProperties.LastPrinted, A_1); if (!string.IsNullOrEmpty(A_0.BuiltinDocumentProperties.RevisionNumber)) { A_1.Write(short.Parse(A_0.BuiltinDocumentProperties.RevisionNumber)); } else { A_1.Write((short)1); } A_1.Write(int.Parse(A_0.BuiltinDocumentProperties.TotalEditingTime.Minutes.ToString())); A_1.Write(A_0.BuiltinDocumentProperties.WordCount); A_1.Write(A_0.BuiltinDocumentProperties.CharCount); A_1.Write((short)1); A_1.Write(A_0.BuiltinDocumentProperties.ParagraphCount); num3 = 0; num3 = (int)(FootnoteRestartRule.DoNotRestart | A_0.EndnoteOptions.RestartRule); num3 |= A_0.EndnoteOptions.StartNumber << 2; A_1.Write((ushort)num3); num3 = 0; num3 = (int)(FootnotePosition.PrintAsEndOfSection | A_0.EndnoteOptions.Position); num3 |= settings.bool_6 ? 0x400 : 0; num3 |= settings.bool_10 ? 0x800 : 0; num3 |= !settings.bool_41 ? 0x1000 : 0; A_1.Write((ushort)num3); A_1.Write(1); A_1.Write(0); A_1.Write(0); A_1.Write((short)1); A_1.Write(1); A_1.Write(1); A_1.Write((int)A_0.LegacyHash); num3 = 0; num3 = (int)(DocumentViewType.None | A_0.ViewSetup.DocumentViewType); num3 |= A_0.ViewSetup.ZoomPercent << 3; num3 |= ((int)A_0.ViewSetup.ZoomType) << 12; num3 |= settings.bool_15 ? 0x8000 : 0; A_1.Write((ushort)num3); num3 = smethod_5(class3); A_1.Write((uint)num3); A_1.Write((ushort)settings.autoFormatDocumentType_0); num3 = 0; num3 = 0 | (settings.bool_42 ? 1 : 0); num3 |= ((int)settings.characterSpacing_0) << 1; num3 |= settings.bool_44 ? 8 : 0; num3 |= settings.bool_43 ? 0x20 : 0; int num5 = Class813.smethod_24(settings.localeIDs_0); num3 |= num5 << 7; A_1.Write((ushort)num3); char[] destination = new char[0x65]; int count = 0; if (settings.string_2 != null) { count = Math.Min(0x65, settings.string_2.Length); settings.string_2.CopyTo(0, destination, 0, count); } char[] chArray2 = new char[0x33]; int num7 = 0; if (settings.string_1 != null) { num7 = Math.Min(0x33, settings.string_1.Length); settings.string_1.CopyTo(0, chArray2, 0, num7); } A_1.Write((short)count); A_1.Write((short)num7); A_1.Write(destination); A_1.Write(chArray2); A_1.Write((short)settings.int_23); A_1.Write((short)settings.int_24); A_1.Write((short)settings.int_19); A_1.Write((short)settings.int_20); num3 = 0; num3 = 0 | settings.int_22; num3 |= settings.bool_68 ? 0x80 : 0; num3 |= settings.int_21 << 8; num3 |= settings.bool_40 ? 0x8000 : 0; A_1.Write((ushort)num3); num3 = 0; num3 = 0 | (settings.int_28 << 1); num3 |= (settings.proofState_1 != ProofState.None) ? 0x20 : 0; num3 |= (settings.proofState_1 == ProofState.Clean) ? 0x40 : 0; num3 |= settings.bool_9 ? 0x80 : 0; num3 |= settings.bool_69 ? 0x100 : 0; num3 |= settings.bool_66 ? 0x200 : 0; num3 |= 0x400; num3 |= settings.bool_12 ? 0x800 : 0; num3 |= !settings.bool_13 ? 0x1000 : 0; num3 |= !settings.bool_14 ? 0x2000 : 0; A_1.Write((ushort)num3); num3 = 0; A_1.Write((ushort)0); A_1.Write((ushort)0x10); A_1.Write((ushort)0x19); A_1.Write(100); A_1.Write(0x19); A_1.Write(0); A_1.Write(0); A_1.Write((int)A_0.VbaDocumentEvents); A_1.Write(0); A_1.Write(new byte[30]); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write(0); A_1.Write(0); A_1.Write(0); A_1.Write((short)A_0.FootnoteOptions.NumberFormat); A_1.Write((short)A_0.EndnoteOptions.NumberFormat); A_1.Write((ushort)0); A_1.Write((ushort)0); A_1.Write((ushort)0); A_1.Write((ushort)settings.int_30); num3 = 0; num3 = 0 | (settings.bool_29 ? 2 : 0); num3 |= !settings.bool_48 ? 0x200 : 0; num3 |= settings.bool_46 ? 0x400 : 0; num3 |= settings.bool_47 ? 0x800 : 0; num3 |= ((int)settings.screenSize_1) << 12; num3 |= !settings.bool_50 ? 0x10000 : 0; num3 |= !settings.bool_51 ? 0x20000 : 0; num3 |= settings.int_25 << 0x12; num3 |= 0x10000000; A_1.Write(num3); num3 = smethod_5(class3); A_1.Write((uint)num3); num3 = 0; num3 = 0 | (class3.method_67() ? 1 : 0); num3 |= class3.method_69() ? 2 : 0; num3 |= class3.method_71() ? 4 : 0; num3 |= class3.method_73() ? 8 : 0; num3 |= class3.method_75() ? 0x10 : 0; num3 |= class3.method_77() ? 0x20 : 0; num3 |= class3.method_79() ? 0x40 : 0; num3 |= class3.method_81() ? 0x80 : 0; num3 |= class3.method_83() ? 0x100 : 0; num3 |= class3.method_85() ? 0x200 : 0; num3 |= class3.method_87() ? 0x400 : 0; num3 |= class3.method_89() ? 0x800 : 0; num3 |= class3.method_91() ? 0x1000 : 0; num3 |= class3.method_93() ? 0x2000 : 0; num3 |= class3.method_95() ? 0x4000 : 0; num3 |= class3.method_97() ? 0x8000 : 0; num3 |= class3.method_99() ? 0x10000 : 0; num3 |= class3.method_101() ? 0x20000 : 0; num3 |= class3.method_103() ? 0x40000 : 0; num3 |= class3.method_105() ? 0x80000 : 0; num3 |= class3.method_107() ? 0x100000 : 0; num3 |= class3.method_109() ? 0x200000 : 0; num3 |= class3.method_111() ? 0x400000 : 0; num3 |= class3.method_113() ? 0x800000 : 0; num3 |= class3.method_115() ? 0x1000000 : 0; num3 |= class3.method_117() ? 0x2000000 : 0; num3 |= class3.method_119() ? 0x4000000 : 0; num3 |= class3.method_121() ? 0x8000000 : 0; num3 |= class3.method_123() ? 0x10000000 : 0; num3 |= class3.method_125() ? 0x20000000 : 0; num3 |= class3.method_127() ? 0x40000000 : 0; num3 |= class3.method_129() ? -2147483648 : 0; A_1.Write((uint)num3); num3 = 0; num3 = 0 | (class3.method_131() ? 1 : 0); A_1.Write((uint)num3); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); num3 = 0; num3 = 0 | (A_0.ViewSetup.DoNotDisplayPageBoundaries ? 0x20000 : 0); num3 |= settings.bool_3 ? 0x800000 : 0; num3 |= 0x8000000; num3 |= settings.bool_52 ? 0x10000000 : 0; num3 |= settings.bool_53 ? 0x20000000 : 0; num3 |= !settings.bool_58 ? 0x40000000 : 0; num3 |= settings.bool_60 ? -2147483648 : 0; A_1.Write((uint)num3); A_1.Write((uint)0); num3 = 0; num3 = 0 | (settings.bool_8 ? 1 : 0); num3 |= !settings.bool_61 ? 8 : 0; num3 |= settings.bool_62 ? 0x10 : 0; num3 |= settings.bool_39 ? 0x40 : 0; num3 |= settings.bool_38 ? 0x80 : 0; num3 |= settings.bool_19 ? 0x800 : 0; num3 |= settings.bool_22 ? 0x1000 : 0; num3 |= settings.bool_23 ? 0x2000 : 0; num3 |= settings.bool_24 ? 0x4000 : 0; num3 |= settings.bool_25 ? 0x8000 : 0; A_1.Write((ushort)num3); A_1.Write((ushort)settings.int_31); A_1.Write((ushort)0); A_1.Write((ushort)settings.int_32); A_1.Write((ushort)settings.int_18); A_1.Write((uint)settings.int_27); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)settings.int_26); num3 = 0; num3 = 0 | ((A_0.ProtectionType == ProtectionType.AllowOnlyReading) ? 1 : 0); num3 |= settings.bool_1 ? 2 : 0; num3 |= settings.bool_2 ? 4 : 0; num3 |= settings.bool_54 ? 8 : 0; num3 |= settings.bool_59 ? 0x10 : 0; num3 |= settings.bool_56 ? 0x80 : 0; num3 |= settings.bool_57 ? 0x100 : 0; num3 |= settings.bool_18 ? 0x800 : 0; num3 |= settings.bool_17 ? 0x1000 : 0; A_1.Write((uint)num3); num3 = 0; num3 = 0 | (settings.bool_30 ? 1 : 0); num3 |= settings.bool_26 ? 2 : 0; num3 |= settings.bool_31 ? 4 : 0; num3 |= settings.bool_32 ? 8 : 0; switch (A_0.ProtectionType) { case ProtectionType.NoProtection: num3 |= settings.bool_32 ? 0x70 : 0x30; break; case ProtectionType.AllowOnlyRevisions: break; case ProtectionType.AllowOnlyComments: num3 |= 0x10; break; case ProtectionType.AllowOnlyFormFields: num3 |= 0x20; break; case ProtectionType.AllowOnlyReading: num3 |= 0x30; break; default: throw new InvalidOperationException(BookmarkStart.b("愳堵匷吹医䤽⸿扁⁃⥅⭇㽉⅋⭍㹏♑瑓♕⩗㕙⡛㭝͟ᙡൣ॥٧䩩ᡫo婳", num)); } num3 |= A_0.ViewSetup.DisplayBackgroundShape ? 0x80 : 0; A_1.Write((ushort)num3); A_1.Write((ushort)0); A_1.Write((ushort)0); A_1.Write((uint)0); A_1.Write((ushort)0); A_1.Write((ushort)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); A_1.Write((uint)0); smethod_4(A_1, A_0); return(((int)A_1.BaseStream.Position) - position); }