	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_freelist_get            ## -- Begin function radeon_freelist_get
	.p2align	4, 0x90
_radeon_freelist_get:                   ## @radeon_freelist_get
	.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	(%rdi), %r15
	movq	8(%rdi), %rax
	movl	(%r15), %ebx
	incl	%ebx
	xorl	%ecx, %ecx
	cmpl	(%rax), %ebx
	cmovgel	%ecx, %ebx
	movl	%ebx, (%r15)
	cmpl	$0, 4(%r15)
	jle	LBB0_11
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r14
	xorl	%r12d, %r12d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_GET_SCRATCH
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_DRM_DEBUG
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rdx
	movl	%ecx, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%ebx
	cmpl	%ecx, %ebx
	cmovgel	%r8d, %ebx
	decl	%esi
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ebx, %rax
	movq	(%rdx,%rax,8), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%rax), %rdi
	cmpq	%r13, (%rdi)
	jg	LBB0_7
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_DRM_UDELAY
	incl	8(%r15)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	4(%r15), %r12d
	leaq	L_.str(%rip), %r14
	jl	LBB0_2
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_13:
	incl	12(%r15)
	movq	$0, (%rax)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"done_age = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_freelist_get            ; -- Begin function radeon_freelist_get
	.p2align	2
_radeon_freelist_get:                   ; @radeon_freelist_get
	.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
	ldp	x19, x22, [x0]
	ldp	w8, w9, [x19]
	add	w10, w8, #1
	ldr	w11, [x22]
	cmp	w10, w11
	csinc	w23, wzr, w8, ge
	str	w23, [x19]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w24, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x19
	mov	w1, #1
	bl	_GET_SCRATCH
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_DRM_DEBUG
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22, #8]
	mov	x10, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w11, w23, #1
	cmp	w11, w8
	csinc	w23, wzr, w23, ge
	subs	w10, w10, #1
	b.eq	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x9, w23, sxtw #3]
	ldr	x11, [x0, #8]
	cbz	x11, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x11, [x0]
	cbz	x11, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x11, [x0, #16]
	ldr	x11, [x11]
	cmp	x11, x21
	b.gt	LBB0_4
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_DRM_UDELAY
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19, #4]
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_11:
	mov	x0, #0
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	str	xzr, [x0]
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"done_age = %d\n"

.subsections_via_symbols
