	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oxygen_read_eeprom             ## -- Begin function oxygen_read_eeprom
	.p2align	4, 0x90
_oxygen_read_eeprom:                    ## @oxygen_read_eeprom
	.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
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	_OXYGEN_EEPROM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OXYGEN_EEPROM_DIR_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_oxygen_write8
	movl	$99, %ebx
	movq	_OXYGEN_EEPROM_STATUS@GOTPCREL(%rip), %r15
	movq	_OXYGEN_EEPROM_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_oxygen_read8
	subl	$1, %ebx
	setb	%cl
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	je	LBB0_1
LBB0_3:
	movq	_OXYGEN_EEPROM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_oxygen_read16                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_EEPROM_CONTROL,4,2      ## @OXYGEN_EEPROM_CONTROL
	.comm	_OXYGEN_EEPROM_DIR_READ,4,2     ## @OXYGEN_EEPROM_DIR_READ
	.comm	_OXYGEN_EEPROM_STATUS,4,2       ## @OXYGEN_EEPROM_STATUS
	.comm	_OXYGEN_EEPROM_BUSY,4,2         ## @OXYGEN_EEPROM_BUSY
	.comm	_OXYGEN_EEPROM_DATA,4,2         ## @OXYGEN_EEPROM_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oxygen_read_eeprom             ; -- Begin function oxygen_read_eeprom
	.p2align	2
_oxygen_read_eeprom:                    ; @oxygen_read_eeprom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _OXYGEN_EEPROM_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_EEPROM_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OXYGEN_EEPROM_DIR_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OXYGEN_EEPROM_DIR_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w1
	mov	x1, x8
	bl	_oxygen_write8
	mov	w20, #99
Lloh6:
	adrp	x21, _OXYGEN_EEPROM_STATUS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _OXYGEN_EEPROM_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x22, _OXYGEN_EEPROM_BUSY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _OXYGEN_EEPROM_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_oxygen_read8
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	sub	w20, w20, #1
	b.ne	LBB0_1
; %bb.2:
Lloh10:
	adrp	x8, _OXYGEN_EEPROM_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OXYGEN_EEPROM_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_oxygen_read16
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_EEPROM_CONTROL,4,2      ; @OXYGEN_EEPROM_CONTROL
	.comm	_OXYGEN_EEPROM_DIR_READ,4,2     ; @OXYGEN_EEPROM_DIR_READ
	.comm	_OXYGEN_EEPROM_STATUS,4,2       ; @OXYGEN_EEPROM_STATUS
	.comm	_OXYGEN_EEPROM_BUSY,4,2         ; @OXYGEN_EEPROM_BUSY
	.comm	_OXYGEN_EEPROM_DATA,4,2         ; @OXYGEN_EEPROM_DATA
.subsections_via_symbols
