	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rcvarray_entry
_set_rcvarray_entry:                    ## @set_rcvarray_entry
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r13d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rax
	movslq	%r8d, %r15
	shlq	$3, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	addq	8(%rsi), %r15
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	leal	56(,%rbx,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	(%r12), %r14
	movq	(%r15), %rdi
	callq	_page_to_phys
	movl	%eax, %edi
	callq	___va
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	%ebx, %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_map_single
	movl	%eax, %r14d
	movq	(%r12), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_dd_dev_err
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leal	(,%rbx,8), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %r13
	movl	%r14d, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	addq	$16, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 24(%r14)
	imull	%ebx, %eax
	movl	%eax, 16(%r14)
	movq	(%r15), %rdi
	callq	_page_to_phys
	movl	%eax, 8(%r14)
	movl	%ebx, (%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r14)
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movl	%r12d, 48(%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r14)
	movl	$0, 4(%r14)
	movl	36(%r14), %edi
	movq	%r15, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	4(%r13), %edi
	testl	%edi, %edi
	movq	%rbx, %r15
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_hfi1_mmu_rb_insert
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_tid_rb_insert
LBB0_9:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, %eax
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_TID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edx
	movq	24(%rbx), %rcx
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %r9d
	callq	_hfi1_cdbg
	movq	(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_pci_unmap_single
	movq	%rbx, %rdi
LBB0_5:
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_PT_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_ilog2
	leaq	1(%rax), %r8
	movq	%r12, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_hfi1_put_tid
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r8
	movl	8(%rax), %r9d
	movl	%r14d, (%rsp)
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_trace_hfi1_exp_tid_reg
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to DMA map Exp Rcv pages 0x%llx\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_TID,4,2                        ## @TID
L_.str.1:                               ## @.str.1
	.asciz	"Failed to insert RB node %u 0x%lx, 0x%lx %d"

	.comm	_PT_EXPECTED,4,2                ## @PT_EXPECTED
	.no_dead_strip	_set_rcvarray_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_rcvarray_entry
_set_rcvarray_entry:                    ; @set_rcvarray_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x28, x4
	mov	x27, x3
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	mov	x22, x1
	mov	x23, x0
	ldr	x25, [x0, #8]
	ldr	x21, [x25, #8]
	ldr	x24, [x1, #8]
	lsl	w26, w5, #3
	add	w0, w26, #56
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	stp	x27, x25, [sp, #8]              ; 16-byte Folded Spill
	add	x27, x24, w28, sxtw #3
	ldr	x24, [x21]
	ldr	x0, [x27]
	bl	_page_to_phys
	bl	___va
	mov	x1, x0
Lloh3:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	mul	w2, w8, w19
Lloh5:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x24
	bl	_pci_map_single
	mov	x24, x0
	ldr	x0, [x21]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	bl	_dd_dev_err
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x22]
	ldr	w9, [x25]
	mul	w10, w9, w28
	add	x8, x8, x10
	mul	w9, w9, w19
	mov	x22, x20
	str	w9, [x22, #16]!
	str	x8, [x20, #24]
	ldr	x0, [x27]
	bl	_page_to_phys
	stp	wzr, w0, [x20, #4]
	ldr	w28, [sp, #28]                  ; 4-byte Folded Reload
	str	w28, [x20, #32]
	str	w24, [x20, #48]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x20, #40]
	str	w19, [x20]
	ldr	w0, [x20, #36]
	mov	x1, x27
	mov	x2, x26
	bl	_memcpy
	ldr	w0, [x23, #4]
	cbz	w0, LBB0_6
; %bb.5:
	mov	x1, x22
	bl	_hfi1_mmu_rb_insert
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	bl	_tid_rb_insert
LBB0_7:
	mov	x5, x0
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
Lloh12:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh14:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.8:
Lloh16:
	adrp	x8, _TID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TID@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x20, #32]
	ldr	x3, [x20, #24]
	ldr	w4, [x20, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_hfi1_cdbg
	ldr	x0, [x21]
	ldr	w8, [x22]
	mul	w2, w8, w19
	ldr	w3, [x26]
	mov	x1, x24
	bl	_pci_unmap_single
LBB0_9:
	mov	x0, x20
	bl	_kfree
Lloh21:
	adrp	x8, _EFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
Lloh23:
	adrp	x8, _PT_EXPECTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PT_EXPECTED@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_ilog2
	add	x4, x0, #1
	mov	x0, x21
	mov	x1, x28
	mov	x2, x22
	mov	x3, x24
	bl	_hfi1_put_tid
	ldr	w0, [x25]
	ldr	w1, [x23]
	ldr	x4, [x20, #24]
	ldr	w5, [x20, #8]
	mov	x2, x28
	mov	x3, x19
	mov	x6, x24
	bl	_trace_hfi1_exp_tid_reg
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to DMA map Exp Rcv pages 0x%llx\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_TID,4,2                        ; @TID
l_.str.1:                               ; @.str.1
	.asciz	"Failed to insert RB node %u 0x%lx, 0x%lx %d"

	.comm	_PT_EXPECTED,4,2                ; @PT_EXPECTED
	.no_dead_strip	_set_rcvarray_entry
.subsections_via_symbols
