	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpc_glin
_gpc_glin:                              ## @gpc_glin
	.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
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	8(%rsi), %rax
	movq	16(%rsi), %rcx
	cmpq	%rax, %rdi
	jne	LBB0_3
## %bb.1:
	cmpq	%rcx, %rdi
	jne	LBB0_3
## %bb.2:
	callq	_ilinear
	jmp	LBB0_4
LBB0_3:
	movq	_sRGB_to_d@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rdi,4), %edi
	movl	(%rdx,%rax,4), %esi
	movl	(%rdx,%rcx,4), %edx
	callq	_YfromRGB
	movl	%eax, %edi
	shll	$16, %edi
	subl	%eax, %edi
	callq	_u16d
LBB0_4:
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	$65535, 24(%rbx)                ## imm = 0xFFFF
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sRGB_to_d,8,3                  ## @sRGB_to_d
	.no_dead_strip	_gpc_glin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpc_glin
_gpc_glin:                              ; @gpc_glin
	.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
	ldp	x0, x8, [x1]
	ldr	x9, [x1, #16]
	cmp	x0, x8
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_2
; %bb.1:
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
	lsl	w8, w0, #16
	sub	w0, w8, w0
	bl	_u16d
	b	LBB0_3
LBB0_2:
	bl	_ilinear
LBB0_3:
	stp	x0, x0, [x19, #8]
	str	x0, [x19]
	mov	w8, #65535
	str	w8, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sRGB_to_d,8,3                  ; @sRGB_to_d
	.no_dead_strip	_gpc_glin
.subsections_via_symbols
