	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_adc_read_raw
_aspeed_adc_read_raw:                   ## @aspeed_adc_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
	pushq	%rax
	.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, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %r13
	movl	16(%rax), %edi
	callq	_of_device_get_match_data
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_7
## %bb.3:
	movq	(%r15), %rdi
	addq	8(%r13), %rdi
	callq	_readw
	jmp	LBB0_4
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ASPEED_RESOLUTION_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_clk_get_rate
	movq	_ASPEED_CLOCKS_PER_SAMPLE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
LBB0_4:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_ASPEED_RESOLUTION_BITS,4,2     ## @ASPEED_RESOLUTION_BITS
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_ASPEED_CLOCKS_PER_SAMPLE,4,2   ## @ASPEED_CLOCKS_PER_SAMPLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_aspeed_adc_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_adc_read_raw
_aspeed_adc_read_raw:                   ; @aspeed_adc_read_raw
	.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, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	mov	x23, x0
	ldr	w0, [x0, #16]
	bl	_of_device_get_match_data
	cmp	x21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x21, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	x21, #130
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
	str	w0, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ASPEED_RESOLUTION_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASPEED_RESOLUTION_BITS@GOTPAGEOFF]
	str	w8, [x19]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x22]
Lloh3:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_clk_get_rate
Lloh6:
	adrp	x8, _ASPEED_CLOCKS_PER_SAMPLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASPEED_CLOCKS_PER_SAMPLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sdiv	w8, w0, w8
	str	w8, [x19]
LBB0_6:
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_ASPEED_RESOLUTION_BITS,4,2     ; @ASPEED_RESOLUTION_BITS
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_ASPEED_CLOCKS_PER_SAMPLE,4,2   ; @ASPEED_CLOCKS_PER_SAMPLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_aspeed_adc_read_raw
.subsections_via_symbols
