	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_create_fastreg_desc
_iser_create_fastreg_desc:              ## @iser_create_fastreg_desc
	.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	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_IB_DEVICE_SG_GAPS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_IB_MR_TYPE_MEM_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	_IB_MR_TYPE_SG_GAPS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ib_alloc_mr
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_err
	jmp	LBB0_11
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_ib_alloc_mr_integrity
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	16(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_err
	movl	(%r13), %edi
	callq	_ib_dereg_mr
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movq	$0, 8(%r13)
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ## @IB_DEVICE_SG_GAPS_REG
	.comm	_IB_MR_TYPE_SG_GAPS,4,2         ## @IB_MR_TYPE_SG_GAPS
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ## @IB_MR_TYPE_MEM_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate ib_fast_reg_mr err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate sig_mr err=%d\n"

	.no_dead_strip	_iser_create_fastreg_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_create_fastreg_desc
_iser_create_fastreg_desc:              ; @iser_create_fastreg_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IB_MR_TYPE_MEM_REG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IB_MR_TYPE_MEM_REG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _IB_MR_TYPE_SG_GAPS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IB_MR_TYPE_SG_GAPS@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_ib_alloc_mr
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_iser_err
	b	LBB0_7
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	cbz	w22, LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x20
	bl	_ib_alloc_mr_integrity
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_iser_err
	ldr	w0, [x19]
	bl	_ib_dereg_mr
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	str	xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ; @IB_DEVICE_SG_GAPS_REG
	.comm	_IB_MR_TYPE_SG_GAPS,4,2         ; @IB_MR_TYPE_SG_GAPS
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ; @IB_MR_TYPE_MEM_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate ib_fast_reg_mr err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate sig_mr err=%d\n"

	.no_dead_strip	_iser_create_fastreg_desc
.subsections_via_symbols
