
(SDEFUN |MPCPF;factor;PPRF;1| ((|p| PPR) ($ |Factored| PPR))
        (SPROG
         ((#1=#:G724 NIL) (#2=#:G723 #3=(|Factored| PPR)) (#4=#:G725 #3#)
          (#5=#:G731 NIL) (|ff| NIL) (|fcont| (PPR))
          (|ffact| (|List| (|Record| (|:| |irr| PPR) (|:| |pow| (|Integer|)))))
          (#6=#:G730 NIL) (|u| NIL) (#7=#:G729 NIL)
          (|flist| (|Factored| (|Polynomial| R))) (|g| (|Polynomial| R))
          (|vars| (|List| OV)) (#8=#:G707 NIL) (|c| (|Polynomial| R)))
         (SEQ
          (COND ((SPADCALL |p| (QREFELT $ 11)) (SPADCALL |p| 1 (QREFELT $ 16)))
                (#9='T
                 (SEQ
                  (LETT |c| (SPADCALL |p| (QREFELT $ 18))
                        . #10=(|MPCPF;factor;PPRF;1|))
                  (LETT |p|
                        (PROG2
                            (LETT #8# (SPADCALL |p| |c| (QREFELT $ 20)) . #10#)
                            (QCDR #8#)
                          (|check_union2| (QEQCAR #8# 0) (QREFELT $ 9)
                                          (|Union| (QREFELT $ 9) "failed")
                                          #8#))
                        . #10#)
                  (LETT |vars| (SPADCALL |p| (QREFELT $ 22)) . #10#)
                  (LETT |g|
                        (SPADCALL (SPADCALL |p| |vars| (QREFELT $ 24))
                                  (QREFELT $ 25))
                        . #10#)
                  (LETT |flist| (SPADCALL |g| (QREFELT $ 28)) . #10#)
                  (LETT |ffact|
                        (PROGN
                         (LETT #7# NIL . #10#)
                         (SEQ (LETT |u| NIL . #10#)
                              (LETT #6# (SPADCALL |flist| (QREFELT $ 31))
                                    . #10#)
                              G190
                              (COND
                               ((OR (ATOM #6#)
                                    (PROGN (LETT |u| (CAR #6#) . #10#) NIL))
                                (GO G191)))
                              (SEQ
                               (EXIT
                                (LETT #7#
                                      (CONS
                                       (CONS
                                        (SPADCALL
                                         (SPADCALL (QCAR |u|) (QREFELT $ 32))
                                         |vars| (QREFELT $ 33))
                                        (QCDR |u|))
                                       #7#)
                                      . #10#)))
                              (LETT #6# (CDR #6#) . #10#) (GO G190) G191
                              (EXIT (NREVERSE #7#))))
                        . #10#)
                  (LETT |fcont|
                        (SPADCALL (SPADCALL |flist| (QREFELT $ 34))
                                  (QREFELT $ 32))
                        . #10#)
                  (EXIT
                   (SPADCALL
                    (SPADCALL (SPADCALL |c| |fcont| (QREFELT $ 35)) 1
                              (QREFELT $ 16))
                    (PROGN
                     (LETT #1# NIL . #10#)
                     (SEQ (LETT |ff| NIL . #10#) (LETT #5# |ffact| . #10#) G190
                          (COND
                           ((OR (ATOM #5#)
                                (PROGN (LETT |ff| (CAR #5#) . #10#) NIL))
                            (GO G191)))
                          (SEQ
                           (EXIT
                            (PROGN
                             (LETT #4#
                                   (SPADCALL (QCAR |ff|) (QCDR |ff|)
                                             (QREFELT $ 36))
                                   . #10#)
                             (COND
                              (#1#
                               (LETT #2# (SPADCALL #2# #4# (QREFELT $ 37))
                                     . #10#))
                              ('T
                               (PROGN
                                (LETT #2# #4# . #10#)
                                (LETT #1# 'T . #10#)))))))
                          (LETT #5# (CDR #5#) . #10#) (GO G190) G191
                          (EXIT NIL))
                     (COND (#1# #2#) (#9# (|spadConstant| $ 38))))
                    (QREFELT $ 37))))))))) 

(DECLAIM (NOTINLINE |MPolyCatPolyFactorizer;|)) 

(DEFUN |MPolyCatPolyFactorizer| (&REST #1=#:G732)
  (SPROG NIL
         (PROG (#2=#:G733)
           (RETURN
            (COND
             ((LETT #2#
                    (|lassocShiftWithFunction| (|devaluateList| #1#)
                                               (HGET |$ConstructorCache|
                                                     '|MPolyCatPolyFactorizer|)
                                               '|domainEqualList|)
                    . #3=(|MPolyCatPolyFactorizer|))
              (|CDRwithIncrement| #2#))
             ('T
              (UNWIND-PROTECT
                  (PROG1 (APPLY (|function| |MPolyCatPolyFactorizer;|) #1#)
                    (LETT #2# T . #3#))
                (COND
                 ((NOT #2#)
                  (HREM |$ConstructorCache| '|MPolyCatPolyFactorizer|)))))))))) 

(DEFUN |MPolyCatPolyFactorizer;| (|#1| |#2| |#3| |#4|)
  (SPROG
   ((|pv$| NIL) ($ NIL) (|dv$| NIL) (DV$4 NIL) (DV$3 NIL) (DV$2 NIL)
    (DV$1 NIL))
   (PROGN
    (LETT DV$1 (|devaluate| |#1|) . #1=(|MPolyCatPolyFactorizer|))
    (LETT DV$2 (|devaluate| |#2|) . #1#)
    (LETT DV$3 (|devaluate| |#3|) . #1#)
    (LETT DV$4 (|devaluate| |#4|) . #1#)
    (LETT |dv$| (LIST '|MPolyCatPolyFactorizer| DV$1 DV$2 DV$3 DV$4) . #1#)
    (LETT $ (GETREFV 40) . #1#)
    (QSETREFV $ 0 |dv$|)
    (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
    (|haddProp| |$ConstructorCache| '|MPolyCatPolyFactorizer|
                (LIST DV$1 DV$2 DV$3 DV$4) (CONS 1 $))
    (|stuffDomainSlots| $)
    (QSETREFV $ 6 |#1|)
    (QSETREFV $ 7 |#2|)
    (QSETREFV $ 8 |#3|)
    (QSETREFV $ 9 |#4|)
    (SETF |pv$| (QREFELT $ 3))
    $))) 

(MAKEPROP '|MPolyCatPolyFactorizer| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|local| |#3|) (|local| |#4|) (|Boolean|) (0 . |ground?|)
              (5 . |One|) (9 . |One|) (|Integer|) (|Factored| 9)
              (13 . |nilFactor|) (|Polynomial| 8) (19 . |content|)
              (|Union| $ '"failed") (24 . |exquo|) (|List| 7)
              (30 . |variables|) (|PushVariables| 8 6 7 9) (35 . |pushdown|)
              (41 . |retract|) (|Factored| 17)
              (|GeneralizedMultivariateFactorize| (|Symbol|)
                                                  (|IndexedExponents|
                                                   (|Symbol|))
                                                  8 8 17)
              (46 . |factor|) (|Record| (|:| |factor| 17) (|:| |exponent| 14))
              (|List| 29) (51 . |factors|) (56 . |coerce|) (61 . |pushup|)
              (67 . |unit|) (72 . *) (78 . |primeFactor|) (84 . *) (90 . |One|)
              |MPCPF;factor;PPRF;1|)
           '#(|factor| 94) 'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 39
                                                 '(1 9 10 0 11 0 8 0 12 0 9 0
                                                   13 2 15 0 9 14 16 1 9 17 0
                                                   18 2 9 19 0 17 20 1 9 21 0
                                                   22 2 23 9 9 21 24 1 9 17 0
                                                   25 1 27 26 17 28 1 26 30 0
                                                   31 1 9 0 17 32 2 23 9 9 21
                                                   33 1 26 17 0 34 2 9 0 17 0
                                                   35 2 15 0 9 14 36 2 15 0 0 0
                                                   37 0 15 0 38 1 0 15 9
                                                   39)))))
           '|lookupComplete|)) 
