	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_smooth_qual
_atmel_smooth_qual:                     ## @atmel_smooth_qual
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	subq	%rcx, %rax
	movq	_HZ@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	cmpq	%rax, %rsi
	ja	LBB0_12
## %bb.1:
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	20(%rdi), %r9d
	addl	$100, %r9d
	movl	12(%rdi), %edx
	movl	16(%rdi), %r10d
	addq	%rsi, %rcx
	movl	%r10d, %esi
	shrl	$31, %esi
	addl	%r10d, %esi
	sarl	%esi
	imull	8(%rdi), %edx
	imull	%r9d, %edx
	movslq	%edx, %rdx
	imulq	$274877907, %rdx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %r9
	shrq	$63, %r9
	sarq	$40, %rdx
	addl	%r9d, %edx
	addl	%esi, %edx
	movq	%rax, %r9
	movq	%rcx, (%rdi)
	decq	%r9
	je	LBB0_5
## %bb.6:
	testb	$1, %r9b
	jne	LBB0_8
## %bb.7:
                                        ## implicit-def: $esi
	cmpq	$2, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movl	%edx, %esi
	jmp	LBB0_11
LBB0_8:
	leaq	-2(%rax), %r9
	addq	(%r8), %rcx
	movq	%rcx, (%rdi)
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	movl	%esi, %edx
	cmpq	$2, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r8), %rcx
	movq	%rcx, (%rdi)
	addq	(%r8), %rcx
	leal	3(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$2, %esi
	movq	%rcx, (%rdi)
	movl	%esi, %edx
	addq	$-2, %r9
	jne	LBB0_10
LBB0_11:
	movl	%esi, 16(%rdi)
	movl	$0, 8(%rdi)
LBB0_12:
	movq	_IW_QUAL_QUAL_UPDATED@GOTPCREL(%rip), %rax
	movl	24(%rdi), %ecx
	orl	(%rax), %ecx
	movq	_IW_QUAL_QUAL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 24(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_IW_QUAL_QUAL_UPDATED,4,2       ## @IW_QUAL_QUAL_UPDATED
	.comm	_IW_QUAL_QUAL_INVALID,4,2       ## @IW_QUAL_QUAL_INVALID
	.no_dead_strip	_atmel_smooth_qual
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_smooth_qual
_atmel_smooth_qual:                     ; @atmel_smooth_qual
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x10, [x8]
	sub	x11, x11, x9
	cmp	x10, x11
	b.hi	LBB0_4
; %bb.1:
	udiv	x11, x11, x10
	ldp	w13, w12, [x0, #16]
	add	w12, w12, #100
	ldp	w15, w14, [x0, #8]
	add	x9, x9, x10
	str	x9, [x0]
	cmp	w13, #0
	cinc	w10, w13, lt
	mul	w13, w14, w15
	mul	w12, w13, w12
	mov	w13, #19923
	movk	w13, #4194, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #63
	asr	x12, x12, #40
	add	w12, w12, w13
	add	w10, w12, w10, asr #1
	sub	x11, x11, #1
	cbz	x11, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	add	x9, x9, x12
	str	x9, [x0]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	sub	x11, x11, #1
	cbnz	x11, LBB0_2
LBB0_3:
	str	w10, [x0, #16]
	str	wzr, [x0, #8]
LBB0_4:
Lloh5:
	adrp	x8, _IW_QUAL_QUAL_UPDATED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IW_QUAL_QUAL_UPDATED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _IW_QUAL_QUAL_INVALID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IW_QUAL_QUAL_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x0, #24]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_IW_QUAL_QUAL_UPDATED,4,2       ; @IW_QUAL_QUAL_UPDATED
	.comm	_IW_QUAL_QUAL_INVALID,4,2       ; @IW_QUAL_QUAL_INVALID
	.no_dead_strip	_atmel_smooth_qual
.subsections_via_symbols
