	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_fallback_wait              ## -- Begin function vmw_fallback_wait
	.p2align	4, 0x90
_vmw_fallback_wait:                     ## @vmw_fallback_wait
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	leaq	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	___wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	testl	%ebx, %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_vmw_fifo_idle@GOTPCREL(%rip), %r12
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movq	_vmw_seqno_passed@GOTPCREL(%rip), %r12
	je	LBB0_6
LBB0_4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_down_read
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edx
	movl	%r13d, %esi
	callq	_vmw_cmdbuf_idle
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_30
LBB0_6:
	leaq	16(%r14), %rdi
	callq	_atomic_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.8:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%rax), %edx
	movq	___wait@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_prepare_to_wait
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*%r12
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	___wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*%r12
	testl	%eax, %eax
	jne	LBB0_25
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout
	testl	%r13d, %r13d
	jne	LBB0_20
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	testb	$15, %r15b
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r13d, %r13d
	je	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	xorl	%eax, %eax
	callq	_schedule
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rax), %edi
	callq	___set_current_state
	testl	%r13d, %r13d
	jne	LBB0_20
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_25:
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_21:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_26:
	movq	___wait@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_finish_wait
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_29
## %bb.27:
	testl	%r15d, %r15d
	jne	LBB0_29
## %bb.28:
	movq	_SVGA_FIFO_FENCE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_vmw_mmio_write
LBB0_29:
	movq	%r14, %rdi
	callq	_wake_up_all
	testl	%ebx, %ebx
	je	LBB0_31
LBB0_30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_read
LBB0_31:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	___wait,4,2                     ## @__wait
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SVGA device lockup.\n"

	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_SVGA_FIFO_FENCE,4,2            ## @SVGA_FIFO_FENCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_fallback_wait              ; -- Begin function vmw_fallback_wait
	.p2align	2
_vmw_fallback_wait:                     ; @vmw_fallback_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	add	x19, x0, #32
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x8, ___wait@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___wait@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
Lloh6:
	adrp	x8, _vmw_seqno_passed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vmw_seqno_passed@GOTPAGEOFF]
Lloh8:
	adrp	x9, _vmw_fifo_idle@GOTPAGE
Lloh9:
	ldr	x9, [x9, _vmw_fifo_idle@GOTPAGEOFF]
	cmp	w20, #0
	csel	x25, x9, x8, ne
	cbz	w20, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_down_read
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #1
	mov	x1, x22
	bl	_vmw_cmdbuf_idle
	mov	x27, x0
	cbnz	w0, LBB0_9
LBB0_3:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	add	x0, x21, #16
	bl	_atomic_read
	mov	x27, x0
Lloh13:
	adrp	x19, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh14:
	ldr	x19, [x19, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh15:
	adrp	x28, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh16:
	ldr	x28, [x28, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x28, x19, eq
	ldr	w2, [x8]
Lloh17:
	adrp	x1, ___wait@GOTPAGE
Lloh18:
	ldr	x1, [x1, ___wait@GOTPAGEOFF]
	mov	x0, x21
	bl	_prepare_to_wait
	mov	x0, x21
	mov	x1, x23
	blr	x25
	str	w27, [sp, #20]                  ; 4-byte Folded Spill
	cbz	w0, LBB0_11
LBB0_4:
	mov	w27, #0
LBB0_5:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
Lloh19:
	adrp	x1, ___wait@GOTPAGE
Lloh20:
	ldr	x1, [x1, ___wait@GOTPAGEOFF]
	mov	x0, x21
	bl	_finish_wait
	cbz	w20, LBB0_8
; %bb.6:
	cbnz	w27, LBB0_8
; %bb.7:
	ldr	x8, [x21, #8]
Lloh21:
	adrp	x9, _SVGA_FIFO_FENCE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SVGA_FIFO_FENCE@GOTPAGEOFF]
Lloh23:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_vmw_mmio_write
LBB0_8:
	mov	x0, x21
	bl	_wake_up_all
	cbz	w20, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_up_read
LBB0_10:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	mov	w27, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x26, x8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	w22, #0
	csel	x8, x28, x19, eq
	ldr	w2, [x8]
	mov	x0, x21
Lloh24:
	adrp	x1, ___wait@GOTPAGE
Lloh25:
	ldr	x1, [x1, ___wait@GOTPAGEOFF]
	bl	_prepare_to_wait
	mov	x0, x21
	mov	x1, x23
	blr	x25
	cbnz	w0, LBB0_4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
	mov	x1, x26
	bl	_time_after_eq
	cbnz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
	bl	_schedule_timeout
	cbnz	w22, LBB0_18
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w27, w27, #1
	tst	w27, #0xf
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w22, LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh29:
	adrp	x8, _current@GOTPAGE
Lloh30:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_12
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh32:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	___set_current_state
	bl	_schedule
	cmp	w22, #0
	csel	x8, x28, x19, eq
	ldr	w0, [x8]
	bl	___set_current_state
	cbnz	w22, LBB0_18
	b	LBB0_12
LBB0_20:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_21:
Lloh37:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	___wait,4,2                     ; @__wait
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SVGA device lockup.\n"

	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_SVGA_FIFO_FENCE,4,2            ; @SVGA_FIFO_FENCE
.subsections_via_symbols
