	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unlock_expected_tids
_unlock_expected_tids:                  ## @unlock_expected_tids
	.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	8(%rdi), %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	movl	(%rbx), %r15d
	movq	_VERBOSE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movslq	%r14d, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ipath_cdbg
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.1:
	imull	%r15d, %r14d
	addl	%r14d, %r15d
	movslq	%r14d, %r12
	movslq	%r15d, %r14
	movq	_ipath_stats@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r14, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r12,8), %rcx
	movq	%rcx, -56(%rbp)
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax,%r12,8)
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_page
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_ipath_release_user_pages_on_close
	incl	%r13d
	incq	(%r15)
	jmp	LBB0_4
LBB0_5:
	testl	%r13d, %r13d
	movq	_VERBOSE@GOTPCREL(%rip), %r12
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ipath_cdbg
LBB0_7:
	movq	_ipath_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_cdbg
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %u unlocking any locked expTID pages\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_ipath_stats,16,3               ## @ipath_stats
L_.str.1:                               ## @.str.1
	.asciz	"Port %u locked %u expTID entries\n"

L_.str.2:                               ## @.str.2
	.asciz	"%llu pages locked, %llu unlocked\n"

	.no_dead_strip	_unlock_expected_tids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unlock_expected_tids
_unlock_expected_tids:                  ; @unlock_expected_tids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x22, [x0, #8]
	ldr	w25, [x0]
	ldr	w24, [x22]
Lloh0:
	adrp	x20, _VERBOSE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VERBOSE@GOTPAGEOFF]
	ldr	w0, [x20]
	sxtw	x2, w25
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ipath_cdbg
Lloh4:
	adrp	x21, _ipath_stats@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ipath_stats@GOTPAGEOFF]
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w23, #0
	mul	w8, w24, w25
	add	w9, w8, w24
	sxtw	x24, w8
	sxtw	x25, w9
Lloh6:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	x9, [x8, x24, lsl #3]
	str	x9, [sp, #8]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x8, x24, lsl #3]
	ldr	w0, [x22, #16]
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x24, lsl #2]
	ldr	w2, [x26]
	ldr	w3, [x27]
	bl	_pci_unmap_page
	add	x0, sp, #8
	mov	w1, #1
	bl	_ipath_release_user_pages_on_close
	add	w23, w23, #1
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	b	LBB0_2
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	ldrsw	x2, [x19]
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ipath_cdbg
LBB0_7:
	ldp	x8, x2, [x21]
	orr	x9, x2, x8
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ipath_cdbg
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %u unlocking any locked expTID pages\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_ipath_stats,16,3               ; @ipath_stats
l_.str.1:                               ; @.str.1
	.asciz	"Port %u locked %u expTID entries\n"

l_.str.2:                               ; @.str.2
	.asciz	"%llu pages locked, %llu unlocked\n"

	.no_dead_strip	_unlock_expected_tids
.subsections_via_symbols
