Reaction SMILES: [Cl-].[Li+].[CH3:3][O:4][C:5]1[CH:25]=[CH:24][C:8]([CH2:9][NH:10][C:11]2[C:20]([CH:21]=O)=[CH:19][C:18]3[C:13](=[CH:14][CH:15]=[C:16]([Br:23])[CH:17]=3)[N:12]=2)=[CH:7][CH:6]=1.C(OP([CH:34]([CH3:40])[C:35]([O:37][CH2:38][CH3:39])=[O:36])(OCC)=O)C.N1CCCN2CCCCCC=12>CC#N>[CH3:3][O:4][C:5]1[CH:25]=[CH:24][C:8]([CH2:9][NH:10][C:11]2[C:20](/[CH:21]=[C:34](\[CH3:40])/[C:35]([O:37][CH2:38][CH3:39])=[O:36])=[CH:19][C:18]3[C:13](=[CH:14][CH:15]=[C:16]([Br:23])[CH:17]=3)[N:12]=2)=[CH:7][CH:6]=1
Reactant: COc1ccc(CNc2nc3ccc(Br)cc3cc2C=O)cc1
Reactant: CCOC(=O)C(C)P(=O)(OCC)OCC
Agent: [Cl-]
Agent: [Li+]
Solvent: CC#N
Solvent: C1CCC2=NCCCN2CC1
Product: CCOC(=O)/C(C)=C/c1cc2cc(Br)ccc2nc1NCc1ccc(OC)cc1
Reaction time: 12 h

Procedure:
Lithium chloride (2.41 g, 56.7 mmol) is stirred 4 h in MeCN (300 mL). To the cloudy solution was added 2-(4-methoxybenzylamino)-6-bromoquinoline-3-carbaldehyde (10.5 g, 28.4 mmol, prepared as in Example 2), ethyl 2-(diethoxyphosphoryl)propanoate (7.4 L, 34.0 mmol) and 2,3,4,6,7,8,9,10-octahydropyrimido[1,2-a]azepine (4.3 ml, 28.4 mmol) and the reaction is stirred 12 h. The reaction is partitioned between 10% sodium carbonate solution and EtOAc. The aqueous layer is extracted with EtOAc and the combined organic layers are washed with 10% sodium carbonate, brine, dried over sodium sulfate, filtered, and concentrated. The crude mixture is purified by silica gel chromatography eluted with 4:1 Hexanes/EtOAc to afford (E)-ethyl 3-(2-(4-methoxybenzylamino)-6-bromoquinolin-3-yl)-2-methylacrylate. Step 2 A 1M aqueous solution of LiOH (10.0 ml, 10.0 mmol) was added to a solution of (E)-ethyl 3-(2-(4-methoxybenzylamino)-6-bromoquinolin-3-yl)-2-methylacrylate (3.6 g, 7.9 mmol) in MeOH (10 mL) and THF (30 mL) at RT. The reaction was stirred 1 h. The organic solvent was removed in vacuo and the remaining aqueous solution was brought to a pH ˜1 with 1N HCl and the solution was extracted with a 2:1 chloroform/i-PrOH mixture. The combined organics were washed with brine, dried over sodium sulfate, filtered, and concentrated to afford (E)-3-(2-(4-methoxybenzylamino)-6-bromoquinolin-3-yl)-2-methylacrylic acid, which was used without further purification. Step 3 TBTU (1.2 g, 3.7 mmol) was added to (E)-3-(2-(4-methoxybenzylamino)-6-bromoquinolin-3-yl)-2-methylacrylic acid (1.2 g, 2.8 mmol), 3,3-dimethylbutylamine (1.1 ml, 8.4 mmol), and DIEA (2.0 ml, 11 mmol) in NMP (10 mL) and the reaction was stirred 1 h. The reaction was poured into a vigorously stirred solution of saturated aqueous sodium bicarbonate and after 30 min was diluted with ethyl acetate. The layers were separated and the aqueous layer was extracted with EtOAc. The combined organics were washed with water, brine, and dried over sodium sulfate, filtered, and concentrated to afford (E)-3-(2-(4-methoxybenzylamino)-6-bromoquinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylacrylamide which was used without further purification. Step 4 (E)-3-(2-(4-methoxybenzylamino)-6-(4,4,5,5-tetramethyl-1,3,2-dioxaborolan-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylacrylamide was prepared in a manner similar to that described in Step 7 of Example 2. Step 5 Bis(4-(di-tert-butylphosphino)-N,N-dimethylbenzenamine)dichloropalladium (II) (0.041 g, 0.058 mmol) was added to a degassed solution of (E)-3-(2-(4-methoxybenzylamino)-6-(4,4,5,5-tetramethyl-1,3,2-dioxaborolan-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylacrylamide (0.65 g, 1.2 mmol), potassium acetate (0.23 g, 2.3 mmol), and 2-bromo-3-methylpyridine (0.20 mL, 1.8 mmol) in EtOH (12 mL) and water (2 mL). The resulting solution was refluxed for 12 h. Then the reaction mixture was cooled and partitioned between dichromethane and 9:1 saturated ammonium chloride/ammonium hydroxide aqueous solution. The aqueous layer was extracted with DCM and the combined organics were washed with a 9:1 saturated ammonium chloride/ammonium hydroxide solution, water, brine, dried over sodium sulfate, filtered and concentrated. The crude product was purified by silica gel column chromatography (1:1 Hex/EtOAc) to afford (E)-3-(2-(4-methoxybenzylamino)-6-(3-methylpyridin-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylacrylamide. Step 6 Palladium on carbon (0.71 g, 0.67 mmol) was added to a solution of (E)-3-(2-(4-methoxybenzylamino)-6-(3-methylpyridin-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylacrylamide (0.35 g, 0.67 mmol) in EtOH (6 mL). The flask was degassed with hydrogen gas and then stirred under a balloon of hydrogen gas for 12 h. The reaction was filtered through celite and washed with EtOH and EtOAc. The filtrate was concentrated to afford 3-(2-(4-methoxybenzylamino)-6-(3-methylpyridin-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylpropanamide which was used without further purification. Step 7 TFA (6.0 mL, 78 mmol) was added to 3-(2-(4-methoxybenzylamino)-6-(3-methylpyridin-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylpropanamide (0.30 g, 0.57 mmol) and the reaction was heated to 65° C. After 5 h, the reaction was concentrated and the crude material dissolved in dichloromethane. The organic layers were washed with 1N NaOH and the aqueous layer was again extracted with DCM. The combined organic layers were washed with brine, dried over sodium sulfate, and concentrated. The crude product was purified by silica gel column chromatography (20:1 DCM/MeOH with 2M NH3) to afford 3-(2-amino-6-(3-methylpyridin-2-yl)quinolin-3-yl)-N-(3,3-dimethylbutyl)-2-methylpropanamide. MS (ESI, pos. ion) m/z: 405 (M+1).