	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w9966_rReg
_w9966_rReg:                            ## @w9966_rReg
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	andb	$31, %sil
	orb	$-128, %sil
	movb	%sil, -18(%rbp)
	movl	4(%rdi), %edi
	movq	_IEEE1284_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_parport_negotiate
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	4(%rbx), %edi
	leaq	-18(%rbp), %rsi
	movl	$1, %edx
	callq	_parport_write
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movl	4(%rbx), %edi
	movq	_IEEE1284_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_parport_negotiate
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	leaq	-17(%rbp), %rsi
	movl	$1, %edx
	callq	_parport_read
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movzbl	-17(%rbp), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE1284_ADDR,4,2              ## @IEEE1284_ADDR
	.comm	_IEEE1284_DATA,4,2              ## @IEEE1284_DATA
	.no_dead_strip	_w9966_rReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w9966_rReg
_w9966_rReg:                            ; @w9966_rReg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w8, #128
	bfxil	w8, w1, #0, #5
	strb	w8, [sp, #15]
	ldr	w0, [x0, #4]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IEEE1284_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE1284_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_parport_negotiate
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #4]
	add	x1, sp, #15
	mov	w2, #1
	bl	_parport_write
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	ldp	w8, w0, [x19]
Lloh3:
	adrp	x9, _IEEE1284_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE1284_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_parport_negotiate
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
	add	x1, sp, #14
	mov	w2, #1
	bl	_parport_read
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldrb	w0, [sp, #14]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE1284_ADDR,4,2              ; @IEEE1284_ADDR
	.comm	_IEEE1284_DATA,4,2              ; @IEEE1284_DATA
	.no_dead_strip	_w9966_rReg
.subsections_via_symbols
