	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_get_qtpalette
LCPI0_0:
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_get_qtpalette
	.p2align	4, 0x90
_ff_get_qtpalette:                      ## @ff_get_qtpalette
	.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	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	$82, %esi
	callq	_avio_seek
	movq	%r14, %rdi
	callq	_avio_rb16
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_avio_rb16
	xorl	%r9d, %r9d
	testb	$32, %r12b
	je	LBB0_2
## %bb.1:
	movq	_AV_CODEC_ID_CINEPAK@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	je	LBB0_33
LBB0_2:
	movl	%r12d, %ecx
	andl	$31, %ecx
	cmpl	$8, %ecx
	ja	LBB0_33
## %bb.3:
	movl	$278, %edx                      ## imm = 0x116
	btl	%ecx, %edx
	jae	LBB0_33
## %bb.4:
	testb	$32, %r12b
	je	LBB0_9
## %bb.5:
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.6:
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	$1, %r9d
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %esi
	leal	-1(%rsi), %edi
	xorl	%r8d, %r8d
	movw	$256, %ax                       ## imm = 0x100
	xorl	%edx, %edx
	divw	%di
	movzwl	%ax, %eax
	movl	$255, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	shll	$16, %ecx
	movl	%ebx, %edx
	shll	$8, %edx
	orl	%ebx, %edx
	orl	%ecx, %edx
	orl	$-16777216, %edx                ## imm = 0xFF000000
	movl	%edx, (%r15,%rdi,4)
	subl	%eax, %ebx
	testl	%ebx, %ebx
	cmovlel	%r8d, %ebx
	movl	%ebx, %ecx
	shll	$16, %ecx
	movl	%ebx, %edx
	shll	$8, %edx
	orl	%ebx, %edx
	orl	%ecx, %edx
	orl	$-16777216, %edx                ## imm = 0xFF000000
	movl	%edx, 4(%r15,%rdi,4)
	subl	%eax, %ebx
	testl	%ebx, %ebx
	cmovlel	%r8d, %ebx
	addq	$2, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_8
	jmp	LBB0_33
LBB0_9:
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	$1, %eax
	shll	%cl, %eax
	leal	-1(%rcx), %edx
	cmpl	$3, %edx
	ja	LBB0_17
## %bb.11:
	movslq	%edx, %rdx
	leaq	l_switch.table.ff_get_qtpalette(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	jmp	LBB0_18
LBB0_12:
	movq	%r14, %rdi
	callq	_avio_rb32
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_avio_rb16
	movq	%r14, %rdi
	callq	_avio_rb16
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %r9d
	cmpl	$255, %r13d
	jg	LBB0_33
## %bb.13:
	cmpl	$255, %eax
	jg	LBB0_33
## %bb.14:
	cmpl	%eax, %r13d
	jg	LBB0_33
## %bb.15:
	movslq	%r13d, %rcx
	leaq	(%r15,%rcx,4), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	subl	%r13d, %eax
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_avio_r8
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_avio_r8
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_avio_r8
	shll	$16, %r15d
	shll	$8, %ebx
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	orl	$-16777216, %ebx                ## imm = 0xFF000000
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r12,4)
	incq	%r12
	cmpl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_16
	jmp	LBB0_32
LBB0_17:
	movq	_ff_qt_default_palette_256@GOTPCREL(%rip), %rdx
LBB0_18:
	movq	(%rdx), %rbx
	movl	%eax, %eax
	cmpl	$2, %ecx
	jb	LBB0_19
## %bb.20:
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rbx,%rcx,4), %rcx
	cmpq	%r15, %rcx
	jbe	LBB0_23
## %bb.21:
	leaq	(%r15,%rax,4), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_23
LBB0_19:
	xorl	%ecx, %ecx
LBB0_30:
	leaq	(%rcx,%rcx,2), %rdx
	leaq	(%rbx,%rdx,4), %rdx
	addq	$8, %rdx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rdx), %esi
	movl	-4(%rdx), %edi
	shll	$16, %esi
	shll	$8, %edi
	orl	%esi, %edi
	orl	(%rdx), %edi
	orl	$-16777216, %edi                ## imm = 0xFF000000
	movl	%edi, (%r15,%rcx,4)
	incq	%rcx
	addq	$12, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_31
LBB0_32:
	movl	$1, %r9d
