	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_hunk
_apply_hunk:                            ## @apply_hunk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rdx), %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_svn_node_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	jne	LBB0_5
LBB0_2:
	movq	16(%r13), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_copy_lines_to_target
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	(%r12), %ebx
	movl	4(%r13), %edi
	callq	_svn_diff_hunk_get_original_length
	subl	%r15d, %ebx
	subl	%r15d, %ebx
	addl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_seek_to_line
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	%ebx, (%r12)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 40(%r12)
	je	LBB0_4
LBB0_5:
	movl	4(%r13), %edi
	callq	_svn_diff_hunk_reset_modified_text
	movq	%r14, %rdi
	callq	_svn_pool_create
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_strlen
	movl	24(%r12), %edi
	movq	-56(%rbp), %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	*32(%r12)
	movl	%eax, %edi
	callq	_SVN_ERR
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	cmpl	$0, -60(%rbp)
	jne	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_svn_pool_clear
	movl	4(%r13), %edi
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rbx, %r8
	movq	%rbx, %r9
	callq	_svn_diff_hunk_readline_modified_text
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	%r15d, %r14d
	jl	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r13), %edi
	callq	_svn_diff_hunk_get_modified_length
	subl	%r15d, %eax
	cmpl	%eax, %r14d
	jge	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	24(%r12), %edi
	movq	8(%rax), %rsi
	movq	%rbx, %rcx
	callq	*32(%r12)
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rax
	movq	_svn_subst_eol_style_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movq	%rdi, -56(%rbp)
	jmp	LBB0_13
LBB0_15:
	movq	%rbx, %rdi
	callq	_svn_pool_destroy
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	jmp	LBB0_18
LBB0_17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	jmp	LBB0_18
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	4(%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_reject_hunk
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_18:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_node_file,8,3              ## @svn_node_file
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_svn_subst_eol_style_none,8,3   ## @svn_subst_eol_style_none
	.no_dead_strip	_apply_hunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_hunk
_apply_hunk:                            ; @apply_hunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldrsw	x25, [x2]
	cbnz	x3, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _svn_node_file@GOTPAGE
Lloh1:
	ldr	x9, [x9, _svn_node_file@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	ldr	x8, [x22, #16]
	add	x1, x8, x25
	mov	x0, x21
	mov	x2, x23
	bl	_copy_lines_to_target
	bl	_SVN_ERR
	ldr	w24, [x21]
	ldr	w0, [x22, #4]
	bl	_svn_diff_hunk_get_original_length
	sub	w8, w24, w25, lsl #1
	add	w24, w8, w0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_seek_to_line
	bl	_SVN_ERR
	ldr	w8, [x21]
	cmp	w8, w24
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_17
LBB0_4:
	ldr	w0, [x22, #4]
	bl	_svn_diff_hunk_reset_modified_text
	mov	x0, x23
	bl	_svn_pool_create
	mov	x23, x0
	mov	w24, #0
Lloh3:
	adrp	x26, _svn_subst_eol_style_none@GOTPAGE
Lloh4:
	ldr	x26, [x26, _svn_subst_eol_style_none@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_strlen
	mov	x2, x0
	ldr	x8, [x21, #32]
	ldr	w0, [x21, #24]
	ldr	x1, [sp, #8]
	mov	x3, x23
	blr	x8
	bl	_SVN_ERR
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #28]
	add	w24, w24, #1
	cbnz	w8, LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_svn_pool_clear
	ldr	w0, [x22, #4]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #28
	mov	x4, x23
	mov	x5, x23
	bl	_svn_diff_hunk_readline_modified_text
	bl	_SVN_ERR
	cmp	w24, w25
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #4]
	bl	_svn_diff_hunk_get_modified_length
	sub	w8, w0, w25
	cmp	w24, w8
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]
	ldr	w2, [x8]
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21, #32]
	ldr	w0, [x21, #24]
	ldr	x1, [x8, #8]
	mov	x3, x23
	blr	x9
	bl	_SVN_ERR
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21, #16]
	str	x0, [sp, #8]
	b	LBB0_5
LBB0_14:
	mov	x0, x23
	bl	_svn_pool_destroy
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x19, LBB0_16
; %bb.15:
	str	x8, [x20, #16]
	b	LBB0_18
LBB0_16:
	str	x8, [x20, #8]
	b	LBB0_18
LBB0_17:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x22, #8]
	ldr	w2, [x22, #4]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x4, x23
	bl	_reject_hunk
	bl	_SVN_ERR
LBB0_18:
Lloh11:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_node_file,8,3              ; @svn_node_file
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_svn_subst_eol_style_none,8,3   ; @svn_subst_eol_style_none
	.no_dead_strip	_apply_hunk
.subsections_via_symbols
