	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcx_decode_frame
_pcx_decode_frame:                      ## @pcx_decode_frame
	.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	$200, %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	%rdi, %r13
	movl	(%rcx), %edx
	movq	_PCX_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movl	4(%rcx), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	cmpl	$10, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_byteu
	cmpl	$6, %eax
	jl	LBB0_7
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	movq	%r13, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -224(%rbp)                ## 8-byte Spill
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, 8(%r13)
	subl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.8:
	subl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.9:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	incl	%r15d
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$49, %esi
	callq	_bytestream2_skipu
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, %rdx
	movl	%r12d, %ecx
	imull	%edx, %ecx
	movl	%r12d, %esi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %esi
	movl	%esi, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	imull	%r15d, %eax
	addl	$7, %eax
	shrl	$3, %eax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	jae	LBB0_12
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_5
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_12:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r15d
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_14
## %bb.13:
	leaq	-44(%rbp), %rdi
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%esi, %r15d
	callq	_bytestream2_get_bytes_left
	movl	%r15d, %esi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	xorl	%edx, %edx
	divl	%r15d
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	ja	LBB0_10
LBB0_14:
	movl	%r12d, %eax
	shll	$8, %eax
	addl	%ebx, %eax
	cmpl	$512, %eax                      ## imm = 0x200
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	jg	LBB0_17
## %bb.15:
	addl	$-257, %eax                     ## imm = 0xFEFF
	cmpl	$7, %eax
	ja	LBB0_20
## %bb.16:
	movl	$139, %ecx
	btl	%eax, %ecx
	jb	LBB0_23
	jmp	LBB0_20
LBB0_17:
	cmpl	$775, %eax                      ## imm = 0x307
	jg	LBB0_21
## %bb.18:
	cmpl	$513, %eax                      ## imm = 0x201
	je	LBB0_23
## %bb.19:
	cmpl	$769, %eax                      ## imm = 0x301
	je	LBB0_23
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_5
LBB0_21:
	cmpl	$776, %eax                      ## imm = 0x308
	je	LBB0_49
## %bb.22:
	cmpl	$1025, %eax                     ## imm = 0x401
	jne	LBB0_20
LBB0_23:
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	leaq	-44(%rbp), %rdi
	movl	$60, %esi
	callq	_bytestream2_skipu
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_47
## %bb.25:
	movq	%r13, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_47
## %bb.26:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rax), %r12
	movl	(%rcx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_48
## %bb.27:
	movq	%rax, %r15
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	cmpl	$3, %ecx
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_50
## %bb.28:
	cmpl	$8, %eax
	jne	LBB0_50
## %bb.29:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_90
## %bb.30:
	movq	%rsi, %r13
	addq	%rsi, %r13
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	leaq	-1(%rbx), %rdi
	leal	(%rsi,%rsi), %r14d
	movl	%r13d, %eax
	leaq	(%r15,%rax,4), %rcx
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	addq	%rbx, %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rbx,2), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	%esi, %eax
	leaq	(%r15,%rax,4), %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	addq	%rbx, %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	leaq	(%r15,%rbx,4), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	shrq	$32, %rax
	setne	%r8b
	movl	$3, %ecx
	movl	%edi, %eax
	mull	%ecx
	seto	%cl
	cmpl	$-1, %eax
	sete	%r9b
	cmpl	$-2, %eax
	setae	%r10b
	orb	%r8b, %cl
	orb	%cl, %r10b
	movl	%esi, %eax
	addl	%edi, %eax
	setb	%r11b
	orb	%r8b, %r11b
	addl	%edi, %r14d
	setb	%sil
	orb	%r8b, %sil
	movl	$12, %edx
	movq	%rdi, %rax
	mulq	%rdx
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	seto	-128(%rbp)                      ## 1-byte Folded Spill
	orb	%r9b, %cl
	orb	%r10b, %cl
	orb	%r11b, %sil
	orb	%cl, %sil
	movb	%sil, -152(%rbp)                ## 1-byte Spill
	movl	%ebx, %eax
	andl	$-4, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%r12, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %r14
	movq	%r11, %rax
	incq	%rax
	cmpl	%r10d, %r11d
	je	LBB0_72
