	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_sync_measurement
_adc_sync_measurement:                  ## @adc_sync_measurement
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	$0, -28(%rbp)
	movq	(%rdi), %r15
	movq	_IQM_AF_COMM_EXEC__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IQM_AF_COMM_EXEC_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_IQM_AF_START_LOCK__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movl	$1, %edi
	callq	_msleep
	movl	$0, (%r14)
	movq	_IQM_AF_PHASE0__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	cmpl	$127, -28(%rbp)
	jne	LBB0_6
## %bb.5:
	incl	(%r14)
LBB0_6:
	movq	_IQM_AF_PHASE1__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	testl	%eax, %eax
	je	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$127, -28(%rbp)
	jne	LBB0_9
## %bb.8:
	incl	(%r14)
LBB0_9:
	movq	_IQM_AF_PHASE2__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_11:
	cmpl	$127, -28(%rbp)
	jne	LBB0_13
## %bb.12:
	incl	(%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IQM_AF_COMM_EXEC__A,4,2        ## @IQM_AF_COMM_EXEC__A
	.comm	_IQM_AF_COMM_EXEC_ACTIVE,4,2    ## @IQM_AF_COMM_EXEC_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_IQM_AF_START_LOCK__A,4,2       ## @IQM_AF_START_LOCK__A
	.comm	_IQM_AF_PHASE0__A,4,2           ## @IQM_AF_PHASE0__A
	.comm	_IQM_AF_PHASE1__A,4,2           ## @IQM_AF_PHASE1__A
	.comm	_IQM_AF_PHASE2__A,4,2           ## @IQM_AF_PHASE2__A
	.no_dead_strip	_adc_sync_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_sync_measurement
_adc_sync_measurement:                  ; @adc_sync_measurement
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	str	wzr, [sp, #12]
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _IQM_AF_COMM_EXEC__A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IQM_AF_COMM_EXEC__A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IQM_AF_COMM_EXEC_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IQM_AF_COMM_EXEC_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_9
; %bb.1:
Lloh6:
	adrp	x8, _IQM_AF_START_LOCK__A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IQM_AF_START_LOCK__A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_9
; %bb.2:
	mov	w0, #1
	bl	_msleep
	str	wzr, [x19]
Lloh9:
	adrp	x8, _IQM_AF_PHASE0__A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IQM_AF_PHASE0__A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #127
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:
Lloh12:
	adrp	x8, _IQM_AF_PHASE1__A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IQM_AF_PHASE1__A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, #127
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_8:
Lloh15:
	adrp	x8, _IQM_AF_PHASE2__A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IQM_AF_PHASE2__A@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	cbz	w0, LBB0_11
LBB0_9:
	mov	x21, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [sp, #12]
	cmp	w8, #127
	b.ne	LBB0_13
; %bb.12:
	mov	w21, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_13:
	mov	w21, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IQM_AF_COMM_EXEC__A,4,2        ; @IQM_AF_COMM_EXEC__A
	.comm	_IQM_AF_COMM_EXEC_ACTIVE,4,2    ; @IQM_AF_COMM_EXEC_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_IQM_AF_START_LOCK__A,4,2       ; @IQM_AF_START_LOCK__A
	.comm	_IQM_AF_PHASE0__A,4,2           ; @IQM_AF_PHASE0__A
	.comm	_IQM_AF_PHASE1__A,4,2           ; @IQM_AF_PHASE1__A
	.comm	_IQM_AF_PHASE2__A,4,2           ; @IQM_AF_PHASE2__A
	.no_dead_strip	_adc_sync_measurement
.subsections_via_symbols
