	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function perform_one_test
LCPI0_0:
	.quad	-1                              ## 0xffffffffffffffff
	.quad	1000000000                      ## 0x3b9aca00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_perform_one_test:                      ## @perform_one_test
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_rewind
	leaq	-80(%rbp), %rdi
	callq	_mytime
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_read_png
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_3
LBB0_8:
	leaq	-64(%rbp), %rdi
	callq	_mytime
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movdqa	-64(%rbp), %xmm0
	psubq	-80(%rbp), %xmm0
	pextrq	$1, %xmm0, %rax
	testq	%rax, %rax
	jns	LBB0_12
## %bb.10:
	cmpq	$-1000000001, %rax              ## imm = 0xC46535FF
	ja	LBB0_11
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	paddq	LCPI0_0(%rip), %xmm0
LBB0_12:
	movq	%xmm0, %rsi
	pextrq	$1, %xmm0, %rdx
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_fflush
	movq	(%rbx), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_15:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_16
LBB0_13:
	movl	$1, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, %edi
	callq	_perform_one_test.cold.1
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_5:
	movl	%ebx, %edi
	callq	_perform_one_test.cold.2
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function perform_one_test.cold.1
_perform_one_test.cold.1:               ## @perform_one_test.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function perform_one_test.cold.2
_perform_one_test.cold.2:               ## @perform_one_test.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temporary file"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"file %d: error reading PNG data\n"

L_.str.2:                               ## @.str.2
	.asciz	"file %d: error from libpng\n"

L_.str.3:                               ## @.str.3
	.asciz	"timepng: bad clock from kernel\n"

L_.str.4:                               ## @.str.4
	.asciz	"%lu.%.9ld\n"

	.comm	_stdout,8,3                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"timepng: error writing output\n"

	.no_dead_strip	_perform_one_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_one_test
_perform_one_test:                      ; @perform_one_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_rewind
	add	x0, sp, #16
	bl	_mytime
	cbz	x0, LBB0_16
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	bl	_read_png
	cbz	x0, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ferror
	cbnz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w20, w22
	b.ne	LBB0_3
LBB0_6:
	mov	x0, sp
	bl	_mytime
	cbz	x0, LBB0_16
; %bb.7:
	ldp	x8, x9, [sp]
	ldp	x10, x11, [sp, #16]
	sub	x1, x8, x10
	subs	x2, x9, x11
	b.pl	LBB0_11
; %bb.8:
	mov	x8, #-51713
	movk	x8, #50277, lsl #16
	cmp	x2, x8
	b.hi	LBB0_10
; %bb.9:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:
	sub	x1, x1, #1
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	add	x2, x2, x8
LBB0_11:
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x19, _stdout@GOTPAGE
Lloh8:
	ldr	x19, [x19, _stdout@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_fflush
	ldr	x0, [x19]
	bl	_ferror
	cbz	x0, LBB0_15
; %bb.12:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	bl	_fprintf
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
	mov	x0, x22
	bl	_perform_one_test.cold.1
	b	LBB0_14
LBB0_18:
	mov	x0, x22
	bl	_perform_one_test.cold.2
	b	LBB0_14
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function perform_one_test.cold.1
_perform_one_test.cold.1:               ; @perform_one_test.cold.1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	b	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function perform_one_test.cold.2
_perform_one_test.cold.2:               ; @perform_one_test.cold.2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	b	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Tail Call
	.cfi_startproc
; %bb.0:
	ldp	x20, x19, [sp, #16]
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temporary file"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"file %d: error reading PNG data\n"

l_.str.2:                               ; @.str.2
	.asciz	"file %d: error from libpng\n"

l_.str.3:                               ; @.str.3
	.asciz	"timepng: bad clock from kernel\n"

l_.str.4:                               ; @.str.4
	.asciz	"%lu.%.9ld\n"

	.comm	_stdout,8,3                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"timepng: error writing output\n"

	.no_dead_strip	_perform_one_test
.subsections_via_symbols
