	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_handle_arr_create         ## -- Begin function vmci_handle_arr_create
	.p2align	4, 0x90
_vmci_handle_arr_create:                ## @vmci_handle_arr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	%rsi, %rdi
	jg	LBB0_7
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_min
	movq	%rax, %rbx
LBB0_4:
	movq	%rbx, %rdi
	callq	_handle_arr_calc_size
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, 16(%rax)
	movq	%r14, 8(%rax)
	movq	$0, (%rax)
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY,8,3 ## @VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_handle_arr_create         ; -- Begin function vmci_handle_arr_create
	.p2align	2
_vmci_handle_arr_create:                ; @vmci_handle_arr_create
	.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, x0
	mov	x0, #0
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x1
	cmp	x20, x1
	b.gt	LBB0_6
; %bb.2:
	cbnz	x20, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	x1, x19
	bl	_min
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_handle_arr_calc_size
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.5:
	stp	x19, x20, [x0, #8]
	str	xzr, [x0]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY,8,3 ; @VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
.subsections_via_symbols
