	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_resource_buf_alloc
_vmw_resource_buf_alloc:                ## @vmw_resource_buf_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movslq	16(%rdi), %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	(%rdi), %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	(%rbx,%r14), %rax
	decq	%rax
	movq	(%r12), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	imulq	(%rcx), %rdx
	andq	%r13, %rax
	xorl	%edi, %edi
	cmpq	%rax, %rdx
	setb	%dil
	callq	_BUG_ON
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%r15d, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	20(%r12), %edi
	movl	16(%r12), %edx
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_vmw_bo_bo_free@GOTPCREL(%rip), %r9
	movq	%r15, %rsi
	movl	%ebx, %r8d
	callq	_vmw_bo_init
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, (%r12)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vmw_bo_bo_free,4,2             ## @vmw_bo_bo_free
	.no_dead_strip	_vmw_resource_buf_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_resource_buf_alloc
_vmw_resource_buf_alloc:                ; @vmw_resource_buf_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x22, [x0, #16]
	ldr	x23, [x21]
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldrsw	x24, [x8]
	ldr	x0, [x0]
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	add	x8, x22, x23
	sub	x8, x8, #1
	and	x8, x8, x24
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	x10, [x21]
	mul	x9, x10, x9
	cmp	x9, x8
	cset	w0, lo
	bl	_BUG_ON
	mov	w20, #0
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	ldp	w2, w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh11:
	adrp	x5, _vmw_bo_bo_free@GOTPAGE
Lloh12:
	ldr	x5, [x5, _vmw_bo_bo_free@GOTPAGEOFF]
	mov	x1, x21
	mov	x4, x20
	bl	_vmw_bo_init
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.5:
	str	x21, [x19]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vmw_bo_bo_free,4,2             ; @vmw_bo_bo_free
	.no_dead_strip	_vmw_resource_buf_alloc
.subsections_via_symbols
