	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vmid_free_reserved      ## -- Begin function amdgpu_vmid_free_reserved
	.p2align	4, 0x90
_amdgpu_vmid_free_reserved:             ## @amdgpu_vmid_free_reserved
	.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	%rsi, %r14
	movq	(%rdi), %r12
	movl	%edx, %ebx
	leaq	(%rbx,%rbx,2), %r13
	leaq	(%r12,%r13,4), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	(%r12,%r13,4), %rsi
	addq	$8, %rsi
	callq	_list_add
	movq	(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	leaq	(%r12,%r13,4), %rdi
	addq	$4, %rdi
	callq	_atomic_dec
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vmid_free_reserved      ; -- Begin function amdgpu_vmid_free_reserved
	.p2align	2
_amdgpu_vmid_free_reserved:             ; @amdgpu_vmid_free_reserved
	.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	x21, x2
	mov	x20, x1
	ldr	x22, [x0]
	mov	w8, #12
	umaddl	x19, w2, w8, x22
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x0, [x8, w21, uxtw #3]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, w21
	mov	w8, #12
	madd	x22, x21, x8, x22
	add	x1, x22, #8
	bl	_list_add
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
	add	x0, x22, #4
	bl	_atomic_dec
LBB0_2:
	mov	x0, x19
	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
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
