	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_rereg_phys_mr               ## -- Begin function ib_rereg_phys_mr
	.p2align	4, 0x90
_ib_rereg_phys_mr:                      ## @ib_rereg_phys_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	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	addq	$16, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbp), %rcx
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_IB_MR_REREG_PD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	callq	_atomic_dec
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IB_MR_REREG_PD,4,2             ## @IB_MR_REREG_PD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_rereg_phys_mr               ; -- Begin function ib_rereg_phys_mr
	.p2align	2
_ib_rereg_phys_mr:                      ; @ib_rereg_phys_mr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x19, x2
	mov	x20, x1
	mov	x26, x0
	add	x0, x0, #16
	bl	_atomic_read
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	x8, x24, [x26]
	ldr	x8, [x8]
	mov	x0, x26
	mov	x1, x20
	mov	x2, x19
	mov	x3, x25
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	blr	x8
	cbnz	w0, LBB0_5
; %bb.7:
Lloh4:
	adrp	x8, _IB_MR_REREG_PD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_MR_REREG_PD@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_atomic_dec
	mov	x0, x19
	bl	_atomic_inc
LBB0_9:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IB_MR_REREG_PD,4,2             ; @IB_MR_REREG_PD
.subsections_via_symbols
