	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perform_gamma_composition_tests
_perform_gamma_composition_tests:       ## @perform_gamma_composition_tests
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -44(%rbp)
	movl	24(%rdi), %r8d
	movl	28(%rdi), %ecx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_next_format
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax
	movq	_PNG_COLOR_MASK_ALPHA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$3, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	xorl	%r12d, %r12d
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %r9d
	leal	1(%r9), %ecx
	cmpl	$3, %ecx
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	xorl	%r9d, %r9d
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=3
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	20(%r14), %r8d
	movl	(%rax,%r13,4), %eax
	movl	16(%r14), %ebx
	movq	%r14, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	%rbx
	pushq	%rax
	callq	_gamma_composition_test
	addq	$32, %rsp
	movq	%r14, %rdi
	callq	_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_13 Depth=3
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	jb	LBB0_13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	movl	%eax, %ecx
	cmpq	%rcx, %r12
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%r14), %r8d
	movl	28(%r14), %ecx
	jmp	LBB0_1
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ## @PNG_COLOR_MASK_ALPHA
	.no_dead_strip	_perform_gamma_composition_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_gamma_composition_tests
_perform_gamma_composition_tests:       ; @perform_gamma_composition_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	ldp	w4, w3, [x0, #24]
	add	x0, sp, #28
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_next_format
	cbz	x0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x22, _PNG_COLOR_MASK_ALPHA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PNG_COLOR_MASK_ALPHA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w8, [sp, #28]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #20]
	cmp	w8, #3
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	mov	w8, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, #0
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	w2, w1, [sp, #24]
	ldr	w3, [sp, #20]
	ldr	x8, [x21, #8]
	ldr	w9, [x8, x23, lsl #2]
	add	w10, w9, #1
	cmp	w10, #3
	csel	w5, w9, wzr, lo
	ldr	w6, [x8, x24, lsl #2]
	ldp	w7, w4, [x21, #16]
	stp	w20, w19, [sp]
	mov	x0, x21
	bl	_gamma_composition_test
	mov	x0, x21
	bl	_fail
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x24, x24, #1
	ldr	w8, [x21]
	cmp	x24, x8
	b.lo	LBB0_9
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w4, w3, [x21, #24]
	add	x0, sp, #28
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_next_format
	cbnz	x0, LBB0_2
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ; @PNG_COLOR_MASK_ALPHA
	.no_dead_strip	_perform_gamma_composition_tests
.subsections_via_symbols
