	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fcgi_flush                     ## -- Begin function fcgi_flush
	.p2align	4, 0x90
_fcgi_flush:                            ## @fcgi_flush
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_close_packet
	movq	(%rbx), %rsi
	movq	8(%rbx), %r12
	movl	%r12d, %r14d
	subl	%esi, %r14d
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	40(%r12), %rdi
	movq	_FCGI_END_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movl	$4, %ecx
	callq	_fcgi_make_header
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movups	%xmm0, 24(%r12)
	movq	_FCGI_REQUEST_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	addl	$48, %r14d
	movq	(%rbx), %rsi
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_safe_write
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	%r14d, %ecx
	je	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
LBB0_4:
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FCGI_END_REQUEST,4,2           ## @FCGI_END_REQUEST
	.comm	_FCGI_REQUEST_COMPLETE,4,2      ## @FCGI_REQUEST_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fcgi_flush                     ; -- Begin function fcgi_flush
	.p2align	2
_fcgi_flush:                            ; @fcgi_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	bl	_close_packet
	ldp	x1, x22, [x19]
	sub	w20, w22, w1
	cbz	w21, LBB0_2
; %bb.1:
	add	x0, x22, #40
Lloh0:
	adrp	x8, _FCGI_END_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCGI_END_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	w3, #4
	bl	_fcgi_make_header
	movi.2d	v0, #0000000000000000
	stur	q0, [x22, #8]
	stur	q0, [x22, #24]
Lloh3:
	adrp	x8, _FCGI_REQUEST_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FCGI_REQUEST_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22]
	add	w20, w20, #48
	ldr	x1, [x19]
LBB0_2:
	mov	x0, x19
	mov	x2, x20
	bl	_safe_write
	cmp	w0, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	str	xzr, [x19, #16]
LBB0_5:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FCGI_END_REQUEST,4,2           ; @FCGI_END_REQUEST
	.comm	_FCGI_REQUEST_COMPLETE,4,2      ; @FCGI_REQUEST_COMPLETE
.subsections_via_symbols
