	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia_read_nibble_stream
_cpia_read_nibble_stream:               ## @cpia_read_nibble_stream
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	_PARPORT_CONTROL_AUTOFD@GOTPCREL(%rip), %r14
	movq	_PARPORT_STATUS_ACK@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$3, %r15d
	jg	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_parport_frob_control
	movq	_IEEE1284_PH_REV_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_parport_wait_peripheral
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_parport_read_status
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_parport_frob_control
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_parport_wait_peripheral
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$3, %ebx
	movq	%r12, %rdi
	callq	_parport_read_status
	shrl	$3, %eax
	movl	%ebx, %ecx
	andb	$7, %cl
	shrb	%bl
	andb	$8, %bl
	orb	%cl, %bl
	movl	%eax, %ecx
	andb	$7, %cl
	shrb	%al
	andb	$8, %al
	orb	%cl, %al
	shlb	$4, %al
	orb	%bl, %al
	xorb	$-120, %al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movb	%al, (%rcx,%rbx)
	incl	%r15d
	movq	_EOI@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	movl	$0, %eax
	cmovnel	%eax, %r15d
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	movq	_PARPORT_STATUS_ACK@GOTPCREL(%rip), %r13
	jne	LBB0_3
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	(%r12), %esi
	movl	%ebx, %edx
	shrl	%edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_parport_frob_control
	jmp	LBB0_10
LBB0_7:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_CONTROL_AUTOFD,4,2     ## @PARPORT_CONTROL_AUTOFD
	.comm	_IEEE1284_PH_REV_DATA,4,2       ## @IEEE1284_PH_REV_DATA
	.comm	_PARPORT_STATUS_ACK,4,2         ## @PARPORT_STATUS_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Nibble timeout at event 9 (%d bytes)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Nibble timeout at event 11\n"

	.comm	_EOI,1,0                        ## @EOI
	.no_dead_strip	_cpia_read_nibble_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia_read_nibble_stream
_cpia_read_nibble_stream:               ; @cpia_read_nibble_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x2, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x23, #0
	mov	w25, #0
Lloh0:
	adrp	x24, _PARPORT_CONTROL_AUTOFD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PARPORT_CONTROL_AUTOFD@GOTPAGEOFF]
Lloh2:
	adrp	x26, _IEEE1284_PH_REV_DATA@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IEEE1284_PH_REV_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PARPORT_STATUS_ACK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PARPORT_STATUS_ACK@GOTPAGEOFF]
Lloh6:
	adrp	x28, _EOI@GOTPAGE
Lloh7:
	ldr	x28, [x28, _EOI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, #3
	b.gt	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x1
	bl	_parport_frob_control
	ldr	w8, [x26]
	str	w8, [x19, #4]
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_parport_wait_peripheral
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_parport_read_status
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_parport_frob_control
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x1
	bl	_parport_wait_peripheral
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_parport_read_status
	lsr	w8, w22, #4
	and	w8, w8, #0x8
	bfxil	w8, w22, #3, #3
	lsr	w9, w0, #4
	bfxil	w9, w0, #3, #3
	bfi	w8, w9, #4, #4
	mov	w9, #136
	eor	w8, w8, w9
	strb	w8, [x21, x23]
	ldrb	w9, [x28]
	cmp	w8, w9
	csinc	w25, wzr, w25, ne
	add	x23, x23, #1
	cmp	x20, x23
	b.ne	LBB0_2
; %bb.6:
	mov	x23, x20
	b	LBB0_10
LBB0_7:
	mov	x23, #0
	b	LBB0_10
LBB0_8:
	ldr	w1, [x19]
	ubfx	x8, x23, #1, #31
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_parport_frob_control
	b	LBB0_10
LBB0_9:
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
LBB0_10:
	and	x0, x23, #0xffffffff
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_CONTROL_AUTOFD,4,2     ; @PARPORT_CONTROL_AUTOFD
	.comm	_IEEE1284_PH_REV_DATA,4,2       ; @IEEE1284_PH_REV_DATA
	.comm	_PARPORT_STATUS_ACK,4,2         ; @PARPORT_STATUS_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Nibble timeout at event 9 (%d bytes)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Nibble timeout at event 11\n"

	.comm	_EOI,1,0                        ; @EOI
	.no_dead_strip	_cpia_read_nibble_stream
.subsections_via_symbols
