	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_freelist_get
_savage_freelist_get:                   ## @savage_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), %rbx
	movq	16(%rbx), %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	xorl	%eax, %eax
	callq	_UPDATE_EVENT_COUNTER
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movzwl	4(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_SAVAGE_STATUS_WORD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SAVAGE_READ
LBB0_3:
	movzwl	%ax, %r14d
	movl	8(%rbx), %r13d
	xorl	%eax, %eax
	cmpl	12(%rbx), %r14d
	setg	%al
	subl	%eax, %r13d
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.4:
	leaq	24(%r12), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_TEST_AGE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.6:
	movq	(%r12), %r15
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_8
LBB0_9:
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	(%r12), %rbx
LBB0_8:
	movq	%rbx, %rax
	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	"\n"

	.comm	_SAVAGE_STATUS_WORD1,4,2        ## @SAVAGE_STATUS_WORD1
L_.str.1:                               ## @.str.1
	.asciz	"   tail=0x%04x %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"   head=0x%04x %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"returning NULL, tail->buf=%p!\n"

	.no_dead_strip	_savage_freelist_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_freelist_get
_savage_freelist_get:                   ; @savage_freelist_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x20, [x0]
	ldr	x22, [x20, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	bl	_UPDATE_EVENT_COUNTER
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldrh	w0, [x8, #4]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _SAVAGE_STATUS_WORD1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SAVAGE_STATUS_WORD1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_SAVAGE_READ
LBB0_3:
	and	w19, w0, #0xffff
	ldp	w8, w9, [x20, #8]
	cmp	w19, w9
	cset	w9, gt
	sub	w20, w8, w9
	mov	x21, x22
	ldr	w8, [x21, #24]!
	ldr	w9, [x22, #28]
	stp	x9, x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	stp	x19, x20, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_TEST_AGE
	cmp	x0, #0
	ccmp	w19, #0, #4, eq
	b.ne	LBB0_6
; %bb.5:
	ldp	x9, x8, [x22, #8]
	ldr	x0, [x22]
	str	x8, [x9, #16]
	str	x9, [x8, #8]
	stp	xzr, xzr, [x22, #8]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x22]
LBB0_7:
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SAVAGE_STATUS_WORD1,4,2        ; @SAVAGE_STATUS_WORD1
l_.str.1:                               ; @.str.1
	.asciz	"   tail=0x%04x %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"   head=0x%04x %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"returning NULL, tail->buf=%p!\n"

	.no_dead_strip	_savage_freelist_get
.subsections_via_symbols
