	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serve_cache_loop
_serve_cache_loop:                      ## @serve_cache_loop
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_check_expirations
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%ebx, -48(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, -44(%rbp)
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	leaq	-48(%rbp), %rdi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_poll
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movl	(%r15), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_10
## %bb.5:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_dup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	callq	_xfdopen
	movq	%rax, %r12
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	callq	_xfdopen
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_serve_one_client
	movq	%r12, %rdi
	callq	_fclose
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_10
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_warning_errno
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_warning_errno
	movl	%ebx, %edi
	callq	_close
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll failed"

L_.str.1:                               ## @.str.1
	.asciz	"accept failed"

L_.str.2:                               ## @.str.2
	.asciz	"dup failed"

L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"w"

	.no_dead_strip	_serve_cache_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serve_cache_loop
_serve_cache_loop:                      ; @serve_cache_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_check_expirations
	cbz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x20, _POLLIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x20]
	stp	w19, w8, [sp]
	mov	w8, #1000
	mul	w2, w0, w8
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	w8, [sp, #8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x19, x0
	bl	_dup
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_xfdopen
	mov	x19, x0
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_xfdopen
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_serve_one_client
	mov	x0, x19
	bl	_fclose
	mov	x0, x20
	bl	_fclose
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EINTR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning_errno
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warning_errno
	mov	x0, x19
	bl	_close
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll failed"

l_.str.1:                               ; @.str.1
	.asciz	"accept failed"

l_.str.2:                               ; @.str.2
	.asciz	"dup failed"

l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"w"

	.no_dead_strip	_serve_cache_loop
.subsections_via_symbols
