	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_gamma_dx
_scale_gamma_dx:                        ## @scale_gamma_dx
	.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, %r15
	movq	%rdi, %rbx
	movq	_dc_fixpt_zero@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_dc_fixpt_one@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpq	$0, (%rsi)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	(%r15), %r14
	jae	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movl	%r12d, %edi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r14,4), %r12d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movl	%r12d, %edi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %r12d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movl	%r12d, %edi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %r12d
	jmp	LBB0_15
LBB0_16:
	movq	_dc_fixpt_zero@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_17
LBB0_1:
	movl	%r13d, %esi
LBB0_17:
	movl	%r13d, %edi
	callq	_dc_fixpt_lt
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	%r13d, %edi
	callq	_dc_fixpt_neg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_19:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_dc_fixpt_add
	cmpq	$0, (%r15)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.21:
	movl	%eax, %r12d
	leaq	16(%rbx), %r14
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_add
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_dc_fixpt_div
	movq	%rax, (%r14)
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_add
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_dc_fixpt_div
	movq	%rax, -8(%r14)
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_dc_fixpt_add
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_dc_fixpt_div
	movq	%rax, -16(%r14)
	incq	%rbx
	addq	$24, %r14
	cmpq	(%r15), %rbx
	jb	LBB0_22
	jmp	LBB0_23
LBB0_20:
	xorl	%ebx, %ebx
LBB0_23:
	leaq	(%rbx,%rbx,2), %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-8(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-32(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, 16(%rbx,%r14,8)
	movq	-16(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-40(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, 8(%rbx,%r14,8)
	movq	-24(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-48(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, (%rbx,%r14,8)
	movq	16(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-8(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, 40(%rbx,%r14,8)
	movq	8(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-16(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, 32(%rbx,%r14,8)
	movq	(%rbx,%r14,8), %rdi
	movl	$2, %esi
	callq	_dc_fixpt_mul_int
	movq	-24(%rbx,%r14,8), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_sub
	movq	%rax, 24(%rbx,%r14,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_fixpt_zero,4,2              ## @dc_fixpt_zero
	.comm	_dc_fixpt_one,4,2               ## @dc_fixpt_one
	.no_dead_strip	_scale_gamma_dx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_gamma_dx
_scale_gamma_dx:                        ; @scale_gamma_dx
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _dc_fixpt_zero@GOTPAGE
Lloh1:
	ldr	x24, [x24, _dc_fixpt_zero@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh2:
	adrp	x8, _dc_fixpt_one@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dc_fixpt_one@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_16
; %bb.1:
	mov	x25, #0
	mov	x26, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x8, [x20]
	cmp	x25, x8
	b.hs	LBB0_15
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x25, lsl #2]
	mov	w22, w26
	mov	x1, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	ldr	w22, [x8, x25, lsl #2]
	mov	x26, x22
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	w22, [x8, x25, lsl #2]
	mov	x26, x22
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w26, [x8, x25, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	mov	w22, w23
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	ldr	w22, [x8, x25, lsl #2]
	mov	x23, x22
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	w22, [x8, x25, lsl #2]
	mov	x23, x22
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w23, [x8, x25, lsl #2]
	b	LBB0_2
LBB0_15:
	ldr	w8, [x24]
	b	LBB0_17
LBB0_16:
	mov	x8, x21
	mov	x26, x21
LBB0_17:
	mov	w22, w26
	mov	w1, w8
	mov	x0, x22
	bl	_dc_fixpt_lt
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_dc_fixpt_neg
	mov	x21, x0
LBB0_19:
	mov	w1, w23
	mov	x0, x22
	bl	_dc_fixpt_add
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.20:
	mov	x23, #0
	mov	w21, w21
	add	x24, x19, #16
	mov	w22, w0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_dc_fixpt_add
	mov	w0, w0
	mov	x1, x22
	bl	_dc_fixpt_div
	str	x0, [x24]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_dc_fixpt_add
	mov	w0, w0
	mov	x1, x22
	bl	_dc_fixpt_div
	stur	x0, [x24, #-8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_dc_fixpt_add
	mov	w0, w0
	mov	x1, x22
	bl	_dc_fixpt_div
	stur	x0, [x24, #-16]
	add	x23, x23, #1
	ldr	x8, [x20]
	add	x24, x24, #24
	cmp	x23, x8
	b.lo	LBB0_21
	b	LBB0_23
LBB0_22:
	mov	x23, #0
LBB0_23:
	mov	w8, #24
	madd	x19, x23, x8, x19
	ldur	x0, [x19, #-8]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-32]
	bl	_dc_fixpt_sub
	str	x0, [x19, #16]
	ldur	x0, [x19, #-16]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-40]
	bl	_dc_fixpt_sub
	str	x0, [x19, #8]
	ldur	x0, [x19, #-24]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-48]
	bl	_dc_fixpt_sub
	str	x0, [x19]
	ldr	x0, [x19, #16]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-8]
	bl	_dc_fixpt_sub
	str	x0, [x19, #40]
	ldr	x0, [x19, #8]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-16]
	bl	_dc_fixpt_sub
	str	x0, [x19, #32]
	ldr	x0, [x19]
	mov	w1, #2
	bl	_dc_fixpt_mul_int
	ldur	x1, [x19, #-24]
	bl	_dc_fixpt_sub
	str	x0, [x19, #24]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_fixpt_zero,4,2              ; @dc_fixpt_zero
	.comm	_dc_fixpt_one,4,2               ; @dc_fixpt_one
	.no_dead_strip	_scale_gamma_dx
.subsections_via_symbols
