	.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_colorkey_pixel
LCPI0_0:
	.quad	0x40efc02000000000              ## double 65025
LCPI0_1:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
LCPI0_2:
	.quad	0x406fe00000000000              ## double 255
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_colorkey_pixel:                     ## @do_colorkey_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cvttsd2si	%xmm0, %eax
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	subl	(%rcx), %eax
	cvttsd2si	%xmm1, %edx
	subl	4(%rcx), %edx
	cvttsd2si	%xmm2, %esi
	subl	8(%rcx), %esi
	imull	%eax, %eax
	imull	%edx, %edx
	addl	%eax, %edx
	imull	%esi, %esi
	addl	%edx, %esi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_sqrt
	movsd	8(%rbx), %xmm2                  ## xmm2 = mem[0],zero
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm2
	jbe	LBB0_2
## %bb.1:
	subsd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorpd	%xmm1, %xmm1
	callq	_av_clipd
	mulsd	LCPI0_2(%rip), %xmm0
	jmp	LBB0_3
LBB0_2:
	cmpltsd	%xmm0, %xmm1
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	andpd	%xmm1, %xmm0
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_colorkey_pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_colorkey_pixel
_do_colorkey_pixel:                     ; @do_colorkey_pixel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	fcvtzs	w8, d0
	ldr	x9, [x0]
	ldp	w10, w11, [x9]
	sub	w8, w8, w10
	fcvtzs	w10, d1
	sub	w10, w10, w11
	fcvtzs	w11, d2
	ldr	w9, [x9, #8]
	sub	w9, w11, w9
	mul	w8, w8, w8
	madd	w8, w10, w10, w8
	madd	w8, w9, w9, w8
	scvtf	d0, w8
	mov	x8, #211243671486464
	movk	x8, #16623, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	bl	_sqrt
	ldp	d1, d2, [x19, #8]
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d3, x8
	fcmp	d1, d3
	b.le	LBB0_2
; %bb.1:
	fsub	d0, d0, d2
	fdiv	d0, d0, d1
	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_3
LBB0_2:
	fcmp	d0, d2
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d0, x8
	movi	d1, #0000000000000000
	fcsel	d0, d0, d1, gt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_colorkey_pixel
.subsections_via_symbols
