	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_tt_store_master_mode
_stm32_tt_store_master_mode:            ## @stm32_tt_store_master_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_iio_trigger
	movl	(%rax), %edi
	callq	_stm32_timer_is_trgo2_name
	testq	%rax, %rax
	movq	_MASTER_MODE2_MAX@GOTPCREL(%rip), %rax
	cmoveq	_MASTER_MODE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TIM_CR2_MMS2_SHIFT@GOTPCREL(%rip), %rax
	cmoveq	_TIM_CR2_MMS_SHIFT@GOTPCREL(%rip), %rax
	movq	_TIM_CR2_MMS2@GOTPCREL(%rip), %rcx
	cmoveq	_TIM_CR2_MMS@GOTPCREL(%rip), %rcx
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	incl	%r14d
	xorl	%ebx, %ebx
	movq	_master_mode_table@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	%r12d, %edi
	callq	_strlen
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_6
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	_TIM_CR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	(%r14), %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
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIM_CR2_MMS2,4,2               ## @TIM_CR2_MMS2
	.comm	_TIM_CR2_MMS2_SHIFT,4,2         ## @TIM_CR2_MMS2_SHIFT
	.comm	_MASTER_MODE2_MAX,4,2           ## @MASTER_MODE2_MAX
	.comm	_TIM_CR2_MMS,4,2                ## @TIM_CR2_MMS
	.comm	_TIM_CR2_MMS_SHIFT,4,2          ## @TIM_CR2_MMS_SHIFT
	.comm	_MASTER_MODE_MAX,4,2            ## @MASTER_MODE_MAX
	.comm	_master_mode_table,8,3          ## @master_mode_table
	.comm	_TIM_CR2,4,2                    ## @TIM_CR2
	.comm	_TIM_EGR,4,2                    ## @TIM_EGR
	.comm	_TIM_EGR_UG,4,2                 ## @TIM_EGR_UG
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_stm32_tt_store_master_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_tt_store_master_mode
_stm32_tt_store_master_mode:            ; @stm32_tt_store_master_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_iio_trigger
	ldr	w0, [x0]
	bl	_stm32_timer_is_trgo2_name
Lloh0:
	adrp	x8, _MASTER_MODE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASTER_MODE_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MASTER_MODE2_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MASTER_MODE2_MAX@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _TIM_CR2_MMS_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TIM_CR2_MMS_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x10, _TIM_CR2_MMS2_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TIM_CR2_MMS2_SHIFT@GOTPAGEOFF]
	csel	x9, x9, x10, eq
Lloh8:
	adrp	x10, _TIM_CR2_MMS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TIM_CR2_MMS@GOTPAGEOFF]
Lloh10:
	adrp	x11, _TIM_CR2_MMS2@GOTPAGE
Lloh11:
	ldr	x11, [x11, _TIM_CR2_MMS2@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x24, #0
	ldr	w25, [x9]
	ldr	w22, [x10]
	add	w26, w8, #1
Lloh12:
	adrp	x27, _master_mode_table@GOTPAGE
Lloh13:
	ldr	x27, [x27, _master_mode_table@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	w23, [x8, x24, lsl #2]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_strncmp
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_2
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _TIM_CR2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TIM_CR2@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	lsl	w3, w24, w25
	mov	x2, x22
	bl	_regmap_update_bits
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _TIM_EGR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TIM_EGR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TIM_EGR_UG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TIM_EGR_UG@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TIM_CR2_MMS2,4,2               ; @TIM_CR2_MMS2
	.comm	_TIM_CR2_MMS2_SHIFT,4,2         ; @TIM_CR2_MMS2_SHIFT
	.comm	_MASTER_MODE2_MAX,4,2           ; @MASTER_MODE2_MAX
	.comm	_TIM_CR2_MMS,4,2                ; @TIM_CR2_MMS
	.comm	_TIM_CR2_MMS_SHIFT,4,2          ; @TIM_CR2_MMS_SHIFT
	.comm	_MASTER_MODE_MAX,4,2            ; @MASTER_MODE_MAX
	.comm	_master_mode_table,8,3          ; @master_mode_table
	.comm	_TIM_CR2,4,2                    ; @TIM_CR2
	.comm	_TIM_EGR,4,2                    ; @TIM_EGR
	.comm	_TIM_EGR_UG,4,2                 ; @TIM_EGR_UG
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_stm32_tt_store_master_mode
.subsections_via_symbols
