	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_mob_build_pt
_vmw_mob_build_pt:                      ## @vmw_mob_build_pt
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_VMW_PPN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%rsi, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_DIV_ROUND_UP
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	notq	%r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_kunmap_atomic
	movq	%r14, %rdi
	callq	_vmw_piter_next
	incq	%r12
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	callq	_vmw_piter_page
	movq	%rax, %rdi
	callq	_kmap_atomic
	movq	%rax, %rdi
	movq	%rax, -80(%rbp)
	movq	_VMW_PPN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	decq	%r15
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%rax, %rcx
	jae	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r14
	movq	%rbx, %rdi
	callq	_vmw_piter_dma_addr
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_vmw_mob_assign_ppn
	xorl	%edi, %edi
	cmpq	%r14, %r15
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_vmw_piter_next
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	leaq	1(%r14), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VMW_PPN_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %rcx
	jb	LBB0_4
	jmp	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_PPN_SIZE,8,3               ## @VMW_PPN_SIZE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_vmw_mob_build_pt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_mob_build_pt
_vmw_mob_build_pt:                      ; @vmw_mob_build_pt
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _VMW_PPN_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VMW_PPN_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	mul	x0, x8, x1
Lloh2:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x1, [x25]
	bl	_DIV_ROUND_UP
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x26, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mvn	x8, x28
	add	x20, x8, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_kunmap_atomic
	mov	x0, x19
	bl	_vmw_piter_next
	add	x26, x26, #1
	cmp	x26, x22
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	bl	_vmw_piter_page
	bl	_kmap_atomic
	mov	x23, x0
	str	x0, [sp, #8]
	ldr	x8, [x25]
	ldr	x9, [x24]
	cmp	x9, x8
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	sub	x27, x20, #1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x28, x8
	mov	x0, x21
	bl	_vmw_piter_dma_addr
	mov	x1, x0
	add	x0, sp, #8
	bl	_vmw_mob_assign_ppn
	cmp	x27, x28
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_vmw_piter_next
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x8, x28, #1
	ldr	x9, [x25]
	ldr	x10, [x24]
	udiv	x9, x9, x10
	cmp	x8, x9
	b.lo	LBB0_6
	b	LBB0_2
LBB0_8:
	mov	x0, x22
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_PPN_SIZE,8,3               ; @VMW_PPN_SIZE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_vmw_mob_build_pt
.subsections_via_symbols
