	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TtsAcceptProc                  ## -- Begin function TtsAcceptProc
	.p2align	4, 0x90
_TtsAcceptProc:                         ## @TtsAcceptProc
	.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, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_9
## %bb.1:
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	cmpl	$0, (%r13)
	je	LBB0_3
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_AcceptInitEx
	movl	24(%r13), %edi
	callq	_LIST_NUM
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	incl	%ebx
	movl	24(%r13), %edi
	movl	%edx, %esi
	callq	_LIST_DATA
	movq	%rax, %r15
	movl	$1, (%rax)
	movl	8(%rax), %edi
	callq	_LockList
	movl	$32, %edi
	callq	_ZeroMalloc
	movq	%rax, %r12
	movq	16(%r13), %rax
	incq	%rax
	movq	%rax, 16(%r13)
	movq	%rax, (%r12)
	movq	%r14, 24(%r12)
	movq	$600000, 16(%r12)               ## imm = 0x927C0
	xorl	%eax, %eax
	callq	_Tick64
	movl	%eax, 8(%r12)
	leaq	L_.str(%rip), %rdi
	callq	__UU
	movq	(%r12), %rcx
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	movl	%ebx, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_UniFormat
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	movq	%rbx, %rdx
	movl	%r14d, %ebx
	callq	_TtPrint
	movl	8(%r15), %edi
	movq	%r12, %rsi
	callq	_Insert
	movl	$1, (%r15)
	movl	8(%r15), %edi
	callq	_UnlockList
	movl	4(%r15), %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_SetSockEvent
	cmpl	$0, (%r13)
	jne	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_Accept
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_SleepThread
	cmpl	$0, (%r13)
	je	LBB0_4
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TTS_ACCEPTED"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TtsAcceptProc                  ; -- Begin function TtsAcceptProc
	.p2align	2
_TtsAcceptProc:                         ; @TtsAcceptProc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	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]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.4:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w27, #0
	lsl	w22, w12, #2
	mov	w28, #1
Lloh11:
	adrp	x23, l_.str@PAGE
Lloh12:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	mov	w1, #1
	bl	_AcceptInitEx
	ldr	w0, [x20, #24]
	bl	_LIST_NUM
	sdiv	w8, w27, w0
	msub	w1, w8, w0, w27
	add	w27, w27, #1
	ldr	w0, [x20, #24]
	bl	_LIST_DATA
	mov	x24, x0
	str	w28, [x0]
	ldr	w0, [x0, #8]
	bl	_LockList
	mov	w0, #32
	bl	_ZeroMalloc
	mov	x26, x0
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	str	x8, [x0]
	mov	w8, #10176
	movk	w8, #9, lsl #16
	stp	x8, x25, [x0, #16]
	bl	_Tick64
	str	w0, [x26, #8]
	mov	x0, x23
	bl	__UU
	mov	x2, x0
	ldr	x3, [x26]
	ldp	w5, w4, [x25]
	mov	x0, x21
	mov	x1, x22
	bl	_UniFormat
	ldp	w1, w0, [x20, #4]
	mov	x2, x21
	bl	_TtPrint
	ldr	w0, [x24, #8]
	mov	x1, x26
	bl	_Insert
	str	w28, [x24]
	ldr	w0, [x24, #8]
	bl	_UnlockList
	ldr	w0, [x24, #4]
	bl	_SetSockEvent
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_Accept
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #10
	bl	_SleepThread
	ldr	w8, [x20]
	cbz	w8, LBB0_7
	b	LBB0_3
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TTS_ACCEPTED"

.subsections_via_symbols
