	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_luma_lut
_apply_luma_lut:                        ## @apply_luma_lut
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.1:
	movslq	%r8d, %r8
	movslq	%edx, %r10
	movl	%r9d, %r15d
	leaq	-1(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	andl	$3, %r12d
	andl	$-4, %r15d
	shlq	$3, %r8
	shlq	$3, %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r8, %rcx
	addq	%r10, %rsi
	testl	%r14d, %r14d
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	decl	%r14d
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$3, -48(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rbx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, (%rsi,%rdx,8)
	movq	8(%rcx,%rdx,8), %rbx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, 8(%rsi,%rdx,8)
	movq	16(%rcx,%rdx,8), %rbx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, 16(%rsi,%rdx,8)
	movq	24(%rcx,%rdx,8), %rbx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, 24(%rsi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r15
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%rdx,8), %r13
	leaq	(%rcx,%rdx,8), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rbx,8), %r11
	movq	(%rax,%r11,8), %rdi
	movq	%rdi, (%r13,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_apply_luma_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_luma_lut
_apply_luma_lut:                        ; @apply_luma_lut
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	w6, LBB0_6
; %bb.1:
	mov	w10, w5
	sbfiz	x8, x2, #3, #32
	sbfiz	x9, x4, #3, #32
	lsl	x10, x10, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x1, x8
	add	x3, x3, x9
	cbz	w6, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sub	w6, w6, #1
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x12, [x0]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x3, x11]
	ldr	x13, [x12, x13, lsl #3]
	str	x13, [x1, x11]
	add	x11, x11, #8
	cmp	x10, x11
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_apply_luma_lut
.subsections_via_symbols
