	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_read_info_raw
_at91_adc_read_info_raw:                ## @at91_adc_read_info_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r13
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	movq	_IIO_POSITIONRELATIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_at91_adc_read_position
	movl	-44(%rbp), %eax
	movl	%eax, (%r12)
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_iio_device_release_direct_mode
	movq	%r15, %rdi
	movq	%r12, %rsi
	jmp	LBB0_3
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	movq	%r15, %r13
	movq	_IIO_PRESSURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	cmpq	%r15, %r14
	jne	LBB0_7
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.6:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_at91_adc_read_pressure
	movl	-44(%rbp), %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_release_direct_mode
	movq	%r13, %rdi
	movq	%rbx, %rsi
LBB0_3:
	callq	_at91_adc_adjust_val_osr
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_7:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.8:
	movq	%r12, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 16(%r13)
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r12)
	movl	$0, %edx
	je	LBB0_10
## %bb.9:
	movl	8(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	16(%r12), %edi
	callq	_BIT
	movl	%eax, %edx
	orl	%r15d, %edx
	movq	_AT91_SAMA5D2_COR_DIFF_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
LBB0_10:
	movq	_AT91_SAMA5D2_COR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_at91_adc_writel
	movq	_AT91_SAMA5D2_CHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_at91_adc_writel
	movq	_AT91_SAMA5D2_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_at91_adc_writel
	movq	_AT91_SAMA5D2_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91_SAMA5D2_CR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_at91_adc_writel
	movl	(%r13), %r15d
	movl	12(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	testl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_14
## %bb.11:
	movl	4(%r13), %eax
	movl	%eax, (%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_at91_adc_adjust_val_osr
	movl	%eax, %ebx
	cmpb	$115, 12(%r12)
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %edi
	movl	$11, %esi
	callq	_sign_extend32
	movl	%eax, (%r15)
LBB0_13:
	movl	$0, (%r13)
LBB0_14:
	movq	_AT91_SAMA5D2_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_at91_adc_writel
	movq	_AT91_SAMA5D2_CHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_at91_adc_writel
	movq	_AT91_SAMA5D2_LCDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_at91_adc_readl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_release_direct_mode
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_POSITIONRELATIVE,8,3       ## @IIO_POSITIONRELATIVE
	.comm	_IIO_PRESSURE,8,3               ## @IIO_PRESSURE
	.comm	_AT91_SAMA5D2_COR_DIFF_OFFSET,4,2 ## @AT91_SAMA5D2_COR_DIFF_OFFSET
	.comm	_AT91_SAMA5D2_COR,4,2           ## @AT91_SAMA5D2_COR
	.comm	_AT91_SAMA5D2_CHER,4,2          ## @AT91_SAMA5D2_CHER
	.comm	_AT91_SAMA5D2_IER,4,2           ## @AT91_SAMA5D2_IER
	.comm	_AT91_SAMA5D2_CR,4,2            ## @AT91_SAMA5D2_CR
	.comm	_AT91_SAMA5D2_CR_START,4,2      ## @AT91_SAMA5D2_CR_START
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_AT91_SAMA5D2_IDR,4,2           ## @AT91_SAMA5D2_IDR
	.comm	_AT91_SAMA5D2_CHDR,4,2          ## @AT91_SAMA5D2_CHDR
	.comm	_AT91_SAMA5D2_LCDR,4,2          ## @AT91_SAMA5D2_LCDR
	.no_dead_strip	_at91_adc_read_info_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_read_info_raw
_at91_adc_read_info_raw:                ; @at91_adc_read_info_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x23, [x22]
Lloh0:
	adrp	x8, _IIO_POSITIONRELATIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_POSITIONRELATIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.2:
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
	ldr	w1, [x22, #8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_at91_adc_read_position
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _IIO_PRESSURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_PRESSURE@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x24, x0
	cmp	x23, x25
	b.ne	LBB0_7
; %bb.4:
	cbnz	w24, LBB0_16
; %bb.5:
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
	ldr	w1, [x22, #8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_at91_adc_read_pressure
LBB0_6:
	ldr	w8, [sp, #12]
	str	w8, [x21]
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_device_release_direct_mode
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_adjust_val_osr
	mov	x24, x0
	b	LBB0_16
LBB0_7:
	cbnz	w24, LBB0_16
; %bb.8:
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
	str	x22, [x20, #16]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x22, #8]
	bl	_BIT
	mov	x24, x0
	ldr	w0, [x22, #16]
	bl	_BIT
	orr	w8, w0, w24
Lloh6:
	adrp	x9, _AT91_SAMA5D2_COR_DIFF_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AT91_SAMA5D2_COR_DIFF_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	b	LBB0_11
LBB0_10:
	mov	w2, #0
LBB0_11:
Lloh9:
	adrp	x8, _AT91_SAMA5D2_COR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AT91_SAMA5D2_COR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_at91_adc_writel
Lloh12:
	adrp	x8, _AT91_SAMA5D2_CHER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AT91_SAMA5D2_CHER@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	ldr	w0, [x22, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_at91_adc_writel
Lloh15:
	adrp	x8, _AT91_SAMA5D2_IER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AT91_SAMA5D2_IER@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	ldr	w0, [x22, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_at91_adc_writel
Lloh18:
	adrp	x8, _AT91_SAMA5D2_CR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AT91_SAMA5D2_CR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _AT91_SAMA5D2_CR_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AT91_SAMA5D2_CR_START@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_at91_adc_writel
	ldr	w24, [x20, #12]
	ldr	w25, [x20]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_wait_event_interruptible_timeout
Lloh24:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w24, w0, w8, ne
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.12:
	ldr	w8, [x20, #4]
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_adjust_val_osr
	mov	x24, x0
	ldrb	w8, [x22, #12]
	cmp	w8, #115
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x21]
	mov	w1, #11
	bl	_sign_extend32
	str	w0, [x21]
LBB0_14:
	str	wzr, [x20]
LBB0_15:
Lloh27:
	adrp	x8, _AT91_SAMA5D2_IDR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AT91_SAMA5D2_IDR@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	ldr	w0, [x22, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_writel
Lloh30:
	adrp	x8, _AT91_SAMA5D2_CHDR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AT91_SAMA5D2_CHDR@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	ldr	w0, [x22, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_writel
Lloh33:
	adrp	x8, _AT91_SAMA5D2_LCDR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AT91_SAMA5D2_LCDR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_at91_adc_readl
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_16:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_POSITIONRELATIVE,8,3       ; @IIO_POSITIONRELATIVE
	.comm	_IIO_PRESSURE,8,3               ; @IIO_PRESSURE
	.comm	_AT91_SAMA5D2_COR_DIFF_OFFSET,4,2 ; @AT91_SAMA5D2_COR_DIFF_OFFSET
	.comm	_AT91_SAMA5D2_COR,4,2           ; @AT91_SAMA5D2_COR
	.comm	_AT91_SAMA5D2_CHER,4,2          ; @AT91_SAMA5D2_CHER
	.comm	_AT91_SAMA5D2_IER,4,2           ; @AT91_SAMA5D2_IER
	.comm	_AT91_SAMA5D2_CR,4,2            ; @AT91_SAMA5D2_CR
	.comm	_AT91_SAMA5D2_CR_START,4,2      ; @AT91_SAMA5D2_CR_START
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_AT91_SAMA5D2_IDR,4,2           ; @AT91_SAMA5D2_IDR
	.comm	_AT91_SAMA5D2_CHDR,4,2          ; @AT91_SAMA5D2_CHDR
	.comm	_AT91_SAMA5D2_LCDR,4,2          ; @AT91_SAMA5D2_LCDR
	.no_dead_strip	_at91_adc_read_info_raw
.subsections_via_symbols
