	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_wait_dma_fence             ## -- Begin function vmw_wait_dma_fence
	.p2align	4, 0x90
_vmw_wait_dma_fence:                    ## @vmw_wait_dma_fence
	.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	%rsi, %r14
	movq	%rsi, %rdi
	callq	_dma_fence_is_signaled
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_dma_fence_is_array
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	callq	_to_dma_fence_array
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$1, %esi
	callq	_dma_fence_wait
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_9:
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_fence_wait                 ## TAILCALL
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_wait_dma_fence             ; -- Begin function vmw_wait_dma_fence
	.p2align	2
_vmw_wait_dma_fence:                    ; @vmw_wait_dma_fence
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_dma_fence_is_signaled
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_dma_fence_is_array
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_to_dma_fence_array
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
	mov	x19, x0
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	mov	w1, #1
	bl	_dma_fence_wait
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_6
	b	LBB0_1
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_fence_wait
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
