	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_wait_for_task_complete
_ad5758_wait_for_task_complete:         ## @ad5758_wait_for_task_complete
	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.1:
	xorl	%r14d, %r14d
	testl	%r15d, %eax
	je	LBB0_31
## %bb.2:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.3:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.4:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.5:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.6:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.7:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.8:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.9:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.10:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.11:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.12:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.13:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.14:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.15:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.16:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.17:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.18:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ad5758_spi_reg_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.19:
	testl	%r15d, %eax
	je	LBB0_31
## %bb.20:
	movl	$100, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_31
LBB0_30:
	movl	%eax, %r14d
LBB0_31:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading bit 0x%x in 0x%x register\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_wait_for_task_complete
_ad5758_wait_for_task_complete:         ; @ad5758_wait_for_task_complete
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.1:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.2:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.3:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.4:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.5:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.6:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.7:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.8:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.9:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.10:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.11:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.12:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.13:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.14:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.15:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.16:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.17:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.18:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x19
	bl	_ad5758_spi_reg_read
	tbnz	w0, #31, LBB0_22
; %bb.19:
	tst	w0, w20
	b.eq	LBB0_21
; %bb.20:
	mov	w0, #100
	mov	w1, #1000
	bl	_usleep_range
	ldr	x0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading bit 0x%x in 0x%x register\n"

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