	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function chroma_smooth_init
LCPI0_0:
	.quad	0x40f0000000000000              ## double 65536
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_chroma_smooth_init:                    ## @chroma_smooth_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$4, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_40
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	$-1, (%rdi)
	movq	$-1, 32(%rdi)
	movq	$-1, 64(%rdi)
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	addq	$32, %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rsi
	callq	_hb_dict_extract_double
	movq	(%rbx), %rdi
	addq	$36, %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rsi
	callq	_hb_dict_extract_int
	movq	(%rbx), %rdi
	addq	$64, %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rsi
	callq	_hb_dict_extract_double
	movq	(%rbx), %rdi
	addq	$68, %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rsi
	callq	_hb_dict_extract_int
	movq	(%rbx), %rdi
	cmpl	$-1, 64(%rdi)
	je	LBB0_3
## %bb.4:
	cmpl	$-1, 68(%rdi)
	je	LBB0_26
LBB0_5:
	movl	(%r15), %r15d
	movl	%r15d, 28(%rdi)
	movl	(%rdi), %edx
	cmpl	$-1, %edx
	jne	LBB0_7
## %bb.6:
	movq	_CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, (%rdi)
LBB0_7:
	movl	4(%rdi), %ecx
	cmpl	$-1, %ecx
	je	LBB0_8
## %bb.9:
	testl	%edx, %edx
	js	LBB0_10
LBB0_11:
	movl	$3, %esi
	cmpl	$4, %edx
	jae	LBB0_12
## %bb.13:
	testb	$1, %cl
	jne	LBB0_15
LBB0_14:
	decl	%ecx
	movl	%ecx, 4(%rdi)
LBB0_15:
	movq	_CHROMA_SMOOTH_SIZE_MIN@GOTPCREL(%rip), %r10
	movl	(%r10), %edx
	cmpl	%edx, %ecx
	jge	LBB0_17
## %bb.16:
	movl	%edx, 4(%rdi)
	movl	%edx, %ecx
LBB0_17:
	movq	_CHROMA_SMOOTH_SIZE_MAX@GOTPCREL(%rip), %r11
	movl	(%r11), %edx
	cmpl	%edx, %ecx
	jle	LBB0_19
## %bb.18:
	movl	%edx, 4(%rdi)
LBB0_19:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	movl	$0, 24(%rdi)
	xorl	%ebx, %ebx
	movq	_CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPCREL(%rip), %r8
	movq	_CHROMA_SMOOTH_SIZE_DEFAULT@GOTPCREL(%rip), %r9
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_20 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	leal	(,%rsi,4), %edx
	leal	-1(%rdx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, 40(%rdi,%rbx)
	movl	%esi, 48(%rdi,%rbx)
	movl	%edx, 52(%rdi,%rbx)
	movl	%eax, 56(%rdi,%rbx)
	addq	$32, %rbx
	cmpq	$64, %rbx
	je	LBB0_36
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, 60(%rdi,%rbx)
	movl	32(%rdi,%rbx), %ecx
	cmpl	$-1, %ecx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r8), %ecx
	movl	%ecx, 32(%rdi,%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	36(%rdi,%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%ecx, %ecx
	js	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$3, %esi
	cmpl	$4, %ecx
	jae	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	testb	$1, %dl
	jne	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	decl	%edx
	movl	%edx, 36(%rdi,%rbx)
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r10), %esi
	cmpl	%esi, %edx
	jge	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, 36(%rdi,%rbx)
	movl	%esi, %edx
LBB0_33:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r11), %esi
	cmpl	%esi, %edx
	jle	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, 36(%rdi,%rbx)
	movl	%esi, %edx
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r9), %edx
	movl	%edx, 36(%rdi,%rbx)
	testl	%ecx, %ecx
	jns	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%esi, %esi
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, 32(%rdi,%rbx)
	movl	%esi, %ecx
	testb	$1, %dl
	je	LBB0_30
	jmp	LBB0_31
LBB0_36:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_chroma_smooth_init_thread
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_39
## %bb.37:
	movq	%r14, %rdi
	callq	_chroma_smooth_close
	jmp	LBB0_38
LBB0_3:
	movl	32(%rdi), %eax
	movl	%eax, 64(%rdi)
	cmpl	$-1, 68(%rdi)
	jne	LBB0_5
LBB0_26:
	movl	36(%rdi), %eax
	movl	%eax, 68(%rdi)
	jmp	LBB0_5
LBB0_40:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
LBB0_38:
	movl	$-1, %eax
LBB0_39:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_CHROMA_SMOOTH_SIZE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdi)
	testl	%edx, %edx
	jns	LBB0_11
