	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function parse_gradient
LCPI0_0:
	.long	0x41f80000                      ## float 31
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_parse_gradient:                        ## @parse_gradient
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movl	$31, %r13d
	movl	$31, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %ebx
	incl	%ebx
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %r13d
LBB0_3:
	movl	%r14d, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, 4(%r12)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %ebx
	jle	LBB0_5
## %bb.4:
	cmpl	$32, %ebx
	jge	LBB0_5
## %bb.6:
	cmpl	8(%r12), %eax
	jle	LBB0_7
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	subl	%r14d, %r13d
	movl	%r13d, %eax
	shrl	$30, %eax
	andl	$-2, %eax
	movl	$1, %r15d
	subl	%eax, %r15d
	movl	%r13d, %edi
	movl	%ecx, %r13d
	callq	_FFABS
	decl	%eax
	cvtsi2ss	%eax, %xmm0
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%r13d, %r9
	notl	%r13d
	addl	%ebx, %r13d
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rcx
	cmpl	$0, 8(%r12)
	js	LBB0_10
## %bb.8:
	movq	16(%r12), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpq	%r9, %rdx
	setge	%sil
	movl	-56(%rbp,%rsi,4), %esi
	movl	%esi, (%rax,%rdx,4)
	leaq	1(%rdx), %rsi
	movslq	8(%r12), %rdi
	cmpq	%rdi, %rdx
	movq	%rsi, %rdx
	jl	LBB0_9
LBB0_10:
	addl	%r15d, %r14d
	divss	LCPI0_0(%rip), %xmm0
	movq	16(%r12), %r10
	movslq	%ebx, %rdi
	movq	%rdi, %r8
	subq	%r9, %r8
	movq	%r9, %rdx
	cmpq	$8, %r8
	jb	LBB0_14
## %bb.11:
	movq	%r8, %rbx
	andq	$-8, %rbx
	leaq	(%rbx,%r9), %rdx
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	movd	%r15d, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	movd	%r14d, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	leaq	(%r10,%r9,4), %rax
	addq	$16, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rsi,4), %xmm4
	movups	16(%rcx,%rsi,4), %xmm5
	mulps	%xmm1, %xmm4
	mulps	%xmm1, %xmm5
	cvttps2dq	%xmm4, %xmm4
	cvttps2dq	%xmm5, %xmm5
	pmulld	%xmm2, %xmm4
	pmulld	%xmm2, %xmm5
	paddd	%xmm3, %xmm4
	paddd	%xmm3, %xmm5
	movdqu	%xmm4, -16(%rax,%rsi,4)
	movdqu	%xmm5, (%rax,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %rbx
	jne	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	cmpq	%rbx, %r8
	je	LBB0_17
LBB0_14:
	shlq	$2, %r9
	subq	%r9, %rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rcx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	imull	%r15d, %eax
	addl	%r14d, %eax
	movl	%eax, (%r10,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rdi
	jne	LBB0_15
## %bb.16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_gradient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_gradient
_parse_gradient:                        ; @parse_gradient
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, x2
	mov	w1, #2
	bl	_get_bits
	str	w0, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	w1, #5
	bl	_get_bits
	mov	x20, x0
	mov	x0, x23
	mov	w1, #5
	bl	_get_bits
	mov	x22, x0
	mov	w24, #31
	mov	w25, #31
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	mov	w1, #6
	bl	_get_bits
	mov	x20, x0
	mov	x0, x23
	mov	w1, #6
	bl	_get_bits
	add	w25, w0, #1
	mov	x0, x23
	mov	w1, #5
	bl	_get_bits
	mov	x22, x0
	mov	x0, x23
	mov	w1, #5
	bl	_get_bits
	mov	x24, x0
LBB0_3:
	stp	w22, w24, [sp]
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	str	w0, [x19, #4]
	cmp	w25, w20
	b.le	LBB0_6
; %bb.4:
	cmp	w25, #32
	b.ge	LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.le	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_7:
	sub	w0, w24, w22
	lsr	w8, w0, #30
	and	w8, w8, #0x2
	mov	w9, #1
	sub	w23, w9, w8
	bl	_FFABS
	sub	w8, w0, #1
	scvtf	s0, w8
	fmov	s1, #31.00000000
	ldr	x8, [x21]
	mvn	w9, w20
	add	w9, w25, w9
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w9, [x19, #8]
	tbnz	w9, #31, LBB0_10
; %bb.8:
	mov	x10, #0
	ldr	x9, [x19, #16]
	mov	x11, x20
	sxtw	x11, w11
	mov	x12, sp
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x11
	cset	w13, ge
	ldr	w13, [x12, w13, uxtw #2]
	str	w13, [x9, x10, lsl #2]
	add	x13, x10, #1
	ldrsw	x14, [x19, #8]
	cmp	x10, x14
	mov	x10, x13
	b.lt	LBB0_9
LBB0_10:
	add	w9, w23, w22
	ldr	x10, [x19, #16]
	sxtw	x11, w20
	sxtw	x12, w25
	sub	x14, x12, x11
	mov	x13, x11
	fdiv	s0, s0, s1
	cmp	x14, #16
	b.lo	LBB0_14
; %bb.11:
	and	x15, x14, #0xfffffffffffffff0
	add	x13, x15, x11
	dup.4s	v1, v0[0]
	dup.4s	v2, w23
	dup.4s	v3, w9
	add	x16, x10, x11, lsl #2
	add	x16, x16, #32
	add	x17, x8, #32
	mov	x0, x15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x17, #-32]
	ldp	q6, q7, [x17], #64
	fmul.4s	v4, v1, v4
	fmul.4s	v5, v1, v5
	fmul.4s	v6, v1, v6
	fmul.4s	v7, v7, v0[0]
	fcvtzs.4s	v4, v4
	fcvtzs.4s	v5, v5
	fcvtzs.4s	v6, v6
	fcvtzs.4s	v7, v7
	mov.16b	v16, v3
	mla.4s	v16, v2, v4
	mov.16b	v4, v3
	mla.4s	v4, v2, v5
	mov.16b	v5, v3
	mla.4s	v5, v2, v6
	mov.16b	v6, v3
	stp	q16, q4, [x16, #-32]
	mla.4s	v6, v2, v7
	stp	q5, q6, [x16], #64
	subs	x0, x0, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x14, x15
	b.eq	LBB0_16
LBB0_14:
	add	x10, x10, x13, lsl #2
	sub	x11, x13, x11
	add	x8, x8, x11, lsl #2
	sub	x11, x12, x13
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x8], #4
	fmul	s1, s0, s1
	fcvtzs	w12, s1
	madd	w12, w23, w12, w9
	str	w12, [x10], #4
	subs	x11, x11, #1
	b.ne	LBB0_15
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_parse_gradient
.subsections_via_symbols
