	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function anti_sparseness
LCPI0_0:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
LCPI0_1:
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_3:
	.long	0x40a00000                      ## float 5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_anti_sparseness:                       ## @anti_sparseness
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rax
	movq	%rdi, %r15
	movq	(%rdi), %r8
	movsd	32(%r8), %xmm1                  ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorl	%edi, %edi
	ucomisd	%xmm1, %xmm2
	seta	%dil
	movl	$2, %edx
	subl	%edi, %edx
	xorl	%ecx, %ecx
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	seta	%bl
	cmovbel	%edx, %ecx
	cvtss2sd	%xmm0, %xmm4
	movsd	8(%r15), %xmm3                  ## xmm3 = mem[0],zero
	addsd	%xmm3, %xmm3
	ucomisd	%xmm3, %xmm4
	jbe	LBB0_3
## %bb.1:
	movl	$2, 16(%r15)
	jmp	LBB0_2
LBB0_3:
	movl	16(%r15), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	decl	%edx
	movl	%edx, 16(%r15)
	je	LBB0_5
LBB0_2:
	orb	%dil, %bl
	incl	%ecx
	testb	%bl, %bl
	movl	$2, %edx
	cmovel	%edx, %ecx
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	ucomisd	%xmm1, %xmm2
	seta	%dil
	movupd	(%r8), %xmm1
	movupd	16(%r8), %xmm2
	movapd	LCPI0_2(%rip), %xmm3            ## xmm3 = [5.9999999999999998E-1,5.9999999999999998E-1]
	cmpltpd	%xmm3, %xmm2
	cmpltpd	%xmm3, %xmm1
	packssdw	%xmm2, %xmm1
	movmskps	%xmm1, %edx
	movl	%edx, %ebx
	shrb	%bl
	andb	$5, %bl
	subb	%bl, %dl
	movl	%edx, %ebx
	andb	$51, %bl
	shrb	$2, %dl
	andb	$51, %dl
	addb	%bl, %dl
	movl	%edx, %ebx
	shrb	$4, %bl
	addb	%dl, %bl
	andb	$15, %bl
	movzbl	%bl, %edx
	addl	%edi, %edx
	xorl	%edi, %edi
	cmpl	$3, %edx
	cmovael	%edi, %ecx
	movl	20(%r15), %edx
	incl	%edx
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	setg	%dil
	subl	%edi, %ecx
LBB0_6:
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movl	$2, %ebx
	cmovbel	%ecx, %ebx
	movq	24(%r15), %rcx
	movq	_MODE_7k4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_13
## %bb.7:
	movq	_MODE_10k2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_13
## %bb.8:
	cmpl	$1, %ebx
	jg	LBB0_13
## %bb.9:
	movq	_MODE_7k95@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movsd	%xmm4, -32(%rbp)                ## 8-byte Spill
	jne	LBB0_10
## %bb.11:
	movq	_ir_filters_lookup_MODE_7k95@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_ir_filters_lookup@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%r14, %rdi
	callq	_apply_ir_filter
	movq	%r14, %rax
	movsd	-32(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
LBB0_13:
	movl	%ebx, 20(%r15)
	movsd	%xmm4, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_7k4,8,3                   ## @MODE_7k4
	.comm	_MODE_10k2,8,3                  ## @MODE_10k2
	.comm	_MODE_7k95,8,3                  ## @MODE_7k95
	.comm	_ir_filters_lookup_MODE_7k95,8,3 ## @ir_filters_lookup_MODE_7k95
	.comm	_ir_filters_lookup,8,3          ## @ir_filters_lookup
	.no_dead_strip	_anti_sparseness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anti_sparseness
_anti_sparseness:                       ; @anti_sparseness
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x3
	mov	x19, x0
	ldr	x9, [x0]
	ldr	d1, [x9, #32]
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16364, lsl #48
	fmov	d2, x8
	fcmp	d1, d2
	cset	w10, mi
	mov	w12, #2
	csinc	w8, w12, wzr, pl
	mov	x11, #3689348814741910323
	movk	x11, #16355, lsl #48
	fmov	d2, x11
	fcmp	d1, d2
	cset	w11, mi
	csel	w8, wzr, w8, mi
	fcvt	d8, s0
	ldr	d2, [x0, #8]
	fadd	d2, d2, d2
	fcmp	d2, d8
	b.pl	LBB0_2
; %bb.1:
	str	w12, [x19, #16]
	b	LBB0_4
LBB0_2:
	ldr	w12, [x19, #16]
	cbz	w12, LBB0_5
; %bb.3:
	subs	w12, w12, #1
	str	w12, [x19, #16]
	b.eq	LBB0_5
LBB0_4:
	orr	w9, w11, w10
	cmp	w9, #0
	mov	w9, #2
	csinc	w8, w9, w8, eq
	b	LBB0_6
LBB0_5:
	mov	x10, #3689348814741910323
	movk	x10, #16355, lsl #48
	dup.2d	v2, x10
	fmov	d3, x10
	fcmp	d1, d3
	ldp	q1, q3, [x9]
	fcmgt.2d	v3, v2, v3
	fcmgt.2d	v1, v2, v1
	uzp1.4s	v1, v1, v3
	xtn.4h	v1, v1
	umov.h	w9, v1[0]
	umov.h	w10, v1[1]
	and	w10, w10, #0x1
	bfi	w9, w10, #1, #1
	umov.h	w10, v1[2]
	and	w10, w10, #0x1
	bfi	w9, w10, #2, #1
	umov.h	w10, v1[3]
	bfi	w9, w10, #3, #29
	and	w9, w9, #0xf
	fmov	d1, x9
	cnt.8b	v1, v1
	uaddlv.8b	h1, v1
	fmov	w9, s1
	cinc	w9, w9, mi
	cmp	w9, #2
	csel	w8, wzr, w8, hi
	ldr	w9, [x19, #20]
	add	w9, w9, #1
	cmp	w8, w9
	cset	w9, gt
	sub	w8, w8, w9
LBB0_6:
	fmov	s1, #5.00000000
	fcmp	s0, s1
	mov	w9, #2
	csel	w21, w9, w8, mi
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _MODE_7k4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_7k4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
Lloh3:
	adrp	x9, _MODE_10k2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MODE_10k2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.8:
	cmp	w21, #1
	b.gt	LBB0_10
; %bb.9:
Lloh6:
	adrp	x9, _MODE_7k95@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MODE_7k95@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ir_filters_lookup_MODE_7k95@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ir_filters_lookup_MODE_7k95@GOTPAGEOFF]
Lloh10:
	adrp	x11, _ir_filters_lookup@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ir_filters_lookup@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	ldr	w2, [x8, w21, sxtw #2]
	mov	x0, x20
	bl	_apply_ir_filter
	mov	x2, x20
LBB0_10:
	str	w21, [x19, #20]
	str	d8, [x19, #8]
	mov	x0, x2
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_7k4,8,3                   ; @MODE_7k4
	.comm	_MODE_10k2,8,3                  ; @MODE_10k2
	.comm	_MODE_7k95,8,3                  ; @MODE_7k95
	.comm	_ir_filters_lookup_MODE_7k95,8,3 ; @ir_filters_lookup_MODE_7k95
	.comm	_ir_filters_lookup,8,3          ; @ir_filters_lookup
	.no_dead_strip	_anti_sparseness
.subsections_via_symbols
