	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_set_systematic_pal2     ## -- Begin function avpriv_set_systematic_pal2
	.p2align	4, 0x90
_avpriv_set_systematic_pal2:            ## @avpriv_set_systematic_pal2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_8
## %bb.1:
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	movl	%edx, %r10d
	movl	%edx, %r9d
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	shll	$8, %r10d
	shll	$16, %eax
	addl	%r10d, %eax
	addl	%r9d, %eax
	addl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%rdi,%rdx,4)
	incq	%rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %esi
	ja	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r8,%rsi,4), %rax
	addq	%r8, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	shrl	$3, %eax
	andl	$-4, %eax
	leal	(%rax,%rax,8), %eax
	movl	%edx, %ecx
	andl	$28, %ecx
	leal	(%rcx,%rcx,8), %r10d
	movl	%edx, %ecx
	andl	$3, %ecx
	imull	$85, %ecx, %r9d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %ecx
	shrl	$3, %ecx
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	movl	%edx, %ecx
	shrl	%ecx
	andl	$3, %ecx
	imull	$85, %ecx, %r10d
	movl	%edx, %ecx
	andl	$1, %ecx
	movl	%ecx, %r9d
	shll	$8, %r9d
	subl	%ecx, %r9d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	shrl	$6, %eax
	imull	$85, %eax, %r9d
	movl	%edx, %eax
	shrl	%eax
	andl	$28, %eax
	leal	(%rax,%rax,8), %r10d
	movl	%edx, %eax
	andl	$7, %eax
	shll	$2, %eax
	leal	(%rax,%rax,8), %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	shrl	$3, %eax
	movl	%eax, %r9d
	shll	$8, %r9d
	subl	%eax, %r9d
	movl	%edx, %eax
	shrl	%eax
	andl	$3, %eax
	imull	$85, %eax, %r10d
	movl	%edx, %ecx
	andl	$1, %ecx
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_set_systematic_pal2     ; -- Begin function avpriv_set_systematic_pal2
	.p2align	2
_avpriv_set_systematic_pal2:            ; @avpriv_set_systematic_pal2
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.1:
	mov	x9, #0
	mov	w10, #-16777216
	mov	w11, #85
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, x9
	mov	x14, x9
	mov	x13, x9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w15, w15, #16
	add	w14, w15, w14, lsl #8
	add	w13, w14, w13
	add	w13, w13, w10
	str	w13, [x0, x9, lsl #2]
	add	x9, x9, #1
	cmp	x9, #256
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x13, LBB0_2
	ldrb	w14, [x12, x8]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x13, x9, #5, #27
	add	w13, w13, w13, lsl #3
	lsl	w15, w13, #2
	ubfx	w13, w9, #2, #3
	bfi	w13, w13, #3, #3
	lsl	w14, w13, #2
	and	w13, w9, #0x3
	mul	w13, w13, w11
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x13, x9, #3, #29
	lsl	w14, w13, #8
	sub	w15, w14, w13
	ubfx	w13, w9, #1, #2
	mul	w14, w13, w11
	and	w13, w9, #0x1
	lsl	w16, w13, #8
	sub	w13, w16, w13
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x13, x9, #6, #26
	mul	w13, w13, w11
	ubfx	w14, w9, #3, #3
	bfi	w14, w14, #3, #3
	lsl	w14, w14, #2
	and	w15, w9, #0x7
	bfi	w15, w15, #3, #3
	lsl	w15, w15, #2
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x13, x9, #3, #29
	lsl	w14, w13, #8
	sub	w13, w14, w13
	ubfx	w14, w9, #1, #2
	mul	w14, w14, w11
	and	w15, w9, #0x1
	lsl	w16, w15, #8
	sub	w15, w16, w15
	b	LBB0_3
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
