	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_read_uart
_oxygen_read_uart:                      ## @oxygen_read_uart
	.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
	movq	%rdi, %r14
	callq	_oxygen_uart_input_ready
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	_OXYGEN_MPU401@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_oxygen_read8                   ## TAILCALL
LBB0_1:
	movq	_OXYGEN_MPU401@GOTPCREL(%rip), %r15
	movq	_MPU401_ACK@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r14)
	movq	%rbx, (%rcx,%rax,8)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_oxygen_uart_input_ready
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_oxygen_read8
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	(%r14), %r13
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_8:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_MPU401,4,2              ## @OXYGEN_MPU401
	.comm	_MPU401_ACK,8,3                 ## @MPU401_ACK
	.no_dead_strip	_oxygen_read_uart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_read_uart
_oxygen_read_uart:                      ; @oxygen_read_uart
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_oxygen_uart_input_ready
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _OXYGEN_MPU401@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_MPU401@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_oxygen_read8
LBB0_2:
Lloh3:
	adrp	x21, _OXYGEN_MPU401@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OXYGEN_MPU401@GOTPAGEOFF]
Lloh5:
	adrp	x22, _MPU401_ACK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MPU401_ACK@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #16]
	add	x10, x8, #1
	str	x10, [x19]
	str	x20, [x9, x8, lsl #3]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_oxygen_uart_input_ready
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_oxygen_read8
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	ldr	x23, [x19]
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	x23, x0
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	b	LBB0_4
LBB0_9:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_11
; %bb.10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x1
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_MPU401,4,2              ; @OXYGEN_MPU401
	.comm	_MPU401_ACK,8,3                 ; @MPU401_ACK
	.no_dead_strip	_oxygen_read_uart
.subsections_via_symbols
