	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_counter_validate_trigger
_stm32_counter_validate_trigger:        ## @stm32_counter_validate_trigger
	.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	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_is_stm32_timer_trigger
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14,%r13,8), %r12
	incq	%r13
	testq	%r12, %r12
	jne	LBB0_4
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
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	_TIM_SMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_SMCR_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TIM_SMCR_TS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movl	%r13d, %ecx
	callq	_regmap_update_bits
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TIM_SMCR,4,2                   ## @TIM_SMCR
	.comm	_TIM_SMCR_TS,4,2                ## @TIM_SMCR_TS
	.comm	_TIM_SMCR_TS_SHIFT,4,2          ## @TIM_SMCR_TS_SHIFT
	.no_dead_strip	_stm32_counter_validate_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_counter_validate_trigger
_stm32_counter_validate_trigger:        ; @stm32_counter_validate_trigger
	.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	x19, x1
	bl	_iio_priv
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x19
	bl	_is_stm32_timer_trigger
	cbz	w0, LBB0_6
; %bb.1:
	cbz	x22, LBB0_6
; %bb.2:
	ldr	x21, [x22]
	cbz	x21, LBB0_6
; %bb.3:
	mov	x23, #0
	add	x24, x22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_strncmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x24, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x21, LBB0_4
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _TIM_SMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIM_SMCR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TIM_SMCR_TS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TIM_SMCR_TS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, _TIM_SMCR_TS_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIM_SMCR_TS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w3, w23, w8
	bl	_regmap_update_bits
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TIM_SMCR,4,2                   ; @TIM_SMCR
	.comm	_TIM_SMCR_TS,4,2                ; @TIM_SMCR_TS
	.comm	_TIM_SMCR_TS_SHIFT,4,2          ; @TIM_SMCR_TS_SHIFT
	.no_dead_strip	_stm32_counter_validate_trigger
.subsections_via_symbols