LBB0_33:
	movl	%r9d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %ecx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	leaq	-4(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.24:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4278190080,4278190080,4278190080,4278190080]
	movq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx), %xmm1
	movdqu	16(%rdx), %xmm2
	movups	32(%rdx), %xmm3
	movdqa	%xmm2, %xmm4
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	pshufd	$238, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,2,3]
	shufps	$236, %xmm2, %xmm1              ## xmm1 = xmm1[0,3],xmm2[2,3]
	insertps	$112, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2],xmm3[1]
	pshufd	$170, %xmm3, %xmm6              ## xmm6 = xmm3[2,2,2,2]
	pshufd	$241, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,3,3]
	pblendw	$192, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3,4,5],xmm6[6,7]
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	shufps	$196, %xmm3, %xmm5              ## xmm5 = xmm5[0,1],xmm3[0,3]
	pslld	$16, %xmm1
	por	%xmm5, %xmm1
	pslld	$8, %xmm4
	por	%xmm1, %xmm4
	por	%xmm0, %xmm4
	movdqu	%xmm4, (%r15,%rsi,4)
	movdqu	48(%rdx), %xmm1
	movdqu	64(%rdx), %xmm2
	movups	80(%rdx), %xmm3
	movdqa	%xmm2, %xmm4
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	pshufd	$238, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,2,3]
	shufps	$236, %xmm2, %xmm1              ## xmm1 = xmm1[0,3],xmm2[2,3]
	insertps	$112, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2],xmm3[1]
	pshufd	$170, %xmm3, %xmm6              ## xmm6 = xmm3[2,2,2,2]
	pshufd	$241, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,3,3]
	pblendw	$192, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3,4,5],xmm6[6,7]
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	shufps	$196, %xmm3, %xmm5              ## xmm5 = xmm5[0,1],xmm3[0,3]
	pslld	$16, %xmm1
	por	%xmm5, %xmm1
	pslld	$8, %xmm4
	por	%xmm1, %xmm4
	por	%xmm0, %xmm4
	movdqu	%xmm4, 16(%r15,%rsi,4)
	addq	$8, %rsi
	addq	$96, %rdx
	addq	$-2, %rdi
	jne	LBB0_25
	jmp	LBB0_27
LBB0_26:
	xorl	%esi, %esi
LBB0_27:
	testb	$1, %r8b
	je	LBB0_29
## %bb.28:
	leaq	(%rsi,%rsi,2), %rdx
	movdqu	(%rbx,%rdx,4), %xmm0
	movdqu	16(%rbx,%rdx,4), %xmm1
	movups	32(%rbx,%rdx,4), %xmm2
	movdqa	%xmm1, %xmm3
	pblendw	$12, %xmm0, %xmm3               ## xmm3 = xmm3[0,1],xmm0[2,3],xmm3[4,5,6,7]
	pshufd	$238, %xmm0, %xmm4              ## xmm4 = xmm0[2,3,2,3]
	shufps	$236, %xmm1, %xmm0              ## xmm0 = xmm0[0,3],xmm1[2,3]
	insertps	$112, %xmm2, %xmm0              ## xmm0 = xmm0[0,1,2],xmm2[1]
	pshufd	$170, %xmm2, %xmm5              ## xmm5 = xmm2[2,2,2,2]
	pshufd	$241, %xmm3, %xmm3              ## xmm3 = xmm3[1,0,3,3]
	pblendw	$192, %xmm5, %xmm3              ## xmm3 = xmm3[0,1,2,3,4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	shufps	$196, %xmm2, %xmm4              ## xmm4 = xmm4[0,1],xmm2[0,3]
	pslld	$16, %xmm0
	por	%xmm4, %xmm0
	pslld	$8, %xmm3
	por	%xmm0, %xmm3
	por	LCPI0_0(%rip), %xmm3
	movdqu	%xmm3, (%r15,%rsi,4)
LBB0_29:
	movl	$1, %r9d
	cmpq	%rax, %rcx
	je	LBB0_33
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_AV_CODEC_ID_CINEPAK,4,2        ## @AV_CODEC_ID_CINEPAK
	.comm	_ff_qt_default_palette_2,8,3    ## @ff_qt_default_palette_2
	.comm	_ff_qt_default_palette_4,8,3    ## @ff_qt_default_palette_4
	.comm	_ff_qt_default_palette_16,8,3   ## @ff_qt_default_palette_16
	.comm	_ff_qt_default_palette_256,8,3  ## @ff_qt_default_palette_256
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ff_get_qtpalette
l_switch.table.ff_get_qtpalette:
	.quad	_ff_qt_default_palette_2
	.quad	_ff_qt_default_palette_4
	.quad	_ff_qt_default_palette_256
	.quad	_ff_qt_default_palette_16

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_get_qtpalette               ; -- Begin function ff_get_qtpalette
	.p2align	2
_ff_get_qtpalette:                      ; @ff_get_qtpalette
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #82
	bl	_avio_seek
	mov	x0, x20
	bl	_avio_rb16
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb16
	mov	x8, x0
	tbz	w21, #5, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _AV_CODEC_ID_CINEPAK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_CINEPAK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w22
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_28
LBB0_3:
	mov	w0, #0
	and	x10, x21, #0x1f
	cmp	w10, #8
	b.hi	LBB0_28
; %bb.4:
	mov	w9, #1
	lsl	w9, w9, w10
	mov	w11, #278
	tst	w9, w11
	b.eq	LBB0_28
; %bb.5:
	tbz	w21, #5, LBB0_10
; %bb.6:
	cmp	w10, #2
	b.lo	LBB0_10
; %bb.7:
	cbz	w8, LBB0_10
; %bb.8:
	mov	w8, #1
	lsl	w8, w8, w10
	sub	w9, w8, #1
	and	w9, w9, #0xffff
	mov	w11, #256
	mov	w10, #255
	udiv	w9, w11, w9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	orr	w11, w10, w10, lsl #8
	orr	w11, w11, w10, lsl #16
	orr	w11, w11, #0xff000000
	str	w11, [x19], #4
	sub	w10, w10, w9
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	subs	x8, x8, #1
	b.ne	LBB0_9
	b	LBB0_27
