	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function code_filter_coeffs
_code_filter_coeffs:                    ## @code_filter_coeffs
	.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	%rsi, %r14
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rsi), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	cmpl	$8, %eax
	jae	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm8                ## xmm8 = xmm0[0,0,0,0]
	movd	%ebx, %xmm1
	pshufd	$0, %xmm1, %xmm9                ## xmm9 = xmm1[0,0,0,0]
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.5:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	%xmm8, %xmm3
	pxor	%xmm4, %xmm4
	movdqa	%xmm9, %xmm5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm6
	movdqu	16(%rdx,%rdi,4), %xmm7
	movdqu	32(%rdx,%rdi,4), %xmm0
	movdqu	48(%rdx,%rdi,4), %xmm1
	pminsd	%xmm6, %xmm8
	pminsd	%xmm7, %xmm3
	pmaxsd	%xmm6, %xmm9
	pmaxsd	%xmm7, %xmm5
	por	%xmm6, %xmm2
	por	%xmm7, %xmm4
	pminsd	%xmm0, %xmm8
	pminsd	%xmm1, %xmm3
	pmaxsd	%xmm0, %xmm9
	pmaxsd	%xmm1, %xmm5
	por	%xmm0, %xmm2
	por	%xmm1, %xmm4
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %bl
	je	LBB0_9
LBB0_8:
	movdqu	(%rdx,%rdi,4), %xmm0
	movdqu	16(%rdx,%rdi,4), %xmm1
	pminsd	%xmm0, %xmm8
	pminsd	%xmm1, %xmm3
	pmaxsd	%xmm0, %xmm9
	pmaxsd	%xmm1, %xmm5
	por	%xmm0, %xmm2
	por	%xmm1, %xmm4
LBB0_9:
	pminsd	%xmm3, %xmm8
	por	%xmm4, %xmm2
	pmaxsd	%xmm5, %xmm9
	pshufd	$238, %xmm9, %xmm0              ## xmm0 = xmm9[2,3,2,3]
	pmaxsd	%xmm9, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pmaxsd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	por	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %r13d
	pshufd	$238, %xmm8, %xmm0              ## xmm0 = xmm8[2,3,2,3]
	pminsd	%xmm8, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pminsd	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpq	%rax, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %esi
	cmpl	%edi, %esi
	cmovll	%esi, %edi
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	orl	%esi, %r13d
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_11:
	callq	_number_sbits
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_number_sbits
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_FFMAX
	cmpl	$15, %eax
	jg	LBB0_19
## %bb.12:
	movl	$15, %ecx
	subl	%eax, %ecx
	cmpl	$6, %ecx
	movl	$6, %edx
	cmovbl	%ecx, %edx
	testb	$1, %r13b
	jne	LBB0_19
## %bb.13:
	leal	1(%rdx), %ecx
	testl	%edx, %edx
	je	LBB0_18
## %bb.14:
	movl	$1, %r12d
	testb	$2, %r13b
	jne	LBB0_19
## %bb.15:
	cmpl	$1, %edx
	je	LBB0_18
## %bb.20:
	movl	$2, %r12d
	testb	$4, %r13b
	jne	LBB0_19
## %bb.21:
	cmpl	$2, %edx
	je	LBB0_18
## %bb.23:
	movl	$3, %r12d
	testb	$8, %r13b
	jne	LBB0_19
## %bb.24:
	cmpl	$3, %edx
	je	LBB0_18
## %bb.26:
	movl	$4, %r12d
	testb	$16, %r13b
	jne	LBB0_19
## %bb.27:
	cmpl	$4, %edx
	je	LBB0_18
## %bb.29:
	movl	$5, %r12d
	testb	$32, %r13b
	jne	LBB0_19
## %bb.30:
	cmpl	$5, %edx
	jne	LBB0_32
LBB0_18:
	movl	%ecx, %r12d
LBB0_19:
	movl	%eax, 4(%r14)
	movl	%r12d, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	%xmm8, %xmm3
	pxor	%xmm4, %xmm4
	movdqa	%xmm9, %xmm5
	testb	$1, %bl
	jne	LBB0_8
	jmp	LBB0_9
