	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_gmrid_man_get_node
_vmw_gmrid_man_get_node:                ## @vmw_gmrid_man_get_node
	.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
	movq	%rcx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %r14
	movq	$0, 16(%rcx)
	leaq	16(%r14), %r15
	movq	24(%r14), %rsi
	decq	%rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ida_alloc_max
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	20(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	8(%r14), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	(%rdx), %rcx
	movq	%rcx, 8(%r14)
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	subq	%rax, 8(%r14)
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ida_free
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	cmovel	%ebx, %eax
	jmp	LBB0_7
LBB0_4:
	movq	%r14, 16(%r12)
	movl	%ebx, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmw_gmrid_man_get_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_gmrid_man_get_node
_vmw_gmrid_man_get_node:                ; @vmw_gmrid_man_get_node
	.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	x21, x3
	mov	x20, x1
	ldr	x24, [x0]
	str	xzr, [x3, #16]
	add	x19, x24, #16
	ldr	x8, [x24, #24]
	sub	x1, x8, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ida_alloc_max
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x23, x24, #20
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x9, [x20]
	ldr	x10, [x24, #8]
	add	x9, x10, x9
	cmp	x9, x8
	str	x9, [x24, #8]
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x24, #8]
	sub	x8, x9, x8
	str	x8, [x24, #8]
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x19
	mov	x1, x22
	bl	_ida_free
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w22, w8
	csel	w0, w22, wzr, eq
	b	LBB0_7
LBB0_5:
	str	w22, [x21]
	ldr	x8, [x20]
	stp	x8, x24, [x21, #8]
	mov	x0, x23
	bl	_spin_unlock
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmw_gmrid_man_get_node
.subsections_via_symbols
