	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_SPP_supported
_parport_SPP_supported:                 ## @parport_SPP_supported
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_clear_epp_timeout
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$12, %edi
	movl	%eax, %esi
	callq	_parport_writeb
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	%eax, %edi
	callq	_parport_readb
	andb	$15, %al
	cmpb	$12, %al
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$14, %edi
	movl	%eax, %esi
	callq	_parport_writeb
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	%eax, %edi
	callq	_parport_readb
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_CONTROL
	movl	$12, %edi
	movl	%eax, %esi
	callq	_parport_writeb
	andb	$15, %r14b
	cmpb	$14, %r14b
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	movl	$170, %esi
	callq	_parport_gsc_write_data
	movq	%rbx, %rdi
	callq	_parport_gsc_read_data
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpb	$-86, %cl
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$85, %esi
	callq	_parport_gsc_write_data
	movq	%rbx, %rdi
	callq	_parport_gsc_read_data
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpb	$85, %cl
	jne	LBB0_5
LBB0_4:
	movq	_PARPORT_MODE_PCSPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_MODE_PCSPP,4,2         ## @PARPORT_MODE_PCSPP
	.no_dead_strip	_parport_SPP_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_SPP_supported
_parport_SPP_supported:                 ; @parport_SPP_supported
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_clear_epp_timeout
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #12
	bl	_parport_writeb
	mov	x0, x19
	bl	_CONTROL
	bl	_parport_readb
	and	w8, w0, #0xf
	cmp	w8, #12
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #14
	bl	_parport_writeb
	mov	x0, x19
	bl	_CONTROL
	bl	_parport_readb
	mov	x20, x0
	mov	x0, x19
	bl	_CONTROL
	mov	x1, x0
	mov	w0, #12
	bl	_parport_writeb
	and	w8, w20, #0xf
	cmp	w8, #14
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PARPORT_MODE_PCSPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARPORT_MODE_PCSPP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	w1, #170
	bl	_parport_gsc_write_data
	mov	x0, x19
	bl	_parport_gsc_read_data
	cmp	w0, #170
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #85
	bl	_parport_gsc_write_data
	mov	x0, x19
	bl	_parport_gsc_read_data
Lloh3:
	adrp	x8, _PARPORT_MODE_PCSPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARPORT_MODE_PCSPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #85
	csel	w0, w8, wzr, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_MODE_PCSPP,4,2         ; @PARPORT_MODE_PCSPP
	.no_dead_strip	_parport_SPP_supported
.subsections_via_symbols
