	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function fill_gamma_table
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
LCPI0_3:
	.quad	0x40dc000000000000              ## double 28672
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fill_gamma_table:                      ## @fill_gamma_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$208, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	8(%rcx), %xmm0                  ## xmm0 = mem[0],zero
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movsd	24(%rcx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	16(%rcx), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	24(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movl	$524288, %edi                   ## imm = 0x80000
	callq	_av_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movsd	LCPI0_0(%rip), %xmm6            ## xmm6 = mem[0],zero
	movapd	%xmm6, %xmm0
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movapd	%xmm6, %xmm0
	movsd	-80(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	divsd	%xmm3, %xmm0
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	addq	$262144, %rax                   ## imm = 0x40000
	movq	%rax, 8(%r14)
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	movapd	-144(%rbp), %xmm5               ## 16-byte Reload
	movapd	%xmm5, %xmm1
	xorpd	%xmm0, %xmm1
	movapd	%xmm1, -208(%rbp)               ## 16-byte Spill
	movapd	-128(%rbp), %xmm4               ## 16-byte Reload
	movapd	%xmm4, %xmm1
	xorpd	%xmm0, %xmm1
	movapd	%xmm1, -192(%rbp)               ## 16-byte Spill
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm4, %xmm1
	movapd	%xmm1, -176(%rbp)               ## 16-byte Spill
	xorpd	%xmm0, %xmm1
	movapd	%xmm1, -160(%rbp)               ## 16-byte Spill
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	xorpd	%xmm1, %xmm0
	mulsd	%xmm3, %xmm0
	movapd	%xmm0, -224(%rbp)               ## 16-byte Spill
	subsd	%xmm2, %xmm6
	movsd	%xmm6, -104(%rbp)               ## 8-byte Spill
	mulsd	%xmm3, %xmm1
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	xorl	%ebx, %ebx
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm5, %xmm1
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsd	-104(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movapd	%xmm0, %xmm1
	xorpd	LCPI0_1(%rip), %xmm1
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	_lrint
	movl	%eax, %edi
	callq	_av_clip_int16
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$32768, %rbx                    ## imm = 0x8000
	movapd	-144(%rbp), %xmm1               ## 16-byte Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2048(%rbx), %eax
	xorps	%xmm4, %xmm4
	cvtsi2sd	%eax, %xmm4
	divsd	%xmm3, %xmm4
	movapd	-208(%rbp), %xmm2               ## 16-byte Reload
	ucomisd	%xmm4, %xmm2
	movapd	%xmm4, -80(%rbp)                ## 16-byte Spill
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	ucomisd	%xmm4, %xmm1
	jbe	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	-96(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm4, %xmm0
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorpd	LCPI0_1(%rip), %xmm4
	movapd	%xmm4, %xmm0
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	-192(%rbp), %xmm0               ## 16-byte Folded Reload
	addsd	-176(%rbp), %xmm0               ## 16-byte Folded Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movapd	%xmm4, %xmm0
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	-128(%rbp), %xmm0               ## 16-byte Folded Reload
	addsd	-160(%rbp), %xmm0               ## 16-byte Folded Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	mulsd	%xmm3, %xmm0
	callq	_lrint
	movl	%eax, %edi
	callq	_av_clip_int16
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movapd	-224(%rbp), %xmm0               ## 16-byte Reload
	movapd	-80(%rbp), %xmm1                ## 16-byte Reload
	ucomisd	%xmm1, %xmm0
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	mulsd	-88(%rbp), %xmm1                ## 8-byte Folded Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	addsd	-24(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	LCPI0_2(%rip), %xmm1
	mulsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	%xmm1, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movapd	%xmm0, %xmm1
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	addq	$208, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$208, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fill_gamma_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_gamma_table
_fill_gamma_table:                      ; @fill_gamma_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d15, d14, [sp, #64]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #80]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #96]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	.cfi_offset b14, -104
	.cfi_offset b15, -112
	mov	x19, x0
	ldp	x9, x8, [x0, #16]
	ldp	d12, d11, [x8]
	ldp	d9, d10, [x8, #16]
	ldp	d13, d14, [x9]
	ldp	d8, d0, [x9, #16]
	str	d0, [sp, #32]                   ; 8-byte Folded Spill
	mov	w0, #524288
	bl	_av_malloc
	str	x0, [x19]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, #0
	fmov	d0, #1.00000000
	fdiv	d15, d0, d12
	fdiv	d9, d0, d9
	add	x8, x0, #64, lsl #12            ; =262144
	str	x8, [x19, #8]
	str	d14, [sp, #56]                  ; 8-byte Folded Spill
	fneg	d14, d14
	fneg	d3, d13
	fmov	d1, #-1.00000000
	fmov	d2, d12
	fadd	d12, d13, d1
	fneg	d1, d12
	stp	d1, d13, [sp, #8]               ; 16-byte Folded Spill
	fneg	d1, d11
	fmul	d13, d10, d1
	str	d2, [sp, #24]                   ; 8-byte Folded Spill
	fsub	d1, d0, d2
	stp	d1, d3, [sp, #40]               ; 16-byte Folded Spill
	fmul	d11, d11, d10
	mov	x21, #4673610513303732224
	fdiv	d0, d0, d10
	str	d0, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp, #40]                   ; 8-byte Folded Reload
	fsub	d0, d0, d10
	fmul	d0, d15, d0
	fmov	d1, d9
	bl	_pow
	fneg	d0, d0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	d1, x21
	fmul	d0, d0, d1
	bl	_lrint
	bl	_av_clip_int16
	ldr	x8, [x19]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	cmp	x20, #8, lsl #12                ; =32768
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2048
	scvtf	d0, w8
	fmov	d1, x21
	fdiv	d10, d0, d1
	fcmp	d10, d14
	b.ls	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp, #56]                   ; 8-byte Folded Reload
	fcmp	d10, d0
	b.pl	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp, #32]                   ; 8-byte Folded Reload
	fmul	d0, d0, d10
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	fneg	d0, d10
	fmov	d1, d8
	bl	_pow
	ldr	d1, [sp, #48]                   ; 8-byte Folded Reload
	fmadd	d0, d1, d0, d12
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	d0, d10
	fmov	d1, d8
	bl	_pow
	ldp	d2, d1, [sp, #8]                ; 16-byte Folded Reload
	fmadd	d0, d1, d0, d2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	d1, x21
	fmul	d0, d0, d1
	bl	_lrint
	bl	_av_clip_int16
	ldr	x8, [x19, #8]
	str	x0, [x8, x20, lsl #3]
	fcmp	d10, d13
	b.ls	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	fcmp	d10, d11
	b.pl	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp]                        ; 8-byte Folded Reload
	fmul	d0, d0, d10
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp, #24]                   ; 8-byte Folded Reload
	fadd	d0, d0, d10
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fmul	d0, d15, d0
	fmov	d1, d9
	bl	_pow
	b	LBB0_3
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #80]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_14:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #80]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fill_gamma_table
.subsections_via_symbols
