	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_cotable_create
_vmw_cotable_create:                    ## @vmw_cotable_create
	.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	%rdi, %r14
	callq	_vmw_cotable
	movq	%rax, %r15
	movq	(%r14), %rax
	movslq	(%r15), %rdx
	incq	%rdx
	movq	_co_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r15), %rsi
	movslq	(%rcx,%rsi,4), %rcx
	imulq	%rdx, %rcx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	addq	%rdx, %rdx
	cmpq	%rcx, %rbx
	jb	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setbe	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_vmw_resource_mob_attached
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_vmw_cotable_unscrub
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	8(%r15), %rax
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_cotable_resize             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_co_info,8,3                    ## @co_info
	.no_dead_strip	_vmw_cotable_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_cotable_create
_vmw_cotable_create:                    ; @vmw_cotable_create
	.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	x19, x0
	bl	_vmw_cotable
	mov	x20, x0
	ldr	x8, [x19]
	ldrsw	x9, [x0]
Lloh0:
	adrp	x10, _co_info@GOTPAGE
Lloh1:
	ldr	x10, [x10, _co_info@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x11, [x0, #8]
	ldrsw	x10, [x10, x11, lsl #2]
	madd	x9, x10, x9, x10
	mov	x10, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x10
	lsl	x10, x10, #1
	cmp	x21, x9
	b.lo	LBB0_1
; %bb.2:
	cmp	x21, x8
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_vmw_resource_mob_attached
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vmw_cotable_unscrub
	cbnz	w0, LBB0_7
LBB0_6:
	mov	w0, #0
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
LBB0_7:
	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
LBB0_8:
	mov	x0, x19
	mov	x1, 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
	b	_vmw_cotable_resize
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_co_info,8,3                    ; @co_info
	.no_dead_strip	_vmw_cotable_create
.subsections_via_symbols
