	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function register_range
LCPI0_0:
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_register_range:                        ## @register_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movslq	%esi, %r8
	movq	(%rax,%r8,8), %rdx
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_4
	jp	LBB0_4
## %bb.1:
	movss	4(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movss	8(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm2
	jne	LBB0_4
	jp	LBB0_4
## %bb.3:
	movss	12(%rdx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jne	LBB0_4
	jnp	LBB0_32
LBB0_4:
	movq	24(%rdi), %r9
	movslq	16(%rdi), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rdi)
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	movss	4(%rdx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	ja	LBB0_30
## %bb.5:
	ucomiss	LCPI0_1(%rip), %xmm0
	ja	LBB0_30
## %bb.6:
	ucomiss	%xmm1, %xmm2
	ja	LBB0_30
## %bb.7:
	ucomiss	LCPI0_1(%rip), %xmm1
	ja	LBB0_30
## %bb.8:
	movss	8(%rdx), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm2
	ja	LBB0_30
## %bb.9:
	ucomiss	LCPI0_1(%rip), %xmm3
	ja	LBB0_30
## %bb.10:
	movss	12(%rdx), %xmm3                 ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm2
	ja	LBB0_30
## %bb.11:
	ucomiss	LCPI0_1(%rip), %xmm3
	ja	LBB0_30
## %bb.12:
	leaq	(%rax,%rax,2), %r8
	movl	$1, %r10d
	movl	%esi, %ecx
	shll	%cl, %r10d
	movl	%esi, (%r9,%r8,4)
	movl	$1, %r11d
	movl	%r10d, 4(%r9,%r8,4)
	movq	_RANGE_REDS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dl
	movq	_RANGE_GREENS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edx, %eax
	movq	_RANGE_BLUES@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	btl	%esi, %eax
	jae	LBB0_15
## %bb.13:
	movq	_get_rgb_scale@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_30:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_color_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r8,4), %ecx
	movss	8(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	12(%rdx), %xmm3                 ## xmm3 = mem[0],zero,zero,zero
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_15:
	movq	_RANGE_CYANS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RANGE_MAGENTAS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r11d
	btsl	%eax, %r11d
	movq	_RANGE_YELLOWS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r11d
	testl	%r10d, %r11d
	je	LBB0_17
## %bb.16:
	movq	_get_cmy_scale@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 8(%r9,%r8,4)
LBB0_32:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_17:
	movq	_RANGE_WHITES@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpq	$0, 8(%rdi)
	je	LBB0_18
## %bb.24:
	testl	%r10d, %eax
	je	LBB0_26
## %bb.25:
	movq	_get_whites_scale16@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_18:
	testl	%r10d, %eax
	je	LBB0_20
## %bb.19:
	movq	_get_whites_scale8@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_26:
	movq	_RANGE_NEUTRALS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r10d
	jae	LBB0_28
## %bb.27:
	movq	_get_neutrals_scale16@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_20:
	movq	_RANGE_NEUTRALS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r10d
	jae	LBB0_22
## %bb.21:
	movq	_get_neutrals_scale8@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_28:
	movq	_RANGE_BLACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r10d
	jae	LBB0_31
## %bb.29:
	movq	_get_blacks_scale16@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_22:
	movq	_RANGE_BLACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r10d
	jae	LBB0_31
## %bb.23:
	movq	_get_blacks_scale8@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_31:
	xorl	%edi, %edi
	callq	_av_assert0
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid %s adjustments (%g %g %g %g). Settings must be set in [-1;1] range\n"

	.comm	_color_names,8,3                ## @color_names
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RANGE_REDS,4,2                 ## @RANGE_REDS
	.comm	_RANGE_GREENS,4,2               ## @RANGE_GREENS
	.comm	_RANGE_BLUES,4,2                ## @RANGE_BLUES
	.comm	_get_rgb_scale,4,2              ## @get_rgb_scale
	.comm	_RANGE_CYANS,4,2                ## @RANGE_CYANS
	.comm	_RANGE_MAGENTAS,4,2             ## @RANGE_MAGENTAS
	.comm	_RANGE_YELLOWS,4,2              ## @RANGE_YELLOWS
	.comm	_get_cmy_scale,4,2              ## @get_cmy_scale
	.comm	_RANGE_WHITES,4,2               ## @RANGE_WHITES
	.comm	_get_whites_scale8,4,2          ## @get_whites_scale8
	.comm	_RANGE_NEUTRALS,4,2             ## @RANGE_NEUTRALS
	.comm	_get_neutrals_scale8,4,2        ## @get_neutrals_scale8
	.comm	_RANGE_BLACKS,4,2               ## @RANGE_BLACKS
	.comm	_get_blacks_scale8,4,2          ## @get_blacks_scale8
	.comm	_get_whites_scale16,4,2         ## @get_whites_scale16
	.comm	_get_neutrals_scale16,4,2       ## @get_neutrals_scale16
	.comm	_get_blacks_scale16,4,2         ## @get_blacks_scale16
	.no_dead_strip	_register_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_range
_register_range:                        ; @register_range
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x10, [x8, w1, sxtw #3]
	ldr	s0, [x10]
	fcmp	s0, #0.0
	b.ne	LBB0_4
; %bb.1:
	ldr	s1, [x10, #4]
	fcmp	s1, #0.0
	b.ne	LBB0_4
; %bb.2:
	ldr	s1, [x10, #8]
	fcmp	s1, #0.0
	b.ne	LBB0_4
; %bb.3:
	ldr	s1, [x10, #12]
	fcmp	s1, #0.0
	b.eq	LBB0_13
LBB0_4:
	ldr	x8, [x0, #24]
	ldrsw	x9, [x0, #16]
	add	w11, w9, #1
	str	w11, [x0, #16]
	ldr	s1, [x10, #4]
	fmov	s2, #-1.00000000
	fcmp	s0, s2
	fmov	s3, #1.00000000
	fccmp	s0, s3, #0, pl
	fccmp	s1, s2, #8, le
	fccmp	s1, s3, #0, pl
	b.le	LBB0_6
LBB0_5:
	sxtw	x8, w1
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x11, _color_names@GOTPAGE
Lloh3:
	ldr	x11, [x11, _color_names@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	ldr	x9, [x11]
	ldr	w3, [x9, x8, lsl #2]
	ldp	s2, s3, [x10, #8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	ldr	s4, [x10, #8]
	fcmp	s4, s2
	fccmp	s4, s3, #0, pl
	b.gt	LBB0_5
; %bb.7:
	ldr	s2, [x10, #12]
	fmov	s3, #-1.00000000
	fcmp	s2, s3
	fmov	s3, #1.00000000
	fccmp	s2, s3, #0, pl
	b.gt	LBB0_5
; %bb.8:
	mov	w10, #12
	madd	x12, x9, x10, x8
	mov	w11, #1
	lsl	w10, w11, w1
	stp	w1, w10, [x12]
Lloh11:
	adrp	x12, _RANGE_REDS@GOTPAGE
Lloh12:
	ldr	x12, [x12, _RANGE_REDS@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	lsl	w12, w11, w12
Lloh14:
	adrp	x13, _RANGE_GREENS@GOTPAGE
Lloh15:
	ldr	x13, [x13, _RANGE_GREENS@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	lsl	w13, w11, w13
	orr	w12, w13, w12
Lloh17:
	adrp	x13, _RANGE_BLUES@GOTPAGE
Lloh18:
	ldr	x13, [x13, _RANGE_BLUES@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	lsl	w13, w11, w13
	orr	w12, w12, w13
	tst	w12, w10
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x10, _get_rgb_scale@GOTPAGE
Lloh21:
	ldr	x10, [x10, _get_rgb_scale@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x12, _RANGE_CYANS@GOTPAGE
Lloh23:
	ldr	x12, [x12, _RANGE_CYANS@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	lsl	w12, w11, w12
Lloh25:
	adrp	x13, _RANGE_MAGENTAS@GOTPAGE
Lloh26:
	ldr	x13, [x13, _RANGE_MAGENTAS@GOTPAGEOFF]
Lloh27:
	ldr	w13, [x13]
	lsl	w13, w11, w13
	orr	w12, w13, w12
Lloh28:
	adrp	x13, _RANGE_YELLOWS@GOTPAGE
Lloh29:
	ldr	x13, [x13, _RANGE_YELLOWS@GOTPAGEOFF]
Lloh30:
	ldr	w13, [x13]
	lsl	w11, w11, w13
	orr	w11, w12, w11
	tst	w11, w10
	b.eq	LBB0_14
; %bb.11:
Lloh31:
	adrp	x10, _get_cmy_scale@GOTPAGE
Lloh32:
	ldr	x10, [x10, _get_cmy_scale@GOTPAGEOFF]
LBB0_12:
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
	str	w10, [x8, #8]
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x12, [x0, #8]
Lloh33:
	adrp	x11, _RANGE_WHITES@GOTPAGE
Lloh34:
	ldr	x11, [x11, _RANGE_WHITES@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	mov	w13, #1
	lsl	w11, w13, w11
	and	w11, w11, w10
	cbz	x12, LBB0_17
; %bb.15:
	cbz	w11, LBB0_19
; %bb.16:
Lloh36:
	adrp	x10, _get_whites_scale16@GOTPAGE
Lloh37:
	ldr	x10, [x10, _get_whites_scale16@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	cbz	w11, LBB0_21
; %bb.18:
Lloh38:
	adrp	x10, _get_whites_scale8@GOTPAGE
Lloh39:
	ldr	x10, [x10, _get_whites_scale8@GOTPAGEOFF]
	b	LBB0_12
LBB0_19:
Lloh40:
	adrp	x11, _RANGE_NEUTRALS@GOTPAGE
Lloh41:
	ldr	x11, [x11, _RANGE_NEUTRALS@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
	lsr	w11, w10, w11
	tbz	w11, #0, LBB0_23
; %bb.20:
Lloh43:
	adrp	x10, _get_neutrals_scale16@GOTPAGE
Lloh44:
	ldr	x10, [x10, _get_neutrals_scale16@GOTPAGEOFF]
	b	LBB0_12
LBB0_21:
Lloh45:
	adrp	x11, _RANGE_NEUTRALS@GOTPAGE
Lloh46:
	ldr	x11, [x11, _RANGE_NEUTRALS@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	lsr	w11, w10, w11
	tbz	w11, #0, LBB0_25
; %bb.22:
Lloh48:
	adrp	x10, _get_neutrals_scale8@GOTPAGE
Lloh49:
	ldr	x10, [x10, _get_neutrals_scale8@GOTPAGEOFF]
	b	LBB0_12
LBB0_23:
Lloh50:
	adrp	x11, _RANGE_BLACKS@GOTPAGE
Lloh51:
	ldr	x11, [x11, _RANGE_BLACKS@GOTPAGEOFF]
Lloh52:
	ldr	w11, [x11]
	lsr	w10, w10, w11
	tbz	w10, #0, LBB0_27
; %bb.24:
Lloh53:
	adrp	x10, _get_blacks_scale16@GOTPAGE
Lloh54:
	ldr	x10, [x10, _get_blacks_scale16@GOTPAGEOFF]
	b	LBB0_12
LBB0_25:
Lloh55:
	adrp	x11, _RANGE_BLACKS@GOTPAGE
Lloh56:
	ldr	x11, [x11, _RANGE_BLACKS@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	lsr	w10, w10, w11
	tbz	w10, #0, LBB0_27
; %bb.26:
Lloh58:
	adrp	x10, _get_blacks_scale8@GOTPAGE
Lloh59:
	ldr	x10, [x10, _get_blacks_scale8@GOTPAGEOFF]
	b	LBB0_12
LBB0_27:
	mov	w0, #0
	bl	_av_assert0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid %s adjustments (%g %g %g %g). Settings must be set in [-1;1] range\n"

	.comm	_color_names,8,3                ; @color_names
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RANGE_REDS,4,2                 ; @RANGE_REDS
	.comm	_RANGE_GREENS,4,2               ; @RANGE_GREENS
	.comm	_RANGE_BLUES,4,2                ; @RANGE_BLUES
	.comm	_get_rgb_scale,4,2              ; @get_rgb_scale
	.comm	_RANGE_CYANS,4,2                ; @RANGE_CYANS
	.comm	_RANGE_MAGENTAS,4,2             ; @RANGE_MAGENTAS
	.comm	_RANGE_YELLOWS,4,2              ; @RANGE_YELLOWS
	.comm	_get_cmy_scale,4,2              ; @get_cmy_scale
	.comm	_RANGE_WHITES,4,2               ; @RANGE_WHITES
	.comm	_get_whites_scale8,4,2          ; @get_whites_scale8
	.comm	_RANGE_NEUTRALS,4,2             ; @RANGE_NEUTRALS
	.comm	_get_neutrals_scale8,4,2        ; @get_neutrals_scale8
	.comm	_RANGE_BLACKS,4,2               ; @RANGE_BLACKS
	.comm	_get_blacks_scale8,4,2          ; @get_blacks_scale8
	.comm	_get_whites_scale16,4,2         ; @get_whites_scale16
	.comm	_get_neutrals_scale16,4,2       ; @get_neutrals_scale16
	.comm	_get_blacks_scale16,4,2         ; @get_blacks_scale16
	.no_dead_strip	_register_range
.subsections_via_symbols
