	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_manage_rcvq
_qib_manage_rcvq:                       ## @qib_manage_rcvq
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	retq
LBB0_1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movq	_QIB_RCVCTRL_CTXT_ENB@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_qib_clear_rcvhdrtail
	jmp	LBB0_5
LBB0_2:
	movq	_QIB_RCVCTRL_CTXT_DIS@GOTPCREL(%rip), %r15
LBB0_5:
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	callq	*(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_RCVCTRL_CTXT_ENB,4,2       ## @QIB_RCVCTRL_CTXT_ENB
	.comm	_QIB_RCVCTRL_CTXT_DIS,4,2       ## @QIB_RCVCTRL_CTXT_DIS
	.no_dead_strip	_qib_manage_rcvq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_manage_rcvq
_qib_manage_rcvq:                       ; @qib_manage_rcvq
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	w2, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_qib_clear_rcvhdrtail
LBB0_5:
Lloh0:
	adrp	x8, _QIB_RCVCTRL_CTXT_ENB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QIB_RCVCTRL_CTXT_ENB@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _QIB_RCVCTRL_CTXT_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QIB_RCVCTRL_CTXT_DIS@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldp	w2, w0, [x19]
	blr	x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_RCVCTRL_CTXT_ENB,4,2       ; @QIB_RCVCTRL_CTXT_ENB
	.comm	_QIB_RCVCTRL_CTXT_DIS,4,2       ; @QIB_RCVCTRL_CTXT_DIS
	.no_dead_strip	_qib_manage_rcvq
.subsections_via_symbols
