	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_otable_batch_setup
_vmw_otable_batch_setup:                ## @vmw_otable_batch_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rsi), %rdi
	movq	$0, -80(%rbp)
	movq	(%rsi), %rax
	testq	%rax, %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r8
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdi
	decq	%rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %ebx
	movl	(%r8), %ecx
	addl	%ebx, %ecx
	decl	%ecx
	andl	(%rdx), %ecx
	movslq	%ecx, %rcx
	movl	%ecx, (%rdi)
	addq	%rcx, %rsi
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
LBB0_6:
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rsp)
	movq	_vmw_sys_ne_placement@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ttm_bo_create
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_24
## %bb.7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %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	(%rbx), %rcx
	movl	(%rcx), %edi
	leaq	-80(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.8:
	movq	(%rbx), %rdi
	callq	_vmw_bo_map_dma
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
LBB0_17:
	movq	(%rbx), %rdi
	callq	_ttm_bo_unreserve
LBB0_18:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	addq	$16, %r13
	cmpq	%rax, %rbx
	jae	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdx
	cmpq	$0, 8(%rdx,%r13)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	%r13, %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vmw_takedown_otable_base
	movq	(%r12), %rax
	jmp	LBB0_22
LBB0_23:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_ttm_bo_put
	movq	$0, (%rbx)
LBB0_24:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r12), %rdi
	callq	_ttm_bo_unreserve
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	addq	$16, %r13
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	jae	LBB0_24
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdx
	cmpq	$0, 8(%rdx,%r13)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%r13), %r8
	movq	%rbx, %rsi
	movq	%rcx, %r15
	callq	_vmw_setup_otable_base
	xorl	%edi, %edi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	(%r14,%r13), %rax
	addq	%rax, %r15
	movq	(%r12), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rcx
	jmp	LBB0_16
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_14:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.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_otable_batch_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_otable_batch_setup
_vmw_otable_batch_setup:                ; @vmw_otable_batch_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x1, #16]
	str	xzr, [sp, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x1, #0
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PAGE_MASK@GOTPAGEOFF]
	mov	x11, x25
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x11]
	ldr	w13, [x9]
	add	w12, w12, w13
	sub	w12, w12, #1
	ldr	w13, [x10]
	and	w12, w12, w13
	str	w12, [x11]
	add	x1, x1, w12, sxtw
	b	LBB0_2
LBB0_5:
	mov	x1, #0
LBB0_6:
Lloh4:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x21, x19, #8
Lloh7:
	adrp	x3, _vmw_sys_ne_placement@GOTPAGE
Lloh8:
	ldr	x3, [x3, _vmw_sys_ne_placement@GOTPAGEOFF]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x21
	bl	_ttm_bo_create
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_16
; %bb.7:
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #1
	mov	x3, #0
	bl	_ttm_bo_reserve
	cmp	w0, #0
	cset	w0, ne
	bl	_BUG_ON
Lloh9:
	adrp	x8, _vmw_bo_driver@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vmw_bo_driver@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	w0, [x9]
	add	x1, sp, #8
	blr	x8
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21]
	bl	_vmw_bo_map_dma
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_17
LBB0_9:
	ldr	x0, [x21]
	bl	_ttm_bo_unreserve
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.11:
	mov	x24, #0
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	add	x24, x24, #16
	cmp	x23, x8
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x2, x9, x24
	ldr	x9, [x2, #8]
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_vmw_takedown_otable_base
	ldr	x8, [x19]
	b	LBB0_12
LBB0_15:
	ldr	x0, [x21]
	bl	_ttm_bo_put
	str	xzr, [x21]
LBB0_16:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_ttm_bo_unreserve
	ldr	x8, [x19]
	cbz	x8, LBB0_23
; %bb.18:
	mov	x26, #0
	mov	x23, #0
	mov	x24, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w22, #0
	add	x23, x23, #1
	add	x26, x26, #16
	cmp	x23, x8
	b.hs	LBB0_16
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x9, x9, x26
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x2, [x21]
	add	x4, x25, x26
	mov	x0, x20
	mov	x1, x23
	mov	x3, x24
	bl	_vmw_setup_otable_base
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrsw	x8, [x25, x26]
	add	x24, x24, x8
	ldr	x8, [x19]
	b	LBB0_19
LBB0_23:
	mov	w22, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.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_otable_batch_setup
.subsections_via_symbols
