	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function perform_gamma_threshold_tests
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fee666666666666              ## double 0.94999999999999996
LCPI0_2:
	.quad	0x3fd999999999999a              ## double 0.40000000000000002
LCPI0_3:
	.quad	0x3fdd1758e219652c              ## double 0.45455000000000001
LCPI0_4:
	.quad	0x400199999999999a              ## double 2.2000000000000002
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_perform_gamma_threshold_tests:         ## @perform_gamma_threshold_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	4(%rdi), %r8d
	movl	8(%rdi), %ecx
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_next_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-40(%rbp), %r14
	leaq	-36(%rbp), %r15
	leaq	-44(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_next_format
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$1, -44(%rbp)
	ja	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movl	(%rbx), %ecx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm2, %xmm1
	movq	%rbx, %rdi
	movapd	%xmm2, %xmm0
	callq	_gamma_threshold_test
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm2
	ucomisd	LCPI0_2(%rip), %xmm2
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_gamma_threshold_test
	movq	%rbx, %rdi
	callq	_fail
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_perform_gamma_threshold_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_threshold_tests
_perform_gamma_threshold_tests:         ; @perform_gamma_threshold_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldp	w4, w3, [x0, #4]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_next_format
	cbz	x0, LBB0_7
; %bb.1:
	fmov	d9, #1.00000000
	mov	x20, #7378697629483820646
	movk	x20, #16366, lsl #48
	mov	x21, #-7378697629483820647
	movk	x21, #39322
	movk	x21, #16345, lsl #48
	mov	x22, #25900
	movk	x22, #57881, lsl #16
	movk	x22, #5976, lsl #32
	movk	x22, #16349, lsl #48
	mov	x23, #-7378697629483820647
	movk	x23, #39322
	movk	x23, #16385, lsl #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w4, w3, [x19, #4]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_next_format
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d8, #1.00000000
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w1, [sp, #8]
	ldr	w3, [x19]
	fdiv	d1, d9, d8
	mov	x0, x19
	fmov	d0, d8
	bl	_gamma_threshold_test
	fmov	d0, x20
	fmul	d8, d8, d0
	fmov	d0, x21
	fcmp	d8, d0
	b.ge	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w2, w1, [sp, #8]
	ldr	w3, [x19]
	fmov	d0, x22
	fmov	d1, x23
	mov	x0, x19
	bl	_gamma_threshold_test
	mov	x0, x19
	bl	_fail
	cbz	x0, LBB0_2
LBB0_7:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_perform_gamma_threshold_tests
.subsections_via_symbols
