	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PIO_GetByte
_PIO_GetByte:                           ## @PIO_GetByte
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TransferStatus@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	callq	_D
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PIO_Command_Frame              ## TAILCALL
LBB0_3:
	movl	$129, (%r14)
LBB0_4:
	movq	_DataIndex@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ExpectedBytes@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	callq	_D
	movslq	(%r15), %rax
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.5:
	movq	_DataBuffer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leal	1(%rax), %esi
	movl	%esi, (%r15)
	movl	(%rdx,%rax,4), %ebx
	cmpl	%ecx, %esi
	jge	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movq	_DataIndex@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_ExpectedBytes@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jge	LBB0_8
## %bb.7:
	movq	_DataBuffer@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	leal	1(%rcx), %edi
	movl	%edi, (%rax)
	movl	(%rsi,%rcx,4), %ebx
	cmpl	%edx, %edi
	jge	LBB0_9
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_Log_print
LBB0_9:
	movq	_PIO_NoFrame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO_GetByte TransferStatus:%d\n"

	.comm	_TransferStatus,4,2             ## @TransferStatus
L_.str.1:                               ## @.str.1
	.asciz	"ReadFrame: DataIndex:%d ExpectedBytes:%d\n"

	.comm	_DataIndex,4,2                  ## @DataIndex
	.comm	_ExpectedBytes,4,2              ## @ExpectedBytes
	.comm	_DataBuffer,8,3                 ## @DataBuffer
	.comm	_PIO_NoFrame,4,2                ## @PIO_NoFrame
L_.str.2:                               ## @.str.2
	.asciz	"Invalid read frame!"

	.no_dead_strip	_PIO_GetByte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PIO_GetByte
_PIO_GetByte:                           ; @PIO_GetByte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x19, _TransferStatus@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TransferStatus@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_D
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.1:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PIO_Command_Frame
LBB0_3:
	mov	w8, #129
	str	w8, [x19]
LBB0_4:
Lloh6:
	adrp	x20, _DataIndex@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DataIndex@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _ExpectedBytes@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ExpectedBytes@GOTPAGEOFF]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bl	_D
	ldrsw	x8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.5:
Lloh12:
	adrp	x10, _DataBuffer@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DataBuffer@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	w11, w8, #1
	str	w11, [x20]
	ldr	w0, [x10, x8, lsl #2]
	cmp	w11, w9
	b.ge	LBB0_9
	b	LBB0_11
LBB0_6:
Lloh15:
	adrp	x9, _DataIndex@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DataIndex@GOTPAGEOFF]
	ldrsw	x8, [x9]
Lloh17:
	adrp	x10, _ExpectedBytes@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ExpectedBytes@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_8
; %bb.7:
Lloh20:
	adrp	x11, _DataBuffer@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DataBuffer@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	add	w12, w8, #1
	str	w12, [x9]
	ldr	w0, [x11, x8, lsl #2]
	cmp	w12, w10
	b.ge	LBB0_9
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Log_print
	mov	w0, #0
LBB0_9:
Lloh25:
	adrp	x8, _PIO_NoFrame@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PIO_NoFrame@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO_GetByte TransferStatus:%d\n"

	.comm	_TransferStatus,4,2             ; @TransferStatus
l_.str.1:                               ; @.str.1
	.asciz	"ReadFrame: DataIndex:%d ExpectedBytes:%d\n"

	.comm	_DataIndex,4,2                  ; @DataIndex
	.comm	_ExpectedBytes,4,2              ; @ExpectedBytes
	.comm	_DataBuffer,8,3                 ; @DataBuffer
	.comm	_PIO_NoFrame,4,2                ; @PIO_NoFrame
l_.str.2:                               ; @.str.2
	.asciz	"Invalid read frame!"

	.no_dead_strip	_PIO_GetByte
.subsections_via_symbols
