	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_fast_reg_mr                ## -- Begin function qib_fast_reg_mr
	.p2align	4, 0x90
_qib_fast_reg_mr:                       ## @qib_fast_reg_mr
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_to_idev
	movq	%rax, %r14
	movq	(%r15), %rdi
	callq	_to_ipd
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r12)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_12
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.2:
	movq	_ib_qib_lkey_table_size@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subb	(%rax), %cl
	movl	%ebx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	8(%r14), %rcx
	cltq
	movl	(%rcx,%rax,4), %r12d
	movq	%r14, %rdi
	callq	_lockdep_is_held
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	jmp	LBB0_5
LBB0_3:
	movl	$1, %edi
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r11
	cmpq	8(%r12), %r11
	ja	LBB0_12
## %bb.7:
	movb	16(%rax), %cl
	movl	$1, %r8d
	shlq	%cl, %r8
	movq	24(%rax), %rdx
	movq	%r11, %rsi
	shlq	%cl, %rsi
	cmpq	%rsi, %rdx
	ja	LBB0_12
## %bb.8:
	movl	44(%rax), %ecx
	movl	%ecx, 48(%r12)
	movl	%ecx, 44(%r12)
	movl	%ebx, 16(%r12)
	movq	%rdx, 24(%r12)
	movl	40(%rax), %ecx
	movl	%ecx, 40(%r12)
	testq	%r11, %r11
	je	LBB0_9
## %bb.10:
	movq	32(%rax), %rcx
	movq	(%rcx), %r9
	movq	32(%r12), %r14
	movq	_QIB_SEGSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rbx,8), %r15
	movl	%ecx, %eax
	movq	(%r14,%rax,8), %rsi
	movq	(%rsi), %rsi
	movl	%edx, %edi
	shlq	$4, %rdi
	movq	%r15, 8(%rsi,%rdi)
	movq	(%r14,%rax,8), %rax
	movq	(%rax), %rax
	movq	%r8, (%rax,%rdi)
	incl	%edx
	xorl	%eax, %eax
	cmpl	%r10d, %edx
	cmovel	%r13d, %edx
	sete	%al
	addl	%eax, %ecx
	incl	%ebx
	cmpq	%rbx, %r11
	ja	LBB0_11
	jmp	LBB0_12
LBB0_9:
	xorl	%r13d, %r13d
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ib_qib_lkey_table_size,4,2     ## @ib_qib_lkey_table_size
	.comm	_QIB_SEGSZ,4,2                  ## @QIB_SEGSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_fast_reg_mr                ; -- Begin function qib_fast_reg_mr
	.p2align	2
_qib_fast_reg_mr:                       ; @qib_fast_reg_mr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_to_idev
	mov	x19, x0
	ldr	x0, [x23]
	bl	_to_ipd
	mov	x22, x0
	ldr	w24, [x21]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	cmp	x8, #0
	ccmp	w24, #0, #4, eq
	b.eq	LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _ib_qib_lkey_table_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_qib_lkey_table_size@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	asr	w8, w24, w8
	ldr	w22, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_10
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_10
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.hi	LBB0_10
; %bb.5:
	ldp	x12, x9, [x21, #16]
	lsl	x10, x8, x12
	cmp	x9, x10
	b.hi	LBB0_10
; %bb.6:
	ldp	w11, w10, [x21, #40]
	stp	w10, w10, [x22, #44]
	str	w24, [x22, #16]
	str	x9, [x22, #24]
	str	w11, [x22, #40]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x9, #0
	mov	w10, #0
	mov	w11, #0
	mov	w13, #1
	lsl	x12, x13, x12
	ldr	x13, [x21, #32]
	ldr	x13, [x13]
	ldr	x14, [x22, #32]
Lloh6:
	adrp	x15, _QIB_SEGSZ@GOTPAGE
Lloh7:
	ldr	x15, [x15, _QIB_SEGSZ@GOTPAGEOFF]
Lloh8:
	ldr	w15, [x15]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w20, #0
	ldr	x16, [x13, x9, lsl #3]
	mov	w17, w11
	lsl	x17, x17, #3
	ldr	x0, [x14, x17]
	ldr	x0, [x0]
	mov	w1, w10
	lsl	x1, x1, #4
	add	x0, x0, x1
	str	x16, [x0, #8]
	ldr	x16, [x14, x17]
	ldr	x16, [x16]
	str	x12, [x16, x1]
	add	w16, w10, #1
	cmp	w16, w15
	cinc	w11, w11, eq
	csinc	w10, wzr, w10, eq
	add	w9, w9, #1
	cmp	x8, x9
	b.hi	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ib_qib_lkey_table_size,4,2     ; @ib_qib_lkey_table_size
	.comm	_QIB_SEGSZ,4,2                  ; @QIB_SEGSZ
.subsections_via_symbols
