	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16480_initial_setup
_adis16480_initial_setup:               ## @adis16480_initial_setup
	.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	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_adis_reset
	movl	$70, %edi
	callq	_msleep
	movq	_ADIS16480_REG_GLOB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_adis_write_reg_16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	$30, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_adis_check_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_ADIS16480_REG_PROD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_adis_read_reg_16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.5:
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %edx
	xorl	%ebx, %ebx
	cmpl	%edx, %ecx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS16480_REG_GLOB_CMD,4,2     ## @ADIS16480_REG_GLOB_CMD
	.comm	_ADIS16480_REG_PROD_ID,4,2      ## @ADIS16480_REG_PROD_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adis%u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Device ID(%u) and product ID(%u) do not match."

	.no_dead_strip	_adis16480_initial_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16480_initial_setup
_adis16480_initial_setup:               ; @adis16480_initial_setup
	.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, x0
	bl	_iio_priv
	mov	x20, x0
	bl	_adis_reset
	mov	w0, #70
	bl	_msleep
Lloh0:
	adrp	x8, _ADIS16480_REG_GLOB_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS16480_REG_GLOB_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #1
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_adis_write_reg_16
	cbnz	w0, LBB0_8
; %bb.1:
	mov	w0, #30
	bl	_msleep
	mov	x0, x20
	bl	_adis_check_status
	cbnz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _ADIS16480_REG_PROD_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIS16480_REG_PROD_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_adis_read_reg_16
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldp	w2, w3, [sp, #8]
	cmp	w3, w2
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS16480_REG_GLOB_CMD,4,2     ; @ADIS16480_REG_GLOB_CMD
	.comm	_ADIS16480_REG_PROD_ID,4,2      ; @ADIS16480_REG_PROD_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adis%u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Device ID(%u) and product ID(%u) do not match."

	.no_dead_strip	_adis16480_initial_setup
.subsections_via_symbols
