	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palToRgbWrapper
_palToRgbWrapper:                       ## @palToRgbWrapper
	.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	%rdi, %r12
	movq	16(%rbp), %rax
	movl	(%rdi), %r14d
	movl	4(%rdi), %edi
	movslq	(%rax), %rax
	movslq	%ecx, %rbx
	imulq	%rax, %rbx
	shlq	$2, %rbx
	addq	(%r9), %rbx
	movq	(%rsi), %r13
	movq	_AV_PIX_FMT_YA8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	leal	-128(%rdi), %eax
	cmpl	$6, %eax
	jae	LBB0_10
## %bb.2:
	cltq
	leaq	l_switch.table.palToRgbWrapper(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%r8d, %r15d
	callq	_usePal
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	leal	-128(%rdi), %eax
	cmpl	$6, %eax
	jae	LBB0_10
## %bb.5:
	movl	%r15d, %r8d
	cltq
	leaq	l_switch.table.palToRgbWrapper.1(%rip), %rcx
LBB0_6:
	leaq	(%rcx,%rax,8), %rax
	testl	%r8d, %r8d
	movq	16(%rbp), %rcx
	jle	LBB0_9
## %bb.7:
	movq	%r12, %r14
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edx
	movq	%rcx, %r12
	movq	16(%r14), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	%r12, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movslq	(%rdx), %rax
	leaq	(%r13,%rax,4), %r13
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rbx
	decl	%r15d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdi, %rbx
	movl	%r14d, %edi
	callq	_av_get_pix_fmt_name
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_av_log
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YA8,4,2             ## @AV_PIX_FMT_YA8
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error %s -> %s converter\n"

	.no_dead_strip	_palToRgbWrapper
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.palToRgbWrapper
l_switch.table.palToRgbWrapper:
	.quad	_gray8aToPacked32_1
	.quad	_gray8aToPacked32
	.quad	_gray8aToPacked24
	.quad	_gray8aToPacked32_1
	.quad	_gray8aToPacked32
	.quad	_gray8aToPacked24

	.p2align	3                               ## @switch.table.palToRgbWrapper.1
l_switch.table.palToRgbWrapper.1:
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked24
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked24

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palToRgbWrapper
_palToRgbWrapper:                       ; @palToRgbWrapper
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x19, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x0
	ldp	w26, w25, [x0]
	ldr	x27, [x5]
	ldr	w28, [x6]
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _AV_PIX_FMT_YA8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_YA8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_3
; %bb.1:
	sub	w8, w25, #128
	cmp	w8, #6
	b.hs	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table.palToRgbWrapper@PAGE
Lloh4:
	add	x9, x9, l_switch.table.palToRgbWrapper@PAGEOFF
	cmp	w19, #1
	b.ge	LBB0_6
	b	LBB0_8
LBB0_3:
	mov	x0, x26
	bl	_usePal
	sub	w8, w25, #128
	cmp	x0, #0
	ccmp	w8, #5, #2, ne
	b.ls	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x26
	bl	_av_get_pix_fmt_name
	mov	x22, x0
	mov	x0, x25
	bl	_av_get_pix_fmt_name
	mov	x4, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_av_log
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x9, l_switch.table.palToRgbWrapper.1@PAGE
Lloh11:
	add	x9, x9, l_switch.table.palToRgbWrapper.1@PAGEOFF
	cmp	w19, #1
	b.lt	LBB0_8
LBB0_6:
	mul	w10, w28, w24
	add	x24, x27, w10, sxtw #2
	ldr	x25, [x9, w8, sxtw #3]
	mov	x26, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, #8]
	ldr	x3, [x20, #16]
	mov	x0, x23
	mov	x1, x24
	blr	x25
	ldrsw	x8, [x22]
	add	x23, x23, x8, lsl #2
	ldrsw	x8, [x21]
	add	x24, x24, x8, lsl #2
	subs	w26, w26, #1
	b.ne	LBB0_7
LBB0_8:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YA8,4,2             ; @AV_PIX_FMT_YA8
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error %s -> %s converter\n"

	.no_dead_strip	_palToRgbWrapper
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.palToRgbWrapper
l_switch.table.palToRgbWrapper:
	.quad	_gray8aToPacked32_1
	.quad	_gray8aToPacked32
	.quad	_gray8aToPacked24
	.quad	_gray8aToPacked32_1
	.quad	_gray8aToPacked32
	.quad	_gray8aToPacked24

	.p2align	3                               ; @switch.table.palToRgbWrapper.1
l_switch.table.palToRgbWrapper.1:
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked24
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked32
	.quad	_sws_convertPalette8ToPacked24

.subsections_via_symbols
