	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_irq_handler
_vmw_irq_handler:                       ## @vmw_irq_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_vmw_priv
	movq	%rax, %r15
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_VMWGFX_IRQSTATUS_PORT@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r15), %rdi
	callq	_inl
	movl	%eax, %ebx
	movl	16(%r15), %edi
	callq	_READ_ONCE
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_outl
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	andl	%ebx, %r12d
	movq	_SVGA_IRQFLAG_FIFO_PROGRESS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_wake_up_all
LBB0_6:
	movq	_SVGA_IRQFLAG_ANY_FENCE@GOTPCREL(%rip), %rax
	movq	_SVGA_IRQFLAG_FENCE_GOAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_9
## %bb.7:
	movq	_VMW_IRQTHREAD_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movq	_SVGA_IRQFLAG_COMMAND_BUFFER@GOTPCREL(%rip), %rax
	movq	_SVGA_IRQFLAG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_13
## %bb.10:
	movq	_VMW_IRQTHREAD_CMDBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_VMWGFX_IRQSTATUS_PORT,8,3      ## @VMWGFX_IRQSTATUS_PORT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_SVGA_IRQFLAG_FIFO_PROGRESS,4,2 ## @SVGA_IRQFLAG_FIFO_PROGRESS
	.comm	_SVGA_IRQFLAG_ANY_FENCE,4,2     ## @SVGA_IRQFLAG_ANY_FENCE
	.comm	_SVGA_IRQFLAG_FENCE_GOAL,4,2    ## @SVGA_IRQFLAG_FENCE_GOAL
	.comm	_VMW_IRQTHREAD_FENCE,4,2        ## @VMW_IRQTHREAD_FENCE
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_SVGA_IRQFLAG_COMMAND_BUFFER,4,2 ## @SVGA_IRQFLAG_COMMAND_BUFFER
	.comm	_SVGA_IRQFLAG_ERROR,4,2         ## @SVGA_IRQFLAG_ERROR
	.comm	_VMW_IRQTHREAD_CMDBUF,4,2       ## @VMW_IRQTHREAD_CMDBUF
	.no_dead_strip	_vmw_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_irq_handler
_vmw_irq_handler:                       ; @vmw_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, x1
	bl	_vmw_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x23, _VMWGFX_IRQSTATUS_PORT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VMWGFX_IRQSTATUS_PORT@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inl
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_READ_ONCE
	mov	x22, x0
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x21
	bl	_outl
LBB0_2:
	cbz	w21, LBB0_9
; %bb.3:
	and	w21, w22, w21
Lloh5:
	adrp	x8, _SVGA_IRQFLAG_FIFO_PROGRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVGA_IRQFLAG_FIFO_PROGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	add	x0, x20, #4
	bl	_wake_up_all
LBB0_5:
Lloh8:
	adrp	x8, _SVGA_IRQFLAG_ANY_FENCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVGA_IRQFLAG_ANY_FENCE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _SVGA_IRQFLAG_FENCE_GOAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SVGA_IRQFLAG_FENCE_GOAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x22, _IRQ_WAKE_THREAD@GOTPAGE
Lloh15:
	ldr	x22, [x22, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _VMW_IRQTHREAD_FENCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VMW_IRQTHREAD_FENCE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_and_set_bit
	ldr	w8, [x22]
	cmp	w0, #0
	csel	w19, w8, w19, eq
LBB0_7:
Lloh19:
	adrp	x8, _SVGA_IRQFLAG_COMMAND_BUFFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SVGA_IRQFLAG_COMMAND_BUFFER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SVGA_IRQFLAG_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SVGA_IRQFLAG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_10
; %bb.8:
Lloh25:
	adrp	x8, _VMW_IRQTHREAD_CMDBUF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VMW_IRQTHREAD_CMDBUF@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_and_set_bit
	ldr	w8, [x22]
	cmp	w0, #0
	csel	w19, w8, w19, eq
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_VMWGFX_IRQSTATUS_PORT,8,3      ; @VMWGFX_IRQSTATUS_PORT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_SVGA_IRQFLAG_FIFO_PROGRESS,4,2 ; @SVGA_IRQFLAG_FIFO_PROGRESS
	.comm	_SVGA_IRQFLAG_ANY_FENCE,4,2     ; @SVGA_IRQFLAG_ANY_FENCE
	.comm	_SVGA_IRQFLAG_FENCE_GOAL,4,2    ; @SVGA_IRQFLAG_FENCE_GOAL
	.comm	_VMW_IRQTHREAD_FENCE,4,2        ; @VMW_IRQTHREAD_FENCE
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_SVGA_IRQFLAG_COMMAND_BUFFER,4,2 ; @SVGA_IRQFLAG_COMMAND_BUFFER
	.comm	_SVGA_IRQFLAG_ERROR,4,2         ; @SVGA_IRQFLAG_ERROR
	.comm	_VMW_IRQTHREAD_CMDBUF,4,2       ; @VMW_IRQTHREAD_CMDBUF
	.no_dead_strip	_vmw_irq_handler
.subsections_via_symbols