LBB0_32:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_42 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
	movq	%rax, %r13
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_pcx_rle_decode
	testl	%eax, %eax
	js	LBB0_98
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %r11
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_31
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$4, -64(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_35
LBB0_44:                                ##   in Loop: Header=BB0_32 Depth=1
	xorl	%eax, %eax
LBB0_45:                                ##   in Loop: Header=BB0_32 Depth=1
	leal	(%rax,%rax,2), %ecx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rax,4), %edx
	movl	%ecx, %esi
	movl	%edx, (%r14,%rsi,4)
	leal	(%rdi,%rax), %edx
	movl	(%r15,%rdx,4), %edx
	leal	1(%rcx), %esi
	movl	%edx, (%r14,%rsi,4)
	leal	(%r13,%rax), %edx
	movl	(%r15,%rdx,4), %edx
	leal	2(%rcx), %esi
	movl	%edx, (%r14,%rsi,4)
	incq	%rax
	addl	$3, %ecx
	cmpq	%rax, %rbx
	jne	LBB0_46
	jmp	LBB0_31
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	%r11, %rcx
	imulq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rax
	addq	$4, %rax
	leaq	(%rdx,%rcx,4), %r8
	addq	$8, %r8
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rax,%rdx), %rsi
	cmpq	%rax, %rsi
	setb	%al
	movb	-128(%rbp), %r9b                ## 1-byte Reload
	orb	%r9b, %al
	leaq	(%r8,%rdx), %rsi
	cmpq	%r8, %rsi
	setb	%r8b
	leaq	(%r14,%rdx), %rsi
	cmpq	%r14, %rsi
	setb	%sil
	orb	-152(%rbp), %al                 ## 1-byte Folded Reload
	jne	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	orb	%r9b, %r8b
	jne	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_32 Depth=1
	orb	%r9b, %sil
	movl	$0, %eax
	jne	LBB0_45
## %bb.38:                              ##   in Loop: Header=BB0_32 Depth=1
	addq	-192(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	cmpq	%rcx, -208(%rbp)                ## 8-byte Folded Reload
	setb	%r8b
	cmpq	-200(%rbp), %r14                ## 8-byte Folded Reload
	setb	%dl
	cmpq	%rcx, -184(%rbp)                ## 8-byte Folded Reload
	setb	%al
	cmpq	-176(%rbp), %r14                ## 8-byte Folded Reload
	setb	%r9b
	cmpq	%rcx, %r15
	setb	%cl
	cmpq	-168(%rbp), %r14                ## 8-byte Folded Reload
	setb	%sil
	testb	%dl, %r8b
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_32 Depth=1
	andb	%r9b, %al
	jne	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	$0, %eax
	andb	%sil, %cl
	jne	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_32 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	-160(%rbp), %rsi                ## 8-byte Reload
LBB0_42:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r15,%rcx,4), %xmm0
	leal	(%rdi,%rcx), %edx
	movdqu	(%r15,%rdx,4), %xmm1
	leal	(%rcx,%r13), %edx
	andl	$-2, %edx
	movdqu	(%r15,%rdx,4), %xmm2
	movl	%eax, %edx
	andl	$-4, %edx
	pshufd	$68, %xmm0, %xmm3               ## xmm3 = xmm0[0,1,0,1]
	pshufd	$80, %xmm1, %xmm4               ## xmm4 = xmm1[0,0,1,1]
	pblendw	$243, %xmm3, %xmm4              ## xmm4 = xmm3[0,1],xmm4[2,3],xmm3[4,5,6,7]
	pshufd	$68, %xmm2, %xmm3               ## xmm3 = xmm2[0,1,0,1]
	pblendw	$207, %xmm4, %xmm3              ## xmm3 = xmm4[0,1,2,3],xmm3[4,5],xmm4[6,7]
	pshufd	$165, %xmm1, %xmm4              ## xmm4 = xmm1[1,1,2,2]
	pblendw	$48, %xmm0, %xmm4               ## xmm4 = xmm4[0,1,2,3],xmm0[4,5],xmm4[6,7]
	shufps	$255, %xmm1, %xmm0              ## xmm0 = xmm0[3,3],xmm1[3,3]
	pshufd	$238, %xmm2, %xmm1              ## xmm1 = xmm2[2,3,2,3]
	pblendw	$60, %xmm0, %xmm1               ## xmm1 = xmm1[0,1],xmm0[2,3,4,5],xmm1[6,7]
	pblendw	$12, %xmm2, %xmm4               ## xmm4 = xmm4[0,1],xmm2[2,3],xmm4[4,5,6,7]
	movdqu	%xmm4, 16(%r14,%rdx,4)
	movdqu	%xmm1, 32(%r14,%rdx,4)
	movdqu	%xmm3, (%r14,%rdx,4)
	addq	$4, %rcx
	addq	$12, %rax
	cmpq	%rcx, %rsi
	jne	LBB0_42
