	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savage_reclaim_buffers         ## -- Begin function savage_reclaim_buffers
	.p2align	4, 0x90
_savage_reclaim_buffers:                ## @savage_reclaim_buffers
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_15
## %bb.3:
	movq	%rsi, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	movb	$1, %al
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.5:
	callq	_drm_legacy_idlelock_take
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	cmpq	%r13, (%rbx)
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 16(%r12)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 8(%r12)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_SAVAGE_WAIT_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_savage_bci_emit_event
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SET_AGE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_savage_freelist_put
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_14:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_16
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	(%r13), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_legacy_idlelock_release    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reclaimed from client\n"

	.comm	_SAVAGE_WAIT_3D,4,2             ## @SAVAGE_WAIT_3D
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savage_reclaim_buffers         ; -- Begin function savage_reclaim_buffers
	.p2align	2
_savage_reclaim_buffers:                ; @savage_reclaim_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x21, x25, [x0]
	cmp	x25, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_14
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_drm_legacy_idlelock_take
	mov	w26, #0
	b	LBB0_6
LBB0_5:
	mov	w26, #1
LBB0_6:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x27, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _SAVAGE_WAIT_3D@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SAVAGE_WAIT_3D@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	x23, [x9, x27, lsl #3]
	ldp	x9, x24, [x23]
	cmp	x9, x19
	ccmp	x24, #0, #4, eq
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x24, #16]
	cbnz	x9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x24, #8]
	cbnz	x9, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_DRM_DEBUG
	ldr	w1, [x28]
	mov	x0, x21
	bl	_savage_bci_emit_event
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x24
	bl	_SET_AGE
	mov	x0, x20
	mov	x1, x23
	bl	_savage_freelist_put
	ldr	w8, [x25]
	b	LBB0_8
LBB0_13:
	tbz	w26, #0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_drm_legacy_idlelock_release
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reclaimed from client\n"

	.comm	_SAVAGE_WAIT_3D,4,2             ; @SAVAGE_WAIT_3D
.subsections_via_symbols
