	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gdColorMatch
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0x4107d01800000000              ## double 195075
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gdColorMatch:                          ## @gdColorMatch
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movl	%edx, %ebx
	movl	%edi, %r12d
	movl	%esi, %r14d
	callq	_gdImageRed
	movl	%eax, %r15d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_gdImageRed
	subl	%eax, %r15d
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	callq	_gdImageGreen
	movl	%eax, %r13d
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	callq	_gdImageGreen
	subl	%eax, %r13d
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_gdImageBlue
	movl	%eax, %r14d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_gdImageBlue
	subl	%eax, %r14d
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageAlpha
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageAlpha
	subl	%eax, %ebx
	imull	%r15d, %r15d
	imull	%r13d, %r13d
	addl	%r15d, %r13d
	imull	%r14d, %r14d
	addl	%r13d, %r14d
	imull	%ebx, %ebx
	addl	%r14d, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	xorl	%eax, %eax
	ucomisd	%xmm0, %xmm1
	seta	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gdColorMatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdColorMatch
_gdColorMatch:                          ; @gdColorMatch
	.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
	fmov	s8, s0
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_gdImageRed
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gdImageRed
	sub	w23, w22, w0
	mov	x0, x21
	mov	x1, x20
	bl	_gdImageGreen
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gdImageGreen
	sub	w24, w22, w0
	mov	x0, x21
	mov	x1, x20
	bl	_gdImageBlue
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gdImageBlue
	sub	w22, w22, w0
	mov	x0, x21
	mov	x1, x20
	bl	_gdImageAlpha
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gdImageAlpha
	sub	w8, w20, w0
	mul	w9, w23, w23
	madd	w9, w24, w24, w9
	madd	w9, w22, w22, w9
	madd	w8, w8, w8, w9
	scvtf	d0, w8
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x8, #228801497792512
	movk	x8, #16647, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvt	d1, s8
	fcmp	d0, d1
	cset	w0, mi
	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	_gdColorMatch
.subsections_via_symbols