LBB0_10:
	cbz	w8, LBB0_13
; %bb.11:
	mov	w8, #1
	lsl	w8, w8, w10
	sub	x9, x10, #1
	cmp	w9, #3
	b.hi	LBB0_18
; %bb.12:
Lloh6:
	adrp	x11, l_switch.table.ff_get_qtpalette@PAGE
Lloh7:
	add	x11, x11, l_switch.table.ff_get_qtpalette@PAGEOFF
	ldr	x9, [x11, x9, lsl #3]
	b	LBB0_19
LBB0_13:
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb16
	mov	x0, x20
	bl	_avio_rb16
	mov	x8, x0
	mov	w0, #1
	cmp	w21, #255
	b.gt	LBB0_28
; %bb.14:
	cmp	w8, #255
	b.gt	LBB0_28
; %bb.15:
	cmp	w21, w8
	b.gt	LBB0_28
; %bb.16:
	add	x23, x19, w21, sxtw #2
	sub	w8, w8, w21
	add	w24, w8, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #2
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_r8
	mov	x19, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_r8
	mov	x22, x0
	mov	x0, x20
	bl	_avio_r8
	lsl	w8, w19, #16
	orr	w8, w8, w21, lsl #8
	orr	w8, w8, w22
	orr	w8, w8, #0xff000000
	str	w8, [x23], #4
	subs	w24, w24, #1
	b.ne	LBB0_17
	b	LBB0_27
LBB0_18:
Lloh8:
	adrp	x9, _ff_qt_default_palette_256@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ff_qt_default_palette_256@GOTPAGEOFF]
LBB0_19:
	ldr	x9, [x9]
	cmp	w10, #4
	b.lo	LBB0_24
; %bb.20:
	add	x10, x19, x8, lsl #2
	mov	w11, #12
	madd	x11, x8, x11, x9
	cmp	x11, x19
	ccmp	x9, x10, #2, hi
	b.lo	LBB0_24
; %bb.21:
	and	x10, x8, #0x7ffffff0
	add	x11, x19, #32
	add	x12, x9, #96
	mov	x13, x10
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #96
	sub	x15, x12, #48
	ld3.4s	{ v0, v1, v2 }, [x14]
	ld3.4s	{ v3, v4, v5 }, [x15]
	mov	x14, x12
	ld3.4s	{ v16, v17, v18 }, [x14], #48
	ld3.4s	{ v19, v20, v21 }, [x14]
	shl.4s	v6, v0, #16
	shl.4s	v7, v3, #16
	shl.4s	v22, v16, #16
	shl.4s	v23, v19, #16
	shl.4s	v24, v1, #8
	shl.4s	v25, v4, #8
	shl.4s	v26, v17, #8
	shl.4s	v27, v20, #8
	orr.16b	v6, v6, v24
	orr.16b	v7, v7, v25
	orr.16b	v22, v22, v26
	orr.16b	v23, v23, v27
	orr.16b	v0, v6, v2
	orr.16b	v1, v7, v5
	orr.16b	v2, v22, v18
	orr.16b	v3, v23, v21
	orr.4s	v0, #255, lsl #24
	orr.4s	v1, #255, lsl #24
	orr.4s	v2, #255, lsl #24
	stp	q0, q1, [x11, #-32]
	orr.4s	v3, #255, lsl #24
	stp	q2, q3, [x11], #64
	add	x12, x12, #192
	subs	x13, x13, #16
	b.ne	LBB0_22
; %bb.23:
	cmp	x10, x8
	b.ne	LBB0_25
	b	LBB0_27
LBB0_24:
	mov	x10, #0
LBB0_25:
	mov	w11, #12
	mul	x11, x10, x11
	add	x9, x11, x9
	add	x9, x9, #8
	add	x11, x19, x10, lsl #2
	sub	x8, x8, x10
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	w10, w12, [x9, #-8]
	ldr	w13, [x9], #12
	lsl	w10, w10, #16
	orr	w10, w10, w12, lsl #8
	orr	w10, w10, w13
	orr	w10, w10, #0xff000000
	str	w10, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_26
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_AV_CODEC_ID_CINEPAK,4,2        ; @AV_CODEC_ID_CINEPAK
	.comm	_ff_qt_default_palette_2,8,3    ; @ff_qt_default_palette_2
	.comm	_ff_qt_default_palette_4,8,3    ; @ff_qt_default_palette_4
	.comm	_ff_qt_default_palette_16,8,3   ; @ff_qt_default_palette_16
	.comm	_ff_qt_default_palette_256,8,3  ; @ff_qt_default_palette_256
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ff_get_qtpalette
l_switch.table.ff_get_qtpalette:
	.quad	_ff_qt_default_palette_2
	.quad	_ff_qt_default_palette_4
	.quad	_ff_qt_default_palette_256
	.quad	_ff_qt_default_palette_16

.subsections_via_symbols
