	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unprogram_rcvarray
_unprogram_rcvarray:                    ## @unprogram_rcvarray
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	24(%r14), %r12
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EXP_TID_GET
	movl	%eax, %r13d
	movq	_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EXP_TID_GET
	addl	%eax, %eax
	movslq	%eax, %rdx
	cmpq	%rdx, (%r14)
	jle	LBB0_1
## %bb.2:
	movq	%r15, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$3, %r13d
	je	LBB0_3
## %bb.5:
	movslq	%r13d, %rax
	leaq	(%rax,%rdx), %rcx
	movq	8(%rbx), %rsi
	movq	-8(%rsi,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	addq	%rdx, %rax
	decq	%rax
	addq	8(%r14), %rax
	cmpq	%rax, (%rsi)
	jne	LBB0_7
## %bb.8:
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	16(%rsi), %rax
	movq	%rax, (%r15)
LBB0_10:
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.12:
	addq	$8, %rsi
	callq	_hfi1_mmu_rb_remove
	jmp	LBB0_13
LBB0_1:
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dd_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EBADF@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_11:
	movq	%rbx, %rdi
	callq	_cacheless_tid_rb_remove
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_IDX,4,2                        ## @IDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RcvArray entry (%u) index for ctxt %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBADF,4,2                      ## @EBADF
	.no_dead_strip	_unprogram_rcvarray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unprogram_rcvarray
_unprogram_rcvarray:                    ; @unprogram_rcvarray
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	ldr	x21, [x24, #24]
Lloh0:
	adrp	x8, _CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_EXP_TID_GET
	mov	x22, x0
Lloh3:
	adrp	x8, _IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_EXP_TID_GET
	lsl	w8, w0, #1
	sxtw	x2, w8
	ldr	x8, [x24]
	cmp	x8, x2
	b.le	LBB0_8
; %bb.1:
	cmp	w22, #3
	b.eq	LBB0_9
; %bb.2:
	sub	w8, w22, #1
	add	x8, x2, w8, sxtw
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x8, lsl #3]
	cbz	x1, LBB0_12
; %bb.3:
	ldr	x9, [x1]
	ldr	x10, [x24, #8]
	add	x8, x10, x8
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
	cbz	x20, LBB0_6
; %bb.5:
	ldr	x8, [x1, #16]
	str	x8, [x20]
LBB0_6:
	ldr	w0, [x19]
	cbz	w0, LBB0_13
; %bb.7:
	add	x1, x1, #8
	bl	_hfi1_mmu_rb_remove
	b	LBB0_14
LBB0_8:
	ldr	w3, [x24, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dd_dev_err
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh10:
	adrp	x8, _EBADF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	mov	x0, x19
	bl	_cacheless_tid_rb_remove
LBB0_14:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_IDX,4,2                        ; @IDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RcvArray entry (%u) index for ctxt %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBADF,4,2                      ; @EBADF
	.no_dead_strip	_unprogram_rcvarray
.subsections_via_symbols
