	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx25_gcq_get_raw_value
_mx25_gcq_get_raw_value:                ## @mx25_gcq_get_raw_value
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movl	(%rdx), %r13d
	movq	_MX25_ADCQ_ITEM_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rsi), %esi
	xorl	%edi, %edi
	callq	_MX25_ADCQ_ITEM
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%r12), %edi
	movq	_MX25_ADCQ_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MX25_ADCQ_MR_EOQ_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	(%r12), %edi
	movq	_MX25_ADCQ_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MX25_ADCQ_CR_FQS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	leaq	4(%r12), %rdi
	movq	_MX25_GCQ_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.4:
	movl	(%r12), %edi
	movq	_MX25_ADCQ_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	-44(%rbp), %edi
	callq	_MX25_ADCQ_FIFO_DATA
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MX25_ADCQ_ITEM_7_0,4,2         ## @MX25_ADCQ_ITEM_7_0
	.comm	_MX25_ADCQ_MR,4,2               ## @MX25_ADCQ_MR
	.comm	_MX25_ADCQ_MR_EOQ_IRQ,4,2       ## @MX25_ADCQ_MR_EOQ_IRQ
	.comm	_MX25_ADCQ_CR,4,2               ## @MX25_ADCQ_CR
	.comm	_MX25_ADCQ_CR_FQS,4,2           ## @MX25_ADCQ_CR_FQS
	.comm	_MX25_GCQ_TIMEOUT,4,2           ## @MX25_GCQ_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADC wait for measurement failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"ADC timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MX25_ADCQ_FIFO,4,2             ## @MX25_ADCQ_FIFO
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_mx25_gcq_get_raw_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx25_gcq_get_raw_value
_mx25_gcq_get_raw_value:                ; @mx25_gcq_get_raw_value
	.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	x19, x3
	mov	x21, x2
	mov	x20, x0
	ldr	w22, [x2]
Lloh0:
	adrp	x8, _MX25_ADCQ_ITEM_7_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MX25_ADCQ_ITEM_7_0@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w1, [x1]
	mov	w0, #0
	bl	_MX25_ADCQ_ITEM
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _MX25_ADCQ_MR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MX25_ADCQ_MR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MX25_ADCQ_MR_EOQ_IRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MX25_ADCQ_MR_EOQ_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x22, x21
	ldr	w0, [x22], #4
Lloh9:
	adrp	x8, _MX25_ADCQ_CR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MX25_ADCQ_CR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MX25_ADCQ_CR_FQS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MX25_ADCQ_CR_FQS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
Lloh15:
	adrp	x8, _MX25_GCQ_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MX25_GCQ_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_interruptible_timeout
	mov	x22, x0
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbz	x22, LBB0_4
; %bb.2:
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _MX25_ADCQ_FIFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MX25_ADCQ_FIFO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [sp, #12]
	bl	_MX25_ADCQ_FIFO_DATA
	str	w0, [x19]
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_3:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh28:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MX25_ADCQ_ITEM_7_0,4,2         ; @MX25_ADCQ_ITEM_7_0
	.comm	_MX25_ADCQ_MR,4,2               ; @MX25_ADCQ_MR
	.comm	_MX25_ADCQ_MR_EOQ_IRQ,4,2       ; @MX25_ADCQ_MR_EOQ_IRQ
	.comm	_MX25_ADCQ_CR,4,2               ; @MX25_ADCQ_CR
	.comm	_MX25_ADCQ_CR_FQS,4,2           ; @MX25_ADCQ_CR_FQS
	.comm	_MX25_GCQ_TIMEOUT,4,2           ; @MX25_GCQ_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADC wait for measurement failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"ADC timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MX25_ADCQ_FIFO,4,2             ; @MX25_ADCQ_FIFO
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_mx25_gcq_get_raw_value
.subsections_via_symbols