LBB0_32:
	testb	$64, %r13b
	movl	$6, %r12d
	cmovel	%ecx, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.no_dead_strip	_code_filter_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function code_filter_coeffs
_code_filter_coeffs:                    ; @code_filter_coeffs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w22, #0
	b	LBB0_7
LBB0_3:
	mov	w22, #0
	b	LBB0_9
LBB0_4:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w0
	dup.4s	v5, w20
	add	x10, x2, #32
	movi.2d	v4, #0000000000000000
	mov	x11, x9
	mov.16b	v1, v0
	mov.16b	v2, v0
	mov.16b	v3, v0
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	mov.16b	v17, v5
	mov.16b	v18, v5
	mov.16b	v19, v5
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q20, q21, [x10, #-32]
	smin.4s	v0, v20, v0
	smin.4s	v1, v21, v1
	ldp	q22, q23, [x10], #64
	smin.4s	v2, v22, v2
	smin.4s	v3, v23, v3
	smax.4s	v5, v20, v5
	smax.4s	v17, v21, v17
	smax.4s	v18, v22, v18
	smax.4s	v19, v23, v19
	orr.16b	v4, v20, v4
	orr.16b	v6, v21, v6
	orr.16b	v7, v22, v7
	orr.16b	v16, v23, v16
	subs	x11, x11, #16
	b.ne	LBB0_5
; %bb.6:
	smax.4s	v5, v5, v17
	smax.4s	v5, v5, v18
	smax.4s	v5, v5, v19
	smaxv.4s	s5, v5
	fmov	w20, s5
	orr.16b	v4, v6, v4
	orr.16b	v4, v7, v4
	orr.16b	v4, v16, v4
	ext.16b	v5, v4, v4, #8
	orr.8b	v4, v4, v5
	mov.s	w10, v4[1]
	fmov	w11, s4
	orr	w22, w11, w10
	smin.4s	v0, v0, v1
	smin.4s	v0, v0, v2
	smin.4s	v0, v0, v3
	sminv.4s	s0, v0
	fmov	w0, s0
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x2, x9, lsl #2
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	cmp	w9, w0
	csel	w0, w9, w0, lt
	cmp	w9, w20
	csel	w20, w9, w20, gt
	orr	w22, w9, w22
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	bl	_number_sbits
	mov	x21, x0
	mov	x0, x20
	bl	_number_sbits
	mov	x1, x0
	mov	x0, x21
	bl	_FFMAX
	cmp	w0, #15
	b.gt	LBB0_20
; %bb.10:
	mov	w8, #15
	sub	w8, w8, w0
	mov	w9, #6
	cmp	w8, #6
	csel	w9, w8, w9, lo
	tbnz	w22, #0, LBB0_20
; %bb.11:
	add	w8, w9, #1
	cbz	w9, LBB0_21
; %bb.12:
	tbnz	w22, #1, LBB0_22
; %bb.13:
	cmp	w9, #1
	b.eq	LBB0_21
; %bb.14:
	tbnz	w22, #2, LBB0_23
; %bb.15:
	cmp	w9, #2
	b.eq	LBB0_21
; %bb.16:
	tbnz	w22, #3, LBB0_24
; %bb.17:
	cmp	w9, #3
	b.eq	LBB0_21
; %bb.18:
	tbnz	w22, #4, LBB0_25
; %bb.19:
	mov	w10, #5
	tst	w22, #0x40
	mov	w11, #6
	csel	w8, w8, w11, eq
	cmp	w9, #5
	csinc	w8, w8, w9, ne
	tst	w22, #0x20
	csel	w8, w10, w8, ne
	cmp	w9, #4
	csinc	w8, w8, w9, ne
	b	LBB0_21
LBB0_20:
	mov	w8, #0
LBB0_21:
	stp	w0, w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w8, #1
	b	LBB0_21
LBB0_23:
	mov	w8, #2
	b	LBB0_21
LBB0_24:
	mov	w8, #3
	b	LBB0_21
LBB0_25:
	mov	w8, #4
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.no_dead_strip	_code_filter_coeffs
.subsections_via_symbols
