	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_set_enable_mode
_stm32_set_enable_mode:                 ## @stm32_set_enable_mode
	.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
	movl	%edx, %ebx
	callq	_iio_priv
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_stm32_enable_mode2sms
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	cmpl	$6, %ebx
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	movq	_TIM_CR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movq	_TIM_CR1_CEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	jne	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	callq	_clk_enable
LBB0_4:
	movl	(%r14), %edi
	movq	_TIM_SMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_SMCR_SMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_stm32_set_enable_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_set_enable_mode
_stm32_set_enable_mode:                 ; @stm32_set_enable_mode
	.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	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_stm32_enable_mode2sms
	mov	x19, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cmp	w19, #6
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _TIM_CR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIM_CR1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _TIM_CR1_CEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIM_CR1_CEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_clk_enable
LBB0_4:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _TIM_SMCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIM_SMCR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TIM_SMCR_SMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIM_SMCR_SMS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_regmap_update_bits
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_stm32_set_enable_mode
.subsections_via_symbols
