	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_listening_connection_ext  ## -- Begin function init_listening_connection_ext
	.p2align	4, 0x90
_init_listening_connection_ext:         ## @init_listening_connection_ext
	.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	%r8d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_check_conn_functions
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_13
## %bb.1:
	movq	_MAX_CONNECTIONS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_13
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_max_connection@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_4
## %bb.3:
	movl	%ebx, (%rax)
LBB0_4:
	movq	_Connections@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%ebx, %r13
	shlq	$5, %r13
	leaq	(%r15,%r13), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%ebx, (%r15,%r13)
	movq	%r14, 24(%r15,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15,%r13)
	movq	_ct_listen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15,%r13)
	movq	_conn_listen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15,%r13)
	movq	_SM_LOWPRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %eax
	movl	$10, %esi
	cmovel	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	_accept_new_connections_gateway@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r12, %rcx
	callq	_epoll_sethandler
	movq	_EVT_RWX@GOTPCREL(%rip), %rax
	movq	_EVT_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_epoll_insert
	movq	_SM_SPECIAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_C_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15,%r13)
LBB0_6:
	movq	_SM_NOQACK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_C_NOQACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15,%r13)
	movl	(%r12), %edi
	callq	_disable_qack
LBB0_8:
	movq	_SM_IPV6@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_C_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15,%r13)
LBB0_10:
	movq	_SM_RAWMSG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_C_RAWMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15,%r13)
LBB0_12:
	movq	_listening_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CONNECTIONS,4,2            ## @MAX_CONNECTIONS
	.comm	_max_connection,4,2             ## @max_connection
	.comm	_Connections,8,3                ## @Connections
	.comm	_ct_listen,4,2                  ## @ct_listen
	.comm	_conn_listen,4,2                ## @conn_listen
	.comm	_SM_LOWPRIO,4,2                 ## @SM_LOWPRIO
	.comm	_accept_new_connections_gateway,4,2 ## @accept_new_connections_gateway
	.comm	_EVT_RWX,4,2                    ## @EVT_RWX
	.comm	_EVT_LEVEL,4,2                  ## @EVT_LEVEL
	.comm	_SM_SPECIAL,4,2                 ## @SM_SPECIAL
	.comm	_C_SPECIAL,4,2                  ## @C_SPECIAL
	.comm	_SM_NOQACK,4,2                  ## @SM_NOQACK
	.comm	_C_NOQACK,4,2                   ## @C_NOQACK
	.comm	_SM_IPV6,4,2                    ## @SM_IPV6
	.comm	_C_IPV6,4,2                     ## @C_IPV6
	.comm	_SM_RAWMSG,4,2                  ## @SM_RAWMSG
	.comm	_C_RAWMSG,4,2                   ## @C_RAWMSG
	.comm	_listening_connections,4,2      ## @listening_connections
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_listening_connection_ext  ; -- Begin function init_listening_connection_ext
	.p2align	2
_init_listening_connection_ext:         ; @init_listening_connection_ext
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x1
	bl	_check_conn_functions
	mov	x8, x0
	mov	w0, #-1
	tbnz	x8, #63, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _MAX_CONNECTIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CONNECTIONS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_13
; %bb.2:
Lloh3:
	adrp	x8, _max_connection@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max_connection@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w21
	b.ge	LBB0_4
; %bb.3:
	str	w21, [x8]
LBB0_4:
Lloh5:
	adrp	x8, _Connections@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Connections@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x8]
	sxtw	x26, w21
	add	x20, x25, x26, lsl #5
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w21, [x20]
	stp	x23, x24, [x20, #16]
Lloh8:
	adrp	x8, _ct_listen@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ct_listen@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _conn_listen@GOTPAGE
Lloh12:
	ldr	x9, [x9, _conn_listen@GOTPAGEOFF]
	str	w8, [x20, #12]
Lloh13:
	ldr	w8, [x9]
	str	w8, [x20, #8]
Lloh14:
	adrp	x8, _SM_LOWPRIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SM_LOWPRIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	mov	w8, #10
	csel	w1, w22, w8, eq
Lloh17:
	adrp	x8, _accept_new_connections_gateway@GOTPAGE
Lloh18:
	ldr	x8, [x8, _accept_new_connections_gateway@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x20
	bl	_epoll_sethandler
Lloh20:
	adrp	x8, _EVT_RWX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVT_RWX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _EVT_LEVEL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EVT_LEVEL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_epoll_insert
Lloh26:
	adrp	x8, _SM_SPECIAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SM_SPECIAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
Lloh29:
	adrp	x8, _C_SPECIAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _C_SPECIAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_6:
Lloh32:
	adrp	x8, _SM_NOQACK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SM_NOQACK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
Lloh35:
	adrp	x8, _C_NOQACK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _C_NOQACK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	add	x9, x25, x26, lsl #5
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	ldr	w0, [x20]
	bl	_disable_qack
LBB0_8:
Lloh38:
	adrp	x8, _SM_IPV6@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SM_IPV6@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
Lloh41:
	adrp	x8, _C_IPV6@GOTPAGE
Lloh42:
	ldr	x8, [x8, _C_IPV6@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	add	x9, x25, x26, lsl #5
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_10:
Lloh44:
	adrp	x8, _SM_RAWMSG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SM_RAWMSG@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_12
; %bb.11:
Lloh47:
	adrp	x8, _C_RAWMSG@GOTPAGE
Lloh48:
	ldr	x8, [x8, _C_RAWMSG@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	add	x9, x25, x26, lsl #5
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_12:
	mov	w0, #0
Lloh50:
	adrp	x8, _listening_connections@GOTPAGE
Lloh51:
	ldr	x8, [x8, _listening_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CONNECTIONS,4,2            ; @MAX_CONNECTIONS
	.comm	_max_connection,4,2             ; @max_connection
	.comm	_Connections,8,3                ; @Connections
	.comm	_ct_listen,4,2                  ; @ct_listen
	.comm	_conn_listen,4,2                ; @conn_listen
	.comm	_SM_LOWPRIO,4,2                 ; @SM_LOWPRIO
	.comm	_accept_new_connections_gateway,4,2 ; @accept_new_connections_gateway
	.comm	_EVT_RWX,4,2                    ; @EVT_RWX
	.comm	_EVT_LEVEL,4,2                  ; @EVT_LEVEL
	.comm	_SM_SPECIAL,4,2                 ; @SM_SPECIAL
	.comm	_C_SPECIAL,4,2                  ; @C_SPECIAL
	.comm	_SM_NOQACK,4,2                  ; @SM_NOQACK
	.comm	_C_NOQACK,4,2                   ; @C_NOQACK
	.comm	_SM_IPV6,4,2                    ; @SM_IPV6
	.comm	_C_IPV6,4,2                     ; @C_IPV6
	.comm	_SM_RAWMSG,4,2                  ; @SM_RAWMSG
	.comm	_C_RAWMSG,4,2                   ; @C_RAWMSG
	.comm	_listening_connections,4,2      ; @listening_connections
.subsections_via_symbols
