	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_stale_heads_cb
_get_stale_heads_cb:                    ## @get_stale_heads_cb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r15, -72(%rbp)
	movl	8(%r14), %edi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rsi
	callq	_query_refspecs_multiple
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	jne	LBB0_8
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	%rbx, %r12
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movq	-56(%rbp), %rax
	movl	-4(%rax,%rbx,4), %esi
	callq	_string_list_has_string
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rcx
	movslq	-64(%rbp), %rdx
	cmpq	%rdx, %rbx
	movq	%rcx, %rbx
	jl	LBB0_4
LBB0_6:
	testq	%rax, %rax
	movq	%r12, %rbx
	jne	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_make_linked_ref
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_oidcpy
LBB0_8:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ## @STRING_LIST_INIT_DUP
	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.no_dead_strip	_get_stale_heads_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_stale_heads_cb
_get_stale_heads_cb:                    ; @get_stale_heads_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x21, [sp, #8]
	ldr	w0, [x20, #8]
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_query_refspecs_multiple
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_7
; %bb.1:
Lloh3:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w22
	b.ne	LBB0_7
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	x8, [sp, #24]
	ldr	w1, [x8, x22, lsl #2]
	bl	_string_list_has_string
	add	x22, x22, #1
	ldrsw	x8, [sp, #16]
	cmp	x0, #0
	ccmp	x22, x8, #0, eq
	b.lt	LBB0_4
; %bb.5:
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_make_linked_ref
	mov	x1, x19
	bl	_oidcpy
LBB0_7:
	add	x0, sp, #16
	mov	w1, #0
	bl	_string_list_clear
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 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_DUP,16,3      ; @STRING_LIST_INIT_DUP
	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.no_dead_strip	_get_stale_heads_cb
.subsections_via_symbols
