	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingress_pkey_check
_ingress_pkey_check:                    ## @ingress_pkey_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	testl	%r9d, %r9d
	jne	LBB0_3
## %bb.1:
	movq	_HFI1_PART_ENFORCE_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
LBB0_3:
	cmpl	$15, %edx
	sete	%dl
	movq	_PKEY_LOW_15_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %eax
	andl	%r12d, %eax
	cmpl	%esi, %eax
	setne	%bl
	testb	%bl, %dl
	jne	LBB0_7
## %bb.4:
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r12d, %edi
	callq	_ingress_pkey_matches_entry
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ingress_pkey_table_search
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_ingress_pkey_table_fail
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_PART_ENFORCE_IN,4,2       ## @HFI1_PART_ENFORCE_IN
	.comm	_PKEY_LOW_15_MASK,4,2           ## @PKEY_LOW_15_MASK
	.no_dead_strip	_ingress_pkey_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingress_pkey_check
_ingress_pkey_check:                    ; @ingress_pkey_check
	.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
	mov	x19, x4
	mov	x20, x1
	mov	x21, x0
	cbnz	w5, LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HFI1_PART_ENFORCE_IN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFI1_PART_ENFORCE_IN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _PKEY_LOW_15_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKEY_LOW_15_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w9, w8, w20
	cmp	w9, w8
	ccmp	w2, #15, #0, ne
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ingress_pkey_table_fail
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w1, [x8, w3, sxtw #2]
	mov	x0, x20
	bl	_ingress_pkey_matches_entry
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_ingress_pkey_table_search
	cbnz	w0, LBB0_3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_PART_ENFORCE_IN,4,2       ; @HFI1_PART_ENFORCE_IN
	.comm	_PKEY_LOW_15_MASK,4,2           ; @PKEY_LOW_15_MASK
	.no_dead_strip	_ingress_pkey_check
.subsections_via_symbols
