	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_out_rejected_hunks
_write_out_rejected_hunks:              ## @write_out_rejected_hunks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_1
LBB0_7:
	movl	(%r12), %edi
	callq	_svn_stream_close
	jmp	LBB0_8
LBB0_1:
	movq	%rcx, %r14
	movq	%rsi, %r15
	cmpq	$0, 16(%r12)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_7
LBB0_3:
	movl	4(%r12), %edi
	movq	%r14, %rsi
	callq	_svn_dirent_dirname
	movq	%rax, %rbx
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_svn_dirent_basename
	movq	_svn_io_file_del_none@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	leaq	L_.str(%rip), %r8
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	pushq	%r14
	pushq	%r14
	callq	_svn_io_open_uniquely_named
	addq	$16, %rsp
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	callq	_APR_STATUS_IS_ENOENT
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_svn_error_clear
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_svn_dirent_basename
	movl	(%r13), %r9d
	leaq	L_.str(%rip), %r8
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	pushq	%r14
	pushq	%r14
	callq	_svn_io_open_uniquely_named
	addq	$16, %rsp
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rdi
	callq	_SVN_ERR
	movl	(%r12), %edi
	callq	_svn_stream_reset
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	(%r12), %ebx
	movq	-48(%rbp), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_svn_stream_from_aprfile2
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_svn_stream_copy3
LBB0_8:
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %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	".svnpatch.rej"

	.comm	_svn_io_file_del_none,4,2       ## @svn_io_file_del_none
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_write_out_rejected_hunks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_out_rejected_hunks
_write_out_rejected_hunks:              ; @write_out_rejected_hunks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	cbz	w2, LBB0_2
LBB0_1:
	ldr	w0, [x20]
	bl	_svn_stream_close
	b	LBB0_8
LBB0_2:
	mov	x19, x3
	mov	x21, x1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_1
LBB0_4:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_svn_dirent_dirname
	mov	x22, x0
	ldr	w0, [x20, #4]
	mov	x1, #0
	bl	_svn_dirent_basename
	mov	x3, x0
Lloh0:
	adrp	x23, _svn_io_file_del_none@GOTPAGE
Lloh1:
	ldr	x23, [x23, _svn_io_file_del_none@GOTPAGEOFF]
	ldr	w5, [x23]
Lloh2:
	adrp	x4, l_.str@PAGE
Lloh3:
	add	x4, x4, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, x22
	mov	x6, x19
	mov	x7, x19
	bl	_svn_io_open_uniquely_named
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x22]
	bl	_APR_STATUS_IS_ENOENT
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_svn_error_clear
	ldr	w0, [x20, #4]
	mov	x1, #0
	bl	_svn_dirent_basename
	mov	x3, x0
	ldr	w5, [x23]
Lloh4:
	adrp	x4, l_.str@PAGE
Lloh5:
	add	x4, x4, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, x21
	mov	x6, x19
	mov	x7, x19
	bl	_svn_io_open_uniquely_named
	mov	x22, x0
LBB0_7:
	mov	x0, x22
	bl	_SVN_ERR
	ldr	w0, [x20]
	bl	_svn_stream_reset
	bl	_SVN_ERR
	ldr	w20, [x20]
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_svn_stream_from_aprfile2
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_svn_stream_copy3
LBB0_8:
	bl	_SVN_ERR
Lloh9:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".svnpatch.rej"

	.comm	_svn_io_file_del_none,4,2       ; @svn_io_file_del_none
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_write_out_rejected_hunks
.subsections_via_symbols
