	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_patch
_apply_patch:                           ## @apply_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
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movq	%rdx, (%rdi)
	leaq	-96(%rbp), %rdi
	callq	_read_patch_file
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	cmpq	$0, -96(%rbp)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r12
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_free_patch
	incl	-48(%rbp)                       ## 4-byte Folded Spill
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	addq	%rax, %r15
	cmpq	-96(%rbp), %r15
	jae	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$32, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	_APPLY_OPT_INACCURATE_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %ecx
	setne	%al
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	movq	_APPLY_OPT_RECOUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	setne	%al
	movl	%eax, 4(%rbx)
	movq	-88(%rbp), %rsi
	addq	%r15, %rsi
	movq	-96(%rbp), %rdx
	subq	%r15, %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_parse_chunk
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 128(%r14)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_reverse_patches
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_use_patch
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_patch_stats
	movq	%rbx, (%r12)
	movq	%rbx, %r12
	addq	$24, %r12
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GITATTRIBUTES_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ends_with_path_components
	testq	%rax, %rax
	jne	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_GITATTRIBUTES_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ends_with_path_components
	testq	%rax, %rax
	je	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movq	_verbosity_normal@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_say_patch_name
	jmp	LBB0_18
LBB0_1:
	movl	$-128, %ebx
	jmp	LBB0_63
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_6:
	movq	%rbx, %rdi
	callq	_free_patch
	cmpl	$-128, %r13d
	jne	LBB0_20
## %bb.7:
	movl	$-128, %ebx
	movq	-64(%rbp), %r14
	jmp	LBB0_62
LBB0_20:
	movq	-64(%rbp), %r14
	testq	%r14, %r14
	jne	LBB0_23
## %bb.21:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	$-128, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_62
LBB0_23:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 120(%r15)
	je	LBB0_26
## %bb.24:
	movq	16(%r15), %rax
	movq	_die_on_ws_error@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	$0, 72(%r15)
LBB0_26:
	cmpq	$0, 88(%r15)
	jne	LBB0_28
## %bb.27:
	cmpq	$0, 112(%r15)
	je	LBB0_33
LBB0_28:
	xorl	%eax, %eax
	cmpq	$0, 72(%r15)
	setne	%al
	movl	%eax, 24(%r15)
	je	LBB0_34
## %bb.29:
	leaq	96(%r15), %rbx
	movq	%rbx, %rdi
	callq	_is_lock_file_locked
	testl	%eax, %eax
	jne	LBB0_34
