	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_check_template           ## -- Begin function ip_vs_check_template
	.p2align	4, 0x90
_ip_vs_check_template:                  ## @ip_vs_check_template
	.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
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	_IP_VS_DEST_F_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.2:
	movq	_sysctl_ip_vs_expire_quiescent_template@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	addq	$4, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	movl	44(%rbx), %edi
	callq	_ip_vs_proto_name
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	32(%rbx), %edi
	leaq	40(%rbx), %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rdi
	callq	_ntohs
	movl	%eax, %r12d
	movl	32(%rbx), %edi
	leaq	36(%rbx), %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, %r13d
	movq	8(%rbx), %rdi
	callq	_ntohs
	movl	%eax, %r14d
	movl	32(%rbx), %edi
	leaq	28(%rbx), %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	$9, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%r15
	pushq	%r14
	callq	_IP_VS_DBG_BUF
	addq	$32, %rsp
	movq	8(%rbx), %r14
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	cmpq	%rax, %r14
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_ip_vs_conn_unhash
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	movq	%rax, 16(%rbx)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_ip_vs_conn_hash
LBB0_7:
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_atomic_dec
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_VS_DEST_F_AVAILABLE,4,2     ## @IP_VS_DEST_F_AVAILABLE
	.comm	_sysctl_ip_vs_expire_quiescent_template,8,3 ## @sysctl_ip_vs_expire_quiescent_template
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check_template: dest not available for protocol %s s:%s:%d v:%s:%d -> d:%s:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_check_template           ; -- Begin function ip_vs_check_template
	.p2align	2
_ip_vs_check_template:                  ; @ip_vs_check_template
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _IP_VS_DEST_F_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IP_VS_DEST_F_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _sysctl_ip_vs_expire_quiescent_template@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sysctl_ip_vs_expire_quiescent_template@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
	add	x0, x8, #4
	bl	_atomic_read
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #44]
	bl	_ip_vs_proto_name
	mov	x20, x0
	ldr	w0, [x19, #32]
	add	x1, x19, #40
	bl	_IP_VS_DBG_ADDR
	mov	x21, x0
	ldr	x0, [x19]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [x19, #32]
	add	x1, x19, #36
	bl	_IP_VS_DBG_ADDR
	mov	x23, x0
	ldr	x0, [x19, #8]
	bl	_ntohs
	mov	x24, x0
	ldr	w0, [x19, #32]
	add	x1, x19, #28
	bl	_IP_VS_DBG_ADDR
	mov	x25, x0
	ldr	x0, [x19, #16]
	bl	_ntohs
	str	w0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #9
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	mov	x6, x24
	mov	x7, x25
	bl	_IP_VS_DBG_BUF
	ldr	x20, [x19, #8]
	mov	w0, #65535
	bl	_htons
	cmp	x20, x0
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_ip_vs_conn_unhash
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #65535
	bl	_htons
	str	x0, [x19, #16]
	mov	w0, #65535
	bl	_htons
	stp	xzr, x0, [x19]
	mov	x0, x19
	bl	_ip_vs_conn_hash
LBB0_8:
	add	x0, x19, #24
	bl	_atomic_dec
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_VS_DEST_F_AVAILABLE,4,2     ; @IP_VS_DEST_F_AVAILABLE
	.comm	_sysctl_ip_vs_expire_quiescent_template,8,3 ; @sysctl_ip_vs_expire_quiescent_template
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check_template: dest not available for protocol %s s:%s:%d v:%s:%d -> d:%s:%d\n"

.subsections_via_symbols
