	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mlx5_ib_post_recv
__mlx5_ib_post_recv:                    ## @_mlx5_ib_post_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_mqp
	movq	%rax, %r15
	movl	8(%r14), %edi
	callq	_to_mdev
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	testl	%r12d, %r12d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, (%r13)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.26:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_gsi_post_recv          ## TAILCALL
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %r12d
	decl	%r12d
	andl	(%r14), %r12d
	movq	%r14, %rax
	addq	$24, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %eax
	movq	16(%r14), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	%r12d
	movl	4(%r14), %eax
	decl	%eax
	andl	%eax, %r12d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_21
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	48(%r14), %edx
	movq	%r14, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mlx5_wq_overflow
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	8(%r14), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_mlx5_frag_buf_get_wqe
	xorl	%ecx, %ecx
	cmpq	$0, 40(%r14)
	setne	%cl
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %r13
	cmpl	$0, (%rbx)
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_set_data_ptr_seg
	incq	%r15
	movslq	(%rbx), %rax
	addq	$24, %r14
	cmpq	%rax, %r15
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	8(%r14), %r15d
	jge	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %eax
	leaq	(%rax,%rax,2), %r14
	movq	$0, 16(%r13,%r14,8)
	movq	_MLX5_INVALID_LKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r13,%r14,8)
	movq	$0, (%r13,%r14,8)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 40(%r14)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %eax
	leal	4(,%rax,4), %esi
	movq	%r13, %rdi
	callq	_set_sig_seg
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	cmpl	8(%r14), %r15d
	jl	LBB0_17
	jmp	LBB0_18
LBB0_4:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, (%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_21:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	movl	%esi, %edi
	movq	%rsi, %r12
	callq	_likely
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addl	%r12d, (%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movzwl	(%rbx), %edi
	callq	_cpu_to_be32
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_24:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ## @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_INVALID_LKEY,4,2          ## @MLX5_INVALID_LKEY
	.no_dead_strip	__mlx5_ib_post_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mlx5_ib_post_recv
__mlx5_ib_post_recv:                    ; @_mlx5_ib_post_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_to_mqp
	mov	x19, x0
	ldr	w0, [x22, #8]
	bl	_to_mdev
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_DEVICE_STATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w23, #0
	ccmp	x8, x9, #0, eq
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	str	x21, [x20]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_2:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mlx5_ib_gsi_post_recv
LBB0_5:
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	cbz	x21, LBB0_18
; %bb.6:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	w23, #0
	ldp	w9, w8, [x19]
	sub	w8, w8, #1
	and	w24, w8, w9
	add	x25, x19, #24
	mov	w28, #24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #4]
	ldr	x9, [x19, #16]
	str	w8, [x9, w24, sxtw #2]
	add	w8, w24, #1
	ldr	w9, [x19, #4]
	sub	w9, w9, #1
	and	w24, w9, w8
	add	w23, w23, #1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_22
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w2, [x19, #48]
	mov	x0, x19
	mov	x1, x23
	bl	_mlx5_wq_overflow
	cbnz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_mlx5_frag_buf_get_wqe
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w8, ne
	umaddl	x26, w8, w28, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	mov	x27, x26
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	add	x1, x22, x8
	mov	x0, x27
	bl	_set_data_ptr_seg
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x27, x27, #24
	cmp	x22, x8
	b.lt	LBB0_12
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #8]
	cmp	w22, w8
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	umaddl	x22, w22, w28, x26
	str	xzr, [x22, #16]
Lloh9:
	adrp	x8, _MLX5_INVALID_LKEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_INVALID_LKEY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	stp	xzr, x0, [x22]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #8]
	lsl	w8, w8, #2
	add	w1, w8, #4
	mov	x0, x26
	bl	_set_sig_seg
	b	LBB0_7
LBB0_18:
	mov	w23, #0
	mov	w24, #0
	b	LBB0_24
LBB0_19:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w24, w8
	str	x21, [x20]
	b	LBB0_23
LBB0_22:
	mov	w24, #0
LBB0_23:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_24:
	mov	x0, x23
	bl	_likely
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w8, [x19]
	add	w8, w8, w23
	str	w8, [x19]
	bl	_wmb
	ldrh	w0, [x19]
	bl	_cpu_to_be32
	ldr	x8, [x19, #32]
	str	x0, [x8]
LBB0_26:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_DEVICE_STATE_INTERNAL_ERROR,8,3 ; @MLX5_DEVICE_STATE_INTERNAL_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_INVALID_LKEY,4,2          ; @MLX5_INVALID_LKEY
	.no_dead_strip	__mlx5_ib_post_recv
.subsections_via_symbols
