	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_bad_pkey                  ## -- Begin function hfi1_bad_pkey
	.p2align	4, 0x90
_hfi1_bad_pkey:                         ## @hfi1_bad_pkey
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	16(%rbp), %r14d
	callq	_ppd_from_ibp
	movl	(%rax), %edx
	incl	4(%r13)
	incl	(%r13)
	movq	_IB_NOTICE_TYPE_SECURITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPA_TRAP_BAD_P_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_create_trap_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 48(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 32(%rbx)
	shll	$3, %r12d
	movl	%r12d, 8(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	movl	$48, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_trap                      ## TAILCALL
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NOTICE_TYPE_SECURITY,4,2    ## @IB_NOTICE_TYPE_SECURITY
	.comm	_OPA_TRAP_BAD_P_KEY,4,2         ## @OPA_TRAP_BAD_P_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_bad_pkey                  ; -- Begin function hfi1_bad_pkey
	.p2align	2
_hfi1_bad_pkey:                         ; @hfi1_bad_pkey
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x25, x6
	mov	x26, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	bl	_ppd_from_ibp
	ldr	w2, [x0]
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
Lloh0:
	adrp	x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _OPA_TRAP_BAD_P_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_TRAP_BAD_P_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_create_trap_node
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x26
	bl	_cpu_to_be32
	str	x0, [x23, #48]
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [x23, #40]
	mov	x0, x24
	bl	_cpu_to_be32
	str	x0, [x23, #32]
	lsl	w8, w22, #3
	str	w8, [x23, #8]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x23, #24]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x23, #16]
	mov	w8, #48
	str	w8, [x23]
	mov	x0, x19
	mov	x1, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_send_trap
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NOTICE_TYPE_SECURITY,4,2    ; @IB_NOTICE_TYPE_SECURITY
	.comm	_OPA_TRAP_BAD_P_KEY,4,2         ; @OPA_TRAP_BAD_P_KEY
.subsections_via_symbols
