	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_read_eeprom              ## -- Begin function atl1c_read_eeprom
	.p2align	4, 0x90
_atl1c_read_eeprom:                     ## @atl1c_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	xorl	%r12d, %r12d
	testb	$3, %bl
	jne	LBB0_17
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_REG_OTP_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-52(%rbp), %rdx
	callq	_AT_READ_REG
	movl	-52(%rbp), %eax
	movq	_OTP_CTRL_CLK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	orl	%eax, %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REG
LBB0_3:
	movq	_REG_EEPROM_DATA_LO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_AT_WRITE_REG
	movq	_EEPROM_CTRL_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_EEPROM_CTRL_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, -44(%rbp)
	movq	_REG_EEPROM_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_AT_WRITE_REG
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movq	_EEPROM_CTRL_RW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.5:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.6:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.8:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.9:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.10:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.11:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.12:
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_13
LBB0_14:
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_AT_READ_REG
	movzwl	-48(%rbp), %eax
	movl	%eax, -48(%rbp)
	shll	$16, %eax
	movswl	2(%r14), %edi
	orl	%eax, %edi
	callq	_swab32
	movl	%eax, (%r14)
	movl	$1, %r12d
LBB0_15:
	movl	-52(%rbp), %edx
	movq	_OTP_CTRL_CLK_EN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	_REG_OTP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AT_WRITE_REG
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_OTP_CTRL,4,2               ## @REG_OTP_CTRL
	.comm	_OTP_CTRL_CLK_EN,4,2            ## @OTP_CTRL_CLK_EN
	.comm	_REG_EEPROM_DATA_LO,4,2         ## @REG_EEPROM_DATA_LO
	.comm	_EEPROM_CTRL_ADDR_MASK,4,2      ## @EEPROM_CTRL_ADDR_MASK
	.comm	_EEPROM_CTRL_ADDR_SHIFT,4,2     ## @EEPROM_CTRL_ADDR_SHIFT
	.comm	_REG_EEPROM_CTRL,4,2            ## @REG_EEPROM_CTRL
	.comm	_EEPROM_CTRL_RW,4,2             ## @EEPROM_CTRL_RW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_read_eeprom              ; -- Begin function atl1c_read_eeprom
	.p2align	2
_atl1c_read_eeprom:                     ; @atl1c_read_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	tst	w1, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_17
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _REG_OTP_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_OTP_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_AT_READ_REG
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x23, _OTP_CTRL_CLK_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OTP_CTRL_CLK_EN@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_AT_WRITE_REG
LBB0_4:
Lloh4:
	adrp	x24, _REG_EEPROM_DATA_LO@GOTPAGE
Lloh5:
	ldr	x24, [x24, _REG_EEPROM_DATA_LO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_AT_WRITE_REG
Lloh6:
	adrp	x8, _EEPROM_CTRL_ADDR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_CTRL_ADDR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh9:
	adrp	x9, _EEPROM_CTRL_ADDR_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EEPROM_CTRL_ADDR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	str	w2, [sp, #8]
Lloh12:
	adrp	x21, _REG_EEPROM_CTRL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _REG_EEPROM_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_AT_WRITE_REG
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
Lloh14:
	adrp	x25, _EEPROM_CTRL_RW@GOTPAGE
Lloh15:
	ldr	x25, [x25, _EEPROM_CTRL_RW@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.5:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.6:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.7:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.8:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.9:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.10:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.11:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_18
LBB0_14:
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x19
	bl	_AT_READ_REG
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_AT_READ_REG
	ldrh	w8, [sp, #4]
	str	w8, [sp, #4]
	ldrsh	w9, [x20, #2]
	orr	w0, w9, w8, lsl #16
	bl	_swab32
	str	w0, [x20]
	mov	w20, #1
LBB0_15:
	ldr	w2, [sp, #12]
	ldr	w8, [x23]
	tst	w8, w2
	b.ne	LBB0_17
; %bb.16:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_AT_WRITE_REG
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	mov	w20, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_OTP_CTRL,4,2               ; @REG_OTP_CTRL
	.comm	_OTP_CTRL_CLK_EN,4,2            ; @OTP_CTRL_CLK_EN
	.comm	_REG_EEPROM_DATA_LO,4,2         ; @REG_EEPROM_DATA_LO
	.comm	_EEPROM_CTRL_ADDR_MASK,4,2      ; @EEPROM_CTRL_ADDR_MASK
	.comm	_EEPROM_CTRL_ADDR_SHIFT,4,2     ; @EEPROM_CTRL_ADDR_SHIFT
	.comm	_REG_EEPROM_CTRL,4,2            ; @REG_EEPROM_CTRL
	.comm	_EEPROM_CTRL_RW,4,2             ; @EEPROM_CTRL_RW
.subsections_via_symbols
