	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_collect              ## -- Begin function wt_status_collect
	.p2align	4, 0x90
_wt_status_collect:                     ## @wt_status_collect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edx
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_trace2_region_enter
	movq	%rbx, %rdi
	callq	_wt_status_collect_changes_worktree
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_trace2_region_leave
	cmpq	$0, 32(%rbx)
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %r14
	movq	%r14, %rsi
	callq	_trace2_region_enter
	movq	%rbx, %rdi
	callq	_wt_status_collect_changes_initial
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rsi
	callq	_trace2_region_enter
	movq	%rbx, %rdi
	callq	_wt_status_collect_changes_index
LBB0_3:
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_trace2_region_leave
	movl	24(%rbx), %edx
	leaq	L_.str.4(%rip), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_trace2_region_enter
	movq	%rbx, %rdi
	callq	_wt_status_collect_untracked
	movl	24(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_trace2_region_leave
	movl	24(%rbx), %r15d
	leaq	8(%rbx), %r14
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_wt_status_get_state
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_has_unmerged
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status"

L_.str.1:                               ## @.str.1
	.asciz	"worktrees"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"untracked"

L_.str.5:                               ## @.str.5
	.asciz	"HEAD"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_collect              ; -- Begin function wt_status_collect
	.p2align	2
_wt_status_collect:                     ; @wt_status_collect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w2, [x0, #24]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_trace2_region_enter
	mov	x0, x19
	bl	_wt_status_collect_changes_worktree
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_trace2_region_leave
	ldr	x8, [x19, #32]
	ldr	w2, [x19, #24]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_trace2_region_enter
	mov	x0, x19
	bl	_wt_status_collect_changes_initial
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_trace2_region_enter
	mov	x0, x19
	bl	_wt_status_collect_changes_index
LBB0_3:
	ldr	w2, [x19, #24]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_trace2_region_leave
	ldr	w2, [x19, #24]
Lloh12:
	adrp	x20, l_.str.4@PAGE
Lloh13:
	add	x20, x20, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_trace2_region_enter
	mov	x0, x19
	bl	_wt_status_collect_untracked
	ldr	w2, [x19, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_trace2_region_leave
	ldr	w21, [x19, #24]
	add	x20, x19, #8
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w2, eq
	b	LBB0_6
LBB0_5:
	mov	w2, #0
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_wt_status_get_state
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_has_unmerged
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status"

l_.str.1:                               ; @.str.1
	.asciz	"worktrees"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"untracked"

l_.str.5:                               ; @.str.5
	.asciz	"HEAD"

.subsections_via_symbols
