	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_utils_compare_file         ## -- Begin function atf_utils_compare_file
	.p2align	4, 0x90
_atf_utils_compare_file:                ## @atf_utils_compare_file
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_ATF_REQUIRE_MSG
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	leaq	-1072(%rbp), %rsi
	movl	%ebx, -1076(%rbp)               ## 4-byte Spill
	movl	%ebx, %edi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	movq	%rax, %r14
	testq	%rax, %rax
	jle	LBB0_8
## %bb.1:
	cmpq	%r14, %r12
	jl	LBB0_8
## %bb.2:
	leaq	-1072(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%r14, %r12
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r13, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %r15
	movq	%rbx, %r14
	cmpq	%rbx, %r12
	jge	LBB0_3
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rbx
LBB0_9:
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	callq	_close
	xorl	%eax, %eax
	orq	%rbx, %r12
	sete	%al
	jmp	LBB0_10
LBB0_6:
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	callq	_close
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_utils_compare_file         ; -- Begin function atf_utils_compare_file
	.p2align	2
_atf_utils_compare_file:                ; @atf_utils_compare_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #1040
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	cset	w0, ne
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_ATF_REQUIRE_MSG
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1024
	bl	_read
	mov	x22, x0
	cmp	x0, #1
	ccmp	x21, x0, #8, ge
	b.ge	LBB0_3
; %bb.1:
	mov	x23, x22
LBB0_2:
	mov	x0, x19
	bl	_close
	orr	x8, x23, x21
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, x22
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1024
	bl	_read
	mov	x23, x0
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, x22
	mov	x22, x23
	cmp	x21, x23
	b.ge	LBB0_3
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open %s"

.subsections_via_symbols
