	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_smpr_init
_stm32_adc_smpr_init:                   ## @stm32_adc_smpr_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	%edx, %r8d
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	(%rax), %r10
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	4(%rax,%rdx,4), %r11d
	movl	8(%rax,%rdx,4), %r9d
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	xorl	%edx, %edx
	divl	(%rbx)
	movq	_STM32_ADC_MAX_SMP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ebx
	movl	(%r10,%rbx,4), %ebx
	imull	%eax, %ebx
	cmpl	%r8d, %ebx
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%esi
	cmpl	%edx, %esi
	jbe	LBB0_1
LBB0_3:
	cmpl	%edx, %esi
	cmovbl	%esi, %edx
	movq	(%rdi), %rax
	notl	%r11d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	andl	(%rax,%r9,4), %r11d
	orl	%r11d, %edx
	movl	%edx, (%rax,%r9,4)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_STM32_ADC_MAX_SMP,4,2          ## @STM32_ADC_MAX_SMP
	.no_dead_strip	_stm32_adc_smpr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_adc_smpr_init
_stm32_adc_smpr_init:                   ; @stm32_adc_smpr_init
	.cfi_startproc
; %bb.0:
	mov	w8, #0
	ldp	x9, x12, [x0, #8]
	ldp	x13, x10, [x9]
	ldr	x9, [x10]
	mov	w10, #12
	smaddl	x11, w1, w10, x9
	ldp	w9, w10, [x11]
	ldr	w11, [x11, #8]
Lloh0:
	adrp	x14, _NSEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x14, [x14, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w14, [x14]
	ldr	w12, [x12]
	udiv	w14, w14, w12
Lloh3:
	adrp	x12, _STM32_ADC_MAX_SMP@GOTPAGE
Lloh4:
	ldr	x12, [x12, _STM32_ADC_MAX_SMP@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13, w8, uxtw #2]
	mul	w15, w15, w14
	cmp	w15, w2
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w8, #1
	cmp	w8, w12
	b.ls	LBB0_1
LBB0_3:
	ldr	x13, [x0]
	lsl	x11, x11, #2
	ldr	w14, [x13, x11]
	cmp	w8, w12
	csel	w8, w8, w12, lo
	bic	w10, w14, w10
	lsl	w8, w8, w9
	orr	w8, w10, w8
	str	w8, [x13, x11]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_STM32_ADC_MAX_SMP,4,2          ; @STM32_ADC_MAX_SMP
	.no_dead_strip	_stm32_adc_smpr_init
.subsections_via_symbols
