	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_shared_symref             ## -- Begin function find_shared_symref
	.p2align	4, 0x90
_find_shared_symref:                    ## @find_shared_symref
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_find_shared_symref.worktrees(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free_worktrees
LBB0_2:
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, _find_shared_symref.worktrees(%rip)
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.3:
	movl	$8, %r13d
	leaq	-44(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_find_shared_symref.worktrees(%rip), %rax
	movq	(%rax,%r13), %rbx
	addq	$8, %r13
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_is_worktree_being_rebased
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_is_worktree_being_bisected
	testq	%rax, %rax
	jne	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_get_worktree_ref_store
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_refs_resolve_ref_unsafe
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -44(%rbp)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_find_shared_symref.worktrees,8,3 ## @find_shared_symref.worktrees
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_shared_symref             ; -- Begin function find_shared_symref
	.p2align	2
_find_shared_symref:                    ; @find_shared_symref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	adrp	x23, _find_shared_symref.worktrees@PAGE
	ldr	x0, [x23, _find_shared_symref.worktrees@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free_worktrees
LBB0_2:
	mov	w0, #0
	bl	_get_worktrees
	str	x0, [x23, _find_shared_symref.worktrees@PAGEOFF]
	ldr	x21, [x0]
	cbz	x21, LBB0_12
; %bb.3:
	mov	w24, #8
Lloh0:
	adrp	x25, _REF_ISSYMREF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REF_ISSYMREF@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, _find_shared_symref.worktrees@PAGEOFF]
	ldr	x21, [x8, x24]
	add	x24, x24, #8
	cbz	x21, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_is_worktree_being_rebased
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_is_worktree_being_bisected
	cbnz	x0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_get_worktree_ref_store
	add	x4, sp, #12
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	bl	_refs_resolve_ref_unsafe
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x19
	bl	_strcmp
	cbnz	w0, LBB0_4
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_find_shared_symref.worktrees,8,3 ; @find_shared_symref.worktrees
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
.subsections_via_symbols
