	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge
_merge:                                 ## @merge
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rerere_path
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_handle_file
	movl	$1, %ebx
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rerere_path
	leaq	-80(%rbp), %rdi
	movl	%eax, %esi
	callq	_read_mmfile
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	leaq	-80(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_try_merge
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_12:
	movl	-80(%rbp), %edi
	callq	_free
	movl	-64(%rbp), %edi
	callq	_free
LBB0_13:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_rerere_path
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_utime
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_rerere_path
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_warning_errno
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error_errno
LBB0_10:
	movq	%rbx, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
LBB0_7:
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error_errno
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thisimage"

L_.str.1:                               ## @.str.1
	.asciz	"postimage"

L_.str.2:                               ## @.str.2
	.asciz	"failed utime() on '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"w"

L_.str.4:                               ## @.str.4
	.asciz	"could not open '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"could not write '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"writing '%s' failed"

	.no_dead_strip	_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge
_merge:                                 ; @merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rerere_path
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	bl	_handle_file
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rerere_path
	mov	x1, x0
	add	x0, sp, #32
	bl	_read_mmfile
	cbz	x0, LBB0_5
LBB0_2:
	mov	w21, #1
LBB0_3:
	ldr	w0, [sp, #32]
	bl	_free
	ldr	w0, [sp, #8]
	bl	_free
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	add	x3, sp, #32
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_try_merge
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rerere_path
	mov	x1, #0
	bl	_utime
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rerere_path
	mov	x1, x0
	mov	x0, x21
	bl	_warning_errno
LBB0_8:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.9:
	mov	x20, x0
	ldp	w0, w1, [sp, #8]
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_11
; %bb.10:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error_errno
LBB0_11:
	mov	x0, x20
	bl	_fclose
	cbz	x0, LBB0_15
; %bb.12:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	bl	__
	mov	x1, x19
	bl	_error_errno
	mov	x21, x0
	b	LBB0_4
LBB0_15:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thisimage"

l_.str.1:                               ; @.str.1
	.asciz	"postimage"

l_.str.2:                               ; @.str.2
	.asciz	"failed utime() on '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"w"

l_.str.4:                               ; @.str.4
	.asciz	"could not open '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"could not write '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"writing '%s' failed"

	.no_dead_strip	_merge
.subsections_via_symbols
