	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_cmpspidx_withmask
_key_cmpspidx_withmask:                 ## @key_cmpspidx_withmask
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	movq	%rdi, %rax
	orq	%rsi, %rax
	je	LBB0_36
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.2:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.3:
	movl	56(%rbx), %eax
	cmpl	56(%r15), %eax
	jne	LBB0_36
## %bb.4:
	movl	8(%rbx), %ecx
	cmpl	8(%r15), %ecx
	jne	LBB0_36
## %bb.5:
	movq	64(%rbx), %rdx
	cmpq	64(%r15), %rdx
	jne	LBB0_36
## %bb.6:
	movq	16(%rbx), %rcx
	cmpq	16(%r15), %rcx
	jne	LBB0_36
## %bb.7:
	movq	(%rbx), %rcx
	movq	_IPSEC_ULPROTO_ANY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_9
## %bb.8:
	cmpq	(%r15), %rcx
	jne	LBB0_36
LBB0_9:
	cmpl	$128, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_21
## %bb.11:
	movl	88(%rbx), %eax
	movq	_IPSEC_PORT_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.12:
	cmpl	88(%r15), %eax
	jne	LBB0_36
LBB0_13:
	leaq	84(%rbx), %rdi
	leaq	84(%r15), %rsi
	jmp	LBB0_14
LBB0_15:
	movl	80(%rbx), %eax
	movq	_IPSEC_PORT_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.16:
	cmpl	80(%r15), %eax
	jne	LBB0_36
LBB0_17:
	movl	76(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	76(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.19:
	cmpl	%ecx, %eax
	jne	LBB0_36
LBB0_20:
	leaq	72(%rbx), %rdi
	leaq	72(%r15), %rsi
LBB0_14:
	movl	96(%rbx), %edx
	callq	_key_bbcmp
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_36
LBB0_21:
	leaq	56(%rbx), %rdi
	leaq	56(%r15), %rsi
	callq	_bcmp
	testl	%eax, %eax
	jne	LBB0_36
LBB0_22:
	leaq	8(%rbx), %rdi
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_28
## %bb.23:
	cmpl	$129, %eax
	jne	LBB0_34
## %bb.24:
	movl	40(%rbx), %eax
	movq	_IPSEC_PORT_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_26
## %bb.25:
	cmpl	40(%r15), %eax
	jne	LBB0_36
LBB0_26:
	addq	$36, %r15
	movl	48(%rbx), %edx
	addq	$36, %rbx
	jmp	LBB0_27
LBB0_28:
	movl	32(%rbx), %eax
	movq	_IPSEC_PORT_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.29:
	cmpl	32(%r15), %eax
	jne	LBB0_36
LBB0_30:
	movl	28(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movl	28(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.32:
	cmpl	%ecx, %eax
	jne	LBB0_36
LBB0_33:
	addq	$24, %r15
	movl	48(%rbx), %edx
	addq	$24, %rbx
LBB0_27:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_key_bbcmp
	testl	%eax, %eax
	je	LBB0_36
LBB0_35:
	movl	$1, %r14d
LBB0_36:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	addq	$8, %r15
	movq	16(%rbx), %rdx
	movq	%r15, %rsi
	callq	_bcmp
	testl	%eax, %eax
	jne	LBB0_36
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_ULPROTO_ANY,8,3          ## @IPSEC_ULPROTO_ANY
	.comm	_IPSEC_PORT_ANY,4,2             ## @IPSEC_PORT_ANY
	.no_dead_strip	_key_cmpspidx_withmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_cmpspidx_withmask
_key_cmpspidx_withmask:                 ; @key_cmpspidx_withmask
	.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
	orr	x8, x0, x1
	cbnz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_37
LBB0_2:
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_37
; %bb.3:
	mov	x20, x1
	cbz	x1, LBB0_37
; %bb.4:
	mov	x0, x19
	ldr	w8, [x0, #56]!
	mov	x1, x20
	ldr	w9, [x1, #56]!
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.5:
	mov	x21, x19
	ldr	w9, [x21, #8]!
	mov	x22, x20
	ldr	w10, [x22, #8]!
	cmp	w9, w10
	b.ne	LBB0_36
; %bb.6:
	ldr	x2, [x19, #64]
	ldr	x9, [x20, #64]
	cmp	x2, x9
	b.ne	LBB0_36
; %bb.7:
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_36
; %bb.8:
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _IPSEC_ULPROTO_ANY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IPSEC_ULPROTO_ANY@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_10
; %bb.9:
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_36
LBB0_10:
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_22
; %bb.12:
	ldr	w8, [x19, #88]
Lloh3:
	adrp	x9, _IPSEC_PORT_ANY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPSEC_PORT_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x20, #88]
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_14:
	add	x0, x19, #84
	add	x1, x20, #84
	b	LBB0_21
LBB0_15:
	ldr	w8, [x19, #80]
Lloh6:
	adrp	x9, _IPSEC_PORT_ANY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPSEC_PORT_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.16:
	ldr	w9, [x20, #80]
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_17:
	ldr	w8, [x19, #76]
	cbz	w8, LBB0_20
; %bb.18:
	ldr	w9, [x20, #76]
	cbz	w9, LBB0_20
; %bb.19:
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_20:
	add	x0, x19, #72
	add	x1, x20, #72
LBB0_21:
	ldr	w2, [x19, #96]
	bl	_key_bbcmp
	cbnz	w0, LBB0_23
	b	LBB0_37
LBB0_22:
	bl	_bcmp
	cbnz	w0, LBB0_36
LBB0_23:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_28
; %bb.24:
	cmp	w8, #129
	b.ne	LBB0_35
; %bb.25:
	ldr	w8, [x19, #40]
Lloh9:
	adrp	x9, _IPSEC_PORT_ANY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPSEC_PORT_ANY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_27
; %bb.26:
	ldr	w9, [x20, #40]
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_27:
	add	x0, x19, #36
	add	x1, x20, #36
	b	LBB0_34
LBB0_28:
	ldr	w8, [x19, #32]
Lloh12:
	adrp	x9, _IPSEC_PORT_ANY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPSEC_PORT_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_30
; %bb.29:
	ldr	w9, [x20, #32]
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_30:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_33
; %bb.31:
	ldr	w9, [x20, #28]
	cbz	w9, LBB0_33
; %bb.32:
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_33:
	add	x0, x19, #24
	add	x1, x20, #24
LBB0_34:
	ldr	w2, [x19, #48]
	bl	_key_bbcmp
	cbnz	w0, LBB0_1
	b	LBB0_37
LBB0_35:
	ldr	x2, [x19, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_bcmp
	cbz	w0, LBB0_1
LBB0_36:
	mov	w0, #0
LBB0_37:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_ULPROTO_ANY,8,3          ; @IPSEC_ULPROTO_ANY
	.comm	_IPSEC_PORT_ANY,4,2             ; @IPSEC_PORT_ANY
	.no_dead_strip	_key_cmpspidx_withmask
.subsections_via_symbols
