	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_set_pool_size       ## -- Begin function vmw_cmdbuf_set_pool_size
	.p2align	4, 0x90
_vmw_cmdbuf_set_pool_size:              ## @vmw_cmdbuf_set_pool_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	%rdi, %r15
	movq	48(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	40(%r15), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_dma_alloc_coherent
	movl	%eax, 36(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$0, 4(%r15)
LBB0_10:
	movq	%r14, 8(%r15)
	leaq	28(%r15), %rdi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_drm_mm_init
	movl	$1, (%r15)
	movq	_VMW_CMDBUF_INLINE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	cmpl	$0, 4(%r15)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SVGA_CAP_DX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.7:
	addq	$4, %rbx
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r15), %r13
	movq	%r13, (%rsp)
	movq	_vmw_mob_ne_placement@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ttm_bo_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	$1, 4(%r15)
	movq	16(%r15), %rdi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r14, %rdx
	shrq	%cl, %rdx
	leaq	32(%r15), %r12
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_ttm_bo_kmap
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	%eax, %ebx
	cmpl	$0, 4(%r15)
	je	LBB0_13
## %bb.12:
	movq	(%r13), %rdi
	callq	_ttm_bo_put
	movq	$0, (%r13)
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ttm_kmap_obj_virtual
	movl	%eax, 36(%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SVGA_CAP_DX,4,2                ## @SVGA_CAP_DX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_vmw_mob_ne_placement,4,2       ## @vmw_mob_ne_placement
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VMW_CMDBUF_INLINE_SIZE,4,2     ## @VMW_CMDBUF_INLINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using command buffers with %s pool.\n"

L_.str.1:                               ## @.str.1
	.asciz	"MOB"

L_.str.2:                               ## @.str.2
	.asciz	"DMA"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_set_pool_size       ; -- Begin function vmw_cmdbuf_set_pool_size
	.p2align	2
_vmw_cmdbuf_set_pool_size:              ; @vmw_cmdbuf_set_pool_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_3:
	mov	x19, x0
	ldr	x21, [x0, #48]
	mov	x0, x1
	bl	_PAGE_ALIGN
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	add	x2, x19, #40
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_dma_alloc_coherent
	str	w0, [x19, #36]
	cbz	w0, LBB0_7
; %bb.4:
	str	wzr, [x19, #4]
LBB0_5:
	str	x20, [x19, #8]
	add	x0, x19, #28
Lloh5:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	lsr	x2, x20, x8
	mov	w1, #0
	bl	_drm_mm_init
	mov	w8, #1
	str	w8, [x19]
Lloh8:
	adrp	x8, _VMW_CMDBUF_INLINE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMW_CMDBUF_INLINE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh13:
	adrp	x10, l_.str.2@PAGE
Lloh14:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [x21]
Lloh17:
	adrp	x9, _SVGA_CAP_DX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SVGA_CAP_DX@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	add	x0, x21, #4
Lloh20:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x21, x19, #16
Lloh23:
	adrp	x3, _vmw_mob_ne_placement@GOTPAGE
Lloh24:
	ldr	x3, [x3, _vmw_mob_ne_placement@GOTPAGEOFF]
	mov	x1, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x21
	bl	_ttm_bo_create
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
Lloh25:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	lsr	x2, x20, x8
	add	x23, x19, #32
	mov	w1, #0
	mov	x3, x23
	bl	_ttm_bo_kmap
	cbz	w0, LBB0_13
; %bb.10:
	mov	x22, x0
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.11:
	ldr	x0, [x21]
	bl	_ttm_bo_put
	str	xzr, [x21]
	b	LBB0_6
LBB0_12:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	add	x1, sp, #12
	mov	x0, x23
	bl	_ttm_kmap_obj_virtual
	str	w0, [x19, #36]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SVGA_CAP_DX,4,2                ; @SVGA_CAP_DX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_vmw_mob_ne_placement,4,2       ; @vmw_mob_ne_placement
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VMW_CMDBUF_INLINE_SIZE,4,2     ; @VMW_CMDBUF_INLINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using command buffers with %s pool.\n"

l_.str.1:                               ; @.str.1
	.asciz	"MOB"

l_.str.2:                               ; @.str.2
	.asciz	"DMA"

.subsections_via_symbols
