	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_coefficients
_build_coefficients:                    ## @build_coefficients
	.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	%rdi, %r15
	movq	_TRANSFER_FUNCTION_SRGB@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	_TRANSFER_FUNCTION_BT709@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpl	%esi, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_TRANSFER_FUNCTION_GAMMA22@GOTPCREL(%rip), %rax
	movl	$2, %r14d
	cmpl	%esi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_TRANSFER_FUNCTION_GAMMA24@GOTPCREL(%rip), %rax
	movl	$3, %r14d
	cmpl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_TRANSFER_FUNCTION_GAMMA26@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	$4, %r14d
	cmpl	%esi, (%rcx)
	jne	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	movq	_gamma_numerator04@GOTPCREL(%rip), %r13
	movq	_gamma_numerator05@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_gamma_numerator01@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$10000000, %esi                 ## imm = 0x989680
	callq	_dc_fixpt_from_fraction
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_gamma_numerator02@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_dc_fixpt_from_fraction
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_gamma_numerator03@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_dc_fixpt_from_fraction
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_dc_fixpt_from_fraction
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_dc_fixpt_from_fraction
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	32(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.8:
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSFER_FUNCTION_SRGB,4,2     ## @TRANSFER_FUNCTION_SRGB
	.comm	_TRANSFER_FUNCTION_BT709,4,2    ## @TRANSFER_FUNCTION_BT709
	.comm	_TRANSFER_FUNCTION_GAMMA22,4,2  ## @TRANSFER_FUNCTION_GAMMA22
	.comm	_TRANSFER_FUNCTION_GAMMA24,4,2  ## @TRANSFER_FUNCTION_GAMMA24
	.comm	_TRANSFER_FUNCTION_GAMMA26,4,2  ## @TRANSFER_FUNCTION_GAMMA26
	.comm	_gamma_numerator01,8,3          ## @gamma_numerator01
	.comm	_gamma_numerator02,8,3          ## @gamma_numerator02
	.comm	_gamma_numerator03,8,3          ## @gamma_numerator03
	.comm	_gamma_numerator04,8,3          ## @gamma_numerator04
	.comm	_gamma_numerator05,8,3          ## @gamma_numerator05
	.no_dead_strip	_build_coefficients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_coefficients
_build_coefficients:                    ; @build_coefficients
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _TRANSFER_FUNCTION_SRGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANSFER_FUNCTION_SRGB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _TRANSFER_FUNCTION_BT709@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANSFER_FUNCTION_BT709@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _TRANSFER_FUNCTION_GAMMA22@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANSFER_FUNCTION_GAMMA22@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _TRANSFER_FUNCTION_GAMMA24@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRANSFER_FUNCTION_GAMMA24@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _TRANSFER_FUNCTION_GAMMA26@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRANSFER_FUNCTION_GAMMA26@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_14
; %bb.9:
	mov	w8, #4
LBB0_10:
	mov	x20, #0
Lloh15:
	adrp	x21, _gamma_numerator01@GOTPAGE
Lloh16:
	ldr	x21, [x21, _gamma_numerator01@GOTPAGEOFF]
	lsl	x22, x8, #2
Lloh17:
	adrp	x23, _gamma_numerator02@GOTPAGE
Lloh18:
	ldr	x23, [x23, _gamma_numerator02@GOTPAGEOFF]
Lloh19:
	adrp	x24, _gamma_numerator03@GOTPAGE
Lloh20:
	ldr	x24, [x24, _gamma_numerator03@GOTPAGEOFF]
Lloh21:
	adrp	x25, _gamma_numerator04@GOTPAGE
Lloh22:
	ldr	x25, [x25, _gamma_numerator04@GOTPAGEOFF]
Lloh23:
	adrp	x26, _gamma_numerator05@GOTPAGE
Lloh24:
	ldr	x26, [x26, _gamma_numerator05@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x22]
	mov	w1, #38528
	movk	w1, #152, lsl #16
	bl	_dc_fixpt_from_fraction
	ldr	x8, [x19, #32]
	lsl	x27, x20, #3
	str	x0, [x8, x27]
	ldr	x8, [x23]
	ldr	w0, [x8, x22]
	mov	w1, #1000
	bl	_dc_fixpt_from_fraction
	ldr	x8, [x19, #24]
	str	x0, [x8, x27]
	ldr	x8, [x24]
	ldr	w0, [x8, x22]
	mov	w1, #1000
	bl	_dc_fixpt_from_fraction
	ldr	x8, [x19, #16]
	str	x0, [x8, x27]
	ldr	x8, [x25]
	ldr	w0, [x8, x22]
	mov	w1, #1000
	bl	_dc_fixpt_from_fraction
	ldr	x8, [x19, #8]
	str	x0, [x8, x27]
	ldr	x8, [x26]
	ldr	w0, [x8, x22]
	mov	w1, #1000
	bl	_dc_fixpt_from_fraction
	ldr	x8, [x19]
	str	x0, [x8, x27]
	add	x20, x20, #1
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	cmp	x20, x0
	b.ne	LBB0_11
; %bb.12:
	mov	w0, #1
LBB0_13:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANSFER_FUNCTION_SRGB,4,2     ; @TRANSFER_FUNCTION_SRGB
	.comm	_TRANSFER_FUNCTION_BT709,4,2    ; @TRANSFER_FUNCTION_BT709
	.comm	_TRANSFER_FUNCTION_GAMMA22,4,2  ; @TRANSFER_FUNCTION_GAMMA22
	.comm	_TRANSFER_FUNCTION_GAMMA24,4,2  ; @TRANSFER_FUNCTION_GAMMA24
	.comm	_TRANSFER_FUNCTION_GAMMA26,4,2  ; @TRANSFER_FUNCTION_GAMMA26
	.comm	_gamma_numerator01,8,3          ; @gamma_numerator01
	.comm	_gamma_numerator02,8,3          ; @gamma_numerator02
	.comm	_gamma_numerator03,8,3          ; @gamma_numerator03
	.comm	_gamma_numerator04,8,3          ; @gamma_numerator04
	.comm	_gamma_numerator05,8,3          ; @gamma_numerator05
	.no_dead_strip	_build_coefficients
.subsections_via_symbols
