	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_reg_sig_mr
_iser_reg_sig_mr:                       ## @iser_reg_sig_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r15
	movq	16(%r15), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_iser_set_sig_attrs
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%rbx), %edi
	addq	$56, %r13
	movq	%r13, %rsi
	callq	_iser_set_prot_checks
	cmpl	$0, (%r12)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	leaq	20(%rbx), %rdi
	leaq	40(%rbx), %rcx
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_iser_inv_rkey
LBB0_3:
	movl	8(%r15), %edi
	callq	_ib_inc_rkey
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ib_update_fast_reg_key
	movq	%r14, %r13
	movl	8(%r14), %esi
	movq	(%r14), %rdx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %r8d
	movq	(%r12), %r9
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	$0
	callq	_ib_map_mr_sg_pi
	addq	$16, %rsp
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_iser_err
	jmp	LBB0_6
LBB0_5:
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	movq	%rax, %r12
	callq	_memset
	leaq	16(%rbx), %rax
	movq	%rax, 72(%rbx)
	movq	_IB_WR_REG_MR_INTEGRITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	12(%r15), %esi
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movdqu	(%r15), %xmm0
	pextrd	$2, %xmm0, 28(%rbx)
	pextrd	$2, %xmm0, %edx
	pshufd	$180, %xmm0, %xmm0              ## xmm0 = xmm0[0,1,3,2]
	movdqu	%xmm0, (%r12)
	leaq	L_.str.1(%rip), %rdi
	callq	_iser_dbg
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map PI sg (%d)\n"

	.comm	_IB_WR_REG_MR_INTEGRITY,4,2     ## @IB_WR_REG_MR_INTEGRITY
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"lkey=0x%x rkey=0x%x addr=0x%llx length=%u\n"

	.no_dead_strip	_iser_reg_sig_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_reg_sig_mr
_iser_reg_sig_mr:                       ; @iser_reg_sig_mr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x21, [x3, #8]
	ldr	x27, [x21, #16]
	mov	x0, x27
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w0, [x22]
	mov	x1, x27
	bl	_iser_set_sig_attrs
	mov	x26, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x22]
	add	x1, x27, #56
	bl	_iser_set_prot_checks
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
	add	x0, x22, #20
	add	x3, x22, #40
	mov	x1, x21
	mov	x2, x23
	bl	_iser_inv_rkey
LBB0_3:
	ldr	w0, [x21, #8]
	bl	_ib_inc_rkey
	mov	x1, x0
	mov	x0, x21
	bl	_ib_update_fast_reg_key
	ldr	w1, [x25, #8]
	ldr	x2, [x25]
	ldr	w4, [x24, #8]
	ldr	x5, [x24]
Lloh0:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	mov	x0, x21
	mov	x3, #0
	mov	x6, #0
	bl	_ib_map_mr_sg_pi
	mov	x26, x0
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x25]
	ldr	x9, [x24]
	add	x1, x9, x8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_err
	b	LBB0_6
LBB0_5:
	add	x0, x22, #24
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh5:
	adrp	x8, _IB_WR_REG_MR_INTEGRITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_WR_REG_MR_INTEGRITY@GOTPAGEOFF]
	add	x9, x22, #16
	str	x9, [x22, #72]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22, #64]
	stp	xzr, x23, [x22, #48]
	stp	x21, xzr, [x22, #32]
Lloh8:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	w2, w1, [x21, #8]
	stp	w8, w2, [x22, #24]
	mov	w8, #1
	str	w8, [x20]
	stp	w1, w2, [x19, #8]
	ldp	w4, w3, [x21]
	stp	w4, w3, [x19]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_dbg
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map PI sg (%d)\n"

	.comm	_IB_WR_REG_MR_INTEGRITY,4,2     ; @IB_WR_REG_MR_INTEGRITY
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"lkey=0x%x rkey=0x%x addr=0x%llx length=%u\n"

	.no_dead_strip	_iser_reg_sig_mr
.subsections_via_symbols
