.file "logic.c" .text .align 2 .globl logic .type logic, @function logic: link.w %a6,#0 move.l %d3,-(%sp) move.l %d2,-(%sp) move.l 12(%a6),%d2 move.l 8(%a6),%a0 move.l (%a0),%d1 moveq.l #123,%d0 and.l %d1,%d0 jbeq .L2 moveq.l #1,%d2 .L2: moveq.l #-34,%d0 not.b %d0 and.l %d1,%d0 jbeq .L3 moveq.l #2,%d2 .L3: moveq.l #124,%d0 and.l %d1,%d0 jbeq .L4 moveq.l #3,%d2 .L4: moveq.l #-112,%d0 and.l %d1,%d0 jbeq .L5 moveq.l #4,%d2 .L5: move.l %d1,%d3 not.l %d3 moveq.l #23,%d0 and.l %d3,%d0 jbeq .L6 moveq.l #1,%d2 .L6: moveq.l #-23,%d0 and.l %d3,%d0 jbeq .L7 moveq.l #2,%d2 .L7: moveq.l #24,%d0 and.l %d3,%d0 jbeq .L8 moveq.l #3,%d2 .L8: moveq.l #-12,%d0 and.l %d3,%d0 jbeq .L9 moveq.l #4,%d2 .L9: move.l %d3,%d0 and.l %d2,%d0 jbeq .L10 moveq.l #1,%d2 .L10: move.l %d1,%d0 or.l %d2,%d0 not.l %d0 jbeq .L11 moveq.l #2,%d2 .L11: and.l %d3,%d1 jbeq .L12 moveq.l #3,%d2 .L12: move.l %d2,%d0 move.l (%sp)+,%d2 move.l (%sp)+,%d3 unlk %a6 rts .size logic, .-logic .align 2 .globl x .type x, @function x: link.w %a6,#0 sub.l %a0,%a0 .align 2 .L14: subq.l #1,%a0 tst.l %a0 jbgt .L14 moveq.l #-1,%d0 .align 2 .L19: subq.l #1,%d0 tst.l %d0 jbgt .L19 moveq.l #-1,%d1 not.w %d1 .align 2 .L24: subq.l #1,%d1 tst.l %d1 jbgt .L24 add.l %a0,%d0 add.l %d1,%d0 unlk %a6 rts .size x, .-x .ident "GCC: (GNU) 3.3.2"