	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_havesp                     ## -- Begin function key_havesp
	.p2align	4, 0x90
_key_havesp:                            ## @key_havesp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IPSEC_DIR_INBOUND@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_IPSEC_DIR_OUTBOUND@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	%rdi, (%rcx)
	je	LBB0_2
## %bb.3:
	popq	%rbp
	retq
LBB0_2:
	movq	_V_sptree@GOTPCREL(%rip), %rax
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_DIR_INBOUND,8,3          ## @IPSEC_DIR_INBOUND
	.comm	_IPSEC_DIR_OUTBOUND,8,3         ## @IPSEC_DIR_OUTBOUND
	.comm	_V_sptree,8,3                   ## @V_sptree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_havesp                     ; -- Begin function key_havesp
	.p2align	2
_key_havesp:                            ; @key_havesp
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _IPSEC_DIR_INBOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPSEC_DIR_INBOUND@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IPSEC_DIR_OUTBOUND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPSEC_DIR_OUTBOUND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _V_sptree@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_sptree@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x0, lsl #2
	bl	_TAILQ_FIRST
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_DIR_INBOUND,8,3          ; @IPSEC_DIR_INBOUND
	.comm	_IPSEC_DIR_OUTBOUND,8,3         ; @IPSEC_DIR_OUTBOUND
	.comm	_V_sptree,8,3                   ; @V_sptree
.subsections_via_symbols
