	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_alloc_mr_integrity          ## -- Begin function ib_alloc_mr_integrity
	.p2align	4, 0x90
_ib_alloc_mr_integrity:                 ## @ib_alloc_mr_integrity
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%rax)
	je	LBB0_2
## %bb.4:
	movl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_5
## %bb.6:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	*(%rax)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	8(%rbx), %rax
	movq	%rax, 48(%r15)
	movq	%rbx, 40(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movq	%rbx, %rdi
	callq	_atomic_inc
	movl	$0, (%r15)
	movq	_RDMA_RESTRACK_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdi
	addq	$20, %rdi
	movl	%eax, 20(%r15)
	callq	_rdma_restrack_kadd
	movq	_IB_MR_TYPE_INTEGRITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r14, 8(%r15)
LBB0_11:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDMA_RESTRACK_MR,4,2           ## @RDMA_RESTRACK_MR
	.comm	_IB_MR_TYPE_INTEGRITY,4,2       ## @IB_MR_TYPE_INTEGRITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_alloc_mr_integrity          ; -- Begin function ib_alloc_mr_integrity
	.p2align	2
_ib_alloc_mr_integrity:                 ; @ib_alloc_mr_integrity
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x21, x2
	cbz	w2, LBB0_8
; %bb.3:
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	blr	x8
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #8]
	stp	x19, x8, [x21, #40]
	stp	xzr, xzr, [x21, #24]
	mov	x0, x19
	bl	_atomic_inc
	str	wzr, [x21]
Lloh9:
	adrp	x8, _RDMA_RESTRACK_MR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_RESTRACK_MR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x19, x21
	str	w8, [x19, #20]!
	mov	x0, x19
	bl	_rdma_restrack_kadd
Lloh12:
	adrp	x8, _IB_MR_TYPE_INTEGRITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_MR_TYPE_INTEGRITY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stur	w8, [x19, #-4]
	stur	x20, [x19, #-12]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDMA_RESTRACK_MR,4,2           ; @RDMA_RESTRACK_MR
	.comm	_IB_MR_TYPE_INTEGRITY,4,2       ; @IB_MR_TYPE_INTEGRITY
.subsections_via_symbols
