	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_store_srq                 ## -- Begin function mlx5_store_srq
	.p2align	4, 0x90
_mlx5_store_srq:                        ## @mlx5_store_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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	_MLX5_SRQ_TABLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %eax
	sarl	%cl, %eax
	movq	(%rdi), %r12
	movslq	%eax, %rbx
	shlq	$4, %rbx
	movl	8(%r12,%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movq	(%r12,%rbx), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_MLX5_QP_TABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r12,%rbx)
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	leaq	(%r12,%rbx), %rcx
	addq	$8, %rcx
	incl	%r13d
	movl	%r13d, (%rcx)
	movq	_MLX5_QP_TABLE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	movslq	%r15d, %rcx
	movq	%r14, (%rax,%rcx,8)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_SRQ_TABLE_SHIFT,4,2       ## @MLX5_SRQ_TABLE_SHIFT
	.comm	_MLX5_QP_TABLE_MASK,4,2         ## @MLX5_QP_TABLE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_store_srq                 ; -- Begin function mlx5_store_srq
	.p2align	2
_mlx5_store_srq:                        ; @mlx5_store_srq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _MLX5_SRQ_TABLE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_SRQ_TABLE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w1, w8
	ldr	x24, [x0]
	sxtw	x25, w8
	add	x21, x24, w8, sxtw #4
	ldr	w23, [x21, #8]!
Lloh3:
	adrp	x22, _MLX5_QP_TABLE_MASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MLX5_QP_TABLE_MASK@GOTPAGEOFF]
	cbz	w23, LBB0_2
; %bb.1:
	lsl	x8, x25, #4
	ldr	x0, [x24, x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x22]
	add	w0, w8, #1
	mov	w1, #8
	bl	_calloc
	lsl	x8, x25, #4
	str	x0, [x24, x8]
	cbz	x0, LBB0_5
LBB0_3:
	mov	w8, #0
	add	w9, w23, #1
	str	w9, [x21]
	ldr	w9, [x22]
	and	w9, w9, w20
	str	x19, [x0, w9, sxtw #3]
LBB0_4:
	mov	x0, x8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #-1
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_SRQ_TABLE_SHIFT,4,2       ; @MLX5_SRQ_TABLE_SHIFT
	.comm	_MLX5_QP_TABLE_MASK,4,2         ; @MLX5_QP_TABLE_MASK
.subsections_via_symbols
