	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_hlg_oetf
_compute_hlg_oetf:                      ## @compute_hlg_oetf
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movl	%edx, %edi
	movl	%ecx, %esi
	callq	_dc_fixpt_from_fraction
	movl	%eax, %r14d
	movl	$17883277, %edi                 ## imm = 0x110E08D
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_dc_fixpt_from_fraction
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$28466892, %edi                 ## imm = 0x1B25ECC
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_dc_fixpt_from_fraction
	movl	%eax, %r13d
	movl	$55991073, %edi                 ## imm = 0x3565B21
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_dc_fixpt_from_fraction
	movl	%eax, %r12d
	movl	$1, %edi
	movl	$12, %esi
	callq	_dc_fixpt_from_fraction
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_dc_fixpt_mul
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$3, %edi
	movl	$1, %esi
	callq	_dc_fixpt_from_fraction
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movq	_dc_fixpt_half@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_dc_fixpt_pow
	jmp	LBB0_3
LBB0_2:
	movl	$12, %edi
	movl	$1, %esi
	callq	_dc_fixpt_from_fraction
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_sub
	movl	%eax, %edi
	callq	_dc_fixpt_log
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_dc_fixpt_add
LBB0_3:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_fixpt_half,4,2              ## @dc_fixpt_half
	.no_dead_strip	_compute_hlg_oetf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_hlg_oetf
_compute_hlg_oetf:                      ; @compute_hlg_oetf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x23, x0
	mov	x0, x2
	mov	x1, x3
	bl	_dc_fixpt_from_fraction
	mov	x24, x0
	mov	w0, #57485
	movk	w0, #272, lsl #16
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_dc_fixpt_from_fraction
	mov	x20, x0
	mov	w0, #24268
	movk	w0, #434, lsl #16
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_dc_fixpt_from_fraction
	mov	x22, x0
	mov	w0, #23329
	movk	w0, #854, lsl #16
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_dc_fixpt_from_fraction
	mov	x21, x0
	mov	w0, #1
	mov	w1, #12
	bl	_dc_fixpt_from_fraction
	mov	x25, x0
	and	x0, x23, #0xffffffff
	mov	w1, w24
	bl	_dc_fixpt_mul
	mov	w23, w0
	mov	w1, w25
	mov	x0, x23
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #3
	mov	w1, #1
	bl	_dc_fixpt_from_fraction
	mov	w1, w0
	mov	x0, x23
	bl	_dc_fixpt_mul
Lloh0:
	adrp	x8, _dc_fixpt_half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dc_fixpt_half@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, w0
	bl	_dc_fixpt_pow
	b	LBB0_3
LBB0_2:
	mov	w0, #12
	mov	w1, #1
	bl	_dc_fixpt_from_fraction
	mov	w1, w0
	mov	x0, x23
	bl	_dc_fixpt_mul
	mov	w0, w0
	mov	w1, w22
	bl	_dc_fixpt_sub
	mov	w0, w0
	bl	_dc_fixpt_log
	mov	w8, w20
	mov	w1, w0
	mov	x0, x8
	bl	_dc_fixpt_mul
	mov	w0, w0
	mov	w1, w21
	bl	_dc_fixpt_add
LBB0_3:
	str	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_fixpt_half,4,2              ; @dc_fixpt_half
	.no_dead_strip	_compute_hlg_oetf
.subsections_via_symbols
