	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_post_receive
_qib_post_receive:                      ## @qib_post_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_iqp
	movq	(%rax), %rdi
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_QIB_POST_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	testl	%edx, (%rcx,%rdi,4)
	je	LBB0_9
## %bb.1:
	movq	32(%rax), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	addq	$24, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	%r13, (%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rsi
	leaq	1(%rsi), %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	16(%rax), %r13
	movl	$0, %eax
	cmovgeq	%rax, %r13
	cmpq	8(%r15), %r13
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_rwqe_ptr
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rcx
	movq	8(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 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_12
	jmp	LBB0_13
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movq	%rbx, (%r14)
	xorl	%r14d, %r14d
	subl	(%rsi), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_qib_state_ops,8,3           ## @ib_qib_state_ops
	.comm	_QIB_POST_RECV_OK,4,2           ## @QIB_POST_RECV_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qib_post_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_post_receive
_qib_post_receive:                      ; @qib_post_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_iqp
	ldr	x24, [x0, #32]
Lloh0:
	adrp	x8, _ib_qib_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_qib_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _QIB_POST_RECV_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIB_POST_RECV_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x24, #0, #4, ne
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x25, _EINVAL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
LBB0_2:
	str	x20, [x19]
	ldr	w8, [x25]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	cbz	x20, LBB0_11
; %bb.4:
	mov	x21, x0
	add	x23, x0, #8
	add	x22, x0, #24
Lloh8:
	adrp	x25, _EINVAL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_smp_wmb
	str	x26, [x24]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x23]
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldp	x1, x8, [x24]
	add	x9, x1, #1
	ldr	x10, [x21, #16]
	cmp	x9, x10
	csinc	x26, xzr, x1, ge
	cmp	x26, x8
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_get_rwqe_ptr
	ldr	w8, [x20, #16]
	str	w8, [x0, #16]
	ldr	w8, [x20]
	str	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x0, #8]
LBB0_10:                                ;   Parent Loop BB0_6 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_10
	b	LBB0_5
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_qib_state_ops,8,3           ; @ib_qib_state_ops
	.comm	_QIB_POST_RECV_OK,4,2           ; @QIB_POST_RECV_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qib_post_receive
.subsections_via_symbols