## %bb.30:
	movq	104(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_32
## %bb.31:
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hold_lock_file_for_update
	cmpq	$0, 88(%r15)
	jne	LBB0_35
	jmp	LBB0_37
LBB0_33:
	movl	$0, 24(%r15)
LBB0_34:
	cmpq	$0, 88(%r15)
	je	LBB0_37
LBB0_35:
	movq	%r15, %rdi
	callq	_read_apply_cache
	testq	%rax, %rax
	js	LBB0_36
LBB0_37:
	cmpq	$0, 80(%r15)
	jne	LBB0_39
## %bb.38:
	cmpq	$0, 72(%r15)
	je	LBB0_43
LBB0_39:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_check_patch_list
	movl	$-128, %ebx
	cmpl	$-128, %eax
	je	LBB0_62
## %bb.40:
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jns	LBB0_43
## %bb.41:
	cmpq	$0, 64(%r15)
	je	LBB0_42
LBB0_43:
	cmpq	$0, 72(%r15)
	je	LBB0_48
## %bb.44:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_out_results
	testl	%eax, %eax
	js	LBB0_45
## %bb.46:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_48
## %bb.47:
	xorl	%ebx, %ebx
	cmpq	64(%r15), %rbx
	sbbl	%ebx, %ebx
	orl	$1, %ebx
	jmp	LBB0_62
LBB0_36:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	$-128, %ebx
	jmp	LBB0_62
LBB0_48:
	cmpq	$0, 56(%r15)
	je	LBB0_50
## %bb.49:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_build_fake_ancestor
	movl	$-128, %ebx
	testq	%rax, %rax
	jne	LBB0_62
LBB0_50:
	cmpq	$0, 48(%r15)
	je	LBB0_53
## %bb.51:
	movq	8(%r15), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_53
## %bb.52:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_stat_patch_list
LBB0_53:
	cmpq	$0, 40(%r15)
	je	LBB0_56
## %bb.54:
	movq	8(%r15), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_56
## %bb.55:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_numstat_patch_list
LBB0_56:
	cmpq	$0, 32(%r15)
	je	LBB0_59
## %bb.57:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_59
## %bb.58:
	movq	%r14, %rdi
	callq	_summary_patch_list
LBB0_59:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_60
## %bb.61:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_reset_parsed_attributes
	jmp	LBB0_62
LBB0_45:
	movl	$-128, %ebx
	jmp	LBB0_62
LBB0_32:
	movl	100(%r15), %edi
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_repo_hold_locked_index
	cmpq	$0, 88(%r15)
	jne	LBB0_35
	jmp	LBB0_37
LBB0_42:
	movl	$-1, %ebx
	jmp	LBB0_62
LBB0_60:
	xorl	%ebx, %ebx
LBB0_62:
	movq	%r14, %rdi
	callq	_free_patch_list
	leaq	-96(%rbp), %rdi
	callq	_strbuf_release
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$28, %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
LBB0_63:
	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,16,3               ## @STRBUF_INIT
	.comm	_APPLY_OPT_INACCURATE_EOF,4,2   ## @APPLY_OPT_INACCURATE_EOF
	.comm	_APPLY_OPT_RECOUNT,4,2          ## @APPLY_OPT_RECOUNT
	.comm	_GITATTRIBUTES_FILE,4,2         ## @GITATTRIBUTES_FILE
	.comm	_verbosity_normal,8,3           ## @verbosity_normal
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipped patch '%s'."

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized input"

	.comm	_die_on_ws_error,8,3            ## @die_on_ws_error
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"unable to read index file"

	.comm	_verbosity_silent,8,3           ## @verbosity_silent
	.no_dead_strip	_apply_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_patch
_apply_patch:                           ; @apply_patch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	str	xzr, [sp, #8]
	str	x2, [x0]
	add	x0, sp, #16
	bl	_read_patch_file
	tbnz	x0, #63, LBB0_16
; %bb.1:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_17
; %bb.2:
	mov	x27, #0
	mov	w26, #0
	mov	w24, #0
	add	x28, sp, #8
Lloh3:
	adrp	x21, _APPLY_OPT_INACCURATE_EOF@GOTPAGE
Lloh4:
	ldr	x21, [x21, _APPLY_OPT_INACCURATE_EOF@GOTPAGEOFF]
Lloh5:
	adrp	x25, _APPLY_OPT_RECOUNT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _APPLY_OPT_RECOUNT@GOTPAGEOFF]
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_free_patch
	add	w26, w26, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, w22, uxtw
	ldr	x8, [sp, #16]
	cmp	x27, x8
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #32
	bl	_xcalloc
	mov	x23, x0
	ldr	w8, [x21]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x0]
	ldr	w8, [x25]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x0, #4]
	ldp	x9, x8, [sp, #16]
	add	x1, x8, x27
	sub	x2, x9, x27
	mov	x0, x19
	mov	x3, x23
	bl	_parse_chunk
	mov	x22, x0
	tbnz	w0, #31, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #128]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_reverse_patches
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_use_patch
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_patch_stats
	str	x23, [x28]
	add	x28, x23, #24
	ldr	x0, [x23, #16]
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _GITATTRIBUTES_FILE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GITATTRIBUTES_FILE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ends_with_path_components
	cbnz	x0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _GITATTRIBUTES_FILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GITATTRIBUTES_FILE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ends_with_path_components
	cbz	x0, LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #1
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _verbosity_normal@GOTPAGE
Lloh14:
	ldr	x9, [x9, _verbosity_normal@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x19
	mov	x19, x28
	mov	x28, x26
	mov	x26, x25
	mov	x25, x21
	mov	x21, x24
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x24
	mov	x24, x21
	mov	x21, x25
	mov	x25, x26
	mov	x26, x28
	mov	x28, x19
	mov	x19, x20
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
	mov	x2, x23
	bl	_say_patch_name
	b	LBB0_3
LBB0_16:
	mov	w21, #-128
	b	LBB0_46
LBB0_17:
	mov	w24, #0
	mov	w26, #0
	b	LBB0_20
LBB0_18:
	mov	x0, x23
	bl	_free_patch
	cmn	w22, #128
	b.ne	LBB0_20
; %bb.19:
	mov	w21, #-128
	ldr	x20, [sp, #8]
	b	LBB0_45
LBB0_20:
	ldr	x20, [sp, #8]
	cbnz	x20, LBB0_23
; %bb.21:
	cbnz	w26, LBB0_23
; %bb.22:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_error
	mov	x20, #0
	mov	w21, #-128
	b	LBB0_45
LBB0_23:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _die_on_ws_error@GOTPAGE
Lloh24:
	ldr	x9, [x9, _die_on_ws_error@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	str	xzr, [x19, #72]
LBB0_26:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_28
; %bb.27:
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_49
LBB0_28:
	ldr	x8, [x19, #72]
	cmp	x8, #0
	cset	w9, ne
	str	w9, [x19, #24]
	cbz	x8, LBB0_30
; %bb.29:
	add	x21, x19, #96
	mov	x0, x21
	bl	_is_lock_file_locked
	cbz	w0, LBB0_47
LBB0_30:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_32
LBB0_31:
	mov	x0, x19
	bl	_read_apply_cache
	tbnz	x0, #63, LBB0_41
LBB0_32:
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_34
; %bb.33:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_37
LBB0_34:
	mov	x0, x19
	mov	x1, x20
	bl	_check_patch_list
	cmn	w0, #128
	b.eq	LBB0_44
; %bb.35:
	tbz	w0, #31, LBB0_37
; %bb.36:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_63
LBB0_37:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_42
; %bb.38:
	mov	x0, x19
	mov	x1, x20
	bl	_write_out_results
	tbnz	w0, #31, LBB0_44
; %bb.39:
	cbz	w0, LBB0_42
; %bb.40:
	ldr	x8, [x19, #64]
	cmp	x8, #0
	mov	w8, #1
	cneg	w21, w8, ne
	b	LBB0_45
LBB0_41:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_error
	mov	w21, #-128
	b	LBB0_45
LBB0_42:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_50
; %bb.43:
	mov	x0, x19
	mov	x1, x20
	bl	_build_fake_ancestor
	cbz	x0, LBB0_50
LBB0_44:
	mov	w21, #-128
LBB0_45:
	mov	x0, x20
	bl	_free_patch_list
	add	x0, sp, #16
	bl	_strbuf_release
	add	x0, x19, #28
	mov	w1, #0
	bl	_string_list_clear
LBB0_46:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_47:
	ldr	x1, [x19, #104]
	cbz	x1, LBB0_62
; %bb.48:
Lloh28:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hold_lock_file_for_update
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_49:
	str	wzr, [x19, #24]
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_50:
	ldr	x8, [x19, #48]
Lloh31:
	adrp	x21, _verbosity_silent@GOTPAGE
Lloh32:
	ldr	x21, [x21, _verbosity_silent@GOTPAGEOFF]
	cbz	x8, LBB0_53
; %bb.51:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_53
; %bb.52:
	mov	x0, x19
	mov	x1, x20
	bl	_stat_patch_list
LBB0_53:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_56
; %bb.54:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_56
; %bb.55:
	mov	x0, x19
	mov	x1, x20
	bl	_numstat_patch_list
LBB0_56:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_59
; %bb.57:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_59
; %bb.58:
	mov	x0, x20
	bl	_summary_patch_list
LBB0_59:
	cbz	w24, LBB0_61
; %bb.60:
	bl	_reset_parsed_attributes
LBB0_61:
	mov	w21, #0
	b	LBB0_45
LBB0_62:
	ldr	w0, [x19, #100]
Lloh33:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_repo_hold_locked_index
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_31
	b	LBB0_32
LBB0_63:
	mov	w21, #-1
	b	LBB0_45
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_APPLY_OPT_INACCURATE_EOF,4,2   ; @APPLY_OPT_INACCURATE_EOF
	.comm	_APPLY_OPT_RECOUNT,4,2          ; @APPLY_OPT_RECOUNT
	.comm	_GITATTRIBUTES_FILE,4,2         ; @GITATTRIBUTES_FILE
	.comm	_verbosity_normal,8,3           ; @verbosity_normal
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipped patch '%s'."

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized input"

	.comm	_die_on_ws_error,8,3            ; @die_on_ws_error
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"unable to read index file"

	.comm	_verbosity_silent,8,3           ; @verbosity_silent
	.no_dead_strip	_apply_patch
.subsections_via_symbols
