	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ECR_present
_parport_ECR_present:                   ## @parport_ECR_present
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	callq	_CONTROL
	movl	$12, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%rbx, %rdi
	callq	_ECONTROL
	movl	%eax, %edi
	callq	_inb
	testb	$3, %al
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$14, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	%eax, %edi
	callq	_inb
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ECONTROL
	movl	%eax, %edi
	callq	_inb
	xorl	%r14d, %eax
	testb	$2, %al
	je	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_ECONTROL
	movl	%eax, %edi
	callq	_inb
	andl	$3, %eax
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$52, %esi
	callq	_ECR_WRITE
	movq	%rbx, %rdi
	callq	_ECONTROL
	movl	%eax, %edi
	callq	_inb
	cmpl	$53, %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$12, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_ECR_SPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_frob_set_mode
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$12, %edi
	movl	%eax, %esi
	callq	_outb
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECR_SPP,4,2                    ## @ECR_SPP
	.no_dead_strip	_parport_ECR_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ECR_present
_parport_ECR_present:                   ; @parport_ECR_present
	.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
	ldr	x21, [x0]
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #12
	bl	_outb
	mov	x0, x19
	bl	_ECONTROL
	bl	_inb
	tst	w0, #0x3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #14
	bl	_outb
	mov	x0, x19
	bl	_CONTROL
	bl	_inb
	mov	x20, x0
	mov	x0, x19
	bl	_ECONTROL
	bl	_inb
	eor	w8, w0, w20
	tbz	w8, #1, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ECONTROL
	bl	_inb
	and	w8, w0, #0x3
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #52
	bl	_ECR_WRITE
	mov	x0, x19
	bl	_ECONTROL
	bl	_inb
	cmp	w0, #53
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #1
	str	w20, [x21]
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #12
	bl	_outb
Lloh0:
	adrp	x8, _ECR_SPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECR_SPP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_frob_set_mode
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #12
	bl	_outb
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECR_SPP,4,2                    ; @ECR_SPP
	.no_dead_strip	_parport_ECR_present
.subsections_via_symbols