## %bb.43:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rsi, %rax
	cmpq	%rbx, %rsi
	je	LBB0_31
	jmp	LBB0_45
LBB0_47:
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_48:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_49:
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_50:
	cmpl	$1, %ecx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	jne	LBB0_57
## %bb.51:
	cmpl	$8, %eax
	jne	LBB0_57
## %bb.52:
	movl	(%r14), %eax
	cmpl	$769, %eax                      ## imm = 0x301
	jge	LBB0_65
## %bb.53:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_54
LBB0_57:
	cmpl	$1, %ecx
	jne	LBB0_75
## %bb.58:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_72
## %bb.59:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, -96(%rbp)                   ## 8-byte Folded Spill
	xorl	%eax, %eax
	leaq	-228(%rbp), %rdi
	movq	%r15, -216(%rbp)                ## 8-byte Spill
	jmp	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_61 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leal	1(%rcx), %eax
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	cmpl	-88(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movq	-216(%rbp), %r15                ## 8-byte Reload
	je	LBB0_72
LBB0_61:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_64 Depth 2
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %r14
	movq	%rdi, %r13
	movq	%r15, %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_init_get_bits8
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_pcx_rle_decode
	testl	%eax, %eax
	js	LBB0_98
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r12
	movq	%r13, %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_60
## %bb.63:                              ##   in Loop: Header=BB0_61 Depth=1
	xorl	%ebx, %ebx
LBB0_64:                                ##   Parent Loop BB0_61 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%ecx, %r13d
	movl	%ecx, %esi
	callq	_get_bits
	movl	%r13d, %ecx
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_64
	jmp	LBB0_60
LBB0_65:
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_69
## %bb.66:
	shlq	$2, -96(%rbp)                   ## 8-byte Folded Spill
LBB0_67:                                ## =>This Inner Loop Header: Depth=1
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_pcx_rle_decode
	testl	%eax, %eax
	js	LBB0_98
## %bb.68:                              ##   in Loop: Header=BB0_67 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	addq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	decl	-56(%rbp)                       ## 4-byte Folded Spill
	jne	LBB0_67
LBB0_69:
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	addl	$-769, %ebx                     ## imm = 0xFCFF
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	cmpl	%ebx, %eax
	je	LBB0_71
## %bb.70:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movl	%ebx, %esi
	callq	_bytestream2_seek
LBB0_71:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_byte
	cmpl	$12, %eax
	jne	LBB0_97
LBB0_72:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	movl	%eax, %r12d
	cmpl	$1, -136(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_91
## %bb.73:
	cmpl	$8, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_91
## %bb.74:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	leaq	-44(%rbp), %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_pcx_palette
	addl	$768, %r12d                     ## imm = 0x300
	jmp	LBB0_95
LBB0_75:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_90
## %bb.76:
	leal	-1(%rcx), %edi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ecx, %r14d
	andl	$-2, %r14d
	leal	-2(%rcx), %eax
	imull	%edx, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leal	(%rdx,%rdx), %r13d
	movl	%edi, %eax
	imull	%edx, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_78
LBB0_77:                                ##   in Loop: Header=BB0_78 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	-88(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
	je	LBB0_72
LBB0_78:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_83 Depth 2
                                        ##       Child Loop BB0_86 Depth 3
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_pcx_rle_decode
	testl	%eax, %eax
	js	LBB0_98
## %bb.79:                              ##   in Loop: Header=BB0_78 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	-136(%rbp), %r11                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_77
## %bb.80:                              ##   in Loop: Header=BB0_78 Depth=1
	xorl	%r9d, %r9d
	jmp	LBB0_83
LBB0_81:                                ##   in Loop: Header=BB0_83 Depth=2
	xorl	%ecx, %ecx
LBB0_82:                                ##   in Loop: Header=BB0_83 Depth=2
	movl	%ecx, (%rdx,%r9,4)
	incq	%r9
	cmpq	%rbx, %r9
	je	LBB0_77
LBB0_83:                                ##   Parent Loop BB0_78 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_86 Depth 3
	movl	%r9d, %ecx
	andb	$7, %cl
	movl	$128, %r10d
	shrl	%cl, %r10d
	testl	%edi, %edi
	js	LBB0_81
## %bb.84:                              ##   in Loop: Header=BB0_83 Depth=2
	movl	%r9d, %r8d
	shrl	$3, %r8d
	testl	%edi, %edi
	je	LBB0_88
## %bb.85:                              ##   in Loop: Header=BB0_83 Depth=2
	movq	%rbx, %r12
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r8), %edi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r8), %esi
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_86:                                ##   Parent Loop BB0_78 Depth=1
                                        ##     Parent Loop BB0_83 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%esi, %eax
	xorl	%edx, %edx
	testl	%r10d, (%r15,%rax,4)
	setne	%dl
	addl	%edx, %edx
	leal	(%rdx,%rcx,4), %eax
	movl	%edi, %edx
	xorl	%ecx, %ecx
	testl	%r10d, (%r15,%rdx,4)
	setne	%cl
	orl	%eax, %ecx
	addl	$2, %ebx
	subl	%r13d, %edi
	subl	%r13d, %esi
	cmpl	%ebx, %r14d
	jne	LBB0_86
