	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TIFFClampDoubleToFloat
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TIFFClampDoubleToFloat:                ## @TIFFClampDoubleToFloat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FLT_MAX@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm1, %xmm2
	maxsd	%xmm0, %xmm2
	movapd	%xmm1, %xmm3
	cmpltsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
	andnpd	%xmm2, %xmm0
	andpd	%xmm1, %xmm3
	orpd	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm3, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLT_MAX,8,3                    ## @FLT_MAX
	.no_dead_strip	_TIFFClampDoubleToFloat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFClampDoubleToFloat
_TIFFClampDoubleToFloat:                ; @TIFFClampDoubleToFloat
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FLT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fneg	d2, d1
	fcmp	d2, d0
	fcsel	d2, d2, d0, gt
	fcmp	d1, d0
	fcsel	d0, d1, d2, mi
	fcvt	s0, d0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLT_MAX,8,3                    ; @FLT_MAX
	.no_dead_strip	_TIFFClampDoubleToFloat
.subsections_via_symbols
