	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %r15
	movq	8(%r15), %rax
	movq	16(%r15), %r13
	movq	(%rax), %r12
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%rbx, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%rbx, -64(%rbp)
	movq	%r14, -72(%rbp)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r13d
	movl	(%r12), %r12d
	movq	%r15, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	cmpq	%rbx, %r14
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	%r14, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$40, %rsp
	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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	str	x1, [sp, #24]
	ldr	x20, [x0, #8]
	ldp	x8, x23, [x20, #8]
	ldr	x22, [x8]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x21, x19
	cbnz	x0, LBB0_3
; %bb.1:
	ldp	w2, w1, [x22]
	mov	x0, x22
	bl	_ff_get_video_buffer
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_av_frame_copy_props
LBB0_3:
	stp	x21, x19, [sp, #8]
	ldr	x8, [x20]
	ldr	x24, [x8]
	ldr	w23, [x23]
	ldr	w22, [x22]
	mov	x0, x20
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x22
	bl	_FFMIN
	mov	x4, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x3, #0
	blr	x24
	cmp	x21, x19
	b.eq	LBB0_5
LBB0_4:
	add	x0, sp, #24
	bl	_av_frame_free
	mov	x19, x21
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_apply_lut
.subsections_via_symbols
