	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function color_range
LCPI0_0:
	.long	0x43800000                      ## float 256
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_color_range:                           ## @color_range
	.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	%r8, %r14
	movq	%rcx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$142, %eax
	jne	LBB0_9
## %bb.2:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	4(%rbx), %xmm0
	movss	%xmm0, (%rdx)
	movl	8(%rbx), %eax
	leal	-131(%rax), %ecx
	cmpl	$11, %ecx
	jae	LBB0_6
LBB0_3:
	movss	%xmm0, (%r15)
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
LBB0_4:
	movss	%xmm0, (%r14)
	cmpl	$144, 8(%rbx)
	je	LBB0_10
	jmp	LBB0_15
LBB0_5:
	movl	$1132462080, (%rdx)             ## imm = 0x43800000
	movl	$1132462080, (%r15)             ## imm = 0x43800000
	movl	$1132462080, (%r14)             ## imm = 0x43800000
	cmpl	$144, 8(%rbx)
	je	LBB0_10
LBB0_15:
	movss	(%r15), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	_M_PI@GOTPCREL(%rip), %r12
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	12(%rbx), %xmm0
	callq	_sinf
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r15)
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_M_PI_2@GOTPCREL(%rip), %rax
	mulss	12(%rbx), %xmm0
	addss	(%rax), %xmm0
	callq	_cosf
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	%xmm1, %xmm0
	jmp	LBB0_16
LBB0_6:
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.7:
	cmpl	$144, %eax
	je	LBB0_14
## %bb.8:
	cmpl	$143, %eax
	je	LBB0_3
LBB0_9:
	xorl	%edi, %edi
	callq	_av_assert0
	cmpl	$144, 8(%rbx)
	jne	LBB0_15
LBB0_10:
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	ucomiss	LCPI0_1(%rip), %xmm1
	movq	_M_PI@GOTPCREL(%rip), %r13
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	jbe	LBB0_12
## %bb.11:
	movaps	%xmm0, %xmm2
	addss	%xmm0, %xmm2
	cvtsi2ss	%r12d, %xmm3
	movss	%xmm3, -44(%rbp)                ## 4-byte Spill
	mulss	%xmm3, %xmm2
	divss	%xmm1, %xmm2
	mulss	12(%rbx), %xmm0
	addss	%xmm2, %xmm0
	callq	_sinf
	mulss	LCPI0_2(%rip), %xmm0
	mulss	(%r15), %xmm0
	movss	%xmm0, (%r15)
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	addss	%xmm0, %xmm1
	mulss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	divss	4(%rbx), %xmm1
	mulss	12(%rbx), %xmm0
	addss	%xmm1, %xmm0
	jmp	LBB0_13
LBB0_12:
	mulss	12(%rbx), %xmm0
	callq	_sinf
	mulss	LCPI0_2(%rip), %xmm0
	mulss	(%r15), %xmm0
	movss	%xmm0, (%r15)
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_M_PI_2@GOTPCREL(%rip), %rax
	mulss	12(%rbx), %xmm0
	addss	(%rax), %xmm0
LBB0_13:
	callq	_cosf
	mulss	LCPI0_2(%rip), %xmm0
	mulss	(%r14), %xmm0
LBB0_16:
	movss	%xmm0, (%r14)
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r15), %xmm0
	movss	%xmm0, (%r15)
	movss	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r14), %xmm0
	movss	%xmm0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_M_PI@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	movss	%xmm0, (%r15)
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rax), %xmm0
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_M_PI_2,4,2                     ## @M_PI_2
	.no_dead_strip	_color_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function color_range
_color_range:                           ; @color_range
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #142
	b.ne	LBB0_8
