	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plip_receive
_plip_receive:                          ## @plip_receive
	.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, %r12
	movl	(%rdx), %eax
	movq	_OK@GOTPCREL(%rip), %r15
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_15
## %bb.2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movzwl	%di, %r13d
	jmp	LBB0_8
LBB0_3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movzwl	%di, %r13d
	movq	_PLIP_DELAY_UNIT@GOTPCREL(%rip), %r14
	movl	%r13d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r15d
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_read_status
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_udelay
	testb	%bl, %bl
	js	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_read_status
	cmpb	%al, %bl
	jne	LBB0_4
## %bb.7:
	shrb	$3, %bl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, (%rax)
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_write_data
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$130, (%rax)
	movq	_OK@GOTPCREL(%rip), %r15
LBB0_8:
	movq	_PLIP_DELAY_UNIT@GOTPCREL(%rip), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	decl	%r13d
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_read_status
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_udelay
	testb	%bl, %bl
	jns	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_read_status
	cmpb	%al, %bl
	jne	LBB0_9
## %bb.12:
	addb	%bl, %bl
	andb	$-16, %bl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orb	%bl, (%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_write_data
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$128, (%rax)
	jmp	LBB0_15
LBB0_14:
	movq	_TIMEOUT@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLIP_DELAY_UNIT,4,2            ## @PLIP_DELAY_UNIT
	.comm	_TIMEOUT,4,2                    ## @TIMEOUT
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_plip_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plip_receive
_plip_receive:                          ; @plip_receive
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w8, [x2]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_7
	b	LBB0_12
LBB0_2:
Lloh0:
	adrp	x25, _PLIP_DELAY_UNIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PLIP_DELAY_UNIT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TIMEOUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TIMEOUT@GOTPAGEOFF]
	mov	x26, x22
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	w26, w26, #1
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_read_status
	mov	x23, x0
	ldr	w0, [x25]
	bl	_udelay
	tbnz	w23, #7, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w23, w23
	mov	x0, x20
	bl	_read_status
	cmp	w0, w23, uxtb
	b.ne	LBB0_3
; %bb.6:
	ubfx	w8, w23, #3, #5
	strb	w8, [x21]
	mov	x0, x20
	mov	w1, #16
	bl	_write_data
	mov	w8, #130
	str	w8, [x19]
LBB0_7:
Lloh4:
	adrp	x25, _PLIP_DELAY_UNIT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PLIP_DELAY_UNIT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _TIMEOUT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TIMEOUT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_read_status
	mov	x23, x0
	ldr	w0, [x25]
	bl	_udelay
	tbz	w23, #7, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtb	w23, w23
	mov	x0, x20
	bl	_read_status
	cmp	w0, w23, uxtb
	b.ne	LBB0_8
; %bb.11:
	lsl	w8, w23, #1
	and	w8, w8, #0xf0
	ldrb	w9, [x21]
	orr	w8, w9, w8
	strb	w8, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_write_data
	mov	w8, #128
	str	w8, [x19]
LBB0_12:
Lloh8:
	adrp	x24, _OK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PLIP_DELAY_UNIT,4,2            ; @PLIP_DELAY_UNIT
	.comm	_TIMEOUT,4,2                    ; @TIMEOUT
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_plip_receive
.subsections_via_symbols
