	.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_b16g
LCPI0_0:
	.quad	0x40efffe000000000              ## double 65535
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gpc_b16g:                              ## @gpc_b16g
	.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
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	mulsd	8(%rdx), %xmm2
	divsd	%xmm1, %xmm0
	mulsd	16(%rsi), %xmm0
	addsd	%xmm2, %xmm0
	callq	_sRGB
	jmp	LBB0_3
LBB0_1:
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
LBB0_3:
	movsd	%xmm0, 24(%rbx)
	movsd	%xmm0, 16(%rbx)
	movsd	%xmm0, 8(%rbx)
	movl	$255, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gpc_b16g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpc_b16g
_gpc_b16g:                              ; @gpc_b16g
	.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
	ldr	w8, [x1]
	cmp	w8, #0
	b.le	LBB0_2
; %bb.1:
	scvtf	d0, w8
	mov	x8, #281337537757184
	movk	x8, #16623, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fmov	d2, #1.00000000
	fsub	d2, d2, d0
	fdiv	d0, d0, d1
	ldr	d1, [x1, #16]
	ldr	d3, [x2, #8]
	fmul	d2, d2, d3
	fmadd	d0, d1, d0, d2
	bl	_sRGB
	b	LBB0_3
LBB0_2:
	ldr	d0, [x2]
LBB0_3:
	stp	d0, d0, [x19, #16]
	str	d0, [x19, #8]
	mov	w8, #255
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gpc_b16g
.subsections_via_symbols
