	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_read_s3c64xx_ts
_exynos_read_s3c64xx_ts:                ## @exynos_read_s3c64xx_ts
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	leaq	24(%rbx), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_ADC_S3C2410_TSC_PULL_UP_DISABLE@GOTPCREL(%rip), %rax
	movq	_ADC_TSC_AUTOPST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	28(%rbx), %edi
	callq	_ADC_V1_TSC
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	16(%rbx), %rax
	movq	_ADC_S3C2410_MUX_TS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	_EXYNOS_ADC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	4(%rbx), %eax
	movl	%eax, (%r12)
	movl	8(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_1:
	leaq	4(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC_S3C2410_TSC_PULL_UP_DISABLE,4,2 ## @ADC_S3C2410_TSC_PULL_UP_DISABLE
	.comm	_ADC_TSC_AUTOPST,4,2            ## @ADC_TSC_AUTOPST
	.comm	_ADC_S3C2410_MUX_TS,4,2         ## @ADC_S3C2410_MUX_TS
	.comm	_EXYNOS_ADC_TIMEOUT,4,2         ## @EXYNOS_ADC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conversion timed out! Resetting\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_exynos_read_s3c64xx_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_read_s3c64xx_ts
_exynos_read_s3c64xx_ts:                ; @exynos_read_s3c64xx_ts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #1
	str	w8, [x20]
	add	x23, x20, #24
	mov	x0, x23
	bl	_reinit_completion
Lloh0:
	adrp	x8, _ADC_S3C2410_TSC_PULL_UP_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADC_S3C2410_TSC_PULL_UP_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ADC_TSC_AUTOPST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADC_TSC_AUTOPST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	w0, [x20, #28]
	bl	_ADC_V1_TSC
	mov	x1, x0
	mov	x0, x24
	bl	_writel
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _ADC_S3C2410_MUX_TS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADC_S3C2410_MUX_TS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
Lloh9:
	adrp	x8, _EXYNOS_ADC_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXYNOS_ADC_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_2
; %bb.1:
	mov	w23, #0
	ldr	w8, [x20, #4]
	str	w8, [x22]
	ldr	w8, [x20, #8]
	str	w8, [x21]
	b	LBB0_5
LBB0_2:
	add	x0, x19, #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	blr	x8
LBB0_4:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	str	wzr, [x20]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC_S3C2410_TSC_PULL_UP_DISABLE,4,2 ; @ADC_S3C2410_TSC_PULL_UP_DISABLE
	.comm	_ADC_TSC_AUTOPST,4,2            ; @ADC_TSC_AUTOPST
	.comm	_ADC_S3C2410_MUX_TS,4,2         ; @ADC_S3C2410_MUX_TS
	.comm	_EXYNOS_ADC_TIMEOUT,4,2         ; @EXYNOS_ADC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conversion timed out! Resetting\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_exynos_read_s3c64xx_ts
.subsections_via_symbols
