	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wt_status_get_detached_from
_wt_status_get_detached_from:           ## @wt_status_get_detached_from
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, -72(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_strbuf_init
	movq	_grab_1st_switch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_for_each_reflog_ent_reverse
	testq	%rax, %rax
	jle	LBB0_12
## %bb.1:
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	leaq	-40(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_dwim_ref
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.2:
	leaq	-56(%rbp), %r15
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	-72(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_skip_prefix
LBB0_7:
	movq	-48(%rbp), %rdi
	jmp	LBB0_9
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_lookup_commit_reference_gently
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_oideq
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	leaq	-56(%rbp), %rdi
	movq	_DEFAULT_ABBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_unique_abbrev
	movq	%rax, %rdi
LBB0_9:
	callq	_xstrdup
	movq	%rax, 8(%r12)
	leaq	4(%r12), %rbx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_oidcpy
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_get_oid
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_oideq
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_11:
	movl	%ecx, (%r12)
	movq	-72(%rbp), %rdi
	callq	_free
LBB0_12:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_grab_1st_switch,4,2            ## @grab_1st_switch
L_.str.1:                               ## @.str.1
	.asciz	"refs/tags/"

L_.str.2:                               ## @.str.2
	.asciz	"refs/remotes/"

	.comm	_DEFAULT_ABBREV,4,2             ## @DEFAULT_ABBREV
	.no_dead_strip	_wt_status_get_detached_from
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wt_status_get_detached_from
_wt_status_get_detached_from:           ; @wt_status_get_detached_from
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #16]
	add	x0, sp, #32
	mov	w1, #0
	bl	_strbuf_init
Lloh0:
	adrp	x8, _grab_1st_switch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grab_1st_switch@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #32
	bl	_for_each_reflog_ent_reverse
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.1:
	ldp	w1, w0, [sp, #32]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_dwim_ref
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.2:
	add	x8, sp, #32
	add	x21, x8, #8
	add	x1, sp, #24
	mov	x0, x21
	bl	_oideq
	cbz	x0, LBB0_6
LBB0_3:
	ldr	x0, [sp, #16]
	str	x0, [sp, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
LBB0_5:
	ldr	x0, [sp, #8]
	b	LBB0_9
LBB0_6:
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_lookup_commit_reference_gently
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
	mov	x0, x21
	bl	_oideq
	cbnz	x0, LBB0_3
LBB0_8:
	add	x8, sp, #32
	add	x0, x8, #8
Lloh9:
	adrp	x8, _DEFAULT_ABBREV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_ABBREV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_find_unique_abbrev
LBB0_9:
	bl	_xstrdup
	str	x0, [x19, #8]
	add	x20, x19, #4
	add	x8, sp, #32
	add	x1, x8, #8
	mov	x0, x20
	bl	_oidcpy
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #24
	bl	_get_oid
	cbz	w0, LBB0_11
; %bb.10:
	mov	w8, #0
	b	LBB0_12
LBB0_11:
	add	x0, sp, #24
	mov	x1, x20
	bl	_oideq
	cmp	x0, #0
	cset	w8, ne
LBB0_12:
	str	w8, [x19]
	ldr	x0, [sp, #16]
	bl	_free
LBB0_13:
	add	x0, sp, #32
	bl	_strbuf_release
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_grab_1st_switch,4,2            ; @grab_1st_switch
l_.str.1:                               ; @.str.1
	.asciz	"refs/tags/"

l_.str.2:                               ; @.str.2
	.asciz	"refs/remotes/"

	.comm	_DEFAULT_ABBREV,4,2             ; @DEFAULT_ABBREV
	.no_dead_strip	_wt_status_get_detached_from
.subsections_via_symbols
