	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_uiom_reg_get             ## -- Begin function usnic_uiom_reg_get
	.p2align	4, 0x90
_usnic_uiom_reg_get:                    ## @usnic_uiom_reg_get
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %r15
	notq	%r15
	andq	%r13, %r15
	movslq	%r15d, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r12
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%r13, %rbx
	shrq	%cl, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	(%r12,%rbx), %rcx
	decq	%rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	andq	%r13, %r14
	movq	%r14, (%rax)
	movl	%r15d, 8(%rax)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 16(%rax)
	movl	$1, 24(%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 40(%rax)
	movq	%r13, %rdi
	movl	$1, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, %r15
	movq	%rax, %r8
	callq	_usnic_uiom_get_pages
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_usnic_err
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	addq	$4, %r14
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %r9
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, %edx
	movq	%r14, %r8
	callq	_usnic_uiom_get_intervals_diff
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_usnic_err
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_7:
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_usnic_uiom_map_sorted_intervals
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_usnic_err
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_usnic_uiom_insert_interval
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_usnic_err
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_usnic_uiom_unmap_sorted_intervals
LBB0_11:
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %rdi
	callq	_usnic_uiom_put_interval_set
LBB0_12:
	movq	%r15, %rdi
	addq	$32, %rdi
	xorl	%esi, %esi
	callq	_usnic_uiom_put_pages
	movq	%r13, %rdi
	callq	_spin_unlock
	movl	28(%r15), %edi
	callq	_mmdrop
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
	movl	%r12d, %edi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_14:
	movq	_sorted_diff_intervals@GOTPCREL(%rip), %rdi
	callq	_usnic_uiom_put_interval_set
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sorted_diff_intervals,4,2      ## @sorted_diff_intervals
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed get_pages vpn [0x%lx,0x%lx] err %d\n"

	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Failed disjoint interval vpn [0x%lx,0x%lx] err %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed map interval vpn [0x%lx,0x%lx] err %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed insert interval vpn [0x%lx,0x%lx] err %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usnic_uiom_reg_get             ; -- Begin function usnic_uiom_reg_get
	.p2align	2
_usnic_uiom_reg_get:                    ; @usnic_uiom_reg_get
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _sorted_diff_intervals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sorted_diff_intervals@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
Lloh3:
	adrp	x20, _PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PAGE_MASK@GOTPAGEOFF]
	ldr	x23, [x20]
	bic	x26, x25, x23
	add	x0, x24, w26, sxtw
	bl	_PAGE_ALIGN
	mov	x22, x0
Lloh5:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	x27, [x8]
	ldr	x28, [x20]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	lsr	x8, x22, x27
	and	x9, x28, x25
	and	x10, x23, x25
	str	x10, [x0]
	lsr	x23, x9, x27
	add	x8, x8, x23
	sub	x22, x8, #1
	str	w26, [x0, #8]
	str	x24, [x0, #16]
	mov	w8, #1
	str	w8, [x0, #24]
	str	x19, [x0, #40]
	mov	x0, x25
	mov	x1, x24
	mov	w2, #1
	mov	x3, x21
	mov	x4, x20
	bl	_usnic_uiom_get_pages
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_usnic_err
	b	LBB0_12
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
Lloh16:
	adrp	x25, _IOMMU_WRITE@GOTPAGE
Lloh17:
	ldr	x25, [x25, _IOMMU_WRITE@GOTPAGEOFF]
	ldr	w2, [x25]
	add	x24, x19, #4
Lloh18:
	adrp	x5, _sorted_diff_intervals@GOTPAGE
Lloh19:
	ldr	x5, [x5, _sorted_diff_intervals@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x2
	mov	x4, x24
	bl	_usnic_uiom_get_intervals_diff
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_usnic_err
	b	LBB0_11
LBB0_6:
Lloh22:
	adrp	x0, _sorted_diff_intervals@GOTPAGE
Lloh23:
	ldr	x0, [x0, _sorted_diff_intervals@GOTPAGEOFF]
	mov	x1, x20
	bl	_usnic_uiom_map_sorted_intervals
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_usnic_err
	b	LBB0_10
LBB0_8:
	ldr	w3, [x25]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_usnic_uiom_insert_interval
	cbz	w0, LBB0_14
; %bb.9:
	mov	x21, x0
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_usnic_err
Lloh28:
	adrp	x0, _sorted_diff_intervals@GOTPAGE
Lloh29:
	ldr	x0, [x0, _sorted_diff_intervals@GOTPAGEOFF]
	mov	x1, x19
	bl	_usnic_uiom_unmap_sorted_intervals
LBB0_10:
Lloh30:
	adrp	x0, _sorted_diff_intervals@GOTPAGE
Lloh31:
	ldr	x0, [x0, _sorted_diff_intervals@GOTPAGEOFF]
	bl	_usnic_uiom_put_interval_set
LBB0_11:
	add	x0, x20, #32
	mov	w1, #0
	bl	_usnic_uiom_put_pages
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20, #28]
	bl	_mmdrop
LBB0_12:
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_14:
Lloh32:
	adrp	x0, _sorted_diff_intervals@GOTPAGE
Lloh33:
	ldr	x0, [x0, _sorted_diff_intervals@GOTPAGEOFF]
	bl	_usnic_uiom_put_interval_set
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_sorted_diff_intervals,4,2      ; @sorted_diff_intervals
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed get_pages vpn [0x%lx,0x%lx] err %d\n"

	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Failed disjoint interval vpn [0x%lx,0x%lx] err %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed map interval vpn [0x%lx,0x%lx] err %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed insert interval vpn [0x%lx,0x%lx] err %d\n"

.subsections_via_symbols
