	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_stale_heads                ## -- Begin function get_stale_heads
	.p2align	4, 0x90
_get_stale_heads:                       ## @get_stale_heads
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -32(%rbp)
	movq	_STRING_LIST_INIT_NODUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	leaq	-24(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_string_list_append
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_3:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_string_list_sort
	movq	_get_stale_heads_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_for_each_ref
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	-32(%rbp), %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ## @STRING_LIST_INIT_NODUP
	.comm	_get_stale_heads_cb,4,2         ## @get_stale_heads_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_stale_heads                ; -- Begin function get_stale_heads
	.p2align	2
_get_stale_heads:                       ; @get_stale_heads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stur	xzr, [x29, #-24]
Lloh0:
	adrp	x8, _STRING_LIST_INIT_NODUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_NODUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x8, sp, #32
	str	x8, [sp, #24]
	sub	x8, x29, #24
	stp	x0, x8, [sp, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	add	x0, sp, #32
	bl	_string_list_append
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_2
LBB0_3:
	add	x0, sp, #32
	bl	_string_list_sort
Lloh3:
	adrp	x8, _get_stale_heads_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_stale_heads_cb@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_for_each_ref
	add	x0, sp, #32
	mov	w1, #0
	bl	_string_list_clear
	ldur	x0, [x29, #-24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ; @STRING_LIST_INIT_NODUP
	.comm	_get_stale_heads_cb,4,2         ; @get_stale_heads_cb
.subsections_via_symbols
