	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_default_heads
_get_default_heads:                     ## @get_default_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	%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	_fsck_handle_ref@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_for_each_rawref
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$8, %r15
	leaq	-48(%rbp), %r12
	leaq	-64(%rbp), %r14
	movq	_include_reflogs@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rbx
	addq	$8, %r15
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	L_.str(%rip), %rdx
	callq	_strbuf_worktree_ref
	movl	-48(%rbp), %edi
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdx
	callq	_fsck_head_link
	cmpq	$0, -72(%rbp)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_fsck_handle_ref
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_strbuf_release
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_get_worktree_ref_store
	movq	_fsck_handle_reflog@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_refs_for_each_reflog
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_worktrees
	movq	_default_refs@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fprintf_ln
	movq	_show_unreachable@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_include_reflogs,8,3            ## @include_reflogs
	.comm	_fsck_handle_reflog,4,2         ## @fsck_handle_reflog
	.comm	_default_refs,4,2               ## @default_refs
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"notice: No default references"

	.comm	_show_unreachable,8,3           ## @show_unreachable
	.no_dead_strip	_get_default_heads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_default_heads
_get_default_heads:                     ; @get_default_heads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x0, _fsck_handle_ref@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fsck_handle_ref@GOTPAGEOFF]
	mov	x1, #0
	bl	_for_each_rawref
	mov	w0, #0
	bl	_get_worktrees
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	add	x22, x19, #8
Lloh2:
	adrp	x23, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _include_reflogs@GOTPAGE
Lloh5:
	ldr	x24, [x24, _include_reflogs@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x25, _fsck_handle_reflog@GOTPAGE
Lloh9:
	ldr	x25, [x25, _fsck_handle_reflog@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x22], #8
	cbz	x20, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_strbuf_worktree_ref
	ldr	w0, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_fsck_head_link
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	bl	_is_null_oid
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #8]
	add	x1, sp, #16
	mov	w2, #0
	mov	x3, #0
	bl	_fsck_handle_ref
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_get_worktree_ref_store
	ldr	w1, [x25]
	mov	x2, x20
	bl	_refs_for_each_reflog
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	_free_worktrees
Lloh10:
	adrp	x8, _default_refs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _default_refs@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf_ln
Lloh18:
	adrp	x8, _show_unreachable@GOTPAGE
Lloh19:
	ldr	x8, [x8, _show_unreachable@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_include_reflogs,8,3            ; @include_reflogs
	.comm	_fsck_handle_reflog,4,2         ; @fsck_handle_reflog
	.comm	_default_refs,4,2               ; @default_refs
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"notice: No default references"

	.comm	_show_unreachable,8,3           ; @show_unreachable
	.no_dead_strip	_get_default_heads
.subsections_via_symbols
