	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ucl_fd_append_double
LCPI0_0:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3e7ad7f29abcaf48              ## double 9.9999999999999995E-8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ucl_fd_append_double:                  ## @ucl_fd_append_double
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movapd	%xmm0, %xmm1
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %r14d
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	ucomisd	%xmm1, %xmm0
	jne	LBB0_2
	jp	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	andpd	LCPI0_0(%rip), %xmm2
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_4
## %bb.3:
	movq	_DBL_DIG@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$64, %esi
	movb	$2, %al
	callq	_snprintf
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	leaq	-96(%rbp), %rdi
	movl	$64, %esi
	movapd	%xmm1, %xmm0
	movb	$1, %al
	callq	_snprintf
LBB0_6:
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.1lf"

L_.str.1:                               ## @.str.1
	.asciz	"%.*lg"

	.comm	_DBL_DIG,4,2                    ## @DBL_DIG
L_.str.2:                               ## @.str.2
	.asciz	"%lf"

	.no_dead_strip	_ucl_fd_append_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucl_fd_append_double
_ucl_fd_append_double:                  ; @ucl_fd_append_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w19, [x0]
	fcvtzs	w8, d0
	scvtf	d1, w8
	fcmp	d1, d0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	fabd	d1, d0, d1
	mov	x8, #44872
	movk	x8, #39612, lsl #16
	movk	x8, #55282, lsl #32
	movk	x8, #15994, lsl #48
	fmov	d2, x8
	fcmp	d1, d2
	b.pl	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _DBL_DIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBL_DIG@GOTPAGEOFF]
Lloh7:
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	str	d0, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	fmov	d0, d1
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_5:
	add	x0, sp, #8
	mov	w1, #64
LBB0_6:
	bl	_snprintf
	add	x0, sp, #8
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_write
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.1lf"

l_.str.1:                               ; @.str.1
	.asciz	"%.*lg"

	.comm	_DBL_DIG,4,2                    ; @DBL_DIG
l_.str.2:                               ; @.str.2
	.asciz	"%lf"

	.no_dead_strip	_ucl_fd_append_double
.subsections_via_symbols
