	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_rereg_mr                 ## -- Begin function __ibv_rereg_mr
	.p2align	4, 0x90
___ibv_rereg_mr:                        ## @__ibv_rereg_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	_IBV_REREG_MR_FLAGS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%esi, %eax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_IBV_REREG_MR_ERR_INPUT@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r9d, %r13d
	movq	%rcx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_IBV_REREG_MR_CHANGE_TRANSLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%esi, %ecx
	je	LBB0_6
## %bb.4:
	testq	%r15, %r15
	je	LBB0_1
## %bb.5:
	testq	%r8, %r8
	je	LBB0_1
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	_IBV_REREG_MR_CHANGE_ACCESS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
LBB0_8:
	movq	24(%r12), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %ecx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%r8, %rsi
	movq	%r8, %rbx
	callq	_ibv_dontfork_range
	testl	%eax, %eax
	je	LBB0_12
## %bb.25:
	movq	_IBV_REREG_MR_ERR_DONT_FORK_NEW@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_9:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	24(%r12), %rax
	movq	%rbx, %r8
	movq	(%rax), %rbx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_13:
	movq	(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%r13d, %r9d
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_14
## %bb.20:
	movq	_IBV_REREG_MR_ERR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_24
## %bb.21:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ibv_dofork_range
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movq	_IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	_IBV_REREG_MR_CHANGE_PD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.15:
	movq	%rcx, 16(%r12)
LBB0_16:
	movq	_IBV_REREG_MR_CHANGE_TRANSLATION@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_17
## %bb.18:
	movq	%r15, 8(%r12)
	movq	%rax, (%r12)
	callq	_ibv_dofork_range
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	movq	_IBV_REREG_MR_ERR_DO_FORK_OLD@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_REREG_MR_FLAGS_SUPPORTED,4,2 ## @IBV_REREG_MR_FLAGS_SUPPORTED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_IBV_REREG_MR_ERR_INPUT,4,2     ## @IBV_REREG_MR_ERR_INPUT
	.comm	_IBV_REREG_MR_CHANGE_TRANSLATION,4,2 ## @IBV_REREG_MR_CHANGE_TRANSLATION
	.comm	_IBV_REREG_MR_CHANGE_ACCESS,4,2 ## @IBV_REREG_MR_CHANGE_ACCESS
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_IBV_REREG_MR_ERR_DONT_FORK_NEW,4,2 ## @IBV_REREG_MR_ERR_DONT_FORK_NEW
	.comm	_IBV_REREG_MR_CHANGE_PD,4,2     ## @IBV_REREG_MR_CHANGE_PD
	.comm	_IBV_REREG_MR_ERR_DO_FORK_OLD,4,2 ## @IBV_REREG_MR_ERR_DO_FORK_OLD
	.comm	_IBV_REREG_MR_ERR_CMD,4,2       ## @IBV_REREG_MR_ERR_CMD
	.comm	_IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW,4,2 ## @IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_rereg_mr                 ; -- Begin function __ibv_rereg_mr
	.p2align	2
___ibv_rereg_mr:                        ; @__ibv_rereg_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
Lloh0:
	adrp	x8, _IBV_REREG_MR_FLAGS_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_REREG_MR_FLAGS_SUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w1, w8
	b.eq	LBB0_5
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x8, _IBV_REREG_MR_ERR_INPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBV_REREG_MR_ERR_INPUT@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh10:
	adrp	x27, _IBV_REREG_MR_CHANGE_TRANSLATION@GOTPAGE
Lloh11:
	ldr	x27, [x27, _IBV_REREG_MR_CHANGE_TRANSLATION@GOTPAGEOFF]
	ldr	w8, [x27]
	ands	w28, w8, w1
	b.eq	LBB0_8
; %bb.6:
	cbz	x20, LBB0_1
; %bb.7:
	cbz	x19, LBB0_1
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _IBV_REREG_MR_CHANGE_ACCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IBV_REREG_MR_CHANGE_ACCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_1
LBB0_10:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.11:
	cbz	w28, LBB0_16
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_ibv_dontfork_range
	cbz	w0, LBB0_15
; %bb.13:
Lloh15:
	adrp	x8, _IBV_REREG_MR_ERR_DONT_FORK_NEW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IBV_REREG_MR_ERR_DONT_FORK_NEW@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
Lloh17:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
LBB0_16:
	ldp	x26, x25, [x21]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	blr	x8
	cbz	w0, LBB0_19
; %bb.17:
Lloh19:
	adrp	x8, _IBV_REREG_MR_ERR_CMD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IBV_REREG_MR_ERR_CMD@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	cbz	w28, LBB0_4
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_ibv_dofork_range
Lloh22:
	adrp	x8, _IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, w21, w8, eq
	b	LBB0_4
LBB0_19:
Lloh25:
	adrp	x8, _IBV_REREG_MR_CHANGE_PD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IBV_REREG_MR_CHANGE_PD@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.20:
	str	x23, [x21, #16]
LBB0_21:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_23
; %bb.22:
	stp	x19, x20, [x21]
	mov	x0, x25
	mov	x1, x26
	bl	_ibv_dofork_range
Lloh28:
	adrp	x8, _IBV_REREG_MR_ERR_DO_FORK_OLD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IBV_REREG_MR_ERR_DO_FORK_OLD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, wzr, w8, eq
	b	LBB0_4
LBB0_23:
	mov	w21, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_REREG_MR_FLAGS_SUPPORTED,4,2 ; @IBV_REREG_MR_FLAGS_SUPPORTED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_IBV_REREG_MR_ERR_INPUT,4,2     ; @IBV_REREG_MR_ERR_INPUT
	.comm	_IBV_REREG_MR_CHANGE_TRANSLATION,4,2 ; @IBV_REREG_MR_CHANGE_TRANSLATION
	.comm	_IBV_REREG_MR_CHANGE_ACCESS,4,2 ; @IBV_REREG_MR_CHANGE_ACCESS
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_IBV_REREG_MR_ERR_DONT_FORK_NEW,4,2 ; @IBV_REREG_MR_ERR_DONT_FORK_NEW
	.comm	_IBV_REREG_MR_CHANGE_PD,4,2     ; @IBV_REREG_MR_CHANGE_PD
	.comm	_IBV_REREG_MR_ERR_DO_FORK_OLD,4,2 ; @IBV_REREG_MR_ERR_DO_FORK_OLD
	.comm	_IBV_REREG_MR_ERR_CMD,4,2       ; @IBV_REREG_MR_ERR_CMD
	.comm	_IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW,4,2 ; @IBV_REREG_MR_ERR_CMD_AND_DO_FORK_NEW
.subsections_via_symbols
