	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irq_probe_ECP
_irq_probe_ECP:                         ## @irq_probe_ECP
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_probe_irq_on
	movq	%rax, %r14
	movq	_ECR_SPP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$5, %esi
	movq	%r12, %rdi
	callq	_ECR_WRITE
	movq	_ECR_TST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	shll	$5, %esi
	orl	$4, %esi
	movq	%r12, %rdi
	callq	_ECR_WRITE
	movl	(%rbx), %esi
	shll	$5, %esi
	movq	%r12, %rdi
	callq	_ECR_WRITE
	movl	$1024, %ebx                     ## imm = 0x400
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ECONTROL
	movl	%eax, %edi
	callq	_inb
	testb	$2, %al
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_FIFO
	movl	$170, %edi
	movl	%eax, %esi
	callq	_outb
	decl	%ebx
	jne	LBB0_1
LBB0_3:
	movq	%r14, %rdi
	callq	_probe_irq_off
	movl	%eax, (%r12)
	movl	(%r15), %esi
	shll	$5, %esi
	movq	%r12, %rdi
	callq	_ECR_WRITE
	movl	(%r12), %eax
	testl	%eax, %eax
	jg	LBB0_5
## %bb.4:
	movq	_PARPORT_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECR_SPP,4,2                    ## @ECR_SPP
	.comm	_ECR_TST,4,2                    ## @ECR_TST
	.comm	_PARPORT_IRQ_NONE,4,2           ## @PARPORT_IRQ_NONE
	.no_dead_strip	_irq_probe_ECP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irq_probe_ECP
_irq_probe_ECP:                         ; @irq_probe_ECP
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_probe_irq_on
	mov	x20, x0
Lloh0:
	adrp	x21, _ECR_SPP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ECR_SPP@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #5
	mov	x0, x19
	bl	_ECR_WRITE
Lloh2:
	adrp	x22, _ECR_TST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ECR_TST@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w1, #4
	bfi	w1, w8, #5, #27
	mov	x0, x19
	bl	_ECR_WRITE
	ldr	w8, [x22]
	lsl	w1, w8, #5
	mov	x0, x19
	bl	_ECR_WRITE
	mov	w22, #1024
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ECONTROL
	bl	_inb
	tbnz	w0, #1, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_FIFO
	mov	x1, x0
	mov	w0, #170
	bl	_outb
	subs	w22, w22, #1
	b.ne	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_probe_irq_off
	str	w0, [x19]
	ldr	w8, [x21]
	lsl	w1, w8, #5
	mov	x0, x19
	bl	_ECR_WRITE
	ldr	w0, [x19]
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _PARPORT_IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PARPORT_IRQ_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	str	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ECR_SPP,4,2                    ; @ECR_SPP
	.comm	_ECR_TST,4,2                    ; @ECR_TST
	.comm	_PARPORT_IRQ_NONE,4,2           ; @PARPORT_IRQ_NONE
	.no_dead_strip	_irq_probe_ECP
.subsections_via_symbols
