	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gpc_g8b
LCPI0_0:
	.quad	0x406fe00000000000              ## double 255
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gpc_g8b:                               ## @gpc_g8b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cmpl	$255, %eax
	jb	LBB0_6
## %bb.3:
	movq	8(%rsi), %rax
	movq	16(%rsi), %rcx
	movq	24(%rsi), %r8
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	cmpq	%r8, %rax
	je	LBB0_8
LBB0_5:
	movq	_sRGB_to_d@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdx
	movl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %esi
	movl	(%rdx,%r8,4), %edx
	callq	_YfromRGB
	jmp	LBB0_7
LBB0_1:
	movq	(%r14), %rax
	jmp	LBB0_8
LBB0_6:
	cvtsi2sd	%eax, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movq	_sRGB_to_d@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rsi), %rax
	movq	16(%rsi), %rdx
	movl	(%rcx,%rax,4), %edi
	movl	(%rcx,%rdx,4), %eax
	movq	24(%rsi), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%eax, %esi
	callq	_YfromRGB
	cvtsi2sdl	8(%r14), %xmm1
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	-24(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	subsd	%xmm3, %xmm2
	mulsd	%xmm1, %xmm2
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
LBB0_7:
	callq	_sRGB
LBB0_8:
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movl	$255, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sRGB_to_d,8,3                  ## @sRGB_to_d
	.no_dead_strip	_gpc_g8b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpc_g8b
_gpc_g8b:                               ; @gpc_g8b
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	cmp	w8, #255
	b.lo	LBB0_5
; %bb.2:
	ldp	x0, x8, [x1, #8]
	ldr	x9, [x1, #24]
	cmp	x0, x8
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_7
; %bb.3:
Lloh0:
	adrp	x10, _sRGB_to_d@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sRGB_to_d@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w0, [x10, x0, lsl #2]
	ldr	w1, [x10, x8, lsl #2]
	ldr	w2, [x10, x9, lsl #2]
	bl	_YfromRGB
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
	b	LBB0_7
LBB0_5:
	scvtf	d0, w8
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
Lloh3:
	adrp	x9, _sRGB_to_d@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sRGB_to_d@GOTPAGEOFF]
	fmov	d1, x8
Lloh5:
	ldr	x9, [x9]
	ldp	x8, x10, [x1, #8]
	ldr	w0, [x9, x8, lsl #2]
	fdiv	d8, d0, d1
	ldr	w8, [x9, x10, lsl #2]
	ldr	x10, [x1, #24]
	ldr	w2, [x9, x10, lsl #2]
	mov	x1, x8
	bl	_YfromRGB
	ldr	s1, [x20, #8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmov	d2, #1.00000000
	fsub	d2, d2, d8
	fmul	d1, d2, d1
	fmadd	d0, d8, d0, d1
LBB0_6:
	bl	_sRGB
LBB0_7:
	stp	x0, x0, [x19, #16]
	str	x0, [x19, #8]
	mov	w8, #255
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sRGB_to_d,8,3                  ; @sRGB_to_d
	.no_dead_strip	_gpc_g8b
.subsections_via_symbols
