	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_umr_res
_create_umr_res:                        ## @create_umr_res
	.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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	leaq	32(%r15), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ib_alloc_pd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_ib_dbg
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_IB_POLL_SOFTIRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_ib_alloc_cq
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_ib_dbg
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_20
LBB0_7:
	movq	%rbx, 24(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 16(%r12)
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_MAX_UMR_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movl	$1, 40(%r12)
	movq	_MLX5_IB_QPT_REG_UMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	movl	$1, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mlx5_ib_create_qp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_ib_dbg
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_9:
	movq	%r13, 40(%rbx)
	movq	%rbx, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_MLX5_IB_QPT_REG_UMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movups	16(%r12), %xmm0
	movups	%xmm0, (%rbx)
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	$1, (%r14)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rcx
	movq	_IB_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_mlx5_ib_modify_qp
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.10:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IB_MTU_256@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_mlx5_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_mlx5_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
LBB0_11:
	movq	%r15, %rdi
	callq	_mlx5_ib_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_mlx5_ib_destroy_qp
	movq	$0, 16(%r15)
LBB0_19:
	movq	%rbx, %rdi
	callq	_ib_free_cq
	movq	$0, 8(%r15)
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ib_dealloc_pd
	movq	$0, (%r15)
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
LBB0_22:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, 16(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 8(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	leaq	24(%r15), %rdi
	movq	_MAX_UMR_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sema_init
	movq	%r15, %rdi
	callq	_mlx5_mr_cache_init
	testl	%eax, %eax
	je	LBB0_23
## %bb.17:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_ib_warn
	jmp	LBB0_18
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't create PD for sync UMR QP\n"

	.comm	_IB_POLL_SOFTIRQ,4,2            ## @IB_POLL_SOFTIRQ
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't create CQ for sync UMR QP\n"

	.comm	_IB_SIGNAL_ALL_WR,4,2           ## @IB_SIGNAL_ALL_WR
	.comm	_MAX_UMR_WR,4,2                 ## @MAX_UMR_WR
	.comm	_MLX5_IB_QPT_REG_UMR,8,3        ## @MLX5_IB_QPT_REG_UMR
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't create sync UMR QP\n"

	.comm	_IB_QPS_INIT,4,2                ## @IB_QPS_INIT
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_PKEY_INDEX,4,2           ## @IB_QP_PKEY_INDEX
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't modify UMR QP\n"

	.comm	_IB_QPS_RTR,4,2                 ## @IB_QPS_RTR
	.comm	_IB_MTU_256,4,2                 ## @IB_MTU_256
L_.str.4:                               ## @.str.4
	.asciz	"Couldn't modify umr QP to rtr\n"

	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
L_.str.5:                               ## @.str.5
	.asciz	"Couldn't modify umr QP to rts\n"

L_.str.6:                               ## @.str.6
	.asciz	"mr cache init failed %d\n"

	.no_dead_strip	_create_umr_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_umr_res
_create_umr_res:                        ; @create_umr_res
	.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
	mov	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #56
	bl	_kzalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_18
LBB0_2:
	add	x25, x21, #32
	mov	x0, x25
	mov	w1, #0
	bl	_ib_alloc_pd
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mlx5_ib_dbg
	mov	x0, x22
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_18
LBB0_4:
Lloh7:
	adrp	x8, _IB_POLL_SOFTIRQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IB_POLL_SOFTIRQ@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x25
	mov	x1, #0
	mov	w2, #128
	mov	w3, #0
	bl	_ib_alloc_cq
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mlx5_ib_dbg
	mov	x0, x23
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_17
LBB0_6:
	stp	x23, x23, [x20, #16]
Lloh12:
	adrp	x8, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh15:
	adrp	x26, _MAX_UMR_WR@GOTPAGE
Lloh16:
	ldr	x26, [x26, _MAX_UMR_WR@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	w27, #1
	stp	w27, w8, [x20, #40]
Lloh17:
	adrp	x28, _MLX5_IB_QPT_REG_UMR@GOTPAGE
Lloh18:
	ldr	x28, [x28, _MLX5_IB_QPT_REG_UMR@GOTPAGEOFF]
	ldr	x8, [x28]
	str	x8, [x20, #32]
	str	w27, [x20]
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_mlx5_ib_create_qp
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_mlx5_ib_dbg
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_16
LBB0_8:
	stp	x24, x25, [x24, #32]
	ldr	x8, [x28]
	stp	x8, xzr, [x24, #16]
	ldp	x9, x8, [x20, #16]
	stp	x9, x8, [x24]
Lloh21:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	w27, w8, [x19]
Lloh24:
	adrp	x27, _IB_QP_STATE@GOTPAGE
Lloh25:
	ldr	x27, [x27, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh26:
	adrp	x9, _IB_QP_PKEY_INDEX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _IB_QP_PORT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IB_QP_PORT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x24
	mov	x1, x19
	mov	x3, #0
	bl	_mlx5_ib_modify_qp
	cbz	w0, LBB0_10
; %bb.9:
	mov	x25, x0
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh34:
	adrp	x8, _IB_QPS_RTR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_QPS_RTR@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _IB_MTU_256@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IB_MTU_256@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
	ldr	w2, [x27]
	mov	x0, x24
	mov	x1, x19
	mov	x3, #0
	bl	_mlx5_ib_modify_qp
	cbz	w0, LBB0_12
; %bb.11:
	mov	x25, x0
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh42:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w2, [x27]
	mov	x0, x24
	mov	x1, x19
	mov	x3, #0
	bl	_mlx5_ib_modify_qp
	cbz	w0, LBB0_19
; %bb.13:
	mov	x25, x0
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	x0, x21
	bl	_mlx5_ib_dbg
LBB0_15:
	mov	x0, x24
	mov	x1, #0
	bl	_mlx5_ib_destroy_qp
	str	xzr, [x21, #16]
LBB0_16:
	mov	x0, x23
	bl	_ib_free_cq
	str	xzr, [x21, #8]
LBB0_17:
	mov	x0, x22
	bl	_ib_dealloc_pd
	str	xzr, [x21]
LBB0_18:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x25
	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_19:
	stp	x23, x24, [x21, #8]
	str	x22, [x21]
	add	x0, x21, #24
	ldr	w1, [x26]
	bl	_sema_init
	mov	x0, x21
	bl	_mlx5_mr_cache_init
	mov	x25, x0
	cbz	w0, LBB0_18
; %bb.20:
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	bl	_mlx5_ib_warn
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't create PD for sync UMR QP\n"

	.comm	_IB_POLL_SOFTIRQ,4,2            ; @IB_POLL_SOFTIRQ
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't create CQ for sync UMR QP\n"

	.comm	_IB_SIGNAL_ALL_WR,4,2           ; @IB_SIGNAL_ALL_WR
	.comm	_MAX_UMR_WR,4,2                 ; @MAX_UMR_WR
	.comm	_MLX5_IB_QPT_REG_UMR,8,3        ; @MLX5_IB_QPT_REG_UMR
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't create sync UMR QP\n"

	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_PKEY_INDEX,4,2           ; @IB_QP_PKEY_INDEX
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't modify UMR QP\n"

	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
	.comm	_IB_MTU_256,4,2                 ; @IB_MTU_256
l_.str.4:                               ; @.str.4
	.asciz	"Couldn't modify umr QP to rtr\n"

	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
l_.str.5:                               ; @.str.5
	.asciz	"Couldn't modify umr QP to rts\n"

l_.str.6:                               ; @.str.6
	.asciz	"mr cache init failed %d\n"

	.no_dead_strip	_create_umr_res
.subsections_via_symbols
