	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function constrain_rgb
_constrain_rgb:                         ## @constrain_rgb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	xorpd	%xmm0, %xmm0
	minsd	%xmm1, %xmm0
	minsd	(%rsi), %xmm0
	minsd	(%rdx), %xmm0
	xorpd	%xmm2, %xmm2
	xorl	%eax, %eax
	ucomisd	%xmm0, %xmm2
	jbe	LBB0_2
## %bb.1:
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdi)
	movsd	(%rsi), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsi)
	movsd	(%rdx), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdx)
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_constrain_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function constrain_rgb
_constrain_rgb:                         ; @constrain_rgb
	.cfi_startproc
; %bb.0:
	ldr	d0, [x0]
	movi	d1, #0000000000000000
	fmin	d1, d0, d1
	ldr	d2, [x1]
	fcmp	d1, d2
	fcsel	d1, d1, d2, mi
	ldr	d2, [x2]
	fcmp	d1, d2
	fcsel	d1, d1, d2, mi
	fcmp	d1, #0.0
	b.pl	LBB0_2
; %bb.1:
	fsub	d0, d0, d1
	str	d0, [x0]
	ldr	d0, [x1]
	fsub	d0, d0, d1
	str	d0, [x1]
	ldr	d0, [x2]
	fsub	d0, d0, d1
	str	d0, [x2]
	mov	w0, #1
	ret
LBB0_2:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_constrain_rgb
.subsections_via_symbols
