	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownConnection             ## -- Begin function ShutdownConnection
	.p2align	4, 0x90
_ShutdownConnection:                    ## @ShutdownConnection
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SD_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	l_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_LogEvent
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	movq	%rsp, -312(%rbp)                ## 8-byte Spill
	movq	_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-304(%rbp), %r13
	movq	_LOG_FILE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	leaq	l_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_swprintf
	movl	(%r15), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_LogEvent
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_6:
	movq	-312(%rbp), %rsp                ## 8-byte Reload
LBB0_7:
	movl	%r14d, %edi
	callq	_closesocket
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_SEND,4,2                    ## @SD_SEND
	.comm	_SOCKET_ERROR,8,3               ## @SOCKET_ERROR
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	69                              ## 0x45
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	32                              ## 0x20
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	32                              ## 0x20
	.long	115                             ## 0x73
	.long	104                             ## 0x68
	.long	117                             ## 0x75
	.long	116                             ## 0x74
	.long	100                             ## 0x64
	.long	111                             ## 0x6f
	.long	119                             ## 0x77
	.long	110                             ## 0x6e
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	0                               ## 0x0

	.comm	_LOG_ERROR,4,2                  ## @LOG_ERROR
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_BUF,4,2                        ## @BUF
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	70                              ## 0x46
	.long	89                              ## 0x59
	.long	73                              ## 0x49
	.long	44                              ## 0x2c
	.long	32                              ## 0x20
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	99                              ## 0x63
	.long	101                             ## 0x65
	.long	105                             ## 0x69
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	37                              ## 0x25
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	117                             ## 0x75
	.long	110                             ## 0x6e
	.long	101                             ## 0x65
	.long	120                             ## 0x78
	.long	112                             ## 0x70
	.long	101                             ## 0x65
	.long	99                              ## 0x63
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	98                              ## 0x62
	.long	121                             ## 0x79
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	115                             ## 0x73
	.long	32                              ## 0x20
	.long	100                             ## 0x64
	.long	117                             ## 0x75
	.long	114                             ## 0x72
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	103                             ## 0x67
	.long	32                              ## 0x20
	.long	115                             ## 0x73
	.long	104                             ## 0x68
	.long	117                             ## 0x75
	.long	116                             ## 0x74
	.long	100                             ## 0x64
	.long	111                             ## 0x6f
	.long	119                             ## 0x77
	.long	110                             ## 0x6e
	.long	0                               ## 0x0

	.comm	_LOG_FILE,4,2                   ## @LOG_FILE
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownConnection             ; -- Begin function ShutdownConnection
	.p2align	2
_ShutdownConnection:                    ; @ShutdownConnection
	.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, #272
	mov	x19, sp
	mov	x21, 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, _SD_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_shutdown
Lloh6:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh9:
	adrp	x8, _LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_LogEvent
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	cbz	x21, LBB0_7
; %bb.3:
	mov	x24, sp
Lloh16:
	adrp	x25, _BUF@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BUF@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	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
Lloh20:
	adrp	x22, l_.str.1@PAGE
Lloh21:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh22:
	adrp	x26, _LOG_FILE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _LOG_FILE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_recv
	tbnz	x0, #63, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	add	x0, x19, #8
	mov	x1, x22
	mov	x2, x23
	bl	_swprintf
	ldr	w3, [x26]
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #0
	bl	_LogEvent
	cbnz	x23, LBB0_4
LBB0_6:
	mov	sp, x24
LBB0_7:
	mov	x0, x20
	bl	_closesocket
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_SEND,4,2                    ; @SD_SEND
	.comm	_SOCKET_ERROR,8,3               ; @SOCKET_ERROR
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	69                              ; 0x45
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	32                              ; 0x20
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	32                              ; 0x20
	.long	115                             ; 0x73
	.long	104                             ; 0x68
	.long	117                             ; 0x75
	.long	116                             ; 0x74
	.long	100                             ; 0x64
	.long	111                             ; 0x6f
	.long	119                             ; 0x77
	.long	110                             ; 0x6e
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	0                               ; 0x0

	.comm	_LOG_ERROR,4,2                  ; @LOG_ERROR
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_BUF,4,2                        ; @BUF
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	70                              ; 0x46
	.long	89                              ; 0x59
	.long	73                              ; 0x49
	.long	44                              ; 0x2c
	.long	32                              ; 0x20
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	99                              ; 0x63
	.long	101                             ; 0x65
	.long	105                             ; 0x69
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	37                              ; 0x25
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	117                             ; 0x75
	.long	110                             ; 0x6e
	.long	101                             ; 0x65
	.long	120                             ; 0x78
	.long	112                             ; 0x70
	.long	101                             ; 0x65
	.long	99                              ; 0x63
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	98                              ; 0x62
	.long	121                             ; 0x79
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	115                             ; 0x73
	.long	32                              ; 0x20
	.long	100                             ; 0x64
	.long	117                             ; 0x75
	.long	114                             ; 0x72
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	103                             ; 0x67
	.long	32                              ; 0x20
	.long	115                             ; 0x73
	.long	104                             ; 0x68
	.long	117                             ; 0x75
	.long	116                             ; 0x74
	.long	100                             ; 0x64
	.long	111                             ; 0x6f
	.long	119                             ; 0x77
	.long	110                             ; 0x6e
	.long	0                               ; 0x0

	.comm	_LOG_FILE,4,2                   ; @LOG_FILE
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
