	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_create                  ## -- Begin function server_create
	.p2align	4, 0x90
_server_create:                         ## @server_create
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$88, %esi
	callq	_calloc
	movq	%rax, %r12
	movl	%r15d, (%rax)
	movq	%r13, 80(%rax)
	movl	%ebx, 4(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 72(%r12)
	movq	16(%rbp), %rax
	movq	%rax, 16(%r12)
	leal	(%rbx,%rbx), %r15d
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	%rax, 64(%r12)
	movl	%r14d, %edi
	movl	$88, %esi
	callq	_calloc
	movq	%rax, 48(%r12)
	movl	%r14d, 24(%r12)
	testq	%r13, %r13
	je	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.2:
	cmpl	$2, %r15d
	movl	$1, %eax
	cmovll	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%r13,%rbx,8)
	movq	64(%r12), %r13
	movq	(%r13,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_7:
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.8:
	movl	%r14d, %eax
	imulq	$88, %rax, %r14
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rbx
	movq	%r12, 56(%rbx,%r15)
	movl	%r13d, 28(%rbx,%r15)
	xorl	%edi, %edi
	callq	_epoll_create1
	movl	%eax, 32(%rbx,%r15)
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rbx,%r15), %rdi
	addq	$40, %rdi
	addq	%r15, %rbx
	movq	_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	incl	%r13d
	addq	$88, %r15
	cmpq	%r15, %r14
	jne	LBB0_9
LBB0_12:
	movq	%r12, %rdi
	addq	$36, %rdi
	movq	_timeout_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_pthread_create
	jmp	LBB0_13
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	48(%r12), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %edi
	callq	_exit
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate connection %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize epoll context. Error code %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_worker,4,2                     ## @worker
	.comm	_timeout_thread,4,2             ## @timeout_thread
L_str:                                  ## @str
	.asciz	"Failed to allocate establisted_connections array"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_create                  ; -- Begin function server_create
	.p2align	2
_server_create:                         ; @server_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #88
	bl	_calloc
	mov	x19, x0
	str	x25, [x0, #80]
	stp	w26, w22, [x0]
	str	w23, [x0, #72]
	lsl	w23, w22, #1
	stp	x24, x21, [x0, #8]
	mov	x0, x23
	mov	w1, #8
	bl	_calloc
	mov	x21, x0
	str	x0, [x19, #64]
	mov	x0, x20
	mov	w1, #88
	bl	_calloc
	str	x0, [x19, #48]
	str	w20, [x19, #24]
	cbz	x21, LBB0_13
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	cmp	w23, #1
	csinc	w23, w23, wzr, gt
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	lsl	x8, x22, #3
	str	x0, [x21, x8]
	ldr	x21, [x19, #64]
	ldr	x0, [x21, x8]
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	bl	_pthread_mutex_init
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_3
LBB0_5:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
	mov	w22, #0
	mov	w8, #88
	umull	x23, w20, w8
Lloh0:
	adrp	x24, _worker@GOTPAGE
Lloh1:
	ldr	x24, [x24, _worker@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x20, x8, x21
	str	x19, [x20, #56]
	str	w22, [x20, #28]
	mov	w0, #0
	bl	_epoll_create1
	str	w0, [x20, #32]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x20, #40
	ldr	w2, [x24]
	mov	x1, #0
	mov	x3, x20
	bl	_pthread_create
	add	w22, w22, #1
	add	x21, x21, #88
	cmp	x23, x21
	b.ne	LBB0_7
LBB0_9:
	add	x0, x19, #36
Lloh2:
	adrp	x8, _timeout_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _timeout_thread@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [x19, #48]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	str	x22, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #-1
	bl	_exit
LBB0_13:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate connection %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize epoll context. Error code %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_worker,4,2                     ; @worker
	.comm	_timeout_thread,4,2             ; @timeout_thread
l_str:                                  ; @str
	.asciz	"Failed to allocate establisted_connections array"

.subsections_via_symbols
