	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_manage_rcvq
_ipath_manage_rcvq:                     ## @ipath_manage_rcvq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r8
	movq	16(%rdi), %r12
	movq	_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edx, %edx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	24(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %r9d
	callq	_ipath_cdbg
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_ipath_clear_rcvhdrtail
LBB0_4:
	movq	(%r14), %rdi
	addq	16(%r12), %rdi
	leaq	8(%r12), %rsi
	callq	_set_bit
	jmp	LBB0_6
LBB0_5:
	movq	(%r14), %rdi
	addq	16(%r12), %rdi
	leaq	8(%r12), %rsi
	callq	_clear_bit
LBB0_6:
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movl	8(%r12), %edx
	movq	%r12, %rdi
	callq	_ipath_write_kreg
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ipath_read_kreg64
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	_ur_rcvhdrtail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r12, %rdi
	callq	_ipath_read_ureg32
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROC,4,2                       ## @PROC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sabling rcv for unit %u port %u:%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"en"

L_.str.2:                               ## @.str.2
	.asciz	"dis"

	.comm	_ur_rcvhdrtail,4,2              ## @ur_rcvhdrtail
	.no_dead_strip	_ipath_manage_rcvq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_manage_rcvq
_ipath_manage_rcvq:                     ; @ipath_manage_rcvq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _PROC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w2, #0
	csel	x2, x9, x8, eq
	ldr	w3, [x19, #24]
	ldr	x4, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, x22
	bl	_ipath_cdbg
	cbnz	w22, LBB0_8
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ipath_clear_rcvhdrtail
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x0, x9, x8
	add	x1, x19, #8
	bl	_set_bit
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x0, x9, x8
	add	x1, x19, #8
	bl	_clear_bit
LBB0_6:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipath_read_kreg64
	cbz	w21, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _ur_rcvhdrtail@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ur_rcvhdrtail@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_ipath_read_ureg32
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PROC,4,2                       ; @PROC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sabling rcv for unit %u port %u:%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"en"

l_.str.2:                               ; @.str.2
	.asciz	"dis"

	.comm	_ur_rcvhdrtail,4,2              ; @ur_rcvhdrtail
	.no_dead_strip	_ipath_manage_rcvq
.subsections_via_symbols
