	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_read_raw
_ep93xx_read_raw:                       ## @ep93xx_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, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_13
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_12
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_14
## %bb.3:
	movq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	4(%r13), %eax
	cmpl	%eax, 16(%r12)
	je	LBB0_5
## %bb.4:
	movl	%eax, 16(%r12)
	xorl	%eax, %eax
	callq	_local_irq_disable
	movq	_EP93XX_ADC_SW_LOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	$170, %edi
	callq	_writel_relaxed
	movl	(%r13), %edi
	movq	_EP93XX_ADC_SWITCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_ep93xx_adc_delay
LBB0_5:
	movq	_EP93XX_ADC_RESULT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movl	$1000000, %edi                  ## imm = 0xF4240
	movl	$925, %esi                      ## imm = 0x39D
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movl	$1000000, %edi                  ## imm = 0xF4240
	movl	$925, %esi                      ## imm = 0x39D
	callq	_DIV_ROUND_UP
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ep93xx_adc_delay
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_EP93XX_ADC_SDR@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	_EP93XX_ADC_RESULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	testl	%eax, (%r15)
	je	LBB0_7
LBB0_10:
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_11
LBB0_13:
	movl	$283467841, (%r15)              ## imm = 0x10E56041
	movl	$32, (%r14)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_15
LBB0_12:
	movl	$25000, (%r15)                  ## imm = 0x61A8
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP93XX_ADC_SW_LOCK,8,3         ## @EP93XX_ADC_SW_LOCK
	.comm	_EP93XX_ADC_SWITCH,8,3          ## @EP93XX_ADC_SWITCH
	.comm	_EP93XX_ADC_RESULT,8,3          ## @EP93XX_ADC_RESULT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EP93XX_ADC_SDR,4,2             ## @EP93XX_ADC_SDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conversion timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ep93xx_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_read_raw
_ep93xx_read_raw:                       ; @ep93xx_read_raw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_iio_priv
	cmp	x23, #128
	b.eq	LBB0_10
; %bb.1:
	cmp	x23, #130
	b.eq	LBB0_11
; %bb.2:
	cmp	x23, #129
	b.ne	LBB0_12
; %bb.3:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w9, [x19, #16]
	ldr	w8, [x22, #4]
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.4:
	str	w8, [x19, #16]
	bl	_local_irq_disable
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _EP93XX_ADC_SW_LOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EP93XX_ADC_SW_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #170
	bl	_writel_relaxed
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _EP93XX_ADC_SWITCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EP93XX_ADC_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	bl	_local_irq_enable
	mov	w0, #2000
	mov	w1, #2000
	bl	_ep93xx_adc_delay
LBB0_5:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x24, _EP93XX_ADC_RESULT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EP93XX_ADC_RESULT@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	w0, #16960
	movk	w0, #15, lsl #16
	mov	w1, #925
	bl	_DIV_ROUND_UP
	mov	x22, x0
	mov	w0, #16960
	movk	w0, #15, lsl #16
	mov	w1, #925
	bl	_DIV_ROUND_UP
	mov	x1, x0
	mov	x0, x22
	bl	_ep93xx_adc_delay
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x25, _jiffies@GOTPAGE
Lloh12:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x27, [x25]
	mov	w0, #1
	bl	_msecs_to_jiffies
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh13:
	adrp	x26, _EP93XX_ADC_SDR@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EP93XX_ADC_SDR@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_9
; %bb.6:
	add	x8, x27, x23
	add	x23, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x23
	bl	_time_after
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_cpu_relax
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_9:
	mov	w1, #15
	bl	_sign_extend32
	str	w0, [x20]
	b	LBB0_14
LBB0_10:
	mov	w8, #24641
	movk	w8, #4325, lsl #16
	str	w8, [x20]
	mov	w8, #32
	str	w8, [x24]
Lloh15:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_11:
	mov	w8, #25000
	str	w8, [x20]
Lloh18:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_13:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh26:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EP93XX_ADC_SW_LOCK,8,3         ; @EP93XX_ADC_SW_LOCK
	.comm	_EP93XX_ADC_SWITCH,8,3          ; @EP93XX_ADC_SWITCH
	.comm	_EP93XX_ADC_RESULT,8,3          ; @EP93XX_ADC_RESULT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EP93XX_ADC_SDR,4,2             ; @EP93XX_ADC_SDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conversion timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ep93xx_read_raw
.subsections_via_symbols
