	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PIO_PutByte
_PIO_PutByte:                           ## @PIO_PutByte
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_TransferStatus@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	callq	_D
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.2:
	movq	_CommandIndex@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ExpectedBytes@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	callq	_D
	movslq	(%r15), %rax
	cmpl	(%r12), %eax
	jge	LBB0_11
## %bb.3:
	movq	_CommandFrame@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r15)
	movl	%ebx, (%rcx,%rax,4)
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	jl	LBB0_19
## %bb.4:
	movl	(%rcx), %eax
	addl	$-49, %eax
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.5:
	movq	_PIO_StatusRead@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_6:
	movq	_DataIndex@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	_ExpectedBytes@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jge	LBB0_12
## %bb.7:
	movq	_DataBuffer@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r15)
	movb	%bl, (%rcx,%rax)
	movl	(%r12), %esi
	cmpl	%esi, (%r15)
	jl	LBB0_19
## %bb.8:
	movq	(%r13), %rdi
	decl	%esi
	callq	_SIO_ChkSum
	movq	(%r13), %rcx
	movslq	(%r12), %rdx
	cmpb	-1(%rdx,%rcx), %al
	jne	LBB0_15
## %bb.9:
	xorl	%eax, %eax
	callq	_WriteSectorBack
	testb	%al, %al
	je	LBB0_17
## %bb.10:
	movq	(%r13), %rcx
	movb	$65, (%rcx)
	movq	(%r13), %rcx
	movb	%al, 1(%rcx)
	movl	$2, %eax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	_Log_print
LBB0_17:
	movq	_PIO_NoFrame@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_print                      ## TAILCALL
LBB0_13:
	movq	_PIO_NoFrame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str.3(%rip), %rdi
LBB0_14:
	xorl	%eax, %eax
	callq	_printf
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_D                              ## TAILCALL
LBB0_15:
	movb	$69, (%rcx)
	movl	$1, %eax
LBB0_16:
	movl	$0, (%r15)
	movl	%eax, (%r12)
	movq	_PIO_FinalStatus@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TransferStatus:%d\n"

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

	.comm	_CommandIndex,4,2               ## @CommandIndex
	.comm	_ExpectedBytes,4,2              ## @ExpectedBytes
	.comm	_CommandFrame,8,3               ## @CommandFrame
	.comm	_PIO_StatusRead,4,2             ## @PIO_StatusRead
L_.str.2:                               ## @.str.2
	.asciz	"TransferStatus = PIO_StatusRead\n"

	.comm	_PIO_NoFrame,4,2                ## @PIO_NoFrame
L_.str.3:                               ## @.str.3
	.asciz	"TransferStatus = PIO_NoFrame\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid command frame!"

	.comm	_DataIndex,4,2                  ## @DataIndex
	.comm	_DataBuffer,8,3                 ## @DataBuffer
	.comm	_PIO_FinalStatus,4,2            ## @PIO_FinalStatus
L_.str.5:                               ## @.str.5
	.asciz	"Invalid data frame!"

	.no_dead_strip	_PIO_PutByte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PIO_PutByte
_PIO_PutByte:                           ; @PIO_PutByte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _TransferStatus@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TransferStatus@GOTPAGEOFF]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_D
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.2:
Lloh4:
	adrp	x21, _CommandIndex@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CommandIndex@GOTPAGEOFF]
Lloh6:
	adrp	x22, _ExpectedBytes@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ExpectedBytes@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x22]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bl	_D
	ldrsw	x8, [x21]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.3:
Lloh10:
	adrp	x9, _CommandFrame@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CommandFrame@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	w10, w8, #1
	str	w10, [x21]
	str	w19, [x9, x8, lsl #2]
	ldr	w8, [x21]
	ldr	w10, [x22]
	cmp	w8, w10
	b.lt	LBB0_19
; %bb.4:
	ldr	w8, [x9]
	sub	w8, w8, #49
	cmp	w8, #7
	b.hi	LBB0_14
; %bb.5:
Lloh13:
	adrp	x8, _PIO_StatusRead@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PIO_StatusRead@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh18:
	adrp	x21, _DataIndex@GOTPAGE
Lloh19:
	ldr	x21, [x21, _DataIndex@GOTPAGEOFF]
	ldrsw	x8, [x21]
Lloh20:
	adrp	x22, _ExpectedBytes@GOTPAGE
Lloh21:
	ldr	x22, [x22, _ExpectedBytes@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.7:
Lloh22:
	adrp	x23, _DataBuffer@GOTPAGE
Lloh23:
	ldr	x23, [x23, _DataBuffer@GOTPAGEOFF]
	ldr	x9, [x23]
	add	w10, w8, #1
	str	w10, [x21]
	strb	w19, [x9, x8]
	ldr	w9, [x21]
	ldr	w8, [x22]
	cmp	w9, w8
	b.lt	LBB0_19
; %bb.8:
	ldr	x0, [x23]
	sub	w1, w8, #1
	bl	_SIO_ChkSum
	ldr	x8, [x23]
	ldrsw	x9, [x22]
	add	x9, x9, x8
	ldurb	w9, [x9, #-1]
	cmp	w9, w0, uxtb
	b.ne	LBB0_16
; %bb.9:
	bl	_WriteSectorBack
	cbz	w0, LBB0_12
; %bb.10:
	ldr	x8, [x23]
	mov	w9, #65
	strb	w9, [x8]
	ldr	x8, [x23]
	strb	w0, [x8, #1]
	mov	w8, #2
	b	LBB0_17
LBB0_11:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_print
LBB0_12:
Lloh26:
	adrp	x8, _PIO_NoFrame@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PIO_NoFrame@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	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
	add	sp, sp, #80
	b	_Log_print
LBB0_14:
Lloh30:
	adrp	x8, _PIO_NoFrame@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PIO_NoFrame@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_printf
	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
	add	sp, sp, #80
	b	_D
LBB0_16:
	mov	w9, #69
	strb	w9, [x8]
	mov	w8, #1
LBB0_17:
	str	wzr, [x21]
	str	w8, [x22]
Lloh35:
	adrp	x8, _PIO_FinalStatus@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PIO_FinalStatus@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TransferStatus:%d\n"

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

	.comm	_CommandIndex,4,2               ; @CommandIndex
	.comm	_ExpectedBytes,4,2              ; @ExpectedBytes
	.comm	_CommandFrame,8,3               ; @CommandFrame
	.comm	_PIO_StatusRead,4,2             ; @PIO_StatusRead
l_.str.2:                               ; @.str.2
	.asciz	"TransferStatus = PIO_StatusRead\n"

	.comm	_PIO_NoFrame,4,2                ; @PIO_NoFrame
l_.str.3:                               ; @.str.3
	.asciz	"TransferStatus = PIO_NoFrame\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid command frame!"

	.comm	_DataIndex,4,2                  ; @DataIndex
	.comm	_DataBuffer,8,3                 ; @DataBuffer
	.comm	_PIO_FinalStatus,4,2            ; @PIO_FinalStatus
l_.str.5:                               ; @.str.5
	.asciz	"Invalid data frame!"

	.no_dead_strip	_PIO_PutByte
.subsections_via_symbols
