	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_thread_fn
_vmw_thread_fn:                         ## @vmw_thread_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdi
	callq	_vmw_priv
	movq	%rax, %rbx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_VMW_IRQTHREAD_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_vmw_fences_update
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_wake_up_all
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	_VMW_IRQTHREAD_CMDBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_vmw_cmdbuf_irqthread
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_VMW_IRQTHREAD_FENCE,4,2        ## @VMW_IRQTHREAD_FENCE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_VMW_IRQTHREAD_CMDBUF,4,2       ## @VMW_IRQTHREAD_CMDBUF
	.no_dead_strip	_vmw_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_thread_fn
_vmw_thread_fn:                         ; @vmw_thread_fn
	.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
	mov	x0, x1
	bl	_vmw_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _VMW_IRQTHREAD_FENCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMW_IRQTHREAD_FENCE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_and_clear_bit
Lloh6:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_vmw_fences_update
	add	x0, x19, #8
	bl	_wake_up_all
	ldr	w20, [x21]
LBB0_2:
Lloh8:
	adrp	x8, _VMW_IRQTHREAD_CMDBUF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMW_IRQTHREAD_CMDBUF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_and_clear_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_vmw_cmdbuf_irqthread
	ldr	w20, [x21]
LBB0_4:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_VMW_IRQTHREAD_FENCE,4,2        ; @VMW_IRQTHREAD_FENCE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_VMW_IRQTHREAD_CMDBUF,4,2       ; @VMW_IRQTHREAD_CMDBUF
	.no_dead_strip	_vmw_thread_fn
.subsections_via_symbols
