	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_bo_acc_size
_vmw_bo_acc_size:                       ## @vmw_bo_acc_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	leaq	(,%rbx,8), %rdi
	callq	_ttm_round_pot
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	$0, _vmw_bo_acc_size.struct_size(%rip)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_vmw_tt_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ttm_round_pot
	movq	%rax, %r13
	movl	$4, %edi
	callq	_ttm_round_pot
	addq	%r13, %rax
	movq	%rax, _vmw_bo_acc_size.struct_size(%rip)
	movl	$4, %edi
	callq	_ttm_round_pot
	addq	%r13, %rax
	movq	_TTM_OBJ_EXTRA_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, _vmw_bo_acc_size.user_struct_size(%rip)
LBB0_2:
	movq	(%r12), %rax
	movq	_vmw_dma_alloc_coherent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	shlq	$2, %rbx
	movq	%rbx, %rdi
	callq	_ttm_round_pot
	addq	%rax, %r15
LBB0_4:
	testl	%r14d, %r14d
	leaq	_vmw_bo_acc_size.user_struct_size(%rip), %rax
	leaq	_vmw_bo_acc_size.struct_size(%rip), %rcx
	cmovneq	%rax, %rcx
	addq	(%rcx), %r15
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vmw_bo_acc_size.struct_size,8,3 ## @vmw_bo_acc_size.struct_size
.zerofill __DATA,__bss,_vmw_bo_acc_size.user_struct_size,8,3 ## @vmw_bo_acc_size.user_struct_size
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_vmw_tt_size,8,3                ## @vmw_tt_size
	.comm	_TTM_OBJ_EXTRA_SIZE,8,3         ## @TTM_OBJ_EXTRA_SIZE
	.comm	_vmw_dma_alloc_coherent,8,3     ## @vmw_dma_alloc_coherent
	.no_dead_strip	_vmw_bo_acc_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_bo_acc_size
_vmw_bo_acc_size:                       ; @vmw_bo_acc_size
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	bl	_PAGE_ALIGN
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x23, x0, x8
	lsl	x0, x23, #3
	bl	_ttm_round_pot
	mov	x20, x0
	adrp	x24, _vmw_bo_acc_size.struct_size@PAGE
	ldr	x8, [x24, _vmw_bo_acc_size.struct_size@PAGEOFF]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _vmw_tt_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vmw_tt_size@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_ttm_round_pot
	mov	x22, x0
	mov	w0, #4
	bl	_ttm_round_pot
	add	x8, x0, x22
	str	x8, [x24, _vmw_bo_acc_size.struct_size@PAGEOFF]
	mov	w0, #4
	bl	_ttm_round_pot
Lloh6:
	adrp	x8, _TTM_OBJ_EXTRA_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTM_OBJ_EXTRA_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x0, x22
	add	x8, x9, x8
	adrp	x9, _vmw_bo_acc_size.user_struct_size@PAGE
	str	x8, [x9, _vmw_bo_acc_size.user_struct_size@PAGEOFF]
LBB0_2:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _vmw_dma_alloc_coherent@GOTPAGE
Lloh10:
	ldr	x9, [x9, _vmw_dma_alloc_coherent@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	lsl	x0, x23, #2
	bl	_ttm_round_pot
	add	x20, x0, x20
LBB0_4:
Lloh12:
	adrp	x8, _vmw_bo_acc_size.user_struct_size@PAGE
Lloh13:
	add	x8, x8, _vmw_bo_acc_size.user_struct_size@PAGEOFF
Lloh14:
	adrp	x9, _vmw_bo_acc_size.struct_size@PAGE
Lloh15:
	add	x9, x9, _vmw_bo_acc_size.struct_size@PAGEOFF
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	add	x0, x8, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vmw_bo_acc_size.struct_size,8,3 ; @vmw_bo_acc_size.struct_size
.zerofill __DATA,__bss,_vmw_bo_acc_size.user_struct_size,8,3 ; @vmw_bo_acc_size.user_struct_size
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_vmw_tt_size,8,3                ; @vmw_tt_size
	.comm	_TTM_OBJ_EXTRA_SIZE,8,3         ; @TTM_OBJ_EXTRA_SIZE
	.comm	_vmw_dma_alloc_coherent,8,3     ; @vmw_dma_alloc_coherent
	.no_dead_strip	_vmw_bo_acc_size
.subsections_via_symbols
