	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_respond_cache
_ws_respond_cache:                      ## @ws_respond_cache
	.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, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_send_buffer
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_4:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	callq	_chop_nchars
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	subl	%r15d, (%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EPIPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.9:
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ws_set_status                  ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_ws_clear_queue
LBB0_7:
	movl	%r15d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.3:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EPIPE,8,3                      ## @EPIPE
	.comm	_WS_ERR,4,2                     ## @WS_ERR
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.no_dead_strip	_ws_respond_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_respond_cache
_ws_respond_cache:                      ; @ws_respond_cache
	.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
	ldr	x21, [x0]
	ldp	w2, w1, [x21]
	bl	_send_buffer
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_3
LBB0_1:
	ldp	w2, w0, [x21]
	mov	x1, x20
	bl	_chop_nchars
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x21]
	sub	w8, w8, w20
	str	w8, [x21]
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EPIPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPIPE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #-1
	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
	b	_ws_set_status
LBB0_5:
	mov	x0, x19
	bl	_ws_clear_queue
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _EWOULDBLOCK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EWOULDBLOCK@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_1
; %bb.7:
	mov	w20, #-1
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EPIPE,8,3                      ; @EPIPE
	.comm	_WS_ERR,4,2                     ; @WS_ERR
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.no_dead_strip	_ws_respond_cache
.subsections_via_symbols
