	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_OpenIP                     ## -- Begin function NET_OpenIP
	.p2align	4, 0x90
_NET_OpenIP:                            ## @NET_OpenIP
	.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
	movq	_net_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_net_port6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_NET_GetLocalAddress
	movq	_net_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NET_ENABLEV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.1:
	leaq	-44(%rbp), %r15
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_net_ip6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leal	(%r12,%r13), %ebx
	movl	%ebx, %esi
	movq	_boundto@GOTPCREL(%rip), %rdx
	movq	%r15, %rcx
	callq	_NET_IP6Socket
	movq	_ip6_socket@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	cmpl	(%r14), %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r12), %eax
	cmpl	$9, %r12d
	movl	%eax, %r12d
	jne	LBB0_2
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_Cvar_SetValue
	movq	_ip6_socket@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
LBB0_7:
	movq	_net_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NET_ENABLEV4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.8:
	xorl	%r15d, %r15d
	movq	_net_ip@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r14
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %ebx
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_NET_IPSocket
	movq	_ip_socket@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax
	cmpl	(%r13), %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%r15), %eax
	cmpl	$9, %r15d
	movl	%eax, %r15d
	jne	LBB0_9
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_Cvar_SetValue
	movq	_net_socksEnabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.11:
	movl	%ebx, %edi
	callq	_NET_OpenSocks
LBB0_14:
	movq	_ip_socket@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	callq	_Com_Printf
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_net_port,8,3                   ## @net_port
	.comm	_net_port6,8,3                  ## @net_port6
	.comm	_net_enabled,8,3                ## @net_enabled
	.comm	_NET_ENABLEV6,4,2               ## @NET_ENABLEV6
	.comm	_net_ip6,8,3                    ## @net_ip6
	.comm	_boundto,4,2                    ## @boundto
	.comm	_ip6_socket,8,3                 ## @ip6_socket
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net_port6"

	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: Couldn't bind to a v6 ip address.\n"

	.comm	_NET_ENABLEV4,4,2               ## @NET_ENABLEV4
	.comm	_net_ip,8,3                     ## @net_ip
	.comm	_ip_socket,8,3                  ## @ip_socket
L_.str.2:                               ## @.str.2
	.asciz	"net_port"

	.comm	_net_socksEnabled,8,3           ## @net_socksEnabled
L_.str.3:                               ## @.str.3
	.asciz	"WARNING: Couldn't bind to a v4 ip address.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_OpenIP                     ; -- Begin function NET_OpenIP
	.p2align	2
_NET_OpenIP:                            ; @NET_OpenIP
	.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
Lloh0:
	adrp	x8, _net_port@GOTPAGE
Lloh1:
	ldr	x8, [x8, _net_port@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _net_port6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _net_port6@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w25, [x8]
	bl	_NET_GetLocalAddress
Lloh6:
	adrp	x24, _net_enabled@GOTPAGE
Lloh7:
	ldr	x24, [x24, _net_enabled@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _NET_ENABLEV6@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NET_ENABLEV6@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x21, _INVALID_SOCKET@GOTPAGE
Lloh12:
	ldr	x21, [x21, _INVALID_SOCKET@GOTPAGEOFF]
Lloh13:
	adrp	x23, _EAFNOSUPPORT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _EAFNOSUPPORT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	w27, #0
Lloh15:
	adrp	x28, _net_ip6@GOTPAGE
Lloh16:
	ldr	x28, [x28, _net_ip6@GOTPAGEOFF]
Lloh17:
	adrp	x19, _boundto@GOTPAGE
Lloh18:
	ldr	x19, [x19, _boundto@GOTPAGEOFF]
Lloh19:
	adrp	x26, _ip6_socket@GOTPAGE
Lloh20:
	ldr	x26, [x26, _ip6_socket@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	w0, [x8]
	add	w20, w25, w27
	add	x3, sp, #12
	mov	x1, x20
	mov	x2, x19
	bl	_NET_IP6Socket
	str	x0, [x26]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	ccmp	w27, #9, #4, ne
	add	w27, w27, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_Cvar_SetValue
	ldr	x8, [x26]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
LBB0_6:
	ldr	x8, [x24]
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NET_ENABLEV4@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NET_ENABLEV4@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.7:
	mov	w24, #0
Lloh28:
	adrp	x25, _net_ip@GOTPAGE
Lloh29:
	ldr	x25, [x25, _net_ip@GOTPAGEOFF]
Lloh30:
	adrp	x20, _ip_socket@GOTPAGE
Lloh31:
	ldr	x20, [x20, _ip_socket@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8]
	add	w19, w22, w24
	add	x2, sp, #12
	mov	x1, x19
	bl	_NET_IPSocket
	str	x0, [x20]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	ccmp	w24, #9, #4, ne
	add	w24, w24, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_10:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_Cvar_SetValue
Lloh34:
	adrp	x8, _net_socksEnabled@GOTPAGE
Lloh35:
	ldr	x8, [x8, _net_socksEnabled@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_NET_OpenSocks
LBB0_12:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_Printf
LBB0_14:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_net_port,8,3                   ; @net_port
	.comm	_net_port6,8,3                  ; @net_port6
	.comm	_net_enabled,8,3                ; @net_enabled
	.comm	_NET_ENABLEV6,4,2               ; @NET_ENABLEV6
	.comm	_net_ip6,8,3                    ; @net_ip6
	.comm	_boundto,4,2                    ; @boundto
	.comm	_ip6_socket,8,3                 ; @ip6_socket
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net_port6"

	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: Couldn't bind to a v6 ip address.\n"

	.comm	_NET_ENABLEV4,4,2               ; @NET_ENABLEV4
	.comm	_net_ip,8,3                     ; @net_ip
	.comm	_ip_socket,8,3                  ; @ip_socket
l_.str.2:                               ; @.str.2
	.asciz	"net_port"

	.comm	_net_socksEnabled,8,3           ; @net_socksEnabled
l_.str.3:                               ; @.str.3
	.asciz	"WARNING: Couldn't bind to a v4 ip address.\n"

.subsections_via_symbols
