	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TIFFClampDoubleToInt8
LCPI0_0:
	.quad	0x405fc00000000000              ## double 127
LCPI0_1:
	.quad	0xc060000000000000              ## double -128
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TIFFClampDoubleToInt8:                 ## @TIFFClampDoubleToInt8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$127, %eax
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_2
## %bb.1:
	ucomisd	%xmm0, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	$-128, %ecx
	cmovpl	%ecx, %eax
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	cmoval	%ecx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TIFFClampDoubleToInt8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFClampDoubleToInt8
_TIFFClampDoubleToInt8:                 ; @TIFFClampDoubleToInt8
	.cfi_startproc
; %bb.0:
	mov	x8, #211106232532992
	movk	x8, #16479, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_2
; %bb.1:
	mov	w0, #127
	ret
LBB0_2:
	fcmp	d0, d0
	mov	x8, #-4584664420663164928
	fmov	d1, x8
	fccmp	d0, d1, #8, vc
	fcvtzs	w8, d0
	mov	w9, #-128
	csel	w0, w9, w8, mi
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TIFFClampDoubleToInt8
.subsections_via_symbols
