	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ident_to_worktree
_ident_to_worktree:                     ## @ident_to_worktree
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_count_ident
	testl	%eax, %eax
	je	LBB0_22
## %bb.2:
	movl	%eax, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r13, (%r14)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_5:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hash_object_file
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	addq	$3, %rax
	movslq	%r15d, %rsi
	imulq	%rax, %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	callq	_strbuf_grow
	movq	%r13, %rdi
	movl	$36, %esi
	movl	%r12d, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movq	%rax, %r15
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movl	$36, %esi
	movl	%r12d, %edx
	callq	_memchr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rsi
	leaq	1(%r15), %r13
	movq	%r13, %rbx
	subq	%rsi, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_strbuf_add
	subq	%rbx, %r12
	cmpq	$3, %r12
	jb	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	3(%r15), %eax
	cmpb	$58, %al
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$36, %al
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %r15
	addq	$-3, %r12
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strbuf_addstr
	leaq	-56(%rbp), %rdi
	callq	_oid_to_hex
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strbuf_addstr
	movq	%r15, %r13
	jmp	LBB0_8
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	4(%r15), %rbx
	leal	-3(%r12), %edx
	movq	%rbx, %rdi
	movl	$36, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	subl	%r13d, %r14d
	leal	-3(%r14), %edx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$5, %r15
	addl	$-4, %r14d
	movq	%r15, %rdi
	movl	$32, %esi
	movl	%r14d, %edx
	callq	_memchr
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-1(%r15), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_7
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	addq	%r13, %r12
	subq	%r15, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_21:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_strbuf_add
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$1, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blob"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.1:                               ## @.str.1
	.asciz	"Id"

L_.str.2:                               ## @.str.2
	.asciz	"Id: "

L_.str.3:                               ## @.str.3
	.asciz	" $"

	.no_dead_strip	_ident_to_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ident_to_worktree
_ident_to_worktree:                     ; @ident_to_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w3, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_count_ident
	cbz	w0, LBB0_21
; %bb.2:
	mov	x23, x0
	ldr	x8, [x19]
	cmp	x8, x22
	b.eq	LBB0_5
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_21
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_strbuf_detach
	mov	x21, x0
LBB0_6:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_hash_object_file
Lloh2:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	add	x8, x8, #3
	sxtw	x9, w23
	madd	x1, x8, x9, x20
	mov	x0, x19
	bl	_strbuf_grow
	mov	x0, x22
	mov	w1, #36
	mov	x2, x20
	bl	_memchr
	cbz	x0, LBB0_20
; %bb.7:
	mov	x26, x0
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh7:
	adrp	x25, l_.str.3@PAGE
Lloh8:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x27, #1
	add	x8, x20, x22
	sub	x20, x8, x26
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strbuf_addstr
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x19
	bl	_strbuf_addstr
	mov	x0, x19
	mov	x1, x25
	bl	_strbuf_addstr
	mov	x22, x26
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	w1, #36
	mov	x2, x20
	bl	_memchr
	mov	x26, x0
	cbz	x0, LBB0_20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	add	x22, x26, #1
	sub	x27, x22, x1
	mov	x0, x19
	mov	x2, x27
	bl	_strbuf_add
	sub	x20, x20, x27
	subs	x27, x20, #3
	b.lo	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x26, #3]
	cmp	w8, #58
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #36
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #4
	mov	x20, x27
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x28, x26, #4
	sub	w2, w20, #3
	mov	x0, x28
	mov	w1, #36
	bl	_memchr
	cbz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x0
	sub	w24, w27, w22
	sub	w2, w24, #3
	mov	x0, x28
	mov	w1, #10
	bl	_memchr
	cbnz	x0, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x26, #5
	sub	w2, w24, #4
	mov	w1, #32
	bl	_memchr
	cbz	x0, LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x8, x27, #1
	cmp	x0, x8
	b.lo	LBB0_10
	b	LBB0_8
LBB0_20:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_strbuf_add
	mov	x0, x21
	bl	_free
	mov	w0, #1
LBB0_21:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blob"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.1:                               ; @.str.1
	.asciz	"Id"

l_.str.2:                               ; @.str.2
	.asciz	"Id: "

l_.str.3:                               ; @.str.3
	.asciz	" $"

	.no_dead_strip	_ident_to_worktree
.subsections_via_symbols
