	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	movq	$0, 48(%rdi)
	callq	_display_cache_file
	movq	%r14, %rdi
	callq	_update_display
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	leaq	40(%r14), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_read_png
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_compare_read
	testl	%eax, %eax
	je	LBB0_16
LBB0_2:
	movl	16(%r14), %r13d
	movq	_EXHAUSTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	20(%r14), %ebx
	movl	%r13d, %edi
	callq	_first_transform
	movl	%eax, %r12d
	leaq	40(%r14), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	_read_transforms@GOTPCREL(%rip), %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_read_png
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	cmpl	%ecx, %r12d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r12), %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	leal	1(%rbx), %eax
	cmpl	%ecx, %ebx
	movl	%eax, %ebx
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	andl	%ecx, %eax
	cmpl	%r12d, %eax
	jbe	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %eax
	andl	%r13d, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skip_transform
	movl	(%r15), %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	notl	%ecx
	xorl	%edi, %edi
	testl	%ecx, %ebx
	sete	%dil
	callq	_assert
	movl	%ebx, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	notl	%r12d
	andl	%r12d, %r13d
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_first_transform
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_10:
	movl	20(%r14), %eax
	movq	_FIND_BAD_COMBOS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.11:
	movq	24(%r14), %rsi
	movq	_SKIP_BUGS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache file"

L_.str.1:                               ## @.str.1
	.asciz	"ignored transforms"

	.comm	_EXHAUSTIVE,4,2                 ## @EXHAUSTIVE
L_.str.2:                               ## @.str.2
	.asciz	"active transforms"

	.comm	_read_transforms,4,2            ## @read_transforms
	.comm	_FIND_BAD_COMBOS,4,2            ## @FIND_BAD_COMBOS
	.comm	_rw_transforms,4,2              ## @rw_transforms
L_.str.4:                               ## @.str.4
	.asciz	"%s: no %sbad combos found\n"

	.comm	_SKIP_BUGS,4,2                  ## @SKIP_BUGS
L_.str.5:                               ## @.str.5
	.asciz	"additional "

L_.str.6:                               ## @.str.6
	.space	1

	.comm	_write_transforms,4,2           ## @write_transforms
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	str	xzr, [x0, #48]
	bl	_display_cache_file
	mov	x0, x19
	bl	_update_display
	ldr	x3, [x19, #8]
	cbz	x3, LBB0_2
; %bb.1:
	add	x1, x19, #40
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_read_png
	mov	x0, x19
	mov	w1, #0
	bl	_compare_read
	cbz	w0, LBB0_14
LBB0_2:
	ldp	w20, w8, [x19, #16]
Lloh4:
	adrp	x9, _EXHAUSTIVE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EXHAUSTIVE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w25, w9, w8
	mov	x0, x20
	bl	_first_transform
	mov	x23, x0
	add	x21, x19, #40
Lloh7:
	adrp	x26, _read_transforms@GOTPAGE
Lloh8:
	ldr	x26, [x26, _read_transforms@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_read_png
	cbz	w25, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	cmp	w23, w8
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w23, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w9, w24, #1
	cmp	w24, w8
	mov	x24, x9
	b.eq	LBB0_12
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w9, w24, w8
	and	w10, w24, w20
	cmp	w9, w23
	ccmp	w10, #0, #4, hi
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_skip_transform
	ldr	w8, [x26]
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	bics	wzr, w24, w8
	cset	w0, eq
	bl	_assert
	mov	x23, x24
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bics	w20, w20, w23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_first_transform
	mov	x23, x0
	b	LBB0_3
LBB0_12:
	ldr	w8, [x19, #20]
Lloh11:
	adrp	x9, _FIND_BAD_COMBOS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FIND_BAD_COMBOS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x1, [x19, #24]
Lloh14:
	adrp	x9, _SKIP_BUGS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SKIP_BUGS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, l_.str.5@PAGE
Lloh18:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh19:
	adrp	x11, l_.str.6@PAGE
Lloh20:
	add	x11, x11, l_.str.6@PAGEOFF
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_14:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache file"

l_.str.1:                               ; @.str.1
	.asciz	"ignored transforms"

	.comm	_EXHAUSTIVE,4,2                 ; @EXHAUSTIVE
l_.str.2:                               ; @.str.2
	.asciz	"active transforms"

	.comm	_read_transforms,4,2            ; @read_transforms
	.comm	_FIND_BAD_COMBOS,4,2            ; @FIND_BAD_COMBOS
	.comm	_rw_transforms,4,2              ; @rw_transforms
l_.str.4:                               ; @.str.4
	.asciz	"%s: no %sbad combos found\n"

	.comm	_SKIP_BUGS,4,2                  ; @SKIP_BUGS
l_.str.5:                               ; @.str.5
	.asciz	"additional "

l_.str.6:                               ; @.str.6
	.space	1

	.comm	_write_transforms,4,2           ; @write_transforms
	.no_dead_strip	_test_one_file
.subsections_via_symbols
