	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_flush_out                  ## -- Begin function tmp_flush_out
	.p2align	4, 0x90
_tmp_flush_out:                         ## @tmp_flush_out
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	subl	4(%rdi), %r14d
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	testl	%r14d, %r14d
	setg	%al
	movq	_TEMP_WRITE_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	4(%rbx), %esi
	movl	20(%rbx), %edi
	movl	%r14d, %edx
	callq	_write
	movl	%eax, %r15d
	movl	%r14d, %edx
	subl	%eax, %edx
	jle	LBB0_4
## %bb.2:
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.3:
	movl	20(%rbx), %edi
	movl	4(%rbx), %esi
	addl	%r15d, %esi
	callq	_write
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %r15d
	addl	%eax, %r15d
LBB0_4:
	cmpl	%r14d, %r15d
	jne	LBB0_5
## %bb.9:
	addl	%r14d, 16(%rbx)
	movq	_tmp_bytes_written@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	testl	%r15d, %r15d
	jns	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movl	$3, %edi
	callq	_close_temp_files
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_TEMP_WRITE_BUFFER_SIZE,4,2     ## @TEMP_WRITE_BUFFER_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot write %d bytes to temporary file %s: %m\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot write %d bytes to temporary file %s: only %d bytes written\n"

	.comm	_tmp_bytes_written,4,2          ## @tmp_bytes_written
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.2:                               ## @.str.2
	.asciz	"%d bytes written to temporary file %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_flush_out                  ; -- Begin function tmp_flush_out
	.p2align	2
_tmp_flush_out:                         ; @tmp_flush_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldp	w8, w9, [x0]
	subs	w19, w8, w9
	b.eq	LBB0_7
; %bb.1:
	mov	x20, x0
	cmp	w19, #0
Lloh0:
	adrp	x8, _TEMP_WRITE_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEMP_WRITE_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w19, w8, #0, gt
	cset	w0, le
	bl	_assert
	ldr	w0, [x20, #20]
	ldr	w1, [x20, #4]
	mov	x2, x19
	bl	_write
	mov	x21, x0
	subs	w2, w19, w0
	b.le	LBB0_4
; %bb.2:
	tbnz	w21, #31, LBB0_4
; %bb.3:
	ldr	w0, [x20, #20]
	ldr	w8, [x20, #4]
	add	w1, w8, w21
	bl	_write
	cmp	w0, #0
	csel	w8, wzr, w21, lt
	add	w21, w8, w0
LBB0_4:
	cmp	w21, w19
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20, #16]
	add	w8, w8, w19
	str	w8, [x20, #16]
Lloh3:
	adrp	x8, _tmp_bytes_written@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tmp_bytes_written@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	ldr	w8, [x20, #4]
	str	w8, [x20]
Lloh5:
	adrp	x8, _verbosity@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x3, [x20, #8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_fprintf
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x3, [x20, #8]
	tbz	w21, #31, LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x2, x19
	bl	_fprintf
	mov	w0, #3
	bl	_close_temp_files
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TEMP_WRITE_BUFFER_SIZE,4,2     ; @TEMP_WRITE_BUFFER_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot write %d bytes to temporary file %s: %m\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot write %d bytes to temporary file %s: only %d bytes written\n"

	.comm	_tmp_bytes_written,4,2          ; @tmp_bytes_written
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.2:                               ; @.str.2
	.asciz	"%d bytes written to temporary file %s\n"

.subsections_via_symbols
