	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_timer_stop
_stm32_timer_stop:                      ## @stm32_timer_stop
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_TIM_CCER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_CCER_CCXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movq	_TIM_CR1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_CR1_CEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	callq	_clk_disable
LBB0_3:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movq	_TIM_CR1_ARPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	(%rbx), %edi
	movq	_TIM_PSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_TIM_ARR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_TIM_EGR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_EGR_UG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIM_CCER,4,2                   ## @TIM_CCER
	.comm	_TIM_CCER_CCXE,4,2              ## @TIM_CCER_CCXE
	.comm	_TIM_CR1,4,2                    ## @TIM_CR1
	.comm	_TIM_CR1_CEN,4,2                ## @TIM_CR1_CEN
	.comm	_TIM_CR1_ARPE,4,2               ## @TIM_CR1_ARPE
	.comm	_TIM_PSC,4,2                    ## @TIM_PSC
	.comm	_TIM_ARR,4,2                    ## @TIM_ARR
	.comm	_TIM_EGR,4,2                    ## @TIM_EGR
	.comm	_TIM_EGR_UG,4,2                 ## @TIM_EGR_UG
	.no_dead_strip	_stm32_timer_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_timer_stop
_stm32_timer_stop:                      ; @stm32_timer_stop
	.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	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _TIM_CCER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIM_CCER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _TIM_CCER_CCXE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIM_CCER_CCXE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh6:
	adrp	x20, _TIM_CR1@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TIM_CR1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_regmap_read
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x21, _TIM_CR1_CEN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _TIM_CR1_CEN@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_clk_disable
LBB0_3:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _TIM_CR1_ARPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIM_CR1_ARPE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _TIM_PSC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TIM_PSC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _TIM_ARR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TIM_ARR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _TIM_EGR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIM_EGR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _TIM_EGR_UG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TIM_EGR_UG@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TIM_CCER,4,2                   ; @TIM_CCER
	.comm	_TIM_CCER_CCXE,4,2              ; @TIM_CCER_CCXE
	.comm	_TIM_CR1,4,2                    ; @TIM_CR1
	.comm	_TIM_CR1_CEN,4,2                ; @TIM_CR1_CEN
	.comm	_TIM_CR1_ARPE,4,2               ; @TIM_CR1_ARPE
	.comm	_TIM_PSC,4,2                    ; @TIM_PSC
	.comm	_TIM_ARR,4,2                    ; @TIM_ARR
	.comm	_TIM_EGR,4,2                    ; @TIM_EGR
	.comm	_TIM_EGR_UG,4,2                 ; @TIM_EGR_UG
	.no_dead_strip	_stm32_timer_stop
.subsections_via_symbols
