	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_one_file
_test_one_file:                         ## @test_one_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_NO_RESEED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_reseed
LBB0_2:
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	callq	_newimage
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_initimage
	movq	%r15, %rdi
	callq	_read_one_file
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-44(%rbp), %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_testimage
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	leaq	-44(%rbp), %rdi
	callq	_freeimage
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	testl	%r14d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	testl	%r12d, %r12d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%r13d, %edi
	callq	_print_opts
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	jmp	LBB0_8
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_RESEED,4,2                  ## @NO_RESEED
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PASS:"

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

L_.str.2:                               ## @.str.2
	.asciz	" (no write)"

L_.str.3:                               ## @.str.3
	.asciz	" %s\n"

	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_test_one_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_one_file
_test_one_file:                         ; @test_one_file
	.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	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NO_RESEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_RESEED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_2
; %bb.1:
	bl	_reseed
LBB0_2:
	add	x0, sp, #12
	bl	_newimage
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_initimage
	add	x0, sp, #12
	bl	_read_one_file
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x22
	bl	_testimage
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	add	x0, sp, #12
	bl	_freeimage
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fflush
	cbz	w21, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w22, #0
	csel	x0, x9, x8, eq
	bl	_printf
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_print_opts
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
Lloh14:
	adrp	x8, _stdout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_fflush
	b	LBB0_8
LBB0_7:
	cbz	w22, LBB0_9
LBB0_8:
	mov	x0, x22
	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
LBB0_9:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_RESEED,4,2                  ; @NO_RESEED
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PASS:"

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

l_.str.2:                               ; @.str.2
	.asciz	" (no write)"

l_.str.3:                               ; @.str.3
	.asciz	" %s\n"

	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_test_one_file
.subsections_via_symbols
