	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckNetwork                   ## -- Begin function CheckNetwork
	.p2align	4, 0x90
_CheckNetwork:                          ## @CheckNetwork
	.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
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_NewSockEvent
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_Zero
	movq	_CheckNetworkListenThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_NewThread
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_WaitThreadInit
	movq	-80(%rbp), %r13
	movl	(%r13), %r15d
	movl	$64, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, (%rbx)
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	8(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	16(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	24(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	32(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movq	40(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	movq	48(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_Connect
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:
	addq	$56, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_StartSSL
	testl	%eax, %eax
	je	LBB0_34
## %bb.35:
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_JoinSockToSockEvent
	xorl	%ebx, %ebx
	movl	$1, %ecx
	xorl	%r15d, %r15d
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)
	movq	(%r14,%rbx,8), %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_Recv
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_Print
	movl	$1, %r15d
LBB0_38:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	_SOCK_LATER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movl	$0, %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	cmpl	$127, -56(%rbp)
	movl	$1, %eax
	cmovgl	%eax, %r15d
	incq	%rbx
	cmpq	$8, %rbx
	jne	LBB0_36
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=1
	xorl	%ebx, %ebx
	movl	$0, %r15d
	testl	%ecx, %ecx
	movl	$1, %ecx
	je	LBB0_36
## %bb.42:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_WaitSockEvent
	xorl	%ebx, %ebx
	movl	$1, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_36
LBB0_8:
	movl	$1, %r12d
	jmp	LBB0_3
LBB0_10:
	addq	$8, %rbx
	movl	$1, %r12d
	jmp	LBB0_2
LBB0_12:
	movl	$2, %r12d
	jmp	LBB0_3
LBB0_14:
	addq	$16, %rbx
	movl	$2, %r12d
	jmp	LBB0_2
LBB0_16:
	movl	$3, %r12d
	jmp	LBB0_3
LBB0_18:
	addq	$24, %rbx
	movl	$3, %r12d
	jmp	LBB0_2
LBB0_20:
	movl	$4, %r12d
	jmp	LBB0_3
LBB0_22:
	addq	$32, %rbx
	movl	$4, %r12d
	jmp	LBB0_2
LBB0_24:
	movl	$5, %r12d
	jmp	LBB0_3
LBB0_26:
	addq	$40, %rbx
	movl	$5, %r12d
	jmp	LBB0_2
LBB0_28:
	movl	$6, %r12d
	jmp	LBB0_3
LBB0_30:
	addq	$48, %rbx
	movl	$6, %r12d
	jmp	LBB0_2
LBB0_40:
	movl	$8, %r12d
	jmp	LBB0_4
LBB0_32:
	movl	$7, %r12d
	jmp	LBB0_3
LBB0_34:
	movl	$7, %r12d
LBB0_2:
	movq	(%rbx), %rdi
	callq	_ReleaseSock
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_Print
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_4:
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_Disconnect
	movq	(%r14,%rbx,8), %rdi
	callq	_ReleaseSock
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_Free
	movq	%r13, %rdi
	callq	_Disconnect
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_WaitThread
	movq	%rbx, %rdi
	callq	_ReleaseThread
	movq	%r13, %rdi
	callq	_ReleaseSock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ReleaseSockEvent
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CheckNetworkListenThread,4,2   ## @CheckNetworkListenThread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"localhost"

L_.str.1:                               ## @.str.1
	.asciz	"Connect Failed. (%u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Recv Failed (Disconnected).\n"

	.comm	_SOCK_LATER,4,2                 ## @SOCK_LATER
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckNetwork                   ; -- Begin function CheckNetwork
	.p2align	2
_CheckNetwork:                          ; @CheckNetwork
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_NewSockEvent
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_Zero
Lloh0:
	adrp	x8, _CheckNetworkListenThread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CheckNetworkListenThread@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_NewThread
	mov	x20, x0
	bl	_WaitThreadInit
	ldr	x21, [sp, #8]
	ldr	w23, [x21]
	mov	w0, #64
	bl	_ZeroMalloc
	mov	x22, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	str	x0, [x22]
Lloh5:
	adrp	x26, _INFINITE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _INFINITE@GOTPAGEOFF]
	cbz	x0, LBB0_23
; %bb.1:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_24
; %bb.2:
	ldr	x0, [x22]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #8]!
	cbz	x0, LBB0_25
; %bb.3:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_26
; %bb.4:
	ldr	x0, [x22, #8]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #16]!
	cbz	x0, LBB0_27
; %bb.5:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_28
; %bb.6:
	ldr	x0, [x22, #16]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #24]!
	cbz	x0, LBB0_29
; %bb.7:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_30
; %bb.8:
	ldr	x0, [x22, #24]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #32]!
	cbz	x0, LBB0_31
; %bb.9:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_32
; %bb.10:
	ldr	x0, [x22, #32]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #40]!
	cbz	x0, LBB0_33
; %bb.11:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_34
; %bb.12:
	ldr	x0, [x22, #40]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #48]!
	cbz	x0, LBB0_35
; %bb.13:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_36
; %bb.14:
	ldr	x0, [x22, #48]
	mov	x1, x19
	bl	_JoinSockToSockEvent
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_Connect
	mov	x25, x22
	str	x0, [x25, #56]!
	cbz	x0, LBB0_38
; %bb.15:
	mov	x1, #0
	mov	x2, #0
	bl	_StartSSL
	cbz	w0, LBB0_39
; %bb.16:
	ldr	x0, [x25]
	mov	x1, x19
	bl	_JoinSockToSockEvent
	mov	x27, #0
	mov	w24, #0
	mov	w28, #1
	mov	w23, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #4]
	ldr	x0, [x22, x27, lsl #3]
	add	x1, sp, #4
	mov	w2, #4
	mov	w3, #1
	bl	_Recv
	mov	x25, x0
	cbnz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_Print
	mov	w23, #0
	mov	w24, #1
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh23:
	adrp	x8, _SOCK_LATER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOCK_LATER@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w25, w8
	csel	w8, w28, wzr, eq
	ldr	w9, [sp, #4]
	cmp	w9, #127
	csinc	w24, w24, wzr, le
	add	x27, x27, #1
	mov	x28, x8
	cmp	x27, #8
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	cbnz	w24, LBB0_37
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x27, #0
	mov	w28, #1
	cbz	w8, LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_WaitSockEvent
	mov	x27, #0
	mov	w24, #0
	mov	w28, #1
	b	LBB0_17
LBB0_23:
	mov	w24, #0
	b	LBB0_41
LBB0_24:
	mov	w24, #0
	mov	x25, x22
	b	LBB0_40
LBB0_25:
	mov	w24, #1
	b	LBB0_41
LBB0_26:
	mov	w24, #1
	b	LBB0_40
LBB0_27:
	mov	w24, #2
	b	LBB0_41
LBB0_28:
	mov	w24, #2
	b	LBB0_40
LBB0_29:
	mov	w24, #3
	b	LBB0_41
LBB0_30:
	mov	w24, #3
	b	LBB0_40
LBB0_31:
	mov	w24, #4
	b	LBB0_41
LBB0_32:
	mov	w24, #4
	b	LBB0_40
LBB0_33:
	mov	w24, #5
	b	LBB0_41
LBB0_34:
	mov	w24, #5
	b	LBB0_40
LBB0_35:
	mov	w24, #6
	b	LBB0_41
LBB0_36:
	mov	w24, #6
	b	LBB0_40
LBB0_37:
	mov	w24, #8
	b	LBB0_42
LBB0_38:
	mov	w24, #7
	b	LBB0_41
LBB0_39:
	mov	w24, #7
LBB0_40:
	ldr	x0, [x25]
	bl	_ReleaseSock
LBB0_41:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_Print
	mov	w23, #0
	cbz	w24, LBB0_44
LBB0_42:
	mov	w24, w24
	mov	x25, x22
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	bl	_Disconnect
	ldr	x0, [x25], #8
	bl	_ReleaseSock
	subs	x24, x24, #1
	b.ne	LBB0_43
LBB0_44:
	mov	x0, x22
	bl	_Free
	mov	x0, x21
	bl	_Disconnect
	ldr	w1, [x26]
	mov	x0, x20
	bl	_WaitThread
	mov	x0, x20
	bl	_ReleaseThread
	mov	x0, x21
	bl	_ReleaseSock
	mov	x0, x19
	bl	_ReleaseSockEvent
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CheckNetworkListenThread,4,2   ; @CheckNetworkListenThread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"localhost"

l_.str.1:                               ; @.str.1
	.asciz	"Connect Failed. (%u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Recv Failed (Disconnected).\n"

	.comm	_SOCK_LATER,4,2                 ; @SOCK_LATER
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