; %bb.2:
	ldr	s0, [x21, #4]
	mov	w8, #1132462080
	fmov	s1, w8
	fdiv	s0, s1, s0
	str	s0, [x2]
	ldr	w8, [x21, #8]
	sub	w9, w8, #131
	cmp	w9, #11
	b.hs	LBB0_5
LBB0_3:
	str	s0, [x20]
	ldr	s0, [x2]
	str	s0, [x19]
	b	LBB0_9
LBB0_4:
	mov	w8, #1132462080
	str	w8, [x2]
	str	w8, [x20]
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_3
; %bb.6:
	cmp	w8, #144
	b.eq	LBB0_16
; %bb.7:
	cmp	w8, #143
	b.eq	LBB0_3
LBB0_8:
	mov	w0, #0
	bl	_av_assert0
LBB0_9:
	ldr	w8, [x21, #8]
	cmp	w8, #144
	b.ne	LBB0_12
; %bb.10:
	ldr	s1, [x21, #4]
Lloh0:
	adrp	x23, _M_PI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_PI@GOTPAGEOFF]
	ldr	s0, [x23]
	fmov	s2, #1.00000000
	fcmp	s1, s2
	b.le	LBB0_13
; %bb.11:
	fadd	s2, s0, s0
	scvtf	s8, w22
	fmul	s2, s2, s8
	fdiv	s1, s2, s1
	ldr	s2, [x21, #12]
	fmadd	s0, s0, s2, s1
	bl	_sinf
	fmov	s9, #0.50000000
	fmul	s0, s0, s9
	ldr	s1, [x20]
	fmul	s0, s1, s0
	str	s0, [x20]
	ldr	s0, [x23]
	fadd	s1, s0, s0
	fmul	s1, s1, s8
	ldr	s2, [x21, #4]
	fdiv	s1, s1, s2
	ldr	s2, [x21, #12]
	fmadd	s0, s0, s2, s1
	bl	_cosf
	fmul	s0, s0, s9
	b	LBB0_14
LBB0_12:
	ldr	s8, [x20]
Lloh2:
	adrp	x22, _M_PI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _M_PI@GOTPAGEOFF]
	ldr	s0, [x22]
	ldr	s1, [x21, #12]
	fmul	s0, s0, s1
	bl	_sinf
	fmadd	s0, s8, s0, s8
	str	s0, [x20]
	ldr	s8, [x19]
	ldr	s0, [x22]
	ldr	s1, [x21, #12]
Lloh4:
	adrp	x8, _M_PI_2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_PI_2@GOTPAGEOFF]
Lloh6:
	ldr	s2, [x8]
	fmadd	s0, s0, s1, s2
	bl	_cosf
	fmadd	s0, s8, s0, s8
	b	LBB0_15
LBB0_13:
	ldr	s1, [x21, #12]
	fmul	s0, s0, s1
	bl	_sinf
	fmov	s8, #0.50000000
	fmul	s0, s0, s8
	ldr	s1, [x20]
	fmul	s0, s1, s0
	str	s0, [x20]
	ldr	s0, [x23]
	ldr	s1, [x21, #12]
Lloh7:
	adrp	x8, _M_PI_2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_PI_2@GOTPAGEOFF]
Lloh9:
	ldr	s2, [x8]
	fmadd	s0, s0, s1, s2
	bl	_cosf
	fmul	s0, s0, s8
LBB0_14:
	ldr	s1, [x19]
	fmul	s0, s1, s0
LBB0_15:
	str	s0, [x19]
	ldr	s0, [x21, #16]
	ldr	s1, [x20]
	fmul	s0, s0, s1
	str	s0, [x20]
	ldr	s0, [x21, #16]
	ldr	s1, [x19]
	fmul	s0, s0, s1
	str	s0, [x19]
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh10:
	adrp	x8, _M_PI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
	ldr	s1, [x8]
	fmul	s0, s0, s1
	str	s0, [x20]
	ldr	s0, [x2]
	ldr	s1, [x8]
	fmul	s0, s0, s1
	str	s0, [x19]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_M_PI_2,4,2                     ; @M_PI_2
	.no_dead_strip	_color_range
.subsections_via_symbols
