	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function HWB_Diff
LCPI0_0:
	.long	0x40400000                      ## float 3
LCPI0_1:
	.long	0x40c00000                      ## float 6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_HWB_Diff:                              ## @HWB_Diff
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%edi, %esi
	callq	_SETUP_RGB
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_SETUP_RGB
	leaq	-56(%rbp), %rsi
	callq	_RGB_to_HWB
	leaq	-40(%rbp), %rsi
	callq	_RGB_to_HWB
	movq	-56(%rbp), %rdi
	movq	_HWB_UNDEFINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorps	%xmm0, %xmm0
	cmpq	%rcx, %rdi
	je	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rax
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.2:
	subq	%rax, %rdi
	callq	_fabsf
	ucomiss	LCPI0_0(%rip), %xmm0
	jbe	LBB0_4
## %bb.3:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
LBB0_4:
	movss	-48(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	subss	-32(%rbp), %xmm2
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	mulss	%xmm0, %xmm0
	addss	%xmm2, %xmm0
	subss	-28(%rbp), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWB_UNDEFINED,8,3              ## @HWB_UNDEFINED
	.no_dead_strip	_HWB_Diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HWB_Diff
_HWB_Diff:                              ; @HWB_Diff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x3, x2
	mov	x2, x1
	mov	x1, x0
	bl	_SETUP_RGB
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_SETUP_RGB
	add	x1, sp, #16
	bl	_RGB_to_HWB
	mov	x1, sp
	bl	_RGB_to_HWB
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _HWB_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HWB_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	movi	d0, #0000000000000000
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	ldr	x10, [sp]
	cmp	x10, x9
	b.eq	LBB0_3
; %bb.2:
	sub	x0, x8, x10
	bl	_fabsf
	fmov	s1, #3.00000000
	fcmp	s0, s1
	fmov	s1, #6.00000000
	fsub	s1, s1, s0
	fcsel	s0, s0, s1, le
LBB0_3:
	ldp	s1, s2, [sp, #24]
	ldp	s3, s4, [sp, #8]
	fsub	s1, s1, s3
	fmul	s1, s1, s1
	fmadd	s0, s0, s0, s1
	fsub	s1, s2, s4
	fmadd	s0, s1, s1, s0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HWB_UNDEFINED,8,3              ; @HWB_UNDEFINED
	.no_dead_strip	_HWB_Diff
.subsections_via_symbols
