	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_request_device
_vmw_request_device:                    ## @vmw_request_device
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rsi
	callq	_vmw_fifo_init
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_14
LBB0_2:
	movl	8(%rbx), %edi
	callq	_vmw_fence_fifo_up
	movq	%rbx, %rdi
	callq	_vmw_cmdbuf_man_create
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	movl	$0, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_vmw_request_device_late
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_13:
	movl	8(%rbx), %edi
	callq	_vmw_fence_fifo_down
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vmw_fifo_release
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_vmw_dummy_query_bo_create
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_vmw_cmdbuf_remove_pool
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.10:
	leaq	24(%rbx), %rdi
	movq	_VMW_PL_MOB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ttm_bo_evict_mm
	movq	%rbx, %rdi
	callq	_vmw_otables_takedown
LBB0_11:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_vmw_cmdbuf_man_destroy
	jmp	LBB0_13
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to initialize FIFO.\n"

	.comm	_VMW_PL_MOB,4,2                 ## @VMW_PL_MOB
	.no_dead_strip	_vmw_request_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_request_device
_vmw_request_device:                    ; @vmw_request_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	add	x20, x0, #4
	mov	x1, x20
	bl	_vmw_fifo_init
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_vmw_fence_fifo_up
	mov	x0, x19
	bl	_vmw_cmdbuf_man_create
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [x19, #16]
	str	wzr, [x19]
LBB0_4:
	mov	x0, x19
	bl	_vmw_request_device_late
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_vmw_fence_fifo_down
	mov	x0, x19
	mov	x1, x20
	bl	_vmw_fifo_release
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_vmw_dummy_query_bo_create
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.8:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_vmw_cmdbuf_remove_pool
LBB0_10:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.11:
	add	x0, x19, #24
Lloh2:
	adrp	x8, _VMW_PL_MOB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMW_PL_MOB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ttm_bo_evict_mm
	mov	x0, x19
	bl	_vmw_otables_takedown
LBB0_12:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.13:
	bl	_vmw_cmdbuf_man_destroy
	b	LBB0_5
LBB0_14:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to initialize FIFO.\n"

	.comm	_VMW_PL_MOB,4,2                 ; @VMW_PL_MOB
	.no_dead_strip	_vmw_request_device
.subsections_via_symbols
