	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_tt_read_frequency
_stm32_tt_read_frequency:               ## @stm32_tt_read_frequency
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_to_iio_trigger
	movq	%rax, %rdi
	callq	_iio_trigger_get_drvdata
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_TIM_CR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movl	4(%rbx), %edi
	movq	_TIM_PSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movl	4(%rbx), %edi
	movq	_TIM_ARR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_CR1_CEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_clk_get_rate
	movq	%rax, %rbx
	movl	-28(%rbp), %esi
	incl	%esi
	movq	%rax, %rdi
	callq	_do_div
	movl	-24(%rbp), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_do_div
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIM_CR1,4,2                    ## @TIM_CR1
	.comm	_TIM_PSC,4,2                    ## @TIM_PSC
	.comm	_TIM_ARR,4,2                    ## @TIM_ARR
	.comm	_TIM_CR1_CEN,4,2                ## @TIM_CR1_CEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_stm32_tt_read_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_tt_read_frequency
_stm32_tt_read_frequency:               ; @stm32_tt_read_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_to_iio_trigger
	bl	_iio_trigger_get_drvdata
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _TIM_CR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIM_CR1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_regmap_read
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _TIM_PSC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIM_PSC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _TIM_ARR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIM_ARR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	ldr	w8, [sp, #4]
Lloh9:
	adrp	x9, _TIM_CR1_CEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TIM_CR1_CEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_clk_get_rate
	mov	x20, x0
	ldr	w8, [sp, #12]
	add	w1, w8, #1
	bl	_do_div
	ldr	w8, [sp, #8]
	add	w1, w8, #1
	mov	x0, x20
	bl	_do_div
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_sprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_TIM_CR1,4,2                    ; @TIM_CR1
	.comm	_TIM_PSC,4,2                    ; @TIM_PSC
	.comm	_TIM_ARR,4,2                    ; @TIM_ARR
	.comm	_TIM_CR1_CEN,4,2                ; @TIM_CR1_CEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_stm32_tt_read_frequency
.subsections_via_symbols
