	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_delta
_apply_delta:                           ## @apply_delta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_LINE_BUFFER_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%eax, -24(%rbp)
	leaq	-32(%rbp), %rdi
	movl	$-1, %esi
	callq	_SLIDING_VIEW_INIT
	movl	%eax, -40(%rbp)
	cmpl	$5, %ebx
	je	LBB0_2
## %bb.1:
	movq	_test_svnfe_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_2:
	movq	16(%r14), %rsi
	leaq	-32(%rbp), %rdi
	callq	_buffer_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
LBB0_4:
	movq	24(%r14), %rsi
	leaq	-24(%rbp), %rdi
	callq	_buffer_init
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
LBB0_6:
	movq	32(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoumax
	movq	_stdout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-24(%rbp), %rdi
	leaq	-40(%rbp), %rdx
	movl	%eax, %esi
	callq	_svndiff0_apply
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.7:
	leaq	-32(%rbp), %rdi
	callq	_buffer_deinit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_die_errno
LBB0_9:
	leaq	-24(%rbp), %rdi
	callq	_buffer_deinit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
LBB0_11:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_BUFFER_INIT,4,2           ## @LINE_BUFFER_INIT
	.comm	_test_svnfe_usage,4,2           ## @test_svnfe_usage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open preimage"

L_.str.1:                               ## @.str.1
	.asciz	"cannot open delta"

	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"cannot close preimage"

L_.str.3:                               ## @.str.3
	.asciz	"cannot close delta"

	.no_dead_strip	_apply_delta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_delta
_apply_delta:                           ; @apply_delta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LINE_BUFFER_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINE_BUFFER_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w8, [sp, #16]
	add	x0, sp, #24
	mov	w1, #-1
	bl	_SLIDING_VIEW_INIT
	str	w0, [sp, #8]
	cmp	w20, #5
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _test_svnfe_usage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _test_svnfe_usage@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_usage
LBB0_2:
	ldr	x1, [x19, #16]
	add	x0, sp, #24
	bl	_buffer_init
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_4:
	ldr	x1, [x19, #24]
	add	x0, sp, #16
	bl	_buffer_init
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_6:
	ldr	x0, [x19, #32]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoumax
	mov	x1, x0
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x0, sp, #16
	add	x2, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_svndiff0_apply
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_13
LBB0_8:
	add	x0, sp, #24
	bl	_buffer_deinit
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die_errno
LBB0_10:
	add	x0, sp, #16
	bl	_buffer_deinit
	cbz	x0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
LBB0_12:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_BUFFER_INIT,4,2           ; @LINE_BUFFER_INIT
	.comm	_test_svnfe_usage,4,2           ; @test_svnfe_usage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open preimage"

l_.str.1:                               ; @.str.1
	.asciz	"cannot open delta"

	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"cannot close preimage"

l_.str.3:                               ; @.str.3
	.asciz	"cannot close delta"

	.no_dead_strip	_apply_delta
.subsections_via_symbols
