	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_connection_output        ## -- Begin function flush_connection_output
	.p2align	4, 0x90
_flush_connection_output:               ## @flush_connection_output
	.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
	movq	%rdi, %rbx
	callq	_out_total_processed_bytes
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_out_total_unprocessed_bytes
	addq	%r14, %rax
	jle	LBB0_1
## %bb.2:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_out_total_processed_bytes
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	movq	_C_INCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_compute_conn_events
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_epoll_insert
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
	.comm	_C_INCONN,4,2                   ## @C_INCONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_connection_output        ; -- Begin function flush_connection_output
	.p2align	2
_flush_connection_output:               ; @flush_connection_output
	.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	x19, x0
	bl	_out_total_processed_bytes
	mov	x20, x0
	mov	x0, x19
	bl	_out_total_unprocessed_bytes
	add	x8, x0, x20
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _C_WANTWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_WANTWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_out_total_processed_bytes
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _C_INCONN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_INCONN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	_compute_conn_events
	mov	x1, x0
	mov	x0, x21
	bl	_epoll_insert
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
	.comm	_C_INCONN,4,2                   ; @C_INCONN
.subsections_via_symbols
