	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_remote
_resolve_remote:                        ## @resolve_remote
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	8(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_1
LBB0_21:
	movq	8(%r14), %rdi
	addq	$8, %rdi
	callq	_link_socket_actual_defined
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	-48(%rbp), %rsi
	callq	_print_link_socket_actual
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_msg
	testq	%r12, %r12
	je	LBB0_26
## %bb.23:
	movq	$0, (%r12)
	jmp	LBB0_26
LBB0_1:
	cmpq	$0, 32(%r14)
	je	LBB0_21
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_GETADDR_RESOLVE@GOTPCREL(%rip), %rax
	movq	_GETADDR_UPDATE_MANAGEMENT_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	44(%r14), %esi
	callq	_sf2gaf
	movl	%eax, %r12d
	movl	20(%r14), %edi
	callq	_proto_is_dgram
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GETADDR_DATAGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	orl	%r12d, %r13d
	movl	(%r14), %eax
	movq	_RESOLV_RETRY_INFINITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_GETADDR_TRY_ONCE@GOTPCREL(%rip), %rax
	movq	_GETADDR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$0, %ebx
	cmovnel	%eax, %ecx
	orl	%ecx, %r13d
	jmp	LBB0_13
LBB0_24:
	movq	8(%r14), %rax
	movl	8(%rax), %edi
	callq	_CLEAR
	movq	8(%r14), %rdi
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.25:
	addq	$8, %rdi
	callq	_set_actual_address
	jmp	LBB0_26
LBB0_6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	je	LBB0_10
## %bb.7:
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	_GETADDR_FATAL@GOTPCREL(%rip), %rax
	movq	_GETADDR_MENTION_RESOLVE_RETRY@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	jmp	LBB0_13
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_GETADDR_FATAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_13:
	movl	40(%r14), %edi
	movq	32(%r14), %rsi
	movl	16(%r14), %ecx
	movl	24(%r14), %edx
	leaq	-64(%rbp), %r12
	movl	%r13d, %r8d
	movq	%r12, %r9
	callq	_get_cached_dns_entry
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	32(%r14), %rsi
	movl	16(%r14), %r9d
	movl	24(%r14), %edx
	movq	%r12, (%rsp)
	movl	%r13d, %edi
	movl	%ebx, %ecx
	movq	%r15, %r8
	callq	_openvpn_getaddrinfo
	testl	%eax, %eax
	je	LBB0_15
## %bb.17:
	testq	%r15, %r15
	je	LBB0_26
## %bb.18:
	cmpl	$0, (%r15)
	jne	LBB0_26
## %bb.19:
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_26
LBB0_15:
	movq	-64(%rbp), %rax
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, (%rcx)
	movq	_D_SOCKET_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r15, %r15
	je	LBB0_20
## %bb.16:
	movl	(%r15), %r9d
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_dmsg
	cmpl	$0, (%r15)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_21
LBB0_26:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	$-1, %r9d
	callq	_dmsg
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GETADDR_RESOLVE,4,2            ## @GETADDR_RESOLVE
	.comm	_GETADDR_UPDATE_MANAGEMENT_STATE,4,2 ## @GETADDR_UPDATE_MANAGEMENT_STATE
	.comm	_GETADDR_DATAGRAM,4,2           ## @GETADDR_DATAGRAM
	.comm	_RESOLV_RETRY_INFINITE,4,2      ## @RESOLV_RETRY_INFINITE
	.comm	_GETADDR_TRY_ONCE,4,2           ## @GETADDR_TRY_ONCE
	.comm	_GETADDR_FATAL,4,2              ## @GETADDR_FATAL
	.comm	_GETADDR_MENTION_RESOLVE_RETRY,4,2 ## @GETADDR_MENTION_RESOLVE_RETRY
	.comm	_D_SOCKET_DEBUG,4,2             ## @D_SOCKET_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RESOLVE_REMOTE flags=0x%04x phase=%d rrs=%d sig=%d status=%d"

	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.1:                               ## @.str.1
	.asciz	"TCP/UDP: Preserving recently used remote address: %s"

	.no_dead_strip	_resolve_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_remote
_resolve_remote:                        ; @resolve_remote
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_gc_new
	str	w0, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	bl	_link_socket_actual_defined
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _M_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	add	x1, sp, #8
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_msg
	cbz	x19, LBB0_25
; %bb.3:
	str	xzr, [x19]
	b	LBB0_25
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _GETADDR_RESOLVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GETADDR_RESOLVE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _GETADDR_UPDATE_MANAGEMENT_STATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GETADDR_UPDATE_MANAGEMENT_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x20, #44]
	bl	_sf2gaf
	mov	x23, x0
	ldr	w0, [x20, #20]
	bl	_proto_is_dgram
Lloh11:
	adrp	x8, _GETADDR_DATAGRAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GETADDR_DATAGRAM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w8, w23
	ldr	w24, [x20]
Lloh14:
	adrp	x8, _RESOLV_RETRY_INFINITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RESOLV_RETRY_INFINITE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_9
; %bb.6:
	mov	w24, #0
Lloh17:
	adrp	x8, _GETADDR_TRY_ONCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GETADDR_TRY_ONCE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _GETADDR_FATAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GETADDR_FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w22, #2
	csel	w8, w8, wzr, eq
	orr	w23, w8, w23
	b	LBB0_18
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_CLEAR
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_25
; %bb.8:
	add	x0, x8, #8
	bl	_set_actual_address
	b	LBB0_25
LBB0_9:
	cmp	w22, #2
	b.eq	LBB0_13
; %bb.10:
	cmp	w22, #1
	b.ne	LBB0_15
; %bb.11:
	cbnz	w24, LBB0_16
; %bb.12:
Lloh23:
	adrp	x8, _GETADDR_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GETADDR_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _GETADDR_MENTION_RESOLVE_RETRY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GETADDR_MENTION_RESOLVE_RETRY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w23
	orr	w23, w8, w9
	b	LBB0_18
LBB0_13:
	cbz	w24, LBB0_17
; %bb.14:
Lloh29:
	adrp	x8, _GETADDR_FATAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GETADDR_FATAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_18
LBB0_15:
	mov	w0, #0
	bl	_ASSERT
LBB0_16:
	mov	w24, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #0
	bl	_ASSERT
LBB0_18:
	ldr	w0, [x20, #40]
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #24]
	ldr	w3, [x20, #16]
	mov	x5, sp
	mov	x4, x23
	bl	_get_cached_dns_entry
	cbz	w0, LBB0_23
; %bb.19:
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #24]
	ldr	w5, [x20, #16]
	mov	x6, sp
	mov	x0, x23
	mov	x3, x24
	mov	x4, x21
	bl	_openvpn_getaddrinfo
	cbz	w0, LBB0_23
; %bb.20:
	cbz	x21, LBB0_25
; %bb.21:
	ldr	w8, [x21]
	cbnz	w8, LBB0_25
; %bb.22:
Lloh32:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_25
LBB0_23:
	ldr	x8, [sp]
	ldr	x9, [x20, #8]
	str	x8, [x9, #16]
	str	x8, [x9]
Lloh35:
	adrp	x8, _D_SOCKET_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _D_SOCKET_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	cbz	x21, LBB0_26
; %bb.24:
	ldr	w5, [x21]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	mov	w6, #0
	bl	_dmsg
	ldr	w8, [x21]
	cbz	w8, LBB0_1
LBB0_25:
	add	x0, sp, #8
	bl	_gc_free
	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_26:
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	mov	w5, #-1
	mov	w6, #0
	bl	_dmsg
	b	LBB0_1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GETADDR_RESOLVE,4,2            ; @GETADDR_RESOLVE
	.comm	_GETADDR_UPDATE_MANAGEMENT_STATE,4,2 ; @GETADDR_UPDATE_MANAGEMENT_STATE
	.comm	_GETADDR_DATAGRAM,4,2           ; @GETADDR_DATAGRAM
	.comm	_RESOLV_RETRY_INFINITE,4,2      ; @RESOLV_RETRY_INFINITE
	.comm	_GETADDR_TRY_ONCE,4,2           ; @GETADDR_TRY_ONCE
	.comm	_GETADDR_FATAL,4,2              ; @GETADDR_FATAL
	.comm	_GETADDR_MENTION_RESOLVE_RETRY,4,2 ; @GETADDR_MENTION_RESOLVE_RETRY
	.comm	_D_SOCKET_DEBUG,4,2             ; @D_SOCKET_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RESOLVE_REMOTE flags=0x%04x phase=%d rrs=%d sig=%d status=%d"

	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.1:                               ; @.str.1
	.asciz	"TCP/UDP: Preserving recently used remote address: %s"

	.no_dead_strip	_resolve_remote
.subsections_via_symbols
