	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_res_man_size        ## -- Begin function vmw_cmdbuf_res_man_size
	.p2align	4, 0x90
_vmw_cmdbuf_res_man_size:               ## @vmw_cmdbuf_res_man_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%edi, %edi
	cmpq	$0, _vmw_cmdbuf_res_man_size.res_man_size(%rip)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$4, %edi
	callq	_ttm_round_pot
	movq	%rax, %rbx
	movq	_VMW_CMDBUF_RES_MAN_HT_ORDER@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$4, %edi
	shlq	%cl, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ttm_round_pot
	addq	%rbx, %rax
	movq	%rax, _vmw_cmdbuf_res_man_size.res_man_size(%rip)
	jmp	LBB0_3
LBB0_1:
	movq	_vmw_cmdbuf_res_man_size.res_man_size(%rip), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vmw_cmdbuf_res_man_size.res_man_size,8,3 ## @vmw_cmdbuf_res_man_size.res_man_size
	.comm	_VMW_CMDBUF_RES_MAN_HT_ORDER,4,2 ## @VMW_CMDBUF_RES_MAN_HT_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_cmdbuf_res_man_size        ; -- Begin function vmw_cmdbuf_res_man_size
	.p2align	2
_vmw_cmdbuf_res_man_size:               ; @vmw_cmdbuf_res_man_size
	.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
	adrp	x20, _vmw_cmdbuf_res_man_size.res_man_size@PAGE
	ldr	x8, [x20, _vmw_cmdbuf_res_man_size.res_man_size@PAGEOFF]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #4
	mov	w0, #4
	bl	_ttm_round_pot
	mov	x19, x0
Lloh0:
	adrp	x8, _VMW_CMDBUF_RES_MAN_HT_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_CMDBUF_RES_MAN_HT_ORDER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	x0, x21, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ttm_round_pot
	add	x0, x0, x19
	str	x0, [x20, _vmw_cmdbuf_res_man_size.res_man_size@PAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x20, _vmw_cmdbuf_res_man_size.res_man_size@PAGEOFF]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vmw_cmdbuf_res_man_size.res_man_size,8,3 ; @vmw_cmdbuf_res_man_size.res_man_size
	.comm	_VMW_CMDBUF_RES_MAN_HT_ORDER,4,2 ; @VMW_CMDBUF_RES_MAN_HT_ORDER
.subsections_via_symbols
