	.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_bckc
LCPI0_0:
	.quad	0x406fe00000000000              ## double 255
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gpc_bckc:                              ## @gpc_bckc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpl	$255, %eax
	jb	LBB0_4
## %bb.3:
	movupd	8(%rbx), %xmm0
	movupd	%xmm0, 8(%r15)
	movq	24(%rbx), %rax
	jmp	LBB0_5
LBB0_1:
	movupd	(%r14), %xmm0
	movupd	%xmm0, 8(%r15)
	movq	16(%r14), %rax
	jmp	LBB0_5
LBB0_4:
	cvtsi2sd	%eax, %xmm2
	divsd	LCPI0_0(%rip), %xmm2
	movsd	%xmm2, -40(%rbp)                ## 8-byte Spill
	movq	_sRGB_to_d@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rbx), %rcx
	cvtsi2sdl	24(%r14), %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	mulsd	%xmm0, %xmm1
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	callq	_sRGB
	movq	%rax, 8(%r15)
	movq	(%r12), %rax
	movq	16(%rbx), %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sdl	28(%r14), %xmm1
	mulsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	mulsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	callq	_sRGB
	movq	%rax, 16(%r15)
	movq	(%r12), %rax
	movq	24(%rbx), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sdl	32(%r14), %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	(%rax,%rcx,8), %xmm1
	addsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	_sRGB
LBB0_5:
	movq	%rax, 24(%r15)
	movl	$255, (%r15)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sRGB_to_d,8,3                  ## @sRGB_to_d
	.no_dead_strip	_gpc_bckc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpc_bckc
_gpc_bckc:                              ; @gpc_bckc
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x21, x1
	cmp	w8, #255
	b.lo	LBB0_4
; %bb.2:
	ldur	q0, [x21, #8]
	stur	q0, [x19, #8]
	ldr	x0, [x21, #24]
	b	LBB0_5
LBB0_3:
	ldr	q0, [x20]
	stur	q0, [x19, #8]
	ldr	x0, [x20, #16]
	b	LBB0_5
LBB0_4:
	scvtf	d0, w8
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d1, x8
Lloh0:
	adrp	x22, _sRGB_to_d@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sRGB_to_d@GOTPAGEOFF]
	fdiv	d8, d0, d1
	ldr	x8, [x22]
	ldr	x9, [x21, #8]
	ldr	d0, [x8, x9, lsl #3]
	ldr	s1, [x20, #24]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmov	d2, #1.00000000
	fsub	d9, d2, d8
	fmul	d1, d9, d1
	fmadd	d0, d0, d8, d1
	bl	_sRGB
	ldr	x8, [x22]
	ldr	x9, [x21, #16]
	ldr	d0, [x8, x9, lsl #3]
	str	x0, [x19, #8]
	ldr	s1, [x20, #28]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmul	d1, d9, d1
	fmadd	d0, d0, d8, d1
	bl	_sRGB
	ldr	x8, [x22]
	ldr	x9, [x21, #24]
	ldr	d0, [x8, x9, lsl #3]
	str	x0, [x19, #16]
	ldr	s1, [x20, #32]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmul	d1, d9, d1
	fmadd	d0, d0, d8, d1
	bl	_sRGB
LBB0_5:
	str	x0, [x19, #24]
	mov	w8, #255
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sRGB_to_d,8,3                  ; @sRGB_to_d
	.no_dead_strip	_gpc_bckc
.subsections_via_symbols
