	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_user_srq
_create_user_srq:                       ## @create_user_srq
	.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	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	40(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r14
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_ib_copy_from_udata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_2:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_umem_get
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_4:
	callq	_ib_umem_page_count
	movl	4(%r14), %ecx
	movl	$1, %esi
	shll	%cl, %esi
                                        ## kill: def $eax killed $eax def $rax
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	leaq	8(%r12), %r15
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ecx, %edx
	movq	%r15, %rcx
	callq	_hns_roce_mtt_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hns_roce_ib_umem_write_mtt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	-48(%rbp), %esi
	movl	16(%r12), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_umem_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	24(%r12), %rdi
	callq	_ib_umem_page_count
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	32(%r12), %r13
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	_hns_roce_mtt_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	24(%r12), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hns_roce_ib_umem_write_mtt
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hns_roce_mtt_cleanup
LBB0_13:
	movq	24(%r12), %rdi
	callq	_ib_umem_release
LBB0_14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hns_roce_mtt_cleanup
LBB0_15:
	movq	(%r12), %rdi
	callq	_ib_umem_release
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_umem_get error for index queue\n"

L_.str.1:                               ## @.str.1
	.asciz	"hns_roce_mtt_init error for idx que\n"

L_.str.2:                               ## @.str.2
	.asciz	"hns_roce_ib_umem_write_mtt error for idx que\n"

	.no_dead_strip	_create_user_srq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_user_srq
_create_user_srq:                       ; @create_user_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_to_hr_dev
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #8
	bl	_ib_copy_from_udata
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_2:
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_ib_umem_get
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_15
LBB0_4:
	bl	_ib_umem_page_count
	ldr	w8, [x20, #4]
	mov	w9, #1
	lsl	w9, w9, w8
	add	w10, w0, w9
	sub	w10, w10, #1
	sdiv	w1, w10, w9
Lloh3:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w2, w9, w8
	add	x21, x19, #8
	mov	x0, x20
	mov	x3, x21
	bl	_hns_roce_mtt_init
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_hns_roce_ib_umem_write_mtt
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	w1, [sp, #8]
	ldr	w2, [x19, #16]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #0
	bl	_ib_umem_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_13
LBB0_8:
	ldr	x0, [x19, #24]
	bl	_ib_umem_page_count
	mov	x1, x0
	ldr	w2, [x24]
	add	x22, x19, #32
	mov	x0, x20
	mov	x3, x22
	bl	_hns_roce_mtt_init
	cbz	w0, LBB0_10
; %bb.9:
	mov	x23, x0
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	ldr	x2, [x19, #24]
	mov	x0, x20
	mov	x1, x22
	bl	_hns_roce_ib_umem_write_mtt
	mov	x23, x0
	cbz	w0, LBB0_15
; %bb.11:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	mov	x1, x22
	bl	_hns_roce_mtt_cleanup
LBB0_12:
	ldr	x0, [x19, #24]
	bl	_ib_umem_release
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_hns_roce_mtt_cleanup
LBB0_14:
	ldr	x0, [x19]
	bl	_ib_umem_release
LBB0_15:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_umem_get error for index queue\n"

l_.str.1:                               ; @.str.1
	.asciz	"hns_roce_mtt_init error for idx que\n"

l_.str.2:                               ; @.str.2
	.asciz	"hns_roce_ib_umem_write_mtt error for idx que\n"

	.no_dead_strip	_create_user_srq
.subsections_via_symbols
