	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_resource_do_validate
_vmw_resource_do_validate:              ## @vmw_resource_do_validate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	xorl	%edi, %edi
	cmpl	$-1, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*(%r12)
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
LBB0_2:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.3:
	cmpq	$0, 24(%r12)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_vmw_resource_mob_attached
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	cmpq	$0, 24(%r12)
	jne	LBB0_12
LBB0_7:
	cmpq	$0, (%r15)
	jne	LBB0_8
	jmp	LBB0_12
LBB0_5:
	cmpq	$0, (%r15)
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*8(%r12)
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	callq	*16(%r12)
	movl	%r15d, %r14d
	jmp	LBB0_12
LBB0_9:
	cmpq	$0, 24(%r12)
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_vmw_resource_mob_attach
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmw_resource_do_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_resource_do_validate
_vmw_resource_do_validate:              ; @vmw_resource_do_validate
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x0]
	cmn	w8, #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_13
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_vmw_resource_mob_attached
	cbz	w0, LBB0_7
LBB0_5:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_12
LBB0_6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
	b	LBB0_12
LBB0_7:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
LBB0_8:
	ldr	x8, [x22, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x22, #16]
	mov	x0, x19
	blr	x8
	b	LBB0_13
LBB0_10:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_vmw_resource_mob_attach
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmw_resource_do_validate
.subsections_via_symbols
