	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CVAR_LATCH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Get
	movq	%rax, %r14
	movq	_PORT_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_va
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_Cvar_Get
	movl	(%rax), %r15d
	movl	4(%r14), %edi
	movl	%r15d, %esi
	callq	_NET_IPSocket
	movq	_ip_socket@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_2:
	movl	4(%r14), %edi
	leal	1(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movl	4(%r14), %edi
	leal	2(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movl	4(%r14), %edi
	leal	3(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movl	4(%r14), %edi
	leal	4(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	4(%r14), %edi
	leal	5(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	4(%r14), %edi
	leal	6(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movl	4(%r14), %edi
	leal	7(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	4(%r14), %edi
	leal	8(%r15), %ebx
	movl	%ebx, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	4(%r14), %edi
	addl	$9, %r15d
	movl	%r15d, %esi
	callq	_NET_IPSocket
	movq	%rax, (%r12)
	movl	%r15d, %ebx
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	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_13
## %bb.12:
	movl	%ebx, %edi
	callq	_NET_OpenSocks
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NET_GetLocalAddress            ## TAILCALL
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net_ip"

L_.str.1:                               ## @.str.1
	.asciz	"localhost"

	.comm	_CVAR_LATCH,4,2                 ## @CVAR_LATCH
L_.str.2:                               ## @.str.2
	.asciz	"net_port"

L_.str.3:                               ## @.str.3
	.asciz	"%i"

	.comm	_PORT_SERVER,4,2                ## @PORT_SERVER
	.comm	_ip_socket,8,3                  ## @ip_socket
	.comm	_net_socksEnabled,8,3           ## @net_socksEnabled
L_.str.4:                               ## @.str.4
	.asciz	"WARNING: Couldn't allocate IP port\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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _CVAR_LATCH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CVAR_LATCH@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Get
	mov	x19, x0
Lloh6:
	adrp	x8, _PORT_SERVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_SERVER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_va
	mov	x1, x0
	ldr	w2, [x20]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Cvar_Get
	ldr	w20, [x0]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_NET_IPSocket
Lloh13:
	adrp	x22, _ip_socket@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ip_socket@GOTPAGEOFF]
	str	x0, [x22]
	mov	x21, x20
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w0, [x19, #4]
	add	w21, w20, #1
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	w0, [x19, #4]
	add	w21, w20, #2
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	w0, [x19, #4]
	add	w21, w20, #3
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #4]
	add	w21, w20, #4
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #4]
	add	w21, w20, #5
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	w0, [x19, #4]
	add	w21, w20, #6
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x19, #4]
	add	w21, w20, #7
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x19, #4]
	add	w21, w20, #8
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	add	w21, w20, #9
	mov	x1, x21
	bl	_NET_IPSocket
	str	x0, [x22]
	cbz	x0, LBB0_13
LBB0_10:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_Cvar_SetValue
Lloh17:
	adrp	x8, _net_socksEnabled@GOTPAGE
Lloh18:
	ldr	x8, [x8, _net_socksEnabled@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_NET_OpenSocks
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_NET_GetLocalAddress
LBB0_13:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Com_Printf
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net_ip"

l_.str.1:                               ; @.str.1
	.asciz	"localhost"

	.comm	_CVAR_LATCH,4,2                 ; @CVAR_LATCH
l_.str.2:                               ; @.str.2
	.asciz	"net_port"

l_.str.3:                               ; @.str.3
	.asciz	"%i"

	.comm	_PORT_SERVER,4,2                ; @PORT_SERVER
	.comm	_ip_socket,8,3                  ; @ip_socket
	.comm	_net_socksEnabled,8,3           ; @net_socksEnabled
l_.str.4:                               ; @.str.4
	.asciz	"WARNING: Couldn't allocate IP port\n"

.subsections_via_symbols
