	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_validation_mem_alloc       ## -- Begin function vmw_validation_mem_alloc
	.p2align	4, 0x90
_vmw_validation_mem_alloc:              ## @vmw_validation_mem_alloc
	.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	%rdi, %rbx
	movl	%esi, %edi
	callq	_vmw_validation_align
	movl	%eax, %r14d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %r14d
	jbe	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movl	(%rbx), %edx
	cmpl	%r14d, %edx
	jae	LBB0_7
## %bb.3:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.4:
	cmpl	%eax, 4(%rbx)
	jae	LBB0_9
## %bb.5:
	movq	8(%rdi), %rsi
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:
	movq	16(%rbx), %rax
	movl	8(%rax), %eax
	addl	%eax, 4(%rbx)
	addl	%eax, 24(%rbx)
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rax, %r15
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:
	movl	(%r12), %eax
	subl	%eax, 4(%rbx)
LBB0_12:
	leaq	12(%rbx), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_page_address
	movl	%eax, %ecx
	movl	%eax, 8(%rbx)
	movl	(%r12), %edx
	movl	%edx, (%rbx)
	movl	(%r12), %eax
	jmp	LBB0_13
LBB0_7:
	movl	8(%rbx), %ecx
LBB0_13:
	addl	%ecx, %eax
	subl	%edx, %eax
	subl	%r14d, %edx
	movl	%edx, (%rbx)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_validation_mem_alloc       ; -- Begin function vmw_validation_mem_alloc
	.p2align	2
_vmw_validation_mem_alloc:              ; @vmw_validation_mem_alloc
	.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
	mov	x0, x1
	bl	_vmw_validation_align
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ls	LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_13
LBB0_2:
	mov	x20, x0
	ldr	w9, [x19]
	cmp	w9, w0
	b.hs	LBB0_11
; %bb.3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.hs	LBB0_7
; %bb.5:
	ldp	x8, x1, [x0]
	blr	x8
	cbnz	w0, LBB0_1
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	ldr	w9, [x19, #4]
	add	w9, w9, w8
	str	w9, [x19, #4]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
LBB0_7:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	cbz	x0, LBB0_13
; %bb.8:
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	sub	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
	add	x1, x19, #12
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x21
	bl	_page_address
	str	w0, [x19, #8]
	ldr	w9, [x22]
	str	w9, [x19]
	ldr	w8, [x22]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #8]
LBB0_12:
	add	w8, w8, w0
	sub	w0, w8, w9
	sub	w8, w9, w20
	str	w8, [x19]
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
.subsections_via_symbols
