	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_resize_cmd_bounce
_vmw_resize_cmd_bounce:                 ## @vmw_resize_cmd_bounce
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	%esi, (%r15)
	setge	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_VMWGFX_CMD_BOUNCE_INIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %edi
	sarl	%edi
	addl	%eax, %edi
	callq	_PAGE_ALIGN
LBB0_4:
	movl	%eax, (%r15)
LBB0_5:
	cmpl	%ebx, %eax
	jl	LBB0_3
## %bb.6:
	movq	8(%r15), %rdi
	callq	_vfree
	movl	(%r15), %edi
	callq	_vmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_VMW_DEBUG_USER
	movl	$0, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMWGFX_CMD_BOUNCE_INIT_SIZE,4,2 ## @VMWGFX_CMD_BOUNCE_INIT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate command bounce buffer.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmw_resize_cmd_bounce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_resize_cmd_bounce
_vmw_resize_cmd_bounce:                 ; @vmw_resize_cmd_bounce
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, ge
	bl	_likely
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	cbnz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _VMWGFX_CMD_BOUNCE_INIT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMWGFX_CMD_BOUNCE_INIT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	w0, w0, w0, asr #1
	bl	_PAGE_ALIGN
LBB0_6:
	str	w0, [x19]
LBB0_7:
	cmp	w0, w20
	b.lt	LBB0_5
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_vfree
	ldr	w0, [x19]
	bl	_vmalloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VMW_DEBUG_USER
	str	wzr, [x19]
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VMWGFX_CMD_BOUNCE_INIT_SIZE,4,2 ; @VMWGFX_CMD_BOUNCE_INIT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate command bounce buffer.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmw_resize_cmd_bounce
.subsections_via_symbols
