	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_counter_read_raw
_stm32_counter_read_raw:                ## @stm32_counter_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_5
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.3:
	movl	(%rax), %edi
	movq	_TIM_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_6:
	movl	(%rax), %edi
	movq	_TIM_SMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_SMCR_SMS@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %ecx
	andl	(%rax), %ecx
	movl	$1, (%r14)
	xorl	%eax, %eax
	cmpl	$3, %ecx
	sete	%al
	addl	%eax, %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	movl	(%rax), %edi
	movq	_TIM_CR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_CR1_CEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-28(%rbp), %eax
	setne	%cl
	movl	%ecx, (%r14)
LBB0_4:
	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	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIM_CNT,4,2                    ## @TIM_CNT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_TIM_CR1,4,2                    ## @TIM_CR1
	.comm	_TIM_CR1_CEN,4,2                ## @TIM_CR1_CEN
	.comm	_TIM_SMCR,4,2                   ## @TIM_SMCR
	.comm	_TIM_SMCR_SMS,4,2               ## @TIM_SMCR_SMS
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stm32_counter_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_counter_read_raw
_stm32_counter_read_raw:                ; @stm32_counter_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	bl	_iio_priv
	cmp	x21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x21, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	x21, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _TIM_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIM_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _TIM_SMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIM_SMCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
Lloh6:
	adrp	x8, _TIM_SMCR_SMS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIM_SMCR_SMS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	cmp	w8, #3
	cset	w8, eq
	mov	w9, #1
	str	w9, [x19]
	lsl	w8, w8, #1
	str	w8, [x20]
Lloh9:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x0]
Lloh12:
	adrp	x8, _TIM_CR1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIM_CR1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _TIM_CR1_CEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TIM_CR1_CEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
LBB0_6:
	str	w8, [x19]
Lloh18:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TIM_CNT,4,2                    ; @TIM_CNT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_TIM_CR1,4,2                    ; @TIM_CR1
	.comm	_TIM_CR1_CEN,4,2                ; @TIM_CR1_CEN
	.comm	_TIM_SMCR,4,2                   ; @TIM_SMCR
	.comm	_TIM_SMCR_SMS,4,2               ; @TIM_SMCR_SMS
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stm32_counter_read_raw
.subsections_via_symbols