## %bb.87:                              ##   in Loop: Header=BB0_83 Depth=2
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %esi
	subl	%ebx, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rbx
	testb	$1, %r11b
	je	LBB0_82
	jmp	LBB0_89
LBB0_88:                                ##   in Loop: Header=BB0_83 Depth=2
	xorl	%ecx, %ecx
	movl	%edi, %esi
	testb	$1, %r11b
	je	LBB0_82
LBB0_89:                                ##   in Loop: Header=BB0_83 Depth=2
	imull	-104(%rbp), %esi                ## 4-byte Folded Reload
	addl	%r8d, %esi
	xorl	%eax, %eax
	testl	%r10d, (%r15,%rsi,4)
	setne	%al
	leal	(%rax,%rcx,2), %ecx
	jmp	LBB0_82
LBB0_98:
	movl	%eax, %r12d
	jmp	LBB0_96
LBB0_90:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	movl	%eax, %r12d
LBB0_91:
	cmpl	$1, -108(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_93
## %bb.92:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	movl	$-16777216, %esi                ## imm = 0xFF000000
	callq	_AV_WN32A
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	addq	$16, %rdi
	movl	$-1, %esi
	callq	_AV_WN32A
	jmp	LBB0_95
LBB0_93:
	cmpl	$7, -68(%rbp)                   ## 4-byte Folded Reload
	ja	LBB0_95
## %bb.94:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_bytestream2_seek
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_pcx_palette
LBB0_95:
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_96
LBB0_97:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
LBB0_54:
	movq	%r13, %rdi
	callq	_av_log
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_56
## %bb.55:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r14
LBB0_56:
	movl	(%r14), %r12d
LBB0_96:
	movq	%r15, %rdi
	callq	_av_free
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PCX_HEADER_SIZE,4,2            ## @PCX_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"this is not PCX encoded data\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid image dimensions\n"

L_.str.3:                               ## @.str.3
	.asciz	"PCX data is corrupted\n"

	.comm	_AV_PIX_FMT_RGB24,4,2           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_PAL8,4,2            ## @AV_PIX_FMT_PAL8
L_.str.4:                               ## @.str.4
	.asciz	"invalid PCX file\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"File is too short\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.6:                               ## @.str.6
	.asciz	"image data possibly corrupted\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.7:                               ## @.str.7
	.asciz	"expected palette after image data\n"

	.no_dead_strip	_pcx_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcx_decode_frame
_pcx_decode_frame:                      ; @pcx_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x19, x2
	mov	x23, x0
	ldr	w2, [x3]
Lloh0:
	adrp	x8, _PCX_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCX_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x26, x3
	mov	x20, x1
	ldr	w1, [x3, #4]
	sub	x0, x29, #84
	bl	_bytestream2_init
	sub	x0, x29, #84
	bl	_bytestream2_get_byteu
	cmp	w0, #10
	b.ne	LBB0_4
; %bb.3:
	sub	x0, x29, #84
	bl	_bytestream2_get_byteu
	cmp	w0, #6
	b.lt	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x23
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_7:
	sub	x0, x29, #84
	bl	_bytestream2_get_byteu
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
	sub	x0, x29, #84
	bl	_bytestream2_get_byteu
	mov	x28, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	mov	x24, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	mov	x21, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	mov	x25, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	mov	x22, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	str	x0, [x23, #16]
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	str	x0, [x23, #8]
	subs	w8, w25, w24
	b.lt	LBB0_11
; %bb.8:
	subs	w9, w22, w21
	stur	w9, [x29, #-96]                 ; 4-byte Folded Spill
	b.lt	LBB0_11
; %bb.9:
	add	w25, w8, #1
	sub	x0, x29, #84
	mov	w1, #49
	bl	_bytestream2_skipu
	sub	x0, x29, #84
	bl	_bytestream2_get_byteu
	mov	x21, x0
	sub	x0, x29, #84
	bl	_bytestream2_get_le16u
	mov	x27, x0
	mul	w24, w21, w27
	stur	w28, [x29, #-100]               ; 4-byte Folded Spill
	mul	w22, w21, w28
	orr	w8, wzr, #0x7
	madd	w8, w22, w25, w8
	cmp	w24, w8, lsr #3
	b.hs	LBB0_12
LBB0_10:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_11:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_12:
	ldur	w8, [x29, #-96]                 ; 4-byte Folded Reload
	add	w28, w8, #1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbnz	w8, LBB0_14
; %bb.13:
	sub	x0, x29, #84
	bl	_bytestream2_get_bytes_left
	udiv	w8, w0, w28
	cmp	w24, w8
	b.hi	LBB0_10
LBB0_14:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	add	w8, w8, w21, lsl #8
	cmp	w8, #512
	str	w21, [sp, #92]                  ; 4-byte Folded Spill
	b.gt	LBB0_17
; %bb.15:
	sub	w8, w8, #257
	cmp	w8, #7
	b.hi	LBB0_20
; %bb.16:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #139
	tst	w8, w9
	b.ne	LBB0_23
	b	LBB0_20
LBB0_17:
	cmp	w8, #775
	b.gt	LBB0_21
; %bb.18:
	cmp	w8, #513
	b.eq	LBB0_23
; %bb.19:
	cmp	w8, #769
	b.eq	LBB0_23
LBB0_20:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_21:
	cmp	w8, #776
	b.eq	LBB0_49
; %bb.22:
	cmp	w8, #1025
	b.ne	LBB0_20
LBB0_23:
Lloh31:
	adrp	x8, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	sub	x0, x29, #84
	mov	w1, #60
	bl	_bytestream2_skipu
	mov	x0, x23
	mov	x1, x25
	mov	x2, x28
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_47
; %bb.25:
	mov	x0, x23
	mov	x1, x20
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_47
; %bb.26:
	str	w22, [sp, #76]                  ; 4-byte Folded Spill
Lloh33:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldp	x8, x9, [x20]
	mov	x10, x24
	ldr	x24, [x8]
	ldr	w8, [x9]
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
Lloh36:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	w10, [sp, #104]                 ; 4-byte Folded Spill
	add	x0, x8, w10, uxtw
	bl	_av_malloc
	cbz	x0, LBB0_48
; %bb.27:
	mov	x22, x0
	ldr	w9, [sp, #92]                   ; 4-byte Folded Reload
	cmp	w9, #3
	b.ne	LBB0_50
; %bb.28:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w8, #8
	b.ne	LBB0_50
; %bb.29:
	cbz	w28, LBB0_84
; %bb.30:
	mov	x23, #0
	lsl	x9, x27, #1
	sub	x8, x25, #1
	str	x9, [sp, #80]                   ; 8-byte Folded Spill
	and	x9, x9, #0xfffffffe
	add	x10, x22, x9, lsl #2
	add	x9, x9, x25
	add	x9, x22, x9, lsl #2
	stp	x9, x10, [sp, #48]              ; 16-byte Folded Spill
	add	x10, x25, w25, uxtw #1
	add	x9, x22, w27, uxtw #2
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	add	x9, x25, w27, uxtw
	add	x9, x22, x9, lsl #2
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	tst	x8, #0xffffffff00000000
	cset	w9, ne
	and	x10, x8, #0xffffffff
	add	x10, x10, w8, uxtw #1
	tst	x10, #0xffffffff00000000
	cset	w11, ne
	cmn	w10, #1
	cset	w12, eq
	orr	w12, w12, w11
	cmn	w10, #3
	cset	w10, hi
	orr	w10, w10, w11
	orr	w10, w10, w9
	cmn	w27, w8
	cset	w11, hs
	orr	w11, w11, w9
	cmn	w8, w27, lsl #1
	cset	w13, hs
	orr	w13, w13, w9
	mov	w14, #12
	umulh	x14, x8, x14
	cmp	xzr, x14
	cset	w14, ne
	add	x8, x8, x8, lsl #1
	lsl	x26, x8, #2
	orr	w8, w12, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w13
	stp	w8, w14, [sp, #68]              ; 8-byte Folded Spill
	and	x9, x25, #0xfffffffc
	mov	x28, x24
	add	x8, x22, w25, uxtw #2
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x28, x28, x8, lsl #2
	add	x8, x23, #1
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	cmp	w23, w9
	mov	x23, x8
	b.eq	LBB0_69
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
	sub	x0, x29, #84
	mov	x1, x22
	ldr	w2, [sp, #104]                  ; 4-byte Folded Reload
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_pcx_rle_decode
	tbnz	w0, #31, LBB0_83
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	cbz	w25, LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	cmp	w25, #4
	b.hs	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x8, #0
	b	LBB0_45
LBB0_36:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x8, #0
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	mul	x9, x23, x9
	add	x10, x24, x9, lsl #2
	add	x11, x10, #4
	add	x10, x10, #8
	add	x12, x11, x26
	cmp	x12, x11
	cset	w11, lo
	ldp	w14, w13, [sp, #68]             ; 8-byte Folded Reload
	orr	w12, w11, w13
	add	x11, x10, x26
	cmp	x11, x10
	cset	w10, lo
	add	x11, x28, x26
	cmp	x11, x28
	cset	w11, lo
	orr	w12, w14, w12
	tbnz	w12, #0, LBB0_45
; %bb.37:                               ;   in Loop: Header=BB0_32 Depth=1
	orr	w10, w10, w13
	tbnz	w10, #0, LBB0_45
; %bb.38:                               ;   in Loop: Header=BB0_32 Depth=1
	orr	w10, w11, w13
	tbnz	w10, #0, LBB0_45
; %bb.39:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x8, #0
	ldp	x10, x12, [sp, #40]             ; 16-byte Folded Reload
	add	x9, x10, x9
	add	x11, x24, x9, lsl #2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x9, x11
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ccmp	x28, x9, #2, lo
	cset	w9, lo
	cmp	x22, x11
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ccmp	x28, x10, #2, lo
	cset	w10, lo
	cmp	x28, x12
	ldr	x12, [sp, #56]                  ; 8-byte Folded Reload
	ccmp	x12, x11, #2, lo
	b.lo	LBB0_45
; %bb.40:                               ;   in Loop: Header=BB0_32 Depth=1
	tbnz	w9, #0, LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_32 Depth=1
	tbnz	w10, #0, LBB0_45
; %bb.42:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x8, #0
	sub	x9, x28, #8
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x11, [sp, #80]                  ; 8-byte Folded Reload
	mov	x12, x27
	mov	x13, x22
LBB0_43:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q0, [x13], #16
	and	x14, x12, #0xffffffff
	lsl	x14, x14, #2
	ldr	q1, [x22, x14]
	and	x14, x11, #0xfffffffe
	lsl	x14, x14, #2
	ldr	q2, [x22, x14]
	and	x14, x8, #0xfffffffc
	add	x14, x9, x14, lsl #2
	add	x14, x14, #8
	st3.4s	{ v0, v1, v2 }, [x14]
	add	x8, x8, #12
	add	x12, x12, #4
	add	x11, x11, #4
	subs	x10, x10, #4
	b.ne	LBB0_43
; %bb.44:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	mov	x8, x9
	cmp	x9, x25
	b.eq	LBB0_31
LBB0_45:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	add	x9, x9, x8
	add	x10, x27, x8
	sub	x11, x25, x8
	add	w12, w8, w8, lsl #1
	add	x8, x22, x8, lsl #2
LBB0_46:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x8], #4
	str	w13, [x28, w12, uxtw #2]
	ldr	w13, [x22, w10, uxtw #2]
	add	w14, w12, #1
	str	w13, [x28, w14, uxtw #2]
	ldr	w13, [x22, w9, uxtw #2]
	add	w14, w12, #2
	str	w13, [x28, w14, uxtw #2]
	add	x9, x9, #1
	add	x10, x10, #1
	add	w12, w12, #3
	subs	x11, x11, #1
	b.ne	LBB0_46
	b	LBB0_31
LBB0_47:
	mov	x21, x0
	b	LBB0_6
LBB0_48:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_6
LBB0_49:
Lloh42:
	adrp	x8, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
	b	LBB0_24
LBB0_50:
	cmp	w9, #1
	b.ne	LBB0_54
; %bb.51:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w8, #8
	b.ne	LBB0_54
; %bb.52:
	ldr	w8, [x26]
	subs	w8, w8, #769
	b.ge	LBB0_62
; %bb.53:
Lloh44:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str.5@PAGE
Lloh48:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_92
LBB0_54:
	subs	w23, w9, #1
	b.ne	LBB0_72
; %bb.55:
	cbz	w28, LBB0_69
; %bb.56:
	mov	w23, #0
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	lsl	x26, x8, #2
	lsl	x27, x25, #2
	ldur	w28, [x29, #-100]               ; 4-byte Folded Reload
	b	LBB0_58
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	add	w8, w23, #1
	add	x24, x24, x26
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	cmp	w23, w9
	mov	x23, x8
	b.eq	LBB0_69
LBB0_58:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_61 Depth 2
	sub	x0, x29, #88
	mov	x1, x22
	ldr	w21, [sp, #104]                 ; 4-byte Folded Reload
	mov	x2, x21
	bl	_init_get_bits8
	sub	x0, x29, #84
	mov	x1, x22
	mov	x2, x21
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_pcx_rle_decode
	tbnz	w0, #31, LBB0_83
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	cbz	w25, LBB0_57
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	mov	x21, #0
LBB0_61:                                ;   Parent Loop BB0_58 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x0, x29, #88
	mov	x1, x28
	bl	_get_bits
	str	w0, [x24, x21]
	add	x21, x21, #4
	cmp	x27, x21
	b.ne	LBB0_61
	b	LBB0_57
LBB0_62:
	stur	w8, [x29, #-96]                 ; 4-byte Folded Spill
	cbz	w28, LBB0_66
; %bb.63:
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	lsl	x27, x8, #2
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #84
	mov	x1, x22
	ldr	w2, [sp, #104]                  ; 4-byte Folded Reload
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_pcx_rle_decode
	tbnz	w0, #31, LBB0_83
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_memcpy
	add	x24, x24, x27
	subs	w28, w28, #1
	b.ne	LBB0_64
LBB0_66:
	sub	x0, x29, #84
	bl	_bytestream2_tell
	ldur	w21, [x29, #-96]                ; 4-byte Folded Reload
	cmp	w0, w21
	b.eq	LBB0_68
; %bb.67:
Lloh49:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x2, l_.str.6@PAGE
Lloh53:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_av_log
Lloh54:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	sub	x0, x29, #84
	mov	x1, x21
	bl	_bytestream2_seek
LBB0_68:
	sub	x0, x29, #84
	bl	_bytestream2_get_byte
	cmp	w0, #12
	b.ne	LBB0_91
LBB0_69:
	sub	x0, x29, #84
	bl	_bytestream2_tell
	mov	x21, x0
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_85
; %bb.70:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w8, #8
	b.ne	LBB0_86
; %bb.71:
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	sub	x0, x29, #84
	mov	w2, #256
	bl	_pcx_palette
	add	w21, w21, #768
	b	LBB0_90
LBB0_72:
	cbz	w28, LBB0_84
; %bb.73:
	mov	w8, #0
	mul	w28, w23, w27
	mov	w26, #128
	b	LBB0_75
LBB0_74:                                ;   in Loop: Header=BB0_75 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x24, x24, x8, lsl #2
	ldr	w10, [sp, #80]                  ; 4-byte Folded Reload
	add	w8, w10, #1
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	cmp	w10, w9
	b.eq	LBB0_69
LBB0_75:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_80 Depth 2
                                        ;       Child Loop BB0_82 Depth 3
	str	w8, [sp, #80]                   ; 4-byte Folded Spill
	sub	x0, x29, #84
	mov	x1, x22
	ldr	w2, [sp, #104]                  ; 4-byte Folded Reload
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_pcx_rle_decode
	tbnz	w0, #31, LBB0_83
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=1
	ldr	w14, [sp, #92]                  ; 4-byte Folded Reload
	cbz	w25, LBB0_74
; %bb.77:                               ;   in Loop: Header=BB0_75 Depth=1
	mov	x8, #0
	b	LBB0_80
LBB0_78:                                ;   in Loop: Header=BB0_80 Depth=2
	mov	w13, #0
LBB0_79:                                ;   in Loop: Header=BB0_80 Depth=2
	str	w13, [x24, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, x25
	b.eq	LBB0_74
LBB0_80:                                ;   Parent Loop BB0_75 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_82 Depth 3
	tbnz	w23, #31, LBB0_78
; %bb.81:                               ;   in Loop: Header=BB0_80 Depth=2
	mov	w12, #0
	add	w9, w28, w8, lsr #3
	and	w10, w8, #0x7
	lsr	w10, w26, w10
	mov	x11, x14
LBB0_82:                                ;   Parent Loop BB0_75 Depth=1
                                        ;     Parent Loop BB0_80 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w13, [x22, w9, uxtw #2]
	tst	w13, w10
	cset	w13, ne
	bfi	w13, w12, #1, #31
	sub	w11, w11, #1
	sub	w9, w9, w27
	mov	x12, x13
	cmp	w11, #0
	b.gt	LBB0_82
	b	LBB0_79
LBB0_83:
	mov	x21, x0
	b	LBB0_93
LBB0_84:
	sub	x0, x29, #84
	bl	_bytestream2_tell
	mov	x21, x0
LBB0_85:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
LBB0_86:
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w9, #1
	b.ne	LBB0_88
; %bb.87:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	mov	w1, #-16777216
	bl	_AV_WN32A
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x0, x8, #16
	mov	w1, #-1
	bl	_AV_WN32A
	b	LBB0_90
LBB0_88:
	cmp	w8, #7
	b.hi	LBB0_90
; %bb.89:
Lloh57:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	sub	x0, x29, #84
	mov	w1, #16
	bl	_bytestream2_seek
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	sub	x0, x29, #84
	mov	w2, #16
	bl	_pcx_palette
LBB0_90:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_93
LBB0_91:
Lloh60:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x2, l_.str.7@PAGE
Lloh64:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_92:
	mov	x0, x23
	bl	_av_log
	ldr	w8, [x23]
Lloh65:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh66:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x10, _AVERROR_INVALIDDATA@GOTPAGE
Lloh69:
	ldr	x10, [x10, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x26, x10, eq
	ldr	w21, [x8]
LBB0_93:
	mov	x0, x22
	bl	_av_free
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_PCX_HEADER_SIZE,4,2            ; @PCX_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"this is not PCX encoded data\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid image dimensions\n"

l_.str.3:                               ; @.str.3
	.asciz	"PCX data is corrupted\n"

	.comm	_AV_PIX_FMT_RGB24,4,2           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_PAL8,4,2            ; @AV_PIX_FMT_PAL8
l_.str.4:                               ; @.str.4
	.asciz	"invalid PCX file\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"File is too short\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.6:                               ; @.str.6
	.asciz	"image data possibly corrupted\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.7:                               ; @.str.7
	.asciz	"expected palette after image data\n"

	.no_dead_strip	_pcx_decode_frame
.subsections_via_symbols
