	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function FILTER_NTSC_GetPreset
LCPI0_0:
	.quad	0x3f50624dd2f1a9fc              ## double 0.001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FILTER_NTSC_GetPreset
	.p2align	4, 0x90
_FILTER_NTSC_GetPreset:                 ## @FILTER_NTSC_GetPreset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FILTER_NTSC_PRESET_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.1:
	xorl	%ebx, %ebx
	movq	_FILTER_NTSC_setup@GOTPCREL(%rip), %r15
	movq	_presets@GOTPCREL(%rip), %r12
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	40(%rax), %esi
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	36(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	32(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	28(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	24(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	20(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	16(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_Util_almostequal
	testq	%rax, %rax
	je	LBB0_13
	jmp	LBB0_15
LBB0_14:
	movq	_FILTER_NTSC_PRESET_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_NTSC_PRESET_SIZE,4,2    ## @FILTER_NTSC_PRESET_SIZE
	.comm	_FILTER_NTSC_setup,24,2         ## @FILTER_NTSC_setup
	.comm	_presets,8,3                    ## @presets
	.comm	_COLOURS_NTSC_setup,20,2        ## @COLOURS_NTSC_setup
	.comm	_FILTER_NTSC_PRESET_CUSTOM,4,2  ## @FILTER_NTSC_PRESET_CUSTOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FILTER_NTSC_GetPreset          ; -- Begin function FILTER_NTSC_GetPreset
	.p2align	2
_FILTER_NTSC_GetPreset:                 ; @FILTER_NTSC_GetPreset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _FILTER_NTSC_PRESET_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FILTER_NTSC_PRESET_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x21, _FILTER_NTSC_setup@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FILTER_NTSC_setup@GOTPAGEOFF]
Lloh4:
	adrp	x22, _presets@GOTPAGE
Lloh5:
	ldr	x22, [x22, _presets@GOTPAGEOFF]
	mov	x23, #43516
	movk	x23, #54001, lsl #16
	movk	x23, #25165, lsl #32
	movk	x23, #16208, lsl #48
Lloh6:
	adrp	x24, _COLOURS_NTSC_setup@GOTPAGE
Lloh7:
	ldr	x24, [x24, _COLOURS_NTSC_setup@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x20]
	cmp	x19, x8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #20]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #40]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #16]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #36]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #12]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #32]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #8]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #28]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #4]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #24]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #20]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #16]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #16]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #12]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #12]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #8]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #8]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #4]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8, #4]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w1, [x8]
	fmov	d0, x23
	bl	_Util_almostequal
	cbz	x0, LBB0_2
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x8, _FILTER_NTSC_PRESET_CUSTOM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FILTER_NTSC_PRESET_CUSTOM@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_NTSC_PRESET_SIZE,4,2    ; @FILTER_NTSC_PRESET_SIZE
	.comm	_FILTER_NTSC_setup,24,2         ; @FILTER_NTSC_setup
	.comm	_presets,8,3                    ; @presets
	.comm	_COLOURS_NTSC_setup,20,2        ; @COLOURS_NTSC_setup
	.comm	_FILTER_NTSC_PRESET_CUSTOM,4,2  ; @FILTER_NTSC_PRESET_CUSTOM
.subsections_via_symbols
