	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9523_store_eeprom
_ad9523_store_eeprom:                   ## @ad9523_store_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_AD9523_EEPROM_CTRL1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ad9523_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	_AD9523_EEPROM_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AD9523_EEPROM_CTRL2_REG2EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ad9523_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	$-4, %ebx
	movq	_AD9523_EEPROM_DATA_XFER_STATUS@GOTPCREL(%rip), %r12
	movq	_AD9523_EEPROM_DATA_XFER_IN_PROGRESS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ad9523_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_3
LBB0_6:
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ad9523_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	_AD9523_EEPROM_ERROR_READBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ad9523_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	_AD9523_EEPROM_ERROR_READBACK_FAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD9523_EEPROM_CTRL1,4,2        ## @AD9523_EEPROM_CTRL1
	.comm	_AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS,4,2 ## @AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS
	.comm	_AD9523_EEPROM_CTRL2,4,2        ## @AD9523_EEPROM_CTRL2
	.comm	_AD9523_EEPROM_CTRL2_REG2EEPROM,4,2 ## @AD9523_EEPROM_CTRL2_REG2EEPROM
	.comm	_AD9523_EEPROM_DATA_XFER_STATUS,4,2 ## @AD9523_EEPROM_DATA_XFER_STATUS
	.comm	_AD9523_EEPROM_DATA_XFER_IN_PROGRESS,4,2 ## @AD9523_EEPROM_DATA_XFER_IN_PROGRESS
	.comm	_AD9523_EEPROM_ERROR_READBACK,4,2 ## @AD9523_EEPROM_ERROR_READBACK
	.comm	_AD9523_EEPROM_ERROR_READBACK_FAIL,4,2 ## @AD9523_EEPROM_ERROR_READBACK_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Verify EEPROM failed"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ad9523_store_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9523_store_eeprom
_ad9523_store_eeprom:                   ; @ad9523_store_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	x20, _AD9523_EEPROM_CTRL1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AD9523_EEPROM_CTRL1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_ad9523_write
	tbnz	w0, #31, LBB0_15
; %bb.1:
Lloh5:
	adrp	x8, _AD9523_EEPROM_CTRL2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD9523_EEPROM_CTRL2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AD9523_EEPROM_CTRL2_REG2EEPROM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AD9523_EEPROM_CTRL2_REG2EEPROM@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ad9523_write
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	w0, #20
	bl	_msleep
Lloh11:
	adrp	x21, _AD9523_EEPROM_DATA_XFER_STATUS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AD9523_EEPROM_DATA_XFER_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
; %bb.3:
Lloh13:
	adrp	x22, _AD9523_EEPROM_DATA_XFER_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _AD9523_EEPROM_DATA_XFER_IN_PROGRESS@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
; %bb.5:
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
; %bb.7:
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
; %bb.9:
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
LBB0_11:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_ad9523_write
	tbnz	w0, #31, LBB0_15
; %bb.12:
Lloh15:
	adrp	x8, _AD9523_EEPROM_ERROR_READBACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AD9523_EEPROM_ERROR_READBACK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ad9523_read
	tbnz	w0, #31, LBB0_15
; %bb.13:
Lloh18:
	adrp	x8, _AD9523_EEPROM_ERROR_READBACK_FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AD9523_EEPROM_ERROR_READBACK_FAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.14:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AD9523_EEPROM_CTRL1,4,2        ; @AD9523_EEPROM_CTRL1
	.comm	_AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS,4,2 ; @AD9523_EEPROM_CTRL1_EEPROM_WRITE_PROT_DIS
	.comm	_AD9523_EEPROM_CTRL2,4,2        ; @AD9523_EEPROM_CTRL2
	.comm	_AD9523_EEPROM_CTRL2_REG2EEPROM,4,2 ; @AD9523_EEPROM_CTRL2_REG2EEPROM
	.comm	_AD9523_EEPROM_DATA_XFER_STATUS,4,2 ; @AD9523_EEPROM_DATA_XFER_STATUS
	.comm	_AD9523_EEPROM_DATA_XFER_IN_PROGRESS,4,2 ; @AD9523_EEPROM_DATA_XFER_IN_PROGRESS
	.comm	_AD9523_EEPROM_ERROR_READBACK,4,2 ; @AD9523_EEPROM_ERROR_READBACK
	.comm	_AD9523_EEPROM_ERROR_READBACK_FAIL,4,2 ; @AD9523_EEPROM_ERROR_READBACK_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Verify EEPROM failed"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ad9523_store_eeprom
.subsections_via_symbols
