	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_bad_pkey                   ## -- Begin function qib_bad_pkey
	.p2align	4, 0x90
_qib_bad_pkey:                          ## @qib_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	incl	4(%rdi)
	incl	(%rdi)
	movq	%r9, %r14
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	_IB_NOTICE_TYPE_SECURITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_IB_NOTICE_PROD_CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_IB_NOTICE_TRAP_BAD_PKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	callq	_ppd_from_ibp
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r14, -96(%rbp)
	movq	16(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, -112(%rbp)
	shll	$28, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -120(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, -128(%rbp)
	movq	%r15, %rdi
	leaq	-128(%rbp), %rsi
	movl	$80, %edx
	callq	_qib_send_trap
	addq	$88, %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	_IB_NOTICE_PROD_CA,4,2          ## @IB_NOTICE_PROD_CA
	.comm	_IB_NOTICE_TRAP_BAD_PKEY,4,2    ## @IB_NOTICE_TRAP_BAD_PKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_bad_pkey                   ; -- Begin function qib_bad_pkey
	.p2align	2
_qib_bad_pkey:                          ; @qib_bad_pkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	d0, [x0]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
Lloh0:
	adrp	x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGEOFF]
	str	d0, [x0]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #72]
	str	xzr, [sp, #64]
Lloh3:
	adrp	x8, _IB_NOTICE_PROD_CA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_NOTICE_PROD_CA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IB_NOTICE_TRAP_BAD_PKEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_NOTICE_TRAP_BAD_PKEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #52]
	bl	_ppd_from_ibp
	ldr	w0, [x0]
	bl	_cpu_to_be16
	str	w0, [sp, #48]
	str	xzr, [sp, #40]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	stp	x20, x21, [sp, #24]
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	orr	w0, w23, w24, lsl #28
	bl	_cpu_to_be32
	str	x0, [sp, #8]
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #80
	bl	_qib_send_trap
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_IB_NOTICE_PROD_CA,4,2          ; @IB_NOTICE_PROD_CA
	.comm	_IB_NOTICE_TRAP_BAD_PKEY,4,2    ; @IB_NOTICE_TRAP_BAD_PKEY
.subsections_via_symbols
