	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phase2_tcp_server
_phase2_tcp_server:                     ## @phase2_tcp_server
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rsi, %rdx
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	4(%rsi), %ecx
	movq	%r14, (%rsp)
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_socket_listen_accept
	movl	%eax, 16(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_socket_do_listen               ## TAILCALL
LBB0_5:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	callq	_socket_do_accept
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_socket_defined
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movq	8(%rbx), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tcp_connection_established     ## TAILCALL
LBB0_9:
	xorl	%edi, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
LBB0_6:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.no_dead_strip	_phase2_tcp_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phase2_tcp_server
_phase2_tcp_server:                     ; @phase2_tcp_server
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x2
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x2, x1
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	ldr	w3, [x1, #4]
	mov	w4, #1
	mov	w5, #0
	mov	x6, x20
	bl	_socket_listen_accept
	str	w0, [x19, #16]
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	w2, #1
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_socket_do_listen
LBB0_5:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	mov	w2, #0
	bl	_socket_do_accept
	str	w0, [x19, #16]
	bl	_socket_defined
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tcp_connection_established
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ASSERT
LBB0_8:
Lloh0:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.no_dead_strip	_phase2_tcp_server
.subsections_via_symbols
