	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_bad_mkey
_qib_bad_mkey:                          ## @qib_bad_mkey
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_IB_NOTICE_TYPE_SECURITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_IB_NOTICE_PROD_CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_IB_NOTICE_TRAP_BAD_MKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_ppd_from_ibp
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	-64(%rbp), %eax
	movl	%eax, -68(%rbp)
	movups	20(%r15), %xmm0
	movups	%xmm0, -84(%rbp)
	movq	(%r15), %rax
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	16(%r15), %eax
	movl	%eax, -88(%rbp)
	movq	_IB_NOTICE_TRAP_DR_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	12(%r15), %ebx
	movl	-96(%rbp), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jle	LBB0_3
## %bb.2:
	movq	_IB_NOTICE_TRAP_DR_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -92(%rbp)
	movl	-96(%rbp), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
LBB0_3:
	orl	%ebx, -92(%rbp)
	movl	-96(%rbp), %edi
	movl	8(%r15), %esi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_4:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$72, %edx
	callq	_qib_send_trap
	addq	$72, %rsp
	popq	%rbx
	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_MKEY,4,2    ## @IB_NOTICE_TRAP_BAD_MKEY
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_NOTICE_TRAP_DR_NOTICE,4,2   ## @IB_NOTICE_TRAP_DR_NOTICE
	.comm	_IB_NOTICE_TRAP_DR_TRUNC,4,2    ## @IB_NOTICE_TRAP_DR_TRUNC
	.no_dead_strip	_qib_bad_mkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_bad_mkey
_qib_bad_mkey:                          ; @qib_bad_mkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_NOTICE_TYPE_SECURITY@GOTPAGEOFF]
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_MKEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_NOTICE_TRAP_BAD_MKEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	bl	_ppd_from_ibp
	ldr	w0, [x0]
	bl	_cpu_to_be16
	str	w0, [sp, #40]
	str	xzr, [sp, #48]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [sp, #40]
	str	w8, [sp, #36]
	ldur	q0, [x20, #20]
	stur	q0, [sp, #20]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh12:
	adrp	x8, _IB_NOTICE_TRAP_DR_NOTICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_NOTICE_TRAP_DR_NOTICE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w21, w9, [x20, #12]
	stp	w8, w9, [sp, #12]
	ldr	w0, [sp, #8]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.le	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _IB_NOTICE_TRAP_DR_TRUNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_NOTICE_TRAP_DR_TRUNC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldp	w0, w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	bl	_ARRAY_SIZE
	mov	x21, x0
LBB0_3:
	ldp	w0, w8, [sp, #8]
	orr	w8, w8, w21
	str	w8, [sp, #12]
	ldr	w1, [x20, #8]
	mov	x2, x21
	bl	_memcpy
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #72
	bl	_qib_send_trap
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_MKEY,4,2    ; @IB_NOTICE_TRAP_BAD_MKEY
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_NOTICE_TRAP_DR_NOTICE,4,2   ; @IB_NOTICE_TRAP_DR_NOTICE
	.comm	_IB_NOTICE_TRAP_DR_TRUNC,4,2    ; @IB_NOTICE_TRAP_DR_TRUNC
	.no_dead_strip	_qib_bad_mkey
.subsections_via_symbols
