	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_arbel_post_srq_recv      ## -- Begin function mthca_arbel_post_srq_recv
	.p2align	4, 0x90
_mthca_arbel_post_srq_recv:             ## @mthca_arbel_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	$40, %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, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_msrq
	movq	%rax, %r13
	movq	%rax, %r15
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %eax
	movq	24(%r13), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	%r15d, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rbx
	movl	%r15d, %r12d
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_get_wqe
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_wqe_to_link
	movl	(%rax), %r15d
	movl	%r15d, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r14)
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	4(%r13), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r14
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_mthca_set_data_seg
	addq	$4, %r14
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r13d
	movq	%rax, %r13
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_mthca_set_data_seg_inval
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_4:
	movl	32(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mthca_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_16
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	addl	%ebx, 8(%r13)
	xorl	%eax, %eax
	callq	_wmb
	movl	8(%r13), %edi
	callq	_cpu_to_be32
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
LBB0_19:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRQ %06x full\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_arbel_post_srq_recv      ; -- Begin function mthca_arbel_post_srq_recv
	.p2align	2
_mthca_arbel_post_srq_recv:             ; @mthca_arbel_post_srq_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	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x24, x0
	mov	x0, x19
	bl	_to_msrq
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	x23, LBB0_11
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w21, #0
	ldr	w25, [x20]
Lloh0:
	adrp	x27, _EINVAL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #4]
	ldr	x9, [x20, #24]
	str	w8, [x9, w25, sxtw #2]
	str	w28, [x20]
	add	w21, w21, #1
	ldr	x23, [x23, #16]
	mov	x25, x28
	cbz	x23, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x20
	mov	x1, x25
	bl	_get_wqe
	mov	x26, x0
	bl	_wqe_to_link
	ldr	w28, [x0]
	lsr	w0, w28, #31
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x26]
	ldr	w8, [x23]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #8
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	add	x1, x22, x8
	mov	x0, x26
	bl	_mthca_set_data_seg
	add	x26, x26, #4
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_mthca_set_data_seg_inval
	b	LBB0_2
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	w24, #0
	b	LBB0_15
LBB0_13:
	ldr	w2, [x20, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_mthca_err
Lloh4:
	adrp	x27, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x27]
	neg	w24, w8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x23, [x8]
LBB0_15:
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w8, [x20, #8]
	add	w8, w8, w21
	str	w8, [x20, #8]
	bl	_wmb
	ldr	w0, [x20, #8]
	bl	_cpu_to_be32
	ldr	x8, [x20, #16]
	str	w0, [x8]
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRQ %06x full\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
