	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9523_read_raw
_ad9523_read_raw:                       ## @ad9523_read_raw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	leaq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r13), %rdi
	callq	_AD9523_CHANNEL_CLOCK_DIST
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ad9523_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.1:
	cmpq	$130, %r12
	je	LBB0_6
## %bb.2:
	cmpq	$129, %r12
	je	LBB0_7
## %bb.3:
	cmpq	$128, %r12
	jne	LBB0_8
## %bb.4:
	movq	_AD9523_CLK_DIST_PWR_DOWN_EN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_5
LBB0_6:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	%ebx, %edi
	callq	_AD9523_CLK_DIST_DIV_REV
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_5:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %edi
	callq	_AD9523_CLK_DIST_DIV_PHASE_REV
	imull	$3141592, %eax, %r14d           ## imm = 0x2FEFD8
	movl	%ebx, %edi
	callq	_AD9523_CLK_DIST_DIV_REV
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	shrq	$50, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD9523_CLK_DIST_PWR_DOWN_EN,4,2 ## @AD9523_CLK_DIST_PWR_DOWN_EN
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad9523_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9523_read_raw
_ad9523_read_raw:                       ; @ad9523_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x24, x0
	add	x25, x0, #16
	mov	x0, x25
	bl	_mutex_lock
	ldr	x0, [x23]
	bl	_AD9523_CHANNEL_CLOCK_DIST
	mov	x1, x0
	mov	x0, x21
	bl	_ad9523_read
	mov	x21, x0
	mov	x0, x25
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_9
; %bb.1:
	cmp	x22, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	x22, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	x22, #128
	b.ne	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _AD9523_CLK_DIST_PWR_DOWN_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD9523_CLK_DIST_PWR_DOWN_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w8, eq
	b	LBB0_6
LBB0_5:
	ldp	x8, x9, [x24]
	ldr	x10, [x23]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w20, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_AD9523_CLK_DIST_DIV_REV
	sdiv	w8, w20, w0
LBB0_6:
	str	w8, [x19]
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_AD9523_CLK_DIST_DIV_PHASE_REV
	mov	w8, #61400
	movk	w8, #47, lsl #16
	mul	w22, w0, w8
	mov	x0, x21
	bl	_AD9523_CLK_DIST_DIV_REV
	sdiv	w8, w22, w0
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #50
	str	w9, [x19]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	str	w8, [x20]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AD9523_CLK_DIST_PWR_DOWN_EN,4,2 ; @AD9523_CLK_DIST_PWR_DOWN_EN
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad9523_read_raw
.subsections_via_symbols
