	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_dummy_query_bo_create
_vmw_dummy_query_bo_create:             ## @vmw_dummy_query_bo_create
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_vmw_sys_ne_placement@GOTPCREL(%rip), %rcx
	movq	_vmw_bo_bo_free@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_vmw_bo_init
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	%r15, %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	%r15, %rdi
	movl	$1, %esi
	callq	_vmw_bo_pin_reserved
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_ttm_bo_kmap
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %r12
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ttm_kmap_obj_virtual
	movl	$12, (%rax)
	movq	_SVGA3D_QUERYSTATE_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	$255, 4(%rax)
	movq	%r12, %rdi
	callq	_ttm_bo_kunmap
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vmw_bo_pin_reserved
	movq	%r15, %rdi
	callq	_ttm_bo_unreserve
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	leaq	-48(%rbp), %rdi
	callq	_vmw_bo_unreference
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	%r15, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_vmw_sys_ne_placement,4,2       ## @vmw_sys_ne_placement
	.comm	_vmw_bo_bo_free,4,2             ## @vmw_bo_bo_free
	.comm	_SVGA3D_QUERYSTATE_PENDING,4,2  ## @SVGA3D_QUERYSTATE_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dummy query buffer map failed.\n"

	.no_dead_strip	_vmw_dummy_query_bo_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_dummy_query_bo_create
_vmw_dummy_query_bo_create:             ; @vmw_dummy_query_bo_create
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, _vmw_sys_ne_placement@GOTPAGE
Lloh7:
	ldr	x3, [x3, _vmw_sys_ne_placement@GOTPAGEOFF]
Lloh8:
	adrp	x5, _vmw_bo_bo_free@GOTPAGE
Lloh9:
	ldr	x5, [x5, _vmw_bo_bo_free@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_vmw_bo_init
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.2:
	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
	mov	w1, #1
	bl	_vmw_bo_pin_reserved
	add	x3, sp, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_ttm_bo_kmap
	mov	x21, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_ttm_kmap_obj_virtual
	mov	w8, #12
	str	w8, [x0]
Lloh10:
	adrp	x8, _SVGA3D_QUERYSTATE_PENDING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SVGA3D_QUERYSTATE_PENDING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	w8, #255
	str	w8, [x0, #4]
	add	x0, sp, #16
	bl	_ttm_bo_kunmap
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	bl	_vmw_bo_pin_reserved
	mov	x0, x20
	bl	_ttm_bo_unreserve
	cmp	w21, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	add	x0, sp, #24
	bl	_vmw_bo_unreference
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	str	x20, [x19]
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_vmw_sys_ne_placement,4,2       ; @vmw_sys_ne_placement
	.comm	_vmw_bo_bo_free,4,2             ; @vmw_bo_bo_free
	.comm	_SVGA3D_QUERYSTATE_PENDING,4,2  ; @SVGA3D_QUERYSTATE_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dummy query buffer map failed.\n"

	.no_dead_strip	_vmw_dummy_query_bo_create
.subsections_via_symbols
