	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_sou_init_display       ## -- Begin function vmw_kms_sou_init_display
	.p2align	4, 0x90
_vmw_kms_sou_init_display:              ## @vmw_kms_sou_init_display
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SVGA_CAP_SCREEN_OBJECT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	_VMWGFX_NUM_DISPLAY_UNITS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_drm_vblank_init
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vmw_sou_init
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_5
LBB0_6:
	movq	_vmw_du_screen_object@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CAP_SCREEN_OBJECT_2,4,2   ## @SVGA_CAP_SCREEN_OBJECT_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not using screen objects, missing cap SCREEN_OBJECT_2\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VMWGFX_NUM_DISPLAY_UNITS,4,2   ## @VMWGFX_NUM_DISPLAY_UNITS
	.comm	_vmw_du_screen_object,4,2       ## @vmw_du_screen_object
L_.str.1:                               ## @.str.1
	.asciz	"Screen Objects Display Unit initialized\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_sou_init_display       ; -- Begin function vmw_kms_sou_init_display
	.p2align	2
_vmw_kms_sou_init_display:              ; @vmw_kms_sou_init_display
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SVGA_CAP_SCREEN_OBJECT_2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVGA_CAP_SCREEN_OBJECT_2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x21, _VMWGFX_NUM_DISPLAY_UNITS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VMWGFX_NUM_DISPLAY_UNITS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_drm_vblank_init
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vmw_sou_init
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_5:
Lloh5:
	adrp	x8, _vmw_du_screen_object@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vmw_du_screen_object@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	mov	w20, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
Lloh12:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CAP_SCREEN_OBJECT_2,4,2   ; @SVGA_CAP_SCREEN_OBJECT_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not using screen objects, missing cap SCREEN_OBJECT_2\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VMWGFX_NUM_DISPLAY_UNITS,4,2   ; @VMWGFX_NUM_DISPLAY_UNITS
	.comm	_vmw_du_screen_object,4,2       ; @vmw_du_screen_object
l_.str.1:                               ; @.str.1
	.asciz	"Screen Objects Display Unit initialized\n"

.subsections_via_symbols
