Replaced g_ar.irqDepth with ar_port_get_irq_state().

- Using IPSR to determine IRQ state instead of IRQ wrappers.