	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_post_srq_receive           ## -- Begin function qib_post_srq_receive
	.p2align	4, 0x90
_qib_post_srq_receive:                  ## @qib_post_srq_receive
	.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, %r14
	movq	%rsi, %rbx
	callq	_to_isrq
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	addq	$16, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	%r12, (%r14)
	movq	%r15, %r14
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%rbx), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	(%r13), %eax
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r13), %r14
	movq	(%r14), %rsi
	leaq	1(%rsi), %r12
	cmpq	8(%r13), %r12
	movl	$0, %eax
	cmovgeq	%rax, %r12
	cmpq	8(%r14), %r12
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_get_rwqe_ptr
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rcx
	movq	8(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_post_srq_receive           ; -- Begin function qib_post_srq_receive
	.p2align	2
_qib_post_srq_receive:                  ; @qib_post_srq_receive
	.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
	bl	_to_isrq
	cbz	x20, LBB0_8
; %bb.1:
	mov	x21, x0
	add	x22, x0, #16
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_smp_wmb
	str	x25, [x24]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.hi	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x24, [x21, #24]
	ldp	x1, x8, [x24]
	add	x9, x1, #1
	ldr	x10, [x21, #8]
	cmp	x9, x10
	csinc	x25, xzr, x1, ge
	cmp	x25, x8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_get_rwqe_ptr
	ldr	w8, [x20, #16]
	str	w8, [x0, #16]
	ldr	w8, [x20]
	str	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x0, #8]
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x20]
	cmp	x8, x11
	b.lt	LBB0_7
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh2:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	str	x20, [x19]
	ldr	w8, [x23]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
