	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_read_byte
_serial_read_byte:                      ## @serial_read_byte
	.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
	xorl	%eax, %eax
	callq	_serial_input
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	shll	$2, %r14d
	addl	%ebx, %ebx
	orl	%r14d, %ebx
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r14d
	orl	%ebx, %r14d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	shll	$2, %r14d
	addl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r12d
	orl	%r15d, %r12d
	orl	%r14d, %r12d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	shll	$2, %r12d
	addl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %ebx
	orl	%r14d, %ebx
	orl	%r12d, %ebx
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	addl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_serial_read_pin
	movl	%eax, %r14d
	orl	%ebx, %r14d
	xorl	%eax, %eax
	callq	_serial_delay
	movl	$1, %edi
	callq	__delay_us
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_serial_read_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_read_byte
_serial_read_byte:                      ; @serial_read_byte
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_serial_input
	bl	_serial_read_pin
	mov	x19, x0
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	bl	_serial_read_pin
	mov	x20, x0
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	lsl	w8, w19, #2
	orr	w19, w8, w20, lsl #1
	bl	_serial_read_pin
	orr	w20, w0, w19
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	bl	_serial_read_pin
	mov	x19, x0
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	lsl	w8, w20, #2
	orr	w19, w8, w19, lsl #1
	bl	_serial_read_pin
	orr	w20, w0, w19
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	bl	_serial_read_pin
	mov	x19, x0
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	lsl	w8, w20, #2
	orr	w19, w8, w19, lsl #1
	bl	_serial_read_pin
	orr	w19, w0, w19
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	bl	_serial_read_pin
	orr	w19, w0, w19, lsl #1
	bl	_serial_delay
	mov	w0, #1
	bl	__delay_us
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_serial_read_byte
.subsections_via_symbols
