	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_per_worktree_entries_to_dir
_add_per_worktree_entries_to_dir:       ## @add_per_worktree_entries_to_dir
	.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	%rsi, %rax
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	l___const.add_per_worktree_entries_to_dir.prefixes+16(%rip), %rcx
	movq	%rcx, -64(%rbp)
	movaps	l___const.add_per_worktree_entries_to_dir.prefixes(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %r13
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_search_ref_dir
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_create_dir_entry
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_add_entry_to_dir
	jmp	LBB0_5
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/bisect/"

L_.str.1:                               ## @.str.1
	.asciz	"refs/worktree/"

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

	.section	__DATA,__const
	.p2align	4                               ## @__const.add_per_worktree_entries_to_dir.prefixes
l___const.add_per_worktree_entries_to_dir.prefixes:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"refs/"

	.no_dead_strip	_add_per_worktree_entries_to_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_per_worktree_entries_to_dir
_add_per_worktree_entries_to_dir:       ; @add_per_worktree_entries_to_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #24]
Lloh3:
	adrp	x9, l___const.add_per_worktree_entries_to_dir.prefixes@PAGE
Lloh4:
	add	x9, x9, l___const.add_per_worktree_entries_to_dir.prefixes@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	x9, [x9, #16]
	str	x9, [sp, #16]
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_strcmp
	cbz	x0, LBB0_3
LBB0_1:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.2:
	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
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x22, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x22, x23, lsl #3]
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_search_ref_dir
	tbz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #1
	bl	_create_dir_entry
	mov	x1, x0
	mov	x0, x19
	bl	_add_entry_to_dir
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/bisect/"

l_.str.1:                               ; @.str.1
	.asciz	"refs/worktree/"

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

	.section	__DATA,__const
	.p2align	3                               ; @__const.add_per_worktree_entries_to_dir.prefixes
l___const.add_per_worktree_entries_to_dir.prefixes:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"refs/"

	.no_dead_strip	_add_per_worktree_entries_to_dir
.subsections_via_symbols
