	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svndiff0_apply                 ## -- Begin function svndiff0_apply
	.p2align	4, 0x90
_svndiff0_apply:                        ## @svndiff0_apply
	.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
	movq	%rcx, %r14
	movq	%rsi, -48(%rbp)
	shrq	$63, %rsi
	xorl	$1, %esi
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovel	%eax, %esi
	movq	%rdx, %r15
	testq	%rdx, %rdx
	cmovel	%eax, %esi
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	cmovel	%eax, %esi
	movl	%esi, %edi
	callq	_assert
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_magic
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.2:
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$-1, -56(%rbp)
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	_read_offset
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	callq	_read_length
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_move_window
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_apply_one_window
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_3
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svndiff0_apply                 ; -- Begin function svndiff0_apply
	.p2align	2
_svndiff0_apply:                        ; @svndiff0_apply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x0
	str	x1, [sp, #24]
	cmp	x3, #0
	ccmp	x2, #0, #4, ne
	ccmp	x0, #0, #4, ne
	lsr	x8, x1, #63
	eor	w8, w8, #0x1
	csel	w0, w8, wzr, ne
	bl	_assert
	add	x1, sp, #24
	mov	x0, x21
	bl	_read_magic
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x22, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x22, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #24
	mov	x0, x21
	bl	_read_offset
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x21
	bl	_read_length
	cbnz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x2, x1, [sp, #8]
	mov	x0, x20
	bl	_move_window
	cbnz	x0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_apply_one_window
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_5
LBB0_10:
	mov	w0, #0
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
