	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_mob_pt_setup
_vmw_mob_pt_setup:                      ## @vmw_mob_pt_setup
	.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, %rbx
	movq	%rdi, %r15
	movl	%esi, -56(%rbp)
	movq	8(%rdi), %r14
	movq	%r14, %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	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_vmw_bo_sg_table
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_vmw_piter_start
	movq	%r12, %rdi
	callq	_vmw_piter_next
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movl	$0, (%r15)
	xorl	%edi, %edi
	cmpq	$2, %rbx
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-56(%rbp), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_BUG_ON
	movl	-48(%rbp), %r14d
	movl	%r14d, -64(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_vmw_mob_build_pt
	movq	%rax, %rbx
	movl	%r14d, -56(%rbp)
	xorl	%edi, %edi
	cmpq	$2, %rax
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	leaq	-64(%rbp), %rdi
	callq	_vmw_piter_dma_addr
	movl	%eax, 4(%r15)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ttm_bo_unreserve
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmw_mob_pt_setup
.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_setup
_vmw_mob_pt_setup:                      ; @vmw_mob_pt_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x0
	str	w1, [sp, #24]
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	mov	x3, #0
	bl	_ttm_bo_reserve
	cmp	w0, #0
	cset	w0, ne
	bl	_BUG_ON
	mov	x0, x20
	bl	_vmw_bo_sg_table
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #0
	bl	_vmw_piter_start
	add	x0, sp, #8
	bl	_vmw_piter_next
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	str	wzr, [x19]
	cmp	x21, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cset	w0, hi
	bl	_likely
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cmp	w8, #1
	cset	w0, gt
	bl	_BUG_ON
	ldr	w22, [sp, #8]
	str	w22, [sp, #16]
	add	x0, sp, #24
	add	x2, sp, #8
	mov	x1, x21
	bl	_vmw_mob_build_pt
	mov	x21, x0
	str	w22, [sp, #24]
	cmp	x0, #1
	b	LBB0_1
LBB0_3:
	add	x0, sp, #16
	bl	_vmw_piter_dma_addr
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_ttm_bo_unreserve
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmw_mob_pt_setup
.subsections_via_symbols
