	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function do_chromakey_pixel
LCPI0_0:
	.quad	0x40efc02000000000              ## double 65025
LCPI0_1:
	.quad	0x4022000000000000              ## double 9
LCPI0_2:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
LCPI0_3:
	.quad	0x406fe00000000000              ## double 255
LCPI0_4:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_chromakey_pixel:                    ## @do_chromakey_pixel
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorpd	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	cvttsd2si	(%r15,%rbx,8), %eax
	movq	(%r12), %rcx
	subl	(%rcx), %eax
	cvttsd2si	(%r14,%rbx,8), %edx
	subl	4(%rcx), %edx
	imull	%eax, %eax
	imull	%edx, %edx
	addl	%eax, %edx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_sqrt
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	addsd	%xmm1, %xmm0
	incq	%rbx
	cmpq	$9, %rbx
	jne	LBB0_1
## %bb.2:
	divsd	LCPI0_1(%rip), %xmm0
	movsd	8(%r12), %xmm2                  ## xmm2 = mem[0],zero
	movsd	16(%r12), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	LCPI0_2(%rip), %xmm2
	jbe	LBB0_4
## %bb.3:
	subsd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	movsd	LCPI0_4(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorpd	%xmm1, %xmm1
	callq	_av_clipd
	mulsd	LCPI0_3(%rip), %xmm0
	jmp	LBB0_5
LBB0_4:
	cmpltsd	%xmm0, %xmm1
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	andpd	%xmm1, %xmm0
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_chromakey_pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_chromakey_pixel
_do_chromakey_pixel:                    ; @do_chromakey_pixel
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x22, #0
	movi	d8, #0000000000000000
	mov	x23, #211243671486464
	movk	x23, #16623, lsl #48
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x21, x22]
	fcvtzs	w8, d0
	ldr	x9, [x19]
	ldr	d0, [x20, x22]
	ldp	w10, w9, [x9]
	sub	w8, w8, w10
	fcvtzs	w10, d0
	sub	w9, w10, w9
	mul	w8, w8, w8
	madd	w8, w9, w9, w8
	scvtf	d0, w8
	fmov	d1, x23
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	bl	_sqrt
	scvtf	d0, x0
	fadd	d8, d8, d0
	add	x22, x22, #8
	cmp	x22, #72
	b.ne	LBB0_1
; %bb.2:
	fmov	d2, #9.00000000
	ldp	d0, d1, [x19, #8]
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d3, x8
	fcmp	d0, d3
	fdiv	d2, d8, d2
	b.le	LBB0_4
; %bb.3:
	fsub	d1, d2, d1
	fdiv	d0, d1, d0
	movi	d1, #0000000000000000
	fmov	d2, #1.00000000
	bl	_av_clipd
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	b	LBB0_5
LBB0_4:
	fcmp	d2, d1
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d0, x8
	movi	d1, #0000000000000000
	fcsel	d0, d0, d1, gt
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_chromakey_pixel
.subsections_via_symbols
