	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_buff_double              ## -- Begin function write_buff_double
	.p2align	4, 0x90
_write_buff_double:                     ## @write_buff_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movq	_wptr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_buff@GOTPCREL(%rip), %rcx
	movq	_BUFF_LEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	addq	$100, %rax
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_flush_buff
LBB0_2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sprintf
	addq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wptr,8,3                       ## @wptr
	.comm	_buff,8,3                       ## @buff
	.comm	_BUFF_LEN,8,3                   ## @BUFF_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lf"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_buff_double              ; -- Begin function write_buff_double
	.p2align	2
_write_buff_double:                     ; @write_buff_double
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
Lloh0:
	adrp	x19, _wptr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _wptr@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x8, x8, #100
Lloh2:
	adrp	x9, _buff@GOTPAGE
Lloh3:
	ldr	x9, [x9, _buff@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _BUFF_LEN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BUFF_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	bl	_flush_buff
LBB0_2:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	fmov	d0, d8
	bl	_sprintf
	ldr	x8, [x19]
	add	x8, x8, x0
	str	x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_wptr,8,3                       ; @wptr
	.comm	_buff,8,3                       ; @buff
	.comm	_BUFF_LEN,8,3                   ; @BUFF_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lf"

.subsections_via_symbols
