	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_to_git                 ## -- Begin function convert_to_git
	.p2align	4, 0x90
_convert_to_git:                        ## @convert_to_git
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	leaq	-80(%rbp), %rsi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_convert_attrs
	movq	-64(%rbp), %r9
	movq	_CAP_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	$-1, %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	pushq	$0
	pushq	%rax
	callq	_apply_filter
	addq	$16, %rsp
	testl	%eax, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.1:
	movq	-64(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-64(%rbp), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_die
LBB0_4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	setne	%r15b
	jmp	LBB0_8
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	setne	%r15b
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%rcx), %r13
	movq	8(%rcx), %r14
	movb	$1, %r15b
LBB0_8:
	movl	-72(%rbp), %r8d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %r12
	movq	%r13, %rsi
	movq	%r14, %r13
	movq	%r14, %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_encode_to_git
	movl	%eax, %r14d
	orl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	testb	%r15b, %r15b
	je	LBB0_9
## %bb.10:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	(%r8), %r12
	movq	8(%r8), %r13
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_12:
	movq	_CONV_EOL_KEEP_CRLF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	%r14d, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	jmp	LBB0_18
LBB0_14:
	movl	-76(%rbp), %r9d
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%r13, %rcx
	pushq	%rbx
	movq	%r8, %r12
	callq	_crlf_to_git
	addq	$16, %rsp
	movl	%eax, %ebx
	orl	%r14d, %ebx
	sete	%al
	xorb	$1, %r15b
	orb	%al, %r15b
	jne	LBB0_15
## %bb.16:
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	jmp	LBB0_17
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
LBB0_17:
	movq	%r12, %r8
LBB0_18:
	movl	-80(%rbp), %ecx
	movq	%r8, %rdx
	callq	_ident_to_git
	orl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_CLEAN,4,2                  ## @CAP_CLEAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: clean filter '%s' failed"

	.comm	_CONV_EOL_KEEP_CRLF,4,2         ## @CONV_EOL_KEEP_CRLF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_to_git                 ; -- Begin function convert_to_git
	.p2align	2
_convert_to_git:                        ; @convert_to_git
	.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	x22, x5
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	add	x1, sp, #8
	mov	x2, x23
	bl	_convert_attrs
	ldr	x5, [sp, #24]
Lloh0:
	adrp	x8, _CAP_CLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_CLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	w3, #-1
	mov	x4, x19
	mov	x7, #0
	bl	_apply_filter
	mov	x25, x0
	ldr	x8, [sp, #24]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_4
; %bb.1:
	cmp	x19, #0
	cset	w26, ne
	cbz	x19, LBB0_7
; %bb.2:
	cbz	w25, LBB0_7
; %bb.3:
	ldp	x20, x21, [x19]
	mov	w26, #1
	b	LBB0_7
LBB0_4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x8, [sp, #24]
	ldr	w2, [x8]
	mov	x1, x23
	bl	_die
LBB0_6:
	cmp	x19, #0
	cset	w26, ne
LBB0_7:
	ldr	w4, [sp, #16]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	mov	x5, x22
	bl	_encode_to_git
	orr	w25, w0, w25
	cbz	w26, LBB0_10
; %bb.8:
	cbz	w25, LBB0_10
; %bb.9:
	ldp	x20, x21, [x19]
LBB0_10:
Lloh5:
	adrp	x8, _CONV_EOL_KEEP_CRLF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONV_EOL_KEEP_CRLF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_13
; %bb.11:
	ldr	w5, [sp, #12]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	mov	x6, x22
	bl	_crlf_to_git
	orr	w25, w0, w25
	cmp	w25, #0
	cset	w8, eq
	eor	w9, w26, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_13
; %bb.12:
	ldp	x20, x21, [x19]
LBB0_13:
	ldr	w3, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ident_to_git
	orr	w0, w0, w25
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_CLEAN,4,2                  ; @CAP_CLEAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: clean filter '%s' failed"

	.comm	_CONV_EOL_KEEP_CRLF,4,2         ; @CONV_EOL_KEEP_CRLF
.subsections_via_symbols
