	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_mob_pt_populate
_vmw_mob_pt_populate:                   ## @vmw_mob_pt_populate
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	leaq	8(%rsi), %r15
	xorl	%edi, %edi
	cmpq	$0, 8(%rsi)
	setne	%dil
	callq	_BUG_ON
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%rbx), %esi
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, (%rsp)
	movq	_vmw_sys_ne_placement@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ttm_bo_create
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r15), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_ttm_bo_reserve
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_BUG_ON
	movq	_vmw_bo_driver@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	leaq	-32(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r15), %rdi
	callq	_vmw_bo_map_dma
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	(%r15), %rdi
	callq	_ttm_bo_unreserve
	movq	(%r15), %rdi
	callq	_ttm_bo_put
	movq	$0, (%r15)
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rdi
	callq	_ttm_bo_unreserve
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_vmw_sys_ne_placement,4,2       ## @vmw_sys_ne_placement
	.comm	_vmw_bo_driver,8,3              ## @vmw_bo_driver
	.no_dead_strip	_vmw_mob_pt_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_mob_pt_populate
_vmw_mob_pt_populate:                   ; @vmw_mob_pt_populate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x19, x1
	ldr	x8, [x19, #8]!
	cmp	x8, #0
	cset	w0, ne
	bl	_BUG_ON
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
	mul	w1, w8, w9
Lloh3:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, _vmw_sys_ne_placement@GOTPAGE
Lloh7:
	ldr	x3, [x3, _vmw_sys_ne_placement@GOTPAGEOFF]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_ttm_bo_create
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #1
	mov	x3, #0
	bl	_ttm_bo_reserve
	cmp	w0, #0
	cset	w0, ne
	bl	_BUG_ON
Lloh8:
	adrp	x8, _vmw_bo_driver@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vmw_bo_driver@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w0, [x9]
	add	x1, sp, #8
	blr	x8
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_vmw_bo_map_dma
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x0, [x19]
	bl	_ttm_bo_unreserve
	ldr	x0, [x19]
	bl	_ttm_bo_put
	str	xzr, [x19]
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x0, [x19]
	bl	_ttm_bo_unreserve
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_vmw_sys_ne_placement,4,2       ; @vmw_sys_ne_placement
	.comm	_vmw_bo_driver,8,3              ; @vmw_bo_driver
	.no_dead_strip	_vmw_mob_pt_populate
.subsections_via_symbols
