	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edit_patch
_edit_patch:                            ## @edit_patch
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_git_pathdup
	movq	%rax, %r13
	movq	$0, -64(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -96(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -88(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -80(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	%r13, -72(%rbp)
	movq	_git_diff_basic_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	xorl	%eax, %eax
	callq	_read_cache
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_repo_init_revisions
	movl	$7, -160(%rbp)
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_setup_revisions
	movq	_DIFF_FORMAT_PATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	$0, -144(%rbp)
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$1, -148(%rbp)
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r13, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	callq	_xfdopen
	movl	%eax, -152(%rbp)
	movl	$1, -156(%rbp)
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	callq	_run_diff_files
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_launch_editor
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_8:
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_die_errno
LBB0_10:
	cmpl	$0, -104(%rbp)
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.10(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_12:
	movl	$1, -128(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -120(%rbp)
	leaq	-128(%rbp), %rdi
	callq	_run_command
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.11(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_14:
	movq	%r13, %rdi
	callq	_unlink
	movq	%r13, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADD_EDIT.patch"

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

L_.str.2:                               ## @.str.2
	.asciz	"--recount"

L_.str.3:                               ## @.str.3
	.asciz	"--cached"

	.comm	_CHILD_PROCESS_INIT,16,3        ## @CHILD_PROCESS_INIT
	.comm	_git_diff_basic_config,4,2      ## @git_diff_basic_config
L_.str.4:                               ## @.str.4
	.asciz	"Could not read the index"

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_DIFF_FORMAT_PATCH,4,2          ## @DIFF_FORMAT_PATCH
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.5:                               ## @.str.5
	.asciz	"Could not open '%s' for writing."

L_.str.6:                               ## @.str.6
	.asciz	"w"

L_.str.7:                               ## @.str.7
	.asciz	"Could not write patch"

L_.str.8:                               ## @.str.8
	.asciz	"editing patch failed"

L_.str.9:                               ## @.str.9
	.asciz	"Could not stat '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"Empty patch. Aborted."

L_.str.11:                              ## @.str.11
	.asciz	"Could not apply '%s'"

	.no_dead_strip	_edit_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edit_patch
_edit_patch:                            ; @edit_patch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_pathdup
	mov	x19, x0
	str	xzr, [sp, #96]
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [sp, #64]
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh11:
	adrp	x9, _CHILD_PROCESS_INIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHILD_PROCESS_INIT@GOTPAGEOFF]
Lloh13:
	ldr	q0, [x9]
	str	q0, [sp, #48]
	stp	x8, x0, [sp, #80]
Lloh14:
	adrp	x8, _git_diff_basic_config@GOTPAGE
Lloh15:
	ldr	x8, [x8, _git_diff_basic_config@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
	bl	_read_cache
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
LBB0_2:
Lloh19:
	adrp	x8, _the_repository@GOTPAGE
Lloh20:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	x2, x22
	bl	_repo_init_revisions
	mov	w8, #7
	str	w8, [sp, #16]
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	bl	_setup_revisions
Lloh22:
	adrp	x8, _DIFF_FORMAT_PATCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DIFF_FORMAT_PATCH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	xzr, [sp, #32]
	mov	w21, #1
	str	w21, [sp, #28]
Lloh25:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #438
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	str	x19, [sp]
	bl	_die
LBB0_4:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_xfdopen
	stp	w21, w0, [sp, #20]
	add	x0, sp, #16
	mov	w1, #0
	bl	_run_diff_files
	cbz	x0, LBB0_6
; %bb.5:
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	bl	_die
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_launch_editor
	cbz	x0, LBB0_8
; %bb.7:
Lloh40:
	adrp	x0, l_.str.8@PAGE
Lloh41:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	bl	_die
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbz	x0, LBB0_10
; %bb.9:
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die_errno
LBB0_10:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_12
; %bb.11:
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	__
	bl	_die
LBB0_12:
	mov	w8, #1
	str	w8, [sp, #48]
	add	x8, sp, #64
	str	x8, [sp, #56]
	add	x0, sp, #48
	bl	_run_command
	cbz	x0, LBB0_14
; %bb.13:
Lloh46:
	adrp	x0, l_.str.11@PAGE
Lloh47:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	__
	str	x19, [sp]
	bl	_die
LBB0_14:
	mov	x0, x19
	bl	_unlink
	mov	x0, x19
	bl	_free
	ldur	x8, [x29, #-40]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADD_EDIT.patch"

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

l_.str.2:                               ; @.str.2
	.asciz	"--recount"

l_.str.3:                               ; @.str.3
	.asciz	"--cached"

	.comm	_CHILD_PROCESS_INIT,16,3        ; @CHILD_PROCESS_INIT
	.comm	_git_diff_basic_config,4,2      ; @git_diff_basic_config
l_.str.4:                               ; @.str.4
	.asciz	"Could not read the index"

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_DIFF_FORMAT_PATCH,4,2          ; @DIFF_FORMAT_PATCH
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.5:                               ; @.str.5
	.asciz	"Could not open '%s' for writing."

l_.str.6:                               ; @.str.6
	.asciz	"w"

l_.str.7:                               ; @.str.7
	.asciz	"Could not write patch"

l_.str.8:                               ; @.str.8
	.asciz	"editing patch failed"

l_.str.9:                               ; @.str.9
	.asciz	"Could not stat '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"Empty patch. Aborted."

l_.str.11:                              ; @.str.11
	.asciz	"Could not apply '%s'"

	.no_dead_strip	_edit_patch
.subsections_via_symbols
