	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_new_framebuffer        ## -- Begin function vmw_kms_new_framebuffer
	.p2align	4, 0x90
_vmw_kms_new_framebuffer:               ## @vmw_kms_new_framebuffer
	.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
	movq	%r8, %r12
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	(%r8), %esi
	movl	4(%r8), %edx
	callq	_vmw_kms_srf_ok
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpl	$65, (%r12)
	jl	LBB0_9
## %bb.4:
	movq	(%r14), %rax
	movq	_vmw_du_screen_target@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movl	8(%r14), %edi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_vmw_create_bo_proxy
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %edi
	jmp	LBB0_18
LBB0_9:
	testq	%r13, %r13
	je	LBB0_10
## %bb.13:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_vmw_kms_new_framebuffer_surface
	jmp	LBB0_14
LBB0_7:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movl	$1, %r8d
	callq	_vmw_kms_new_framebuffer_surface
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_vmw_surface_unreference
	testl	%ebx, %ebx
	jne	LBB0_17
LBB0_16:
	movq	-48(%rbp), %rax
	movq	_vmw_framebuffer_pin@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_vmw_framebuffer_unpin@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_19
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	_vmw_kms_new_framebuffer_bo
LBB0_14:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_17:
	movl	%ebx, %edi
LBB0_18:
	callq	_ERR_PTR
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	callq	_BUG
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_du_screen_target,8,3       ## @vmw_du_screen_target
	.comm	_vmw_framebuffer_pin,4,2        ## @vmw_framebuffer_pin
	.comm	_vmw_framebuffer_unpin,4,2      ## @vmw_framebuffer_unpin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_new_framebuffer        ; -- Begin function vmw_kms_new_framebuffer
	.p2align	2
_vmw_kms_new_framebuffer:               ; @vmw_kms_new_framebuffer
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, x2, [sp]
	ldp	w1, w2, [x4]
	bl	_vmw_kms_srf_ok
	cbz	w23, LBB0_9
; %bb.1:
	cbz	x21, LBB0_9
; %bb.2:
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #65
	b.lt	LBB0_9
; %bb.4:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _vmw_du_screen_target@GOTPAGE
Lloh1:
	ldr	x9, [x9, _vmw_du_screen_target@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x20, #8]
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, x21
	bl	_vmw_create_bo_proxy
	cbnz	w0, LBB0_15
; %bb.6:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_11
; %bb.7:
	mov	x2, sp
	mov	x0, x20
	mov	x3, x19
	mov	w4, #1
	bl	_vmw_kms_new_framebuffer_surface
	mov	x19, x0
	add	x0, sp, #8
	bl	_vmw_surface_unreference
	cbnz	w19, LBB0_14
LBB0_8:
	ldr	x0, [sp]
Lloh3:
	adrp	x8, _vmw_framebuffer_pin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vmw_framebuffer_pin@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _vmw_framebuffer_unpin@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vmw_framebuffer_unpin@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	b	LBB0_16
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	mov	w4, #0
	bl	_vmw_kms_new_framebuffer_surface
	b	LBB0_13
LBB0_11:
	cbz	x21, LBB0_17
; %bb.12:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_vmw_kms_new_framebuffer_bo
LBB0_13:
	mov	x19, x0
	cbz	w19, LBB0_8
LBB0_14:
	mov	x0, x19
LBB0_15:
	bl	_ERR_PTR
LBB0_16:
	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_17:
	bl	_BUG
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vmw_du_screen_target,8,3       ; @vmw_du_screen_target
	.comm	_vmw_framebuffer_pin,4,2        ; @vmw_framebuffer_pin
	.comm	_vmw_framebuffer_unpin,4,2      ; @vmw_framebuffer_unpin
.subsections_via_symbols
