	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_create_srq             ## -- Begin function mlx4_ib_create_srq
	.p2align	4, 0x90
_mlx4_ib_create_srq:                    ## @mlx4_ib_create_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r14
	movl	8(%r15), %ecx
	movq	(%rax), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_2
## %bb.1:
	movq	16(%r15), %rcx
	cmpq	8(%rax), %rcx
	jle	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	116(%rax), %rdi
	callq	_mutex_init
	leaq	112(%r13), %rdi
	callq	_spin_lock_init
	movl	8(%r15), %edi
	incl	%edi
	callq	_roundup_pow_of_two
	leaq	64(%r13), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, 64(%r13)
	movq	16(%r15), %rax
	movq	%rax, 72(%r13)
	leal	4(,%rax,4), %edi
	callq	_roundup_pow_of_two
	movl	$32, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ilog2
	movl	%eax, 88(%r13)
	movl	64(%r13), %eax
	imull	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.7:
	leaq	-96(%rbp), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_ib_copy_from_udata
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_50
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	movq	(%r14), %rdi
	leaq	8(%r13), %rsi
	xorl	%edx, %edx
	callq	_mlx4_db_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_50
## %bb.20:
	movq	16(%r13), %rax
	movq	$0, (%rax)
	movq	(%r14), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	leaq	24(%r13), %rbx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_mlx4_buf_alloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_48
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	-92(%rbp), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_umem_get
	movq	%rax, 32(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	32(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_50
LBB0_11:
	movq	(%r14), %r12
	movq	32(%r13), %rdi
	callq	_ib_umem_page_count
	movl	%eax, %ebx
	movq	32(%r13), %rax
	movl	(%rax), %edi
	callq	_ilog2
	leaq	40(%r13), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rcx, %rbx
	movl	%eax, %edx
	callq	_mlx4_mtt_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.18:
	movl	%eax, %r12d
	jmp	LBB0_43
LBB0_22:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	64(%r13), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%r13)
	testl	%eax, %eax
	jle	LBB0_28
## %bb.23:
	movslq	%r12d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_MLX4_INVALID_LKEY@GOTPCREL(%rip), %r14
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r12d
	movq	-112(%rbp), %r13                ## 8-byte Reload
	jge	LBB0_28
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_get_wqe
	movq	%rax, %rbx
	incl	%r12d
	movl	64(%r13), %edi
	movl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	addl	%eax, %edi
	andl	%r12d, %edi
	callq	_cpu_to_be16
	movl	%eax, (%rbx)
	leaq	4(%rbx), %r13
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rbx
	jbe	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	(%r14), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r13)
	addq	$4, %r13
	jmp	LBB0_27
LBB0_28:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	movl	24(%r13), %edx
	movl	28(%r13), %esi
	leaq	40(%r13), %rbx
	movq	%rbx, %rcx
	callq	_mlx4_mtt_init
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_44
## %bb.29:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_mlx4_buf_write_mtt
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %r12d
	jmp	LBB0_42
LBB0_12:
	movq	32(%r13), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx4_ib_umem_write_mtt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_to_mucontext
	movl	-96(%rbp), %esi
	leaq	8(%r13), %rdx
	movl	%eax, %edi
	callq	_mlx4_ib_db_map_user
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_42
	jmp	LBB0_14
LBB0_31:
	movl	64(%r13), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_32
LBB0_14:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	_IB_SRQT_XRC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	jne	LBB0_16
## %bb.15:
	movl	28(%r15), %edi
	callq	_to_mcq
	movl	(%rax), %edx
	movq	(%r15), %rax
	movq	(%rbx), %rcx
LBB0_16:
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	cmpq	%rcx, %rax
	jne	LBB0_33
## %bb.17:
	movl	24(%r15), %edi
	callq	_to_mxrcd
	movl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	jmp	LBB0_34
LBB0_33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movl	16(%r12), %r14d
LBB0_34:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_to_mpd
	movl	(%rax), %esi
	leaq	40(%r13), %r8
	movl	8(%r13), %r9d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_mlx4_srq_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_38
## %bb.35:
	movq	_mlx4_ib_srq_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r13)
	movl	80(%r13), %eax
	movl	%eax, 56(%r13)
	cmpq	$0, (%rbx)
	je	LBB0_52
## %bb.36:
	leaq	80(%r13), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_ib_copy_to_udata
	testq	%rax, %rax
	je	LBB0_52
## %bb.37:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_38:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	leaq	8(%r13), %rbx
	movl	(%rax), %edi
	callq	_to_mucontext
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_mlx4_ib_db_unmap_user
	jmp	LBB0_41
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_42
LBB0_40:
	movq	48(%r13), %rdi
	callq	_kfree
