	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_find_dest                ## -- Begin function ip_vs_find_dest
	.p2align	4, 0x90
_ip_vs_find_dest:                       ## @ip_vs_find_dest
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	16(%rbp), %ebx
	movl	%ebx, %esi
	movl	%r9d, %edx
	callq	_ip_vs_service_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%r15d, %r13d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movl	24(%rbp), %eax
	movq	_IP_VS_CONN_F_FWD_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IP_VS_CONN_F_MASQ@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpl	(%rcx), %eax
	cmovel	%r15d, %r13d
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_ip_vs_lookup_dest
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	xorl	%r15d, %r13d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_ip_vs_lookup_dest
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_atomic_inc
LBB0_8:
	movq	%r12, %rdi
	callq	_ip_vs_service_put
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_VS_CONN_F_FWD_MASK,4,2      ## @IP_VS_CONN_F_FWD_MASK
	.comm	_IP_VS_CONN_F_MASQ,4,2          ## @IP_VS_CONN_F_MASQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_find_dest                ; -- Begin function ip_vs_find_dest
	.p2align	2
_ip_vs_find_dest:                       ; @ip_vs_find_dest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x7
	mov	x23, x6
	mov	x21, x2
	mov	x20, x1
	mov	x1, x6
	mov	x2, x5
	bl	_ip_vs_service_get
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x24, x21
	cbz	w23, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IP_VS_CONN_F_FWD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_VS_CONN_F_FWD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh3:
	adrp	x9, _IP_VS_CONN_F_MASQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP_VS_CONN_F_MASQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w24, w21, wzr, eq
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_ip_vs_lookup_dest
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.4:
	eor	w2, w24, w21
	mov	x0, x19
	mov	x1, x20
	bl	_ip_vs_lookup_dest
	mov	x22, x0
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_atomic_inc
LBB0_6:
	mov	x0, x19
	bl	_ip_vs_service_put
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_VS_CONN_F_FWD_MASK,4,2      ; @IP_VS_CONN_F_FWD_MASK
	.comm	_IP_VS_CONN_F_MASQ,4,2          ; @IP_VS_CONN_F_MASQ
.subsections_via_symbols
