	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accept_connection
_accept_connection:                     ## @accept_connection
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	_accept_connection(%rip), %rdi
	callq	_TRACE_IN
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	leaq	-72(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	movl	%eax, %edi
	callq	_getpeereid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERR_2
	jmp	LBB0_10
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERR_2
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.2:
	leaq	_accept_connection(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE_OUT                      ## TAILCALL
LBB0_5:
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_init_query_state
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_EVFILT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %r15
	movq	_EV_ONESHOT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r15), %ecx
	imull	$1000, 4(%r12), %r9d            ## imm = 0x3E8
	movq	%r12, (%rsp)
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	callq	_EV_SET
	leaq	-52(%rbp), %rdi
	movq	_EVFILT_READ@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%r15), %ecx
	movl	(%rax), %edx
	movq	_NOTE_LOWAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r12), %r9d
	movq	%r12, (%rsp)
	movl	%ebx, %esi
	callq	_EV_SET
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-64(%rbp), %r9
	callq	_kevent
	testl	%eax, %eax
	jns	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	xorl	%eax, %eax
	callq	_LOG_ERR_2
LBB0_10:
	leaq	_accept_connection(%rip), %rdi
	callq	_TRACE_OUT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept_connection"

L_.str.1:                               ## @.str.1
	.asciz	"error %d during accept()"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"error %d during getpeereid()"

L_.str.3:                               ## @.str.3
	.asciz	"can't init query_state"

	.comm	_EVFILT_TIMER,4,2               ## @EVFILT_TIMER
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ## @EV_ONESHOT
	.comm	_EVFILT_READ,4,2                ## @EVFILT_READ
	.comm	_NOTE_LOWAT,4,2                 ## @NOTE_LOWAT
L_.str.4:                               ## @.str.4
	.asciz	"kevent error"

	.no_dead_strip	_accept_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accept_connection
_accept_connection:                     ; @accept_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x0, _accept_connection@PAGE
Lloh4:
	add	x0, x0, _accept_connection@PAGEOFF
	bl	_TRACE_IN
	ldr	w0, [x20]
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
	add	x1, sp, #20
	add	x2, sp, #16
	bl	_getpeereid
	cbz	x0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	bl	_LOG_ERR_2
LBB0_4:
Lloh12:
	adrp	x0, _accept_connection@PAGE
Lloh13:
	add	x0, x0, _accept_connection@PAGEOFF
	bl	_TRACE_OUT
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LOG_ERR_2
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.7:
Lloh27:
	adrp	x0, _accept_connection@PAGE
Lloh28:
	add	x0, x0, _accept_connection@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_TRACE_OUT
LBB0_8:
	ldp	w3, w2, [sp, #16]
	mov	x0, x20
	mov	w1, #4
	bl	_init_query_state
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh29:
	adrp	x8, _EVFILT_TIMER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EVFILT_TIMER@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x22, _EV_ADD@GOTPAGE
Lloh33:
	ldr	x22, [x22, _EV_ADD@GOTPAGEOFF]
Lloh34:
	adrp	x23, _EV_ONESHOT@GOTPAGE
Lloh35:
	ldr	x23, [x23, _EV_ONESHOT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w3, w9, w8
	ldr	w8, [x21, #4]
	mov	w9, #1000
	mul	w5, w8, w9
	add	x24, sp, #32
	add	x0, sp, #32
	mov	x1, x20
	mov	w4, #0
	mov	x6, x21
	bl	_EV_SET
	orr	x0, x24, #0x4
Lloh36:
	adrp	x8, _EVFILT_READ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EVFILT_READ@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w3, w9, w8
Lloh39:
	adrp	x8, _NOTE_LOWAT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NOTE_LOWAT@GOTPAGEOFF]
Lloh41:
	ldr	w4, [x8]
	ldr	w5, [x21]
	mov	x1, x20
	mov	x6, x21
	bl	_EV_SET
	ldr	w0, [x19]
	add	x1, sp, #32
	add	x5, sp, #24
	mov	w2, #2
	mov	x3, #0
	mov	w4, #0
	bl	_kevent
	tbz	w0, #31, LBB0_4
; %bb.10:
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_11:
Lloh46:
	adrp	x0, l_.str@PAGE
Lloh47:
	add	x0, x0, l_.str@PAGEOFF
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept_connection"

l_.str.1:                               ; @.str.1
	.asciz	"error %d during accept()"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"error %d during getpeereid()"

l_.str.3:                               ; @.str.3
	.asciz	"can't init query_state"

	.comm	_EVFILT_TIMER,4,2               ; @EVFILT_TIMER
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ; @EV_ONESHOT
	.comm	_EVFILT_READ,4,2                ; @EVFILT_READ
	.comm	_NOTE_LOWAT,4,2                 ; @NOTE_LOWAT
l_.str.4:                               ; @.str.4
	.asciz	"kevent error"

	.no_dead_strip	_accept_connection
.subsections_via_symbols