LBB0_10:
	xorl	%esi, %esi
LBB0_12:
	movl	%esi, (%rdi)
	testb	$1, %cl
	je	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chroma Smooth calloc failed"

L_.str.1:                               ## @.str.1
	.asciz	"cb-strength"

L_.str.2:                               ## @.str.2
	.asciz	"cb-size"

L_.str.3:                               ## @.str.3
	.asciz	"cr-strength"

L_.str.4:                               ## @.str.4
	.asciz	"cr-size"

	.comm	_CHROMA_SMOOTH_STRENGTH_DEFAULT,4,2 ## @CHROMA_SMOOTH_STRENGTH_DEFAULT
	.comm	_CHROMA_SMOOTH_SIZE_DEFAULT,4,2 ## @CHROMA_SMOOTH_SIZE_DEFAULT
	.comm	_CHROMA_SMOOTH_SIZE_MIN,4,2     ## @CHROMA_SMOOTH_SIZE_MIN
	.comm	_CHROMA_SMOOTH_SIZE_MAX,4,2     ## @CHROMA_SMOOTH_SIZE_MAX
	.no_dead_strip	_chroma_smooth_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chroma_smooth_init
_chroma_smooth_init:                    ; @chroma_smooth_init
	.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	x20, x1
	mov	x19, x0
	mov	w0, #4
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	mov	x0, x8
	str	d0, [x0, #32]!
	str	d0, [x8, #64]
	ldr	x22, [x19]
	cbz	x22, LBB0_3
; %bb.2:
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_hb_dict_extract_double
	ldr	x8, [x21]
	add	x0, x8, #36
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_hb_dict_extract_int
	ldr	x8, [x21]
	add	x0, x8, #64
Lloh4:
	adrp	x2, l_.str.3@PAGE
Lloh5:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_hb_dict_extract_double
	ldr	x8, [x21]
	add	x0, x8, #68
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_hb_dict_extract_int
	ldr	x8, [x21]
	ldr	w9, [x8, #64]
	cmn	w9, #1
	b.ne	LBB0_4
LBB0_3:
	ldr	w9, [x8, #32]
	str	w9, [x8, #64]
LBB0_4:
	ldr	w9, [x8, #68]
	cmn	w9, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x8, #36]
	str	w9, [x8, #68]
LBB0_6:
	ldr	w10, [x20]
	str	w10, [x8, #28]
	ldr	w9, [x8]
	cmn	w9, #1
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_8:
	ldr	w12, [x8, #4]
	cmn	w12, #1
	b.eq	LBB0_13
; %bb.9:
	tbnz	w9, #31, LBB0_14
LBB0_10:
	cmp	w9, #4
	b.lo	LBB0_16
; %bb.11:
	mov	w9, #3
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	b	LBB0_55
LBB0_13:
Lloh13:
	adrp	x11, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x11]
	str	w12, [x8, #4]
	tbz	w9, #31, LBB0_10
LBB0_14:
	mov	w9, #0
LBB0_15:
	str	w9, [x8]
LBB0_16:
	tbnz	w12, #0, LBB0_18
; %bb.17:
	sub	w12, w12, #1
	str	w12, [x8, #4]
LBB0_18:
Lloh16:
	adrp	x9, _CHROMA_SMOOTH_SIZE_MIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHROMA_SMOOTH_SIZE_MIN@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w12, w11
	b.ge	LBB0_20
; %bb.19:
	str	w11, [x8, #4]
	mov	x12, x11
LBB0_20:
Lloh18:
	adrp	x11, _CHROMA_SMOOTH_SIZE_MAX@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CHROMA_SMOOTH_SIZE_MAX@GOTPAGEOFF]
	ldr	w13, [x11]
	cmp	w12, w13
	b.le	LBB0_22
; %bb.21:
	str	w13, [x8, #4]
LBB0_22:
	stp	xzr, xzr, [x8, #8]
	str	wzr, [x8, #24]
	str	w10, [x8, #60]
	ldr	w12, [x8, #32]
	cmn	w12, #1
	b.ne	LBB0_24
; %bb.23:
Lloh20:
	adrp	x12, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGE
Lloh21:
	ldr	x12, [x12, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	str	w12, [x8, #32]
LBB0_24:
	ldr	w13, [x8, #36]
	cmn	w13, #1
	b.eq	LBB0_28
; %bb.25:
	tbnz	w12, #31, LBB0_29
LBB0_26:
	cmp	w12, #4
	b.lo	LBB0_31
; %bb.27:
	mov	w12, #3
	b	LBB0_30
LBB0_28:
Lloh23:
	adrp	x13, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGE
Lloh24:
	ldr	x13, [x13, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	str	w13, [x8, #36]
	tbz	w12, #31, LBB0_26
LBB0_29:
	mov	w12, #0
LBB0_30:
	str	w12, [x8, #32]
LBB0_31:
	tbnz	w13, #0, LBB0_33
; %bb.32:
	sub	w13, w13, #1
	str	w13, [x8, #36]
LBB0_33:
	ldr	w14, [x9]
	cmp	w13, w14
	b.ge	LBB0_35
; %bb.34:
	str	w14, [x8, #36]
	mov	x13, x14
LBB0_35:
	ldr	w14, [x11]
	cmp	w13, w14
	b.le	LBB0_37
; %bb.36:
	str	w14, [x8, #36]
	mov	x13, x14
LBB0_37:
	scvtf	d0, w12
	mov	x12, #4679240012837945344
	fmov	d1, x12
	fmul	d0, d0, d1
	cmp	w13, #0
	cinc	w12, w13, lt
	asr	w12, w12, #1
	lsl	w13, w12, #2
	sub	w14, w13, #1
	mov	w15, #1
	lsl	w14, w15, w14
	str	d0, [x8, #40]
	stp	w12, w13, [x8, #48]
	str	w14, [x8, #56]
	str	w10, [x8, #92]
	ldr	w10, [x8, #64]
	cmn	w10, #1
	b.ne	LBB0_39
; %bb.38:
Lloh26:
	adrp	x10, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _CHROMA_SMOOTH_STRENGTH_DEFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	str	w10, [x8, #64]
LBB0_39:
	ldr	w12, [x8, #68]
	cmn	w12, #1
	b.eq	LBB0_43
; %bb.40:
	tbnz	w10, #31, LBB0_44
LBB0_41:
	cmp	w10, #4
	b.lo	LBB0_46
; %bb.42:
	mov	w10, #3
	b	LBB0_45
LBB0_43:
Lloh29:
	adrp	x12, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGE
Lloh30:
	ldr	x12, [x12, _CHROMA_SMOOTH_SIZE_DEFAULT@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	str	w12, [x8, #68]
	tbz	w10, #31, LBB0_41
LBB0_44:
	mov	w10, #0
LBB0_45:
	str	w10, [x8, #64]
LBB0_46:
	tbnz	w12, #0, LBB0_48
; %bb.47:
	sub	w12, w12, #1
	str	w12, [x8, #68]
LBB0_48:
	ldr	w9, [x9]
	cmp	w12, w9
	b.ge	LBB0_50
; %bb.49:
	str	w9, [x8, #68]
	mov	x12, x9
LBB0_50:
	ldr	w9, [x11]
	cmp	w12, w9
	b.le	LBB0_52
; %bb.51:
	str	w9, [x8, #68]
	mov	x12, x9
LBB0_52:
	scvtf	d0, w10
	mov	x9, #4679240012837945344
	fmov	d1, x9
	fmul	d0, d0, d1
	cmp	w12, #0
	cinc	w9, w12, lt
	asr	w9, w9, #1
	lsl	w10, w9, #2
	sub	w11, w10, #1
	mov	w12, #1
	str	d0, [x8, #72]
	lsl	w11, w12, w11
	stp	w9, w10, [x8, #80]
	str	w11, [x8, #88]
	mov	x0, x19
	mov	w1, #1
	bl	_chroma_smooth_init_thread
	tbnz	x0, #63, LBB0_54
; %bb.53:
	mov	w0, #0
	b	LBB0_56
LBB0_54:
	mov	x0, x19
	bl	_chroma_smooth_close
LBB0_55:
	mov	w0, #-1
LBB0_56:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chroma Smooth calloc failed"

l_.str.1:                               ; @.str.1
	.asciz	"cb-strength"

l_.str.2:                               ; @.str.2
	.asciz	"cb-size"

l_.str.3:                               ; @.str.3
	.asciz	"cr-strength"

l_.str.4:                               ; @.str.4
	.asciz	"cr-size"

	.comm	_CHROMA_SMOOTH_STRENGTH_DEFAULT,4,2 ; @CHROMA_SMOOTH_STRENGTH_DEFAULT
	.comm	_CHROMA_SMOOTH_SIZE_DEFAULT,4,2 ; @CHROMA_SMOOTH_SIZE_DEFAULT
	.comm	_CHROMA_SMOOTH_SIZE_MIN,4,2     ; @CHROMA_SMOOTH_SIZE_MIN
	.comm	_CHROMA_SMOOTH_SIZE_MAX,4,2     ; @CHROMA_SMOOTH_SIZE_MAX
	.no_dead_strip	_chroma_smooth_init
.subsections_via_symbols
