	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_patch
_make_patch:                            ## @make_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_short_commit_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rebase_path_stopped_sha
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_write_message
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_update_ref
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_error
	movl	%eax, %r15d
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_dir
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_repo_init_revisions
	movq	$0, -64(%rbp)
	movl	$1, -88(%rbp)
	movq	_DIFF_FORMAT_PATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -84(%rbp)
	movl	-48(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fopen
	movl	%eax, -76(%rbp)
	movq	_GIT_COLOR_NEVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	callq	_log_tree_commit
	movl	%eax, %ebx
	movl	-76(%rbp), %edi
	callq	_fclose
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	-48(%rbp), %esi
	movl	%eax, %edi
	callq	_error_errno
	movl	%eax, %ebx
LBB0_7:
	orl	%r15d, %ebx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_strbuf_reset
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_dir
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	callq	_file_exists
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_get_commit_buffer
	movq	%rax, %r14
	leaq	-96(%rbp), %rsi
	movq	%rax, %rdi
	callq	_find_commit_subject
	movq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_strlen
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %ecx
	callq	_write_message
	orl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_unuse_commit_buffer
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rebase"

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

	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ## @UPDATE_REFS_MSG_ON_ERR
L_.str.2:                               ## @.str.2
	.asciz	"could not update %s"

L_.str.3:                               ## @.str.3
	.asciz	"%s/patch"

	.comm	_DIFF_FORMAT_PATCH,4,2          ## @DIFF_FORMAT_PATCH
L_.str.4:                               ## @.str.4
	.asciz	"w"

	.comm	_GIT_COLOR_NEVER,4,2            ## @GIT_COLOR_NEVER
L_.str.5:                               ## @.str.5
	.asciz	"could not open '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"%s/message"

	.no_dead_strip	_make_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_patch
_make_patch:                            ; @make_patch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	x0, x1
	bl	_short_commit_name
	mov	x22, x0
	bl	_strlen
	mov	x23, x0
	bl	_rebase_path_stopped_sha
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	w3, #1
	bl	_write_message
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _REF_NO_DEREF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REF_NO_DEREF@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, #0
	bl	_update_ref
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_error
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	mov	w21, #-1
	b	LBB0_11
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	x0, x20
	bl	_get_dir
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #40
	bl	_strbuf_addf
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_repo_init_revisions
	str	xzr, [sp, #32]
Lloh19:
	adrp	x8, _DIFF_FORMAT_PATCH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DIFF_FORMAT_PATCH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [sp, #8]
	mov	w9, #1
	str	w8, [sp, #28]
	str	w9, [sp, #16]
	ldr	w0, [sp, #40]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fopen
Lloh24:
	adrp	x8, _GIT_COLOR_NEVER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GIT_COLOR_NEVER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #20]
	cbz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #8
	mov	x1, x19
	bl	_log_tree_commit
	mov	x21, x0
	ldr	w0, [sp, #20]
	bl	_fclose
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	ldr	w1, [sp, #40]
	bl	_error_errno
	mov	x21, x0
LBB0_8:
	orr	w21, w21, w22
	add	x0, sp, #40
	bl	_strbuf_reset
	mov	x0, x20
	bl	_get_dir
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #40
	bl	_strbuf_addf
	ldr	w0, [sp, #40]
	bl	_file_exists
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, #0
	bl	_get_commit_buffer
	mov	x20, x0
	mov	x1, sp
	bl	_find_commit_subject
	ldr	x22, [sp]
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	ldr	w2, [sp, #40]
	mov	x0, x22
	mov	w3, #1
	bl	_write_message
	orr	w21, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_unuse_commit_buffer
LBB0_10:
	add	x0, sp, #40
	bl	_strbuf_release
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rebase"

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

	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ; @UPDATE_REFS_MSG_ON_ERR
l_.str.2:                               ; @.str.2
	.asciz	"could not update %s"

l_.str.3:                               ; @.str.3
	.asciz	"%s/patch"

	.comm	_DIFF_FORMAT_PATCH,4,2          ; @DIFF_FORMAT_PATCH
l_.str.4:                               ; @.str.4
	.asciz	"w"

	.comm	_GIT_COLOR_NEVER,4,2            ; @GIT_COLOR_NEVER
l_.str.5:                               ; @.str.5
	.asciz	"could not open '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"%s/message"

	.no_dead_strip	_make_patch
.subsections_via_symbols
