	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitConnection
_InitConnection:                        ## @InitConnection
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$2, %edi
	movl	$2, %esi
	callq	_MAKEWORD
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	callq	_WSAStartup
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, (%r15)
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	leaq	8(%r15), %rdi
	movl	$4, %esi
	callq	_ZeroMemory
	movl	(%r12), %eax
	movl	%eax, 16(%r15)
	movq	_NTPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 12(%r15)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_NTPPORT,4,2                    ## @NTPPORT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_InitConnection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitConnection
_InitConnection:                        ; @InitConnection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w0, #2
	mov	w1, #2
	bl	_MAKEWORD
	add	x1, sp, #12
	bl	_WSAStartup
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, _AF_INET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	x0, [x19]
Lloh5:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_gethostbyname
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	add	x0, x19, #8
	mov	w1, #4
	bl	_ZeroMemory
	ldr	w8, [x21]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _NTPPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NTPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x19, #12]
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_NTPPORT,4,2                    ; @NTPPORT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_InitConnection
.subsections_via_symbols
