	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_lut
_apply_lut:                             ## @apply_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, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %r10d
	testl	%r10d, %r10d
	je	LBB0_10
## %bb.1:
	movl	24(%rbp), %r11d
	movslq	16(%rbp), %rax
	movslq	%ecx, %rcx
	movl	%r11d, %r13d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	andl	$-2, %r13d
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	addq	%rax, %r9
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rsi
	addq	%rax, %rdx
	testl	%r10d, %r10d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	decl	%r10d
	testl	%r11d, %r11d
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	8(%rax), %r15
	cmpl	$1, %r11d
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r8,%rbx,4), %r14
	movslq	(%r9,%rbx,4), %r10
	movq	(%r12,%r14,8), %r11
	movl	(%r11,%r10,4), %edi
	movl	%edi, (%rsi,%rbx,4)
	movq	(%r15,%r14,8), %rdi
	movl	(%rdi,%r10,4), %edi
	movl	%edi, (%rdx,%rbx,4)
	movslq	4(%r8,%rbx,4), %rdi
	movslq	4(%r9,%rbx,4), %rcx
	movq	(%r12,%rdi,8), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%rsi,%rbx,4)
	movq	(%r15,%rdi,8), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%rdx,%rbx,4)
	addq	$2, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movl	24(%rbp), %r11d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r8,%rbx,4), %rax
	movslq	(%r9,%rbx,4), %rcx
	movq	(%r12,%rax,8), %rdi
	movl	(%rdi,%rcx,4), %edi
	movl	%edi, (%rsi,%rbx,4)
	movq	(%r15,%rax,8), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%rdx,%rbx,4)
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_apply_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_lut
_apply_lut:                             ; @apply_lut
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w6 killed $w6 def $x6
                                        ; kill: def $w3 killed $w3 def $x3
	ldr	w8, [sp]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w11, w7
	sbfiz	x9, x3, #2, #32
	sbfiz	x10, x6, #2, #32
	lsl	x11, x11, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x2, x9
	add	x1, x1, x9
	add	x5, x5, x10
	add	x4, x4, x10
	cbz	w8, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sub	w8, w8, #1
	cmp	w7, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	ldp	x13, x14, [x0]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x15, [x4, x12]
	ldrsw	x16, [x5, x12]
	lsl	x15, x15, #3
	ldr	x17, [x13, x15]
	lsl	x16, x16, #2
	ldr	w17, [x17, x16]
	str	w17, [x1, x12]
	ldr	x15, [x14, x15]
	ldr	w15, [x15, x16]
	str	w15, [x2, x12]
	add	x12, x12, #4
	cmp	x11, x12
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_apply_lut
.subsections_via_symbols
