	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis16480_ext_clk_config
_adis16480_ext_clk_config:              ## @adis16480_ext_clk_config
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	_ADIS16480_REG_FNCTIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_adis_read_reg_16
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_adis16480_of_get_ext_clk_pin
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_ADIS16480_DRDY_SEL
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	movl	%ebx, %edx
	incl	%edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_3:
	movl	%r15d, %edi
	callq	_ADIS16480_SYNC_EN
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_ADIS16480_SYNC_SEL
	movl	%eax, %r15d
	movq	_ADIS16480_SYNC_EN_MSK@GOTPCREL(%rip), %rax
	movq	_ADIS16480_SYNC_SEL_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	orl	%r13d, %r15d
	movq	24(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	16(%r12), %edi
	callq	_ADIS16480_SYNC_MODE
	orl	%eax, %r15d
	movq	_ADIS16480_SYNC_MODE_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_5:
	movq	_ADIS16480_REG_FNCTIO_CTRL@GOTPCREL(%rip), %rax
	notl	%ebx
	andl	-44(%rbp), %ebx
	orl	%r15d, %ebx
	movl	%ebx, -44(%rbp)
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_adis_write_reg_16
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	callq	_clk_prepare_enable
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIS16480_REG_FNCTIO_CTRL,4,2  ## @ADIS16480_REG_FNCTIO_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIO%x pin supports only one function at a time\n"

	.comm	_ADIS16480_SYNC_EN_MSK,4,2      ## @ADIS16480_SYNC_EN_MSK
	.comm	_ADIS16480_SYNC_SEL_MSK,4,2     ## @ADIS16480_SYNC_SEL_MSK
	.comm	_ADIS16480_SYNC_MODE_MSK,4,2    ## @ADIS16480_SYNC_MODE_MSK
	.no_dead_strip	_adis16480_ext_clk_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis16480_ext_clk_config
_adis16480_ext_clk_config:              ; @adis16480_ext_clk_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x23, _ADIS16480_REG_FNCTIO_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADIS16480_REG_FNCTIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_adis_read_reg_16
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_adis16480_of_get_ext_clk_pin
	mov	x22, x0
	ldr	w0, [sp, #12]
	bl	_ADIS16480_DRDY_SEL
	cmp	w22, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x20]
	add	w2, w22, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_3:
	mov	x0, x21
	bl	_ADIS16480_SYNC_EN
	mov	x21, x0
	mov	x0, x22
	bl	_ADIS16480_SYNC_SEL
	orr	w21, w0, w21
Lloh4:
	adrp	x8, _ADIS16480_SYNC_EN_MSK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADIS16480_SYNC_EN_MSK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ADIS16480_SYNC_SEL_MSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADIS16480_SYNC_SEL_MSK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_ADIS16480_SYNC_MODE
	orr	w21, w0, w21
Lloh10:
	adrp	x8, _ADIS16480_SYNC_MODE_MSK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADIS16480_SYNC_MODE_MSK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_5:
	ldr	w8, [sp, #12]
	bic	w8, w8, w22
	orr	w2, w8, w21
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_adis_write_reg_16
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIS16480_REG_FNCTIO_CTRL,4,2  ; @ADIS16480_REG_FNCTIO_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIO%x pin supports only one function at a time\n"

	.comm	_ADIS16480_SYNC_EN_MSK,4,2      ; @ADIS16480_SYNC_EN_MSK
	.comm	_ADIS16480_SYNC_SEL_MSK,4,2     ; @ADIS16480_SYNC_SEL_MSK
	.comm	_ADIS16480_SYNC_MODE_MSK,4,2    ; @ADIS16480_SYNC_MODE_MSK
	.no_dead_strip	_adis16480_ext_clk_config
.subsections_via_symbols
