	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vmw_fb_check_var
LCPI0_0:
	.long	8                               ## 0x8
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vmw_fb_check_var:                      ## @vmw_fb_check_var
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rcx
	movl	(%rdi), %esi
	cmpl	$32, %esi
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rax
	movq	(%rcx), %rcx
	movq	16(%rcx), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	cmpl	$0, 40(%rax)
	setg	%dl
	movabsq	$34359738384, %rsi              ## imm = 0x800000010
	movq	%rsi, 64(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8,0,8,8]
	movups	%xmm0, 48(%rax)
	movl	$24, %esi
	cmovlel	%ebx, %esi
	shll	$3, %edx
	movl	%edx, 40(%rax)
	movl	%esi, 44(%rax)
	movslq	16(%rax), %rsi
	movq	8(%rax), %rdx
	addq	%rsi, %rdx
	cmpq	(%rcx), %rdx
	jg	LBB0_3
## %bb.2:
	movq	32(%rax), %rdx
	addq	24(%rax), %rdx
	cmpq	8(%rcx), %rdx
	jle	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vmw_kms_validate_mode_vram
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad bpp %u.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Requested geom can not fit in framebuffer\n"

	.no_dead_strip	_vmw_fb_check_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vmw_fb_check_var
lCPI0_0:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
lCPI0_2:
	.long	8                               ; 0x8
	.long	24                              ; 0x18
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vmw_fb_check_var:                      ; @vmw_fb_check_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x0]
	cmp	w9, #32
	b.ne	LBB0_5
; %bb.1:
	mov	x8, x0
	ldr	x9, [x1]
	ldr	x0, [x9, #16]
	ldr	w10, [x8, #40]
	cmp	w10, #0
	cset	w10, gt
Lloh0:
	adrp	x11, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	str	d0, [x8, #64]
Lloh2:
	adrp	x11, lCPI0_1@PAGE
Lloh3:
	ldr	q0, [x11, lCPI0_1@PAGEOFF]
	dup.2s	v1, w10
	str	q0, [x8, #48]
	shl.2s	v0, v1, #31
	cmlt.2s	v0, v0, #0
Lloh4:
	adrp	x10, lCPI0_2@PAGE
Lloh5:
	ldr	d1, [x10, lCPI0_2@PAGEOFF]
	and.8b	v0, v0, v1
	str	d0, [x8, #40]
	ldr	x11, [x8, #8]
	ldrsw	x10, [x8, #16]
	ldr	x12, [x9]
	add	x11, x11, x10
	cmp	x11, x12
	b.gt	LBB0_6
; %bb.2:
	ldp	x11, x8, [x8, #24]
	ldr	x9, [x9, #8]
	add	x2, x8, x11
	cmp	x2, x9
	b.gt	LBB0_6
; %bb.3:
	lsl	w1, w10, #2
	bl	_vmw_kms_validate_mode_vram
	cbz	w0, LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	str	x9, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_DRM_ERROR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad bpp %u.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Requested geom can not fit in framebuffer\n"

	.no_dead_strip	_vmw_fb_check_var
.subsections_via_symbols
