	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pal_v2
_decode_pal_v2:                         ## @decode_pal_v2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movl	(%rsi), %r15d
	cmpl	%eax, %r15d
	jg	LBB0_9
## %bb.3:
	leal	(%r15,%r15,2), %ecx
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jle	LBB0_4
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	leal	(%r15,%r15,2), %r14d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.5:
	movl	(%rdi), %ecx
	subl	%eax, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	movslq	%ecx, %r12
	addq	$4, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_AV_RB24
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	addq	$12, %r13
	cmpq	%rbx, %r15
	jne	LBB0_6
LBB0_7:
	incl	%r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_pal_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pal_v2
_decode_pal_v2:                         ; @decode_pal_v2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w20, [x19], #4
	cmp	w20, w8
	add	w21, w20, w20, lsl #1
	add	w9, w21, #2
	ccmp	w9, w2, #0, le
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	w9, [x0]
	sub	w8, w9, w8
	add	w8, w8, #256
	sxtw	x22, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_AV_RB24
	str	w0, [x22], #4
	add	x19, x19, #12
	subs	x20, x20, #1
	b.ne	LBB0_6
LBB0_7:
	add	w0, w21, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_pal_v2
.subsections_via_symbols