LBB0_41:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_42:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mlx4_mtt_cleanup
LBB0_43:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_44:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.45:
	movq	32(%r13), %rdi
	callq	_ib_umem_release
	jmp	LBB0_47
LBB0_46:
	movq	(%r14), %rdi
	leaq	24(%r13), %rdx
	callq	_mlx4_buf_free
LBB0_47:
	movl	%r12d, %ebx
LBB0_48:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_50
## %bb.49:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	addq	$8, %rsi
	callq	_mlx4_db_free
LBB0_50:
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r13
LBB0_51:
	movq	%r13, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	addq	$56, %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	decl	%eax
	movl	%eax, 8(%r15)
	jmp	LBB0_51
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MLX4_INVALID_LKEY,4,2          ## @MLX4_INVALID_LKEY
	.comm	_IB_SRQT_XRC,8,3                ## @IB_SRQT_XRC
	.comm	_mlx4_ib_srq_event,4,2          ## @mlx4_ib_srq_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_create_srq             ; -- Begin function mlx4_ib_create_srq
	.p2align	2
_mlx4_ib_create_srq:                    ; @mlx4_ib_create_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_mdev
	ldr	w9, [x23, #8]
	ldr	x8, [x0]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	ldr	x9, [x23, #16]
	ldr	x8, [x8, #8]
	cmp	x9, x8
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ERR_PTR
LBB0_4:
	mov	x21, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #120
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x19, x0
	add	x0, x0, #116
	bl	_mutex_init
	add	x0, x19, #112
	bl	_spin_lock_init
	ldr	w8, [x23, #8]
	add	w0, w8, #1
	bl	_roundup_pow_of_two
	mov	x25, x19
	str	w0, [x25, #64]!
	ldr	x8, [x23, #16]
	str	x8, [x25, #8]
	lsl	w8, w8, #2
	add	w0, w8, #4
	bl	_roundup_pow_of_two
	mov	x1, x0
	mov	w0, #32
	bl	_max
	mov	x26, x0
	bl	_ilog2
	str	w0, [x25, #24]
	ldr	w8, [x25]
	mul	w22, w8, w26
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.6:
	add	x0, sp, #24
	mov	x1, x24
	mov	w2, #8
	bl	_ib_copy_from_udata
	cbz	x0, LBB0_12
; %bb.7:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_48
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	ldr	x0, [x21]
	add	x1, x19, #8
	mov	w2, #0
	bl	_mlx4_db_alloc
	mov	x27, x0
	cbnz	w0, LBB0_48
; %bb.10:
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	ldr	x0, [x21]
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	add	x27, x19, #24
	mov	x1, x22
	mov	x3, x27
	bl	_mlx4_buf_alloc
	cbz	x0, LBB0_16
; %bb.11:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_46
LBB0_12:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [sp, #28]
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	bl	_ib_umem_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
	mov	x27, x0
	b	LBB0_48
LBB0_14:
	ldr	x27, [x21]
	ldr	x0, [x19, #32]
	bl	_ib_umem_page_count
	mov	x28, x0
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_ilog2
	mov	x2, x0
	add	x26, x19, #40
	mov	x0, x27
	mov	x1, x28
	mov	x3, x26
	bl	_mlx4_mtt_init
	cbz	w0, LBB0_25
; %bb.15:
	mov	x27, x0
	b	LBB0_43
LBB0_16:
	str	x27, [sp]                       ; 8-byte Folded Spill
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [x19, #64]
	stp	xzr, xzr, [x19, #96]
	subs	w8, w8, #1
	str	w8, [x19]
	b.lt	LBB0_22
; %bb.17:
	mov	w27, #0
	sxtw	x8, w26
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh16:
	adrp	x28, _MLX4_INVALID_LKEY@GOTPAGE
Lloh17:
	ldr	x28, [x28, _MLX4_INVALID_LKEY@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x25]
	cmp	w27, w8
	b.ge	LBB0_22
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	mov	x0, x19
	mov	x1, x27
	bl	_get_wqe
	mov	x26, x0
	add	w27, w27, #1
	ldr	w8, [x19, #64]
	mov	w9, #2147483647
	add	w8, w8, w9
	and	w0, w8, w27
	bl	_cpu_to_be16
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x22, x26, x8
LBB0_20:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w0, [x26], #4
	cmp	x22, x26
	b.ls	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	w0, [x28]
	bl	_cpu_to_be32
	b	LBB0_20
LBB0_22:
	ldr	x0, [x21]
	add	x26, x19, #40
	ldp	w2, w1, [x19, #24]
	mov	x3, x26
	bl	_mlx4_mtt_init
	mov	x27, x0
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	cbnz	w0, LBB0_43
; %bb.23:
	ldr	x0, [x21]
	mov	x1, x26
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	bl	_mlx4_buf_write_mtt
	cbz	w0, LBB0_27
; %bb.24:
	mov	x27, x0
	b	LBB0_42
LBB0_25:
	ldr	x2, [x19, #32]
	mov	x0, x21
	mov	x1, x26
	bl	_mlx4_ib_umem_write_mtt
	mov	x27, x0
	cbnz	w0, LBB0_42
; %bb.26:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_to_mucontext
	ldr	w1, [sp, #24]
	add	x2, x19, #8
	bl	_mlx4_ib_db_map_user
	mov	x27, x0
	cbnz	w0, LBB0_42
	b	LBB0_28
LBB0_27:
	ldr	w8, [x19, #64]
	lsl	w0, w8, #2
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_40
LBB0_28:
	mov	x26, x22
	ldr	x8, [x23]
Lloh21:
	adrp	x22, _IB_SRQT_XRC@GOTPAGE
Lloh22:
	ldr	x22, [x22, _IB_SRQT_XRC@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:
	ldr	w0, [x23, #28]
	bl	_to_mcq
	ldr	w8, [x0]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [x23]
	ldr	x9, [x22]
	b	LBB0_31
LBB0_30:
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
LBB0_31:
	cmp	x8, x9
	mov	x22, x26
	b.ne	LBB0_33
; %bb.32:
	ldr	w0, [x23, #24]
	bl	_to_mxrcd
	ldr	w8, [x0]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x27, [x21]
	b	LBB0_34
LBB0_33:
	ldr	x27, [x21]
	ldr	w8, [x27, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_34:
	mov	x0, x20
	bl	_to_mpd
	ldr	w1, [x0]
	mov	x28, x19
	ldr	w5, [x28, #8]!
	add	x26, x28, #32
	mov	x0, x27
	ldp	w3, w2, [sp, #12]               ; 8-byte Folded Reload
	mov	x4, x26
	mov	x6, x25
	bl	_mlx4_srq_alloc
	mov	x27, x0
	cbnz	w0, LBB0_38
; %bb.35:
Lloh23:
	adrp	x8, _mlx4_ib_srq_event@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mlx4_ib_srq_event@GOTPAGEOFF]
	mov	x1, x19
	ldr	w9, [x1, #80]!
Lloh25:
	ldr	w8, [x8]
	mov	x27, x19
	str	w9, [x27, #56]!
	str	w8, [x27, #28]
	ldr	x8, [x20]
	cbz	x8, LBB0_50
; %bb.36:
	mov	x0, x24
	mov	w2, #4
	bl	_ib_copy_to_udata
	cbz	x0, LBB0_50
; %bb.37:
Lloh26:
	adrp	x8, _EFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_38:
	ldr	x8, [x20]
	cbz	x8, LBB0_41
; %bb.39:
	ldr	w0, [x8]
	bl	_to_mucontext
	mov	x1, x28
	bl	_mlx4_ib_db_unmap_user
	b	LBB0_42
LBB0_40:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_42
LBB0_41:
	ldr	x0, [x19, #48]
	bl	_kfree
LBB0_42:
	ldr	x0, [x21]
	mov	x1, x26
	bl	_mlx4_mtt_cleanup
LBB0_43:
	ldr	x8, [x20]
	cbz	x8, LBB0_45
; %bb.44:
	ldr	x0, [x19, #32]
	bl	_ib_umem_release
	b	LBB0_46
LBB0_45:
	ldr	x0, [x21]
	add	x2, x19, #24
	mov	x1, x22
	bl	_mlx4_buf_free
LBB0_46:
	ldr	x8, [x20]
	cbnz	x8, LBB0_48
; %bb.47:
	ldr	x0, [x21]
	add	x1, x19, #8
	bl	_mlx4_db_free
LBB0_48:
	mov	x0, x19
	bl	_kfree
	mov	x0, x27
	bl	_ERR_PTR
	mov	x27, x0
LBB0_49:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_50:
	ldr	w8, [x25]
	sub	w8, w8, #1
	str	w8, [x23, #8]
	b	LBB0_49
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MLX4_INVALID_LKEY,4,2          ; @MLX4_INVALID_LKEY
	.comm	_IB_SRQT_XRC,8,3                ; @IB_SRQT_XRC
	.comm	_mlx4_ib_srq_event,4,2          ; @mlx4_ib_srq_event
.subsections_via_symbols
