	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_all_patches              ## -- Begin function apply_all_patches
	.p2align	4, 0x90
_apply_all_patches:                     ## @apply_all_patches
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_apply_patch
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_26
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	orl	%ebx, %r15d
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	72(%r13), %edi
	movq	%rbx, %rsi
	callq	_prefix_filename
	movq	%rax, %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_set_default_whitespace_mode
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_apply_patch
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_close
	movq	%r15, %rdi
	callq	_free
	testl	%ebx, %ebx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jns	LBB0_8
	jmp	LBB0_26
LBB0_1:
	movq	%r13, %rdi
	callq	_set_default_whitespace_mode
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_apply_patch
	movl	%eax, %r15d
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_26
LBB0_9:
	movq	%r13, %rdi
	callq	_set_default_whitespace_mode
LBB0_10:
	movl	(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.11:
	movl	4(%r13), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	subl	%eax, %ebx
	jle	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	_Q_
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_warning
LBB0_14:
	movq	8(%r13), %rax
	movq	_die_on_ws_error@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_Q_
	movl	(%r13), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	$-128, %ebx
	jmp	LBB0_26
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
	movq	%r15, %rdi
	callq	_free
	movl	$-128, %ebx
	jmp	LBB0_26
LBB0_16:
	movl	16(%r13), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.17:
	cmpq	$0, 64(%r13)
	je	LBB0_19
## %bb.18:
	leaq	16(%r13), %rbx
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_Q_
	jmp	LBB0_21
LBB0_19:
	movl	(%r13), %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.20:
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_Q_
	movq	%r13, %rbx
LBB0_21:
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_warning
LBB0_22:
	cmpq	$0, 56(%r13)
	je	LBB0_25
## %bb.23:
	movq	48(%r13), %rax
	movl	(%rax), %edi
	leaq	40(%r13), %rsi
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_write_locked_index
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	movl	$-128, %ebx
	jmp	LBB0_26
LBB0_25:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	setne	%bl
LBB0_26:
	leaq	40(%r13), %rdi
	callq	_rollback_lock_file
	movq	24(%r13), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_28
## %bb.27:
	movl	36(%r13), %edi
	callq	_set_error_routine
	movl	32(%r13), %edi
	callq	_set_warn_routine
LBB0_28:
	cmpl	$-1, %ebx
	movl	$1, %ecx
	movl	$128, %eax
	cmovel	%ecx, %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

L_.str.1:                               ## @.str.1
	.asciz	"<stdin>"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"can't open patch '%s': %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"squelched %d whitespace error"

L_.str.4:                               ## @.str.4
	.asciz	"squelched %d whitespace errors"

	.comm	_die_on_ws_error,8,3            ## @die_on_ws_error
L_.str.5:                               ## @.str.5
	.asciz	"%d line adds whitespace errors."

L_.str.6:                               ## @.str.6
	.asciz	"%d lines add whitespace errors."

L_.str.7:                               ## @.str.7
	.asciz	"%d line applied after fixing whitespace errors."

L_.str.8:                               ## @.str.8
	.asciz	"%d lines applied after fixing whitespace errors."

	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
L_.str.9:                               ## @.str.9
	.asciz	"Unable to write new index file"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_all_patches              ; -- Begin function apply_all_patches
	.p2align	2
_apply_all_patches:                     ; @apply_all_patches
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x0
	cmp	w1, #0
	b.le	LBB0_7
; %bb.1:
	mov	x22, x2
	mov	w20, #0
	mov	w28, w1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _O_RDONLY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_apply_patch
	mov	x25, x0
	tbnz	w0, #31, LBB0_27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w20, w25, w20
	add	x22, x22, #8
	subs	x28, x28, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x22]
	mov	x0, x25
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #72]
	mov	x1, x25
	bl	_prefix_filename
	mov	x26, x0
	ldr	w1, [x24]
	bl	_open
	tbnz	w0, #31, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	x0, x19
	bl	_set_default_whitespace_mode
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x21
	bl	_apply_patch
	mov	x25, x0
	mov	x0, x27
	bl	_close
	mov	x0, x26
	bl	_free
	tbz	w25, #31, LBB0_3
	b	LBB0_27
LBB0_7:
	mov	x0, x19
	bl	_set_default_whitespace_mode
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_apply_patch
	mov	x20, x0
	mov	x25, x0
	tbnz	w0, #31, LBB0_27
; %bb.8:
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
	b	LBB0_22
LBB0_9:
	mov	x0, x19
	bl	_set_default_whitespace_mode
	ldr	w8, [x19]
	cbz	w8, LBB0_22
LBB0_10:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_13
; %bb.11:
	subs	w21, w8, w9
	b.le	LBB0_13
; %bb.12:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_Q_
	mov	x1, x21
	bl	_warning
LBB0_13:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _die_on_ws_error@GOTPAGE
Lloh13:
	ldr	x9, [x9, _die_on_ws_error@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	w2, [x19]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_Q_
	ldr	w8, [x19]
	str	x8, [sp]
	b	LBB0_25
LBB0_15:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
	stp	x26, x0, [sp]
	mov	x0, x20
	bl	_error
	mov	x0, x26
	bl	_free
	mov	w25, #-128
	b	LBB0_27
LBB0_16:
	mov	x21, x19
	ldr	w2, [x21, #16]!
	cbz	w2, LBB0_19
; %bb.17:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_19
; %bb.18:
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_Q_
	b	LBB0_21
LBB0_19:
	ldr	w2, [x19]
	cbz	w2, LBB0_22
; %bb.20:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_Q_
	mov	x21, x19
LBB0_21:
	ldr	w1, [x21]
	bl	_warning
LBB0_22:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	add	x1, x19, #40
Lloh32:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	bl	_write_locked_index
	cbz	w0, LBB0_26
; %bb.24:
Lloh35:
	adrp	x0, l_.str.9@PAGE
Lloh36:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
LBB0_25:
	bl	_error
	mov	w25, #-128
	b	LBB0_27
LBB0_26:
	cmp	w20, #0
	cset	w25, ne
LBB0_27:
	add	x0, x19, #40
	bl	_rollback_lock_file
	ldr	x8, [x19, #24]
Lloh37:
	adrp	x9, _verbosity_silent@GOTPAGE
Lloh38:
	ldr	x9, [x9, _verbosity_silent@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_29
; %bb.28:
	ldr	w0, [x19, #36]
	bl	_set_error_routine
	ldr	w0, [x19, #32]
	bl	_set_warn_routine
LBB0_29:
	cmn	w25, #1
	mov	w8, #128
	csinc	w8, w8, wzr, ne
	cmp	w25, #0
	csel	w0, w8, w25, lt
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

l_.str.1:                               ; @.str.1
	.asciz	"<stdin>"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"can't open patch '%s': %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"squelched %d whitespace error"

l_.str.4:                               ; @.str.4
	.asciz	"squelched %d whitespace errors"

	.comm	_die_on_ws_error,8,3            ; @die_on_ws_error
l_.str.5:                               ; @.str.5
	.asciz	"%d line adds whitespace errors."

l_.str.6:                               ; @.str.6
	.asciz	"%d lines add whitespace errors."

l_.str.7:                               ; @.str.7
	.asciz	"%d line applied after fixing whitespace errors."

l_.str.8:                               ; @.str.8
	.asciz	"%d lines applied after fixing whitespace errors."

	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
l_.str.9:                               ; @.str.9
	.asciz	"Unable to write new index file"

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