	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_accept_new_connections         ## -- Begin function accept_new_connections
	.p2align	4, 0x90
_accept_new_connections:                ## @accept_new_connections
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$40, -84(%rbp)
	leaq	-136(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-84(%rbp), %rdx
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_accept
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	js	LBB0_6
## %bb.1:
	leaq	-136(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_Connections@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	(%r14,%r14,4), %rbx
	leaq	(%r15,%rbx,8), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%r12d, (%r15,%rbx,8)
	movq	%r13, 32(%r15,%rbx,8)
	movq	_conn_generation@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	incq	%rax
	movq	%rax, (%rcx)
	movq	%rax, 24(%r15,%rbx,8)
	movq	_C_WANTRD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15,%rbx,8)
	leaq	16(%r15,%rbx,8), %rdi
	movl	12(%r15,%rbx,8), %esi
	movq	_BUFF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_init_builtin_buffer
	leaq	(%r15,%rbx,8), %rdi
	addq	$8, %rdi
	movl	4(%r15,%rbx,8), %esi
	leaq	-136(%rbp), %rbx
	movl	(%r13), %edx
	callq	_init_builtin_buffer
	movq	_server_read_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_epoll_sethandler
	movq	_EVT_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVT_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_epoll_insert
	movq	_active_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$40, -84(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	leaq	-84(%rbp), %rdx
	callq	_accept
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_MAX_EVENTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setl	%dil
	callq	_assert
	movq	_Events@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r12d, %r14d
	leaq	(%r15,%r14,8), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$40, %edx
	callq	_memcpy
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r15,%r14,8), %edi
	leaq	-80(%rbp), %rsi
	callq	_conv_addr
	movl	(%r15,%r14,8), %ecx
	movl	%ebx, %edi
	leaq	-136(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_CONNECTIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_9
## %bb.7:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_EVA_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.13:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept(%d) unexpectedly returns %d\n"

	.comm	_MAX_EVENTS,4,2                 ## @MAX_EVENTS
	.comm	_Events,8,3                     ## @Events
L_.str.1:                               ## @.str.1
	.asciz	"accepted incoming connection at %s:%d, fd=%d\n"

	.comm	_MAX_CONNECTIONS,4,2            ## @MAX_CONNECTIONS
	.comm	_Connections,8,3                ## @Connections
	.comm	_conn_generation,8,3            ## @conn_generation
	.comm	_C_WANTRD,4,2                   ## @C_WANTRD
	.comm	_BUFF_SIZE,4,2                  ## @BUFF_SIZE
	.comm	_server_read_write,4,2          ## @server_read_write
	.comm	_EVT_READ,4,2                   ## @EVT_READ
	.comm	_EVT_SPEC,4,2                   ## @EVT_SPEC
	.comm	_active_connections,4,2         ## @active_connections
	.comm	_EVA_CONTINUE,4,2               ## @EVA_CONTINUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_accept_new_connections         ; -- Begin function accept_new_connections
	.p2align	2
_accept_new_connections:                ; @accept_new_connections
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w25, #40
	str	w25, [sp, #28]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x1, sp, #32
	add	x2, sp, #28
	mov	x0, x19
	bl	_accept
	mov	x22, x0
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh3:
	adrp	x21, _conn_generation@GOTPAGE
Lloh4:
	ldr	x21, [x21, _conn_generation@GOTPAGEOFF]
Lloh5:
	adrp	x26, _BUFF_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _BUFF_SIZE@GOTPAGEOFF]
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
Lloh7:
	adrp	x27, _active_connections@GOTPAGE
Lloh8:
	ldr	x27, [x27, _active_connections@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _Connections@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Connections@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	madd	x24, x28, x25, x8
	mov	x0, x24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w22, [x24]
	str	x23, [x24, #32]
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	str	x8, [x24, #24]
Lloh12:
	adrp	x8, _C_WANTRD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _C_WANTRD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x24, #20]
	add	x0, x24, #16
	ldr	w1, [x24, #12]
	ldr	w2, [x26]
	bl	_init_builtin_buffer
	add	x0, x24, #8
	ldr	w1, [x24, #4]
	ldr	w2, [x26]
	bl	_init_builtin_buffer
Lloh15:
	adrp	x8, _server_read_write@GOTPAGE
Lloh16:
	ldr	x8, [x8, _server_read_write@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x24
	bl	_epoll_sethandler
Lloh18:
	adrp	x8, _EVT_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVT_READ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _EVT_SPEC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EVT_SPEC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_epoll_insert
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [sp, #28]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x1, sp, #32
	add	x2, sp, #28
	mov	x0, x19
	bl	_accept
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh24:
	adrp	x8, _MAX_EVENTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_EVENTS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, lt
	bl	_assert
Lloh27:
	adrp	x8, _Events@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Events@GOTPAGEOFF]
Lloh29:
	ldr	x20, [x8]
	mov	w28, w22
	add	x23, x20, w22, uxtw #3
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #40
	bl	_memcpy
Lloh30:
	adrp	x8, _verbosity@GOTPAGE
Lloh31:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w24, [x8]
	add	x8, x20, x28, lsl #3
	ldr	w0, [x8, #4]
	add	x1, sp, #72
	bl	_conv_addr
	ldr	w8, [x23]
	stp	x8, x22, [sp, #8]
	str	x0, [sp]
	mov	x0, x24
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh38:
	adrp	x8, _MAX_CONNECTIONS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAX_CONNECTIONS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_close
	b	LBB0_3
LBB0_8:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	tbz	w8, #31, LBB0_11
; %bb.9:
Lloh41:
	adrp	x8, _verbosity@GOTPAGE
Lloh42:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.10:
Lloh44:
	adrp	x8, _stderr@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x19, x22, [sp]
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_11:
Lloh49:
	adrp	x8, _EVA_CONTINUE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EVA_CONTINUE@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept(%d) unexpectedly returns %d\n"

	.comm	_MAX_EVENTS,4,2                 ; @MAX_EVENTS
	.comm	_Events,8,3                     ; @Events
l_.str.1:                               ; @.str.1
	.asciz	"accepted incoming connection at %s:%d, fd=%d\n"

	.comm	_MAX_CONNECTIONS,4,2            ; @MAX_CONNECTIONS
	.comm	_Connections,8,3                ; @Connections
	.comm	_conn_generation,8,3            ; @conn_generation
	.comm	_C_WANTRD,4,2                   ; @C_WANTRD
	.comm	_BUFF_SIZE,4,2                  ; @BUFF_SIZE
	.comm	_server_read_write,4,2          ; @server_read_write
	.comm	_EVT_READ,4,2                   ; @EVT_READ
	.comm	_EVT_SPEC,4,2                   ; @EVT_SPEC
	.comm	_active_connections,4,2         ; @active_connections
	.comm	_EVA_CONTINUE,4,2               ; @EVA_CONTINUE
.subsections_via_symbols
