	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_working_tree_internal
_convert_to_working_tree_internal:      ## @convert_to_working_tree_internal
	.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
	movl	%r9d, %r13d
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rdx
	leaq	-72(%rbp), %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_convert_attrs
	movl	-56(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_ident_to_worktree
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %r15
	movq	8(%rbx), %r12
LBB0_2:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$0, 24(%rax)
	jne	LBB0_9
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.5:
	cmpq	$0, 16(%rax)
	je	LBB0_6
LBB0_9:
	movl	-60(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_crlf_to_worktree
	movl	%eax, %r13d
	orl	%r14d, %r13d
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %r15
	movq	8(%rbx), %r12
	jmp	LBB0_12
LBB0_7:
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_6:
	movl	%r14d, %r13d
	jmp	LBB0_12
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movl	-64(%rbp), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_encode_to_worktree
	movl	%eax, %r14d
	orl	%r13d, %r14d
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %r15
	movq	8(%rbx), %r12
LBB0_14:
	movq	-72(%rbp), %r9
	movq	_CAP_SMUDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$-1, %ecx
	movq	%rbx, %r8
	pushq	16(%rbp)
	pushq	%rax
	callq	_apply_filter
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-72(%rbp), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_die
LBB0_18:
	orl	%r14d, %ebx
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SMUDGE,4,2                 ## @CAP_SMUDGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: smudge filter %s failed"

	.no_dead_strip	_convert_to_working_tree_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_working_tree_internal
_convert_to_working_tree_internal:      ; @convert_to_working_tree_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x6
	mov	x25, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	add	x1, sp, #8
	mov	x2, x19
	bl	_convert_attrs
	ldr	w3, [sp, #24]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_ident_to_worktree
	mov	x24, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x22, x23, [x21]
LBB0_2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_7
; %bb.4:
	cbz	w25, LBB0_7
; %bb.5:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
	b	LBB0_7
LBB0_6:
	cbnz	w25, LBB0_9
LBB0_7:
	ldr	w3, [sp, #20]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_crlf_to_worktree
	orr	w24, w0, w24
	cbz	w24, LBB0_9
; %bb.8:
	ldp	x22, x23, [x21]
LBB0_9:
	ldr	w4, [sp, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_encode_to_worktree
	orr	w24, w0, w24
	cbz	w24, LBB0_11
; %bb.10:
	ldp	x22, x23, [x21]
LBB0_11:
	ldr	x5, [sp, #8]
Lloh0:
	adrp	x8, _CAP_SMUDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SMUDGE@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w3, #-1
	mov	x4, x21
	mov	x7, x20
	bl	_apply_filter
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	x1, x19
	bl	_die
LBB0_14:
	orr	w0, w20, w24
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SMUDGE,4,2                 ; @CAP_SMUDGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: smudge filter %s failed"

	.no_dead_strip	_convert_to_working_tree_internal
.subsections_via_symbols
