	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_timer_trigger_probe
_stm32_timer_trigger_probe:             ## @stm32_timer_trigger_probe
	.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	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_device
	movq	(%rax), %r12
	movl	-44(%rbp), %r15d
	movq	_triggers_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jae	LBB0_1
## %bb.4:
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jae	LBB0_1
## %bb.5:
	movq	8(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_stm32_setup_counter_device
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
LBB0_8:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, 24(%r15)
	movl	8(%r14), %eax
	movl	%eax, 20(%r15)
	movl	4(%r14), %eax
	movl	%eax, 16(%r15)
	movl	(%r14), %eax
	movl	%eax, 12(%r15)
	movq	(%r13), %rax
	movl	-44(%rbp), %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%r15)
	movq	8(%r12), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_stm32_timer_detect_trgo2
	movq	%r15, %rdi
	callq	_stm32_setup_iio_triggers
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_triggers_table,8,3             ## @triggers_table
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_stm32_timer_trigger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_timer_trigger_probe
_stm32_timer_trigger_probe:             ; @stm32_timer_trigger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0, #12]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	ldr	x22, [x0]
	ldr	w21, [sp, #12]
Lloh2:
	adrp	x23, _triggers_table@GOTPAGE
Lloh3:
	ldr	x23, [x23, _triggers_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_7
; %bb.2:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.3:
	ldr	x9, [x22, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_stm32_setup_counter_device
	mov	x21, x0
	cbz	x0, LBB0_11
LBB0_5:
	ldr	w8, [x20, #8]
	str	w8, [x21, #20]
	ldr	d0, [x20]
	stur	d0, [x21, #12]
	ldr	x8, [x23]
	ldr	w9, [sp, #12]
	ldr	w8, [x8, x9, lsl #2]
	str	x19, [x21, #24]
	str	w8, [x21, #8]
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x21]
	mov	x0, x21
	bl	_stm32_timer_detect_trgo2
	mov	x0, x21
	bl	_stm32_setup_iio_triggers
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	mov	x21, x0
	cbnz	x0, LBB0_5
LBB0_11:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_triggers_table,8,3             ; @triggers_table
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_stm32_timer_trigger_probe
.subsections_via_symbols
