	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_generic_waiter_add         ## -- Begin function vmw_generic_waiter_add
	.p2align	4, 0x90
_vmw_generic_waiter_add:                ## @vmw_generic_waiter_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_spin_lock_bh
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_VMWGFX_IRQSTATUS_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	%r14d, %edi
	callq	_outl
	orl	4(%r15), %r14d
	movl	%r14d, 4(%r15)
	movq	_SVGA_REG_IRQMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_vmw_write
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMWGFX_IRQSTATUS_PORT,8,3      ## @VMWGFX_IRQSTATUS_PORT
	.comm	_SVGA_REG_IRQMASK,4,2           ## @SVGA_REG_IRQMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_generic_waiter_add         ; -- Begin function vmw_generic_waiter_add
	.p2align	2
_vmw_generic_waiter_add:                ; @vmw_generic_waiter_add
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_bh
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _VMWGFX_IRQSTATUS_PORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMWGFX_IRQSTATUS_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outl
	ldr	w8, [x19, #4]
	orr	w2, w8, w20
	str	w2, [x19, #4]
Lloh3:
	adrp	x8, _SVGA_REG_IRQMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVGA_REG_IRQMASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vmw_write
LBB0_2:
	mov	x0, x19
	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
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMWGFX_IRQSTATUS_PORT,8,3      ; @VMWGFX_IRQSTATUS_PORT
	.comm	_SVGA_REG_IRQMASK,4,2           ; @SVGA_REG_IRQMASK
.subsections_via_symbols
