	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_post_srq_recv          ## -- Begin function mlx5_ib_post_srq_recv
	.p2align	4, 0x90
_mlx5_ib_post_srq_recv:                 ## @mlx5_ib_post_srq_recv
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_msrq
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_to_mdev
	movq	(%rax), %r14
	leaq	20(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.20:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%rbx, (%r13)
	jmp	LBB0_19
LBB0_1:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	incl	%r14d
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %r15
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	32(%r12), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	8(%r12), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	movq	(%r12), %rsi
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%rsi,4)
	movq	%r12, %rdi
	callq	_get_wqe
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movq	%rax, (%r12)
	cmpl	$0, (%rbx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 20(%r15,%r13,2)
	movq	8(%rbx), %rax
	movl	4(%rax,%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 12(%r15,%r13,2)
	movq	8(%rbx), %rax
	movl	8(%rax,%r13), %edi
	callq	_cpu_to_be64
	movq	%rax, 4(%r15,%r13,2)
	incq	%r14
	movslq	(%rbx), %rax
	addq	$12, %r13
	cmpq	%rax, %r14
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	36(%r12), %r14d
	jge	LBB0_15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	cmpl	36(%r12), %r14d
	jge	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r15
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %r14
	movq	$0, 16(%r15,%r14,8)
	movq	_MLX5_INVALID_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r15,%r14,8)
	movq	$0, (%r15,%r14,8)
	jmp	LBB0_15
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_4:
	movq	%r15, %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%rbx, (%r13)
LBB0_17:
	movl	%r14d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	addl	%r14d, 16(%r12)
	xorl	%eax, %eax
	callq	_wmb
	movl	16(%r12), %edi
	callq	_cpu_to_be32
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ## @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_INVALID_LKEY,4,2          ## @MLX5_INVALID_LKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_post_srq_recv          ; -- Begin function mlx5_ib_post_srq_recv
	.p2align	2
_mlx5_ib_post_srq_recv:                 ; @mlx5_ib_post_srq_recv
	.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, x2
	mov	x22, x1
	mov	x19, x0
	bl	_to_msrq
	mov	x20, x0
	ldr	w0, [x19]
	bl	_to_mdev
	ldr	x23, [x0]
	add	x19, x20, #20
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	str	x22, [x21]
	b	LBB0_19
LBB0_2:
	mov	w23, #0
	cbz	x22, LBB0_13
; %bb.3:
Lloh6:
	adrp	x28, _MLX5_INVALID_LKEY@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MLX5_INVALID_LKEY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x22]
	ldr	w9, [x20, #32]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #16]
	ldr	x9, [x20, #40]
	ldr	x1, [x20]
	str	w8, [x9, x1, lsl #2]
	mov	x0, x20
	bl	_get_wqe
	mov	x24, x0
	mov	x26, x0
	ldr	w0, [x26], #4
	bl	_be16_to_cpu
	str	x0, [x20]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	mov	x25, #0
	add	x24, x24, #20
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x27]
	bl	_cpu_to_be32
	str	x0, [x24]
	ldr	x8, [x22, #8]
	add	x8, x8, x27
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	stur	x0, [x24, #-8]
	ldr	x8, [x22, #8]
	add	x8, x8, x27
	ldr	w0, [x8, #8]
	bl	_cpu_to_be64
	stur	x0, [x24, #-16]
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x27, x27, #12
	add	x24, x24, #24
	cmp	x25, x8
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #36]
	cmp	w25, w8
	b.ge	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #24
	umaddl	x24, w25, w8, x26
	str	xzr, [x24, #16]
	ldr	w0, [x28]
	bl	_cpu_to_be32
	stp	xzr, x0, [x24]
	b	LBB0_4
LBB0_13:
	mov	w24, #0
	b	LBB0_17
LBB0_14:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
	str	x22, [x21]
LBB0_17:
	mov	x0, x23
	bl	_likely
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w8, [x20, #16]
	add	w8, w8, w23
	str	w8, [x20, #16]
	bl	_wmb
	ldr	w0, [x20, #16]
	bl	_cpu_to_be32
	ldr	x8, [x20, #24]
	str	x0, [x8]
LBB0_19:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ; @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_INVALID_LKEY,4,2          ; @MLX5_INVALID_LKEY
.subsections_via_symbols
