	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_source_and_dest
_verify_source_and_dest:                ## @verify_source_and_dest
	.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	%rcx, %r12
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_atf_utils_cat_file
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$-1, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	%ebx, %edi
	callq	_file_size_from_fd
	movq	%rax, %rbx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_file_size_from_fd
	subq	%r15, %rax
	testq	%r12, %r12
	cmoveq	%rax, %r12
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_lseek
	movslq	%eax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rcx
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r13
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r13
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_printf
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	%r15, %r9
	callq	_mmap
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memcmp
	movslq	%eax, %rsi
	leaq	L_.str.6(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_munmap
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_munmap
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dest_file: "

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open failed"

L_.str.2:                               ## @.str.2
	.asciz	"number of bytes written out to %s (%ju) doesn't match the expected number of bytes (%zu)"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"lseek failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.4:                               ## @.str.4
	.asciz	"mmap failed: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Will mmap in the source file from offset=%jd to length=%zu\n"

L_.str.6:                               ## @.str.6
	.asciz	"Contents of source and destination do not match. '%s' != '%s'"

	.no_dead_strip	_verify_source_and_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_source_and_dest
_verify_source_and_dest:                ; @verify_source_and_dest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_atf_utils_cat_file
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	cset	w0, ne
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	x0, x19
	bl	_file_size_from_fd
	mov	x24, x0
	mov	x0, x22
	bl	_file_size_from_fd
	sub	x8, x0, x21
	cmp	x20, #0
	csel	x20, x8, x20, eq
	stp	x24, x20, [sp]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x1, x20
	mov	x3, x23
	bl	_ATF_REQUIRE_EQ_MSG
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_lseek
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	w0, [x8]
	mov	x25, x8
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	x1, x23
	bl	_ATF_REQUIRE_EQ_MSG
Lloh16:
	adrp	x27, _PROT_READ@GOTPAGE
Lloh17:
	ldr	x27, [x27, _PROT_READ@GOTPAGEOFF]
	ldr	w2, [x27]
Lloh18:
	adrp	x28, _MAP_PRIVATE@GOTPAGE
Lloh19:
	ldr	x28, [x28, _MAP_PRIVATE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, #0
	mov	x1, x20
	mov	x4, x19
	mov	x5, #0
	bl	_mmap
	mov	x23, x0
Lloh20:
	adrp	x26, _MAP_FAILED@GOTPAGE
Lloh21:
	ldr	x26, [x26, _MAP_FAILED@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w24, ne
	ldr	w0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x25, l_.str.4@PAGE
Lloh23:
	add	x25, x25, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	bl	_ATF_REQUIRE_MSG
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_printf
	ldr	w2, [x27]
	ldr	w3, [x28]
	mov	x0, #0
	mov	x1, x20
	mov	x4, x22
	mov	x5, x21
	bl	_mmap
	mov	x21, x0
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w22, ne
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x22
	mov	x1, x25
	bl	_ATF_REQUIRE_MSG
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_memcmp
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x23, [sp]
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w0, #0
	mov	x3, x21
	bl	_ATF_REQUIRE_EQ_MSG
	mov	x0, x21
	mov	x1, x20
	bl	_munmap
	mov	x0, x23
	mov	x1, x20
	bl	_munmap
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_close
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dest_file: "

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open failed"

l_.str.2:                               ; @.str.2
	.asciz	"number of bytes written out to %s (%ju) doesn't match the expected number of bytes (%zu)"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"lseek failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.4:                               ; @.str.4
	.asciz	"mmap failed: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Will mmap in the source file from offset=%jd to length=%zu\n"

l_.str.6:                               ; @.str.6
	.asciz	"Contents of source and destination do not match. '%s' != '%s'"

	.no_dead_strip	_verify_source_and_dest
.subsections_via_symbols
