	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_rereg_mr               ## -- Begin function ibv_cmd_rereg_mr
	.p2align	4, 0x90
_ibv_cmd_rereg_mr:                      ## @ibv_cmd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	48(%rbp), %r8
	movq	40(%rbp), %rcx
	movq	32(%rbp), %rsi
	movq	24(%rbp), %r15
	movq	_REREG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_IBV_INIT_CMD_RESP
	movl	16(%r14), %eax
	movl	%eax, 36(%r15)
	movl	%ebx, (%r15)
	movq	%r13, 8(%r15)
	movq	%r12, 16(%r15)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r15)
	movq	_IBV_REREG_MR_CHANGE_PD@GOTPCREL(%rip), %r13
	movl	%ebx, %r12d
	testl	%ebx, (%r13)
	je	LBB0_1
## %bb.2:
	movq	16(%rbp), %rax
	movl	8(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, 28(%r15)
	movl	%ecx, 24(%r15)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	32(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.5:
	movq	40(%rbp), %r15
	movq	%r15, %rdi
	movq	48(%rbp), %rsi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	4(%r15), %eax
	movl	%eax, 12(%r14)
	movl	(%r15), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	testl	%r12d, (%r13)
	je	LBB0_7
## %bb.6:
	movq	16(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_7
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REREG_MR,4,2                   ## @REREG_MR
	.comm	_IBV_REREG_MR_CHANGE_PD,4,2     ## @IBV_REREG_MR_CHANGE_PD
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_rereg_mr               ; -- Begin function ibv_cmd_rereg_mr
	.p2align	2
_ibv_cmd_rereg_mr:                      ; @ibv_cmd_rereg_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x7
	mov	x26, x6
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	mov	x27, x4
	mov	x28, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x22, x23, [x29, #24]
	ldr	x25, [x29, #16]
Lloh0:
	adrp	x8, _REREG_MR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REREG_MR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x7
	mov	x1, x25
	mov	x3, x22
	mov	x4, x23
	bl	_IBV_INIT_CMD_RESP
	ldr	w8, [x20, #16]
	str	w21, [x24]
	stp	x19, x28, [x24, #8]
	stp	w27, w8, [x24, #32]
Lloh3:
	adrp	x19, _IBV_REREG_MR_CHANGE_PD@GOTPAGE
Lloh4:
	ldr	x19, [x19, _IBV_REREG_MR_CHANGE_PD@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x26, #8]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	stp	w9, w8, [x24, #24]
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, x25
	bl	_write
	cmp	x0, x25
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	d0, [x22]
	str	d0, [x20, #8]
	ldr	w8, [x19]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	mov	w0, #0
	ldr	x8, [x26]
	str	x8, [x20]
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REREG_MR,4,2                   ; @REREG_MR
	.comm	_IBV_REREG_MR_CHANGE_PD,4,2     ; @IBV_REREG_MR_CHANGE_PD
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
