	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetUpListener
_SetUpListener:                         ## @SetUpListener
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_AF_INET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, %r12
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	l_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_LogEvent
	testq	%r15, %r15
	je	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_ZeroMemory
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -60(%rbp)
	movl	%r14d, -64(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$12, %edx
	callq	_bind
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.6:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	l_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_listen
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	l_.str(%rip), %rdi
LBB0_5:
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_LogEvent
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_10
LBB0_9:
	movq	(%rbx), %r12
LBB0_10:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rbx
	testq	%r15, %r15
	je	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_SOCKET_ERROR,8,3               ## @SOCKET_ERROR
	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	108                             ## 0x6c
	.long	105                             ## 0x69
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	32                              ## 0x20
	.long	102                             ## 0x66
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_LOG_ERROR,4,2                  ## @LOG_ERROR
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	98                              ## 0x62
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	100                             ## 0x64
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	32                              ## 0x20
	.long	102                             ## 0x66
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.long	115                             ## 0x73
	.long	111                             ## 0x6f
	.long	99                              ## 0x63
	.long	107                             ## 0x6b
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	32                              ## 0x20
	.long	102                             ## 0x66
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.no_dead_strip	_SetUpListener
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetUpListener
_SetUpListener:                         ; @SetUpListener
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x23, _AF_INET@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
Lloh8:
	adrp	x22, _INVALID_SOCKET@GOTPAGE
Lloh9:
	ldr	x22, [x22, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh10:
	adrp	x8, _LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x0, sp
	mov	w1, #12
	bl	_ZeroMemory
	ldr	w8, [x23]
	str	w8, [sp, #8]
Lloh15:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htonl
	stp	w20, w0, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	bl	_bind
Lloh18:
	adrp	x20, _SOCKET_ERROR@GOTPAGE
Lloh19:
	ldr	x20, [x20, _SOCKET_ERROR@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh20:
	adrp	x8, _LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh25:
	adrp	x8, _SOMAXCONN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SOMAXCONN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_listen
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh28:
	adrp	x8, _LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	mov	w2, #0
	bl	_LogEvent
LBB0_7:
	ldr	x8, [x22]
	cmp	x21, #0
	csel	x0, x8, x19, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh33:
	adrp	x8, _TRUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh35:
	ldr	x21, [x8]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_SOCKET_ERROR,8,3               ; @SOCKET_ERROR
	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	108                             ; 0x6c
	.long	105                             ; 0x69
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	32                              ; 0x20
	.long	102                             ; 0x66
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_LOG_ERROR,4,2                  ; @LOG_ERROR
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	98                              ; 0x62
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	100                             ; 0x64
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	32                              ; 0x20
	.long	102                             ; 0x66
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.long	115                             ; 0x73
	.long	111                             ; 0x6f
	.long	99                              ; 0x63
	.long	107                             ; 0x6b
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	32                              ; 0x20
	.long	102                             ; 0x66
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.no_dead_strip	_SetUpListener
.subsections_via_symbols
