	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pix_decode_frame
_pix_decode_frame:                      ## @pix_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rsi
	movl	(%rcx), %edx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_bytestream2_init
	movq	%r12, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_bytestream2_get_be32
	cmpl	$18, %r14d
	jne	LBB0_7
## %bb.1:
	cmpl	$8, %ebx
	jne	LBB0_7
## %bb.2:
	cmpl	$2, %r13d
	jne	LBB0_7
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_be32
	movq	_HEADER1_CHUNK@GOTPCREL(%rip), %r12
	movq	_HEADER2_CHUNK@GOTPCREL(%rip), %r14
	cmpl	(%r12), %eax
	je	LBB0_12
## %bb.5:
	cmpl	(%r14), %eax
	je	LBB0_12
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-80(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_pix_decode_header
	testl	%eax, %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_16
## %bb.13:
	movl	-80(%rbp), %edx
	leal	-3(%rdx), %eax
	cmpl	$16, %eax
	jae	LBB0_15
## %bb.14:
	movl	$32831, %ecx                    ## imm = 0x803F
	btl	%eax, %ecx
	jb	LBB0_18
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_16:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_17:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
LBB0_18:
	cltq
	leaq	l_switch.table.pix_decode_frame(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.pix_decode_frame.9(%rip), %rdx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdi)
	movq	%rdi, %r13
	movl	-76(%rbp), %ebx
	imull	(%rdx,%rax,4), %ebx
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movl	-72(%rbp), %edx
	movl	%edx, %ecx
	imull	%ebx, %ecx
	cmpl	%ecx, %eax
	jb	LBB0_9
## %bb.19:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	-76(%rbp), %esi
	movq	%r13, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_26
## %bb.20:
	movq	%r13, %rbx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_26
## %bb.21:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_be32
	movq	(%rbx), %rdx
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_27
## %bb.22:
	cmpl	(%r12), %eax
	je	LBB0_32
## %bb.23:
	cmpl	(%r14), %eax
	je	LBB0_32
## %bb.24:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rax
	movq	8(%rax), %r14
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_std_pal_table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memcpy
	movl	$1, (%rbx)
	jmp	LBB0_28
LBB0_26:
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_32:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	8(%rax), %r14
	leaq	-104(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_pix_decode_header
	testl	%eax, %eax
	js	LBB0_40
## %bb.33:
	cmpl	$7, -104(%rbp)
	je	LBB0_35
## %bb.34:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
LBB0_35:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	movq	_IMAGE_DATA_CHUNK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_38
## %bb.36:
	cmpl	$1032, %r13d                    ## imm = 0x408
	jne	LBB0_38
## %bb.37:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1032, %eax                     ## imm = 0x408
	jge	LBB0_41
LBB0_38:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_8
LBB0_40:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_17
LBB0_41:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_get_be32u
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_42
## %bb.43:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%rbx, %rdi
	callq	_bytestream2_get_be32
LBB0_27:
	movl	%eax, %r12d
LBB0_28:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	movq	_IMAGE_DATA_CHUNK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_31
## %bb.29:
	cmpl	%eax, %r13d
	jne	LBB0_31
## %bb.30:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	-68(%rbp)                       ## 4-byte Folded Reload
	cmpl	-72(%rbp), %eax
	jae	LBB0_39
LBB0_31:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_8
LBB0_39:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	(%rcx), %r12
	movl	(%rax), %r14d
	movq	8(%r15), %rbx
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	addq	%rax, %rbx
	movl	-72(%rbp), %r9d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r8d
	callq	_av_image_copy_plane
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	$1, 4(%r13)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r15), %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a BRender PIX file.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_HEADER1_CHUNK,4,2              ## @HEADER1_CHUNK
	.comm	_HEADER2_CHUNK,4,2              ## @HEADER2_CHUNK
L_.str.1:                               ## @.str.1
	.asciz	"Invalid chunk type %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid header length.\n"

	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB555BE,8,3        ## @AV_PIX_FMT_RGB555BE
	.comm	_AV_PIX_FMT_RGB565BE,8,3        ## @AV_PIX_FMT_RGB565BE
	.comm	_AV_PIX_FMT_RGB24,8,3           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_0RGB,8,3            ## @AV_PIX_FMT_0RGB
	.comm	_AV_PIX_FMT_ARGB,8,3            ## @AV_PIX_FMT_ARGB
	.comm	_AV_PIX_FMT_YA8,8,3             ## @AV_PIX_FMT_YA8
L_.str.3:                               ## @.str.3
	.asciz	"Format %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.4:                               ## @.str.4
	.asciz	"Invalid palette header length.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Palette not in RGB format"

	.comm	_IMAGE_DATA_CHUNK,4,2           ## @IMAGE_DATA_CHUNK
L_.str.6:                               ## @.str.6
	.asciz	"Invalid palette data.\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.7:                               ## @.str.7
	.asciz	"Using default palette, colors might be off.\n"

	.comm	_std_pal_table,4,2              ## @std_pal_table
L_.str.8:                               ## @.str.8
	.asciz	"Invalid image data.\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.no_dead_strip	_pix_decode_frame
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pix_decode_frame
l_switch.table.pix_decode_frame:
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_RGB555BE
	.quad	_AV_PIX_FMT_RGB565BE
	.quad	_AV_PIX_FMT_RGB24
	.quad	_AV_PIX_FMT_0RGB
	.quad	_AV_PIX_FMT_ARGB
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_YA8

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pix_decode_frame.9
l_switch.table.pix_decode_frame.9:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pix_decode_frame
_pix_decode_frame:                      ; @pix_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x1, [x3, #8]
	ldr	w2, [x3]
	add	x0, sp, #44
	bl	_bytestream2_init
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x25, x0
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x23, x0
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x24, x0
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	cmp	w25, #18
	b.ne	LBB0_9
; %bb.1:
	cmp	w23, #8
	b.ne	LBB0_9
; %bb.2:
	cmp	w24, #2
	b.ne	LBB0_9
; %bb.3:
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.4:
	add	x0, sp, #44
	bl	_bytestream2_get_be32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x26, _HEADER1_CHUNK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HEADER1_CHUNK@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _HEADER2_CHUNK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HEADER2_CHUNK@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_10
; %bb.5:
	add	x0, sp, #32
	add	x1, sp, #44
	bl	_pix_decode_header
	tbnz	w0, #31, LBB0_15
; %bb.6:
	ldr	w8, [sp, #32]
	sub	w9, w8, #3
	cmp	w9, #16
	b.hs	LBB0_8
; %bb.7:
	mov	w10, #32831
	lsr	w10, w10, w9
	tbnz	w10, #0, LBB0_17
LBB0_8:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
Lloh6:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_av_log
LBB0_12:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_13:
	ldr	w24, [x8]
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	mov	x24, x0
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_av_log
	b	LBB0_14
LBB0_17:
Lloh25:
	adrp	x8, l_switch.table.pix_decode_frame@PAGE
Lloh26:
	add	x8, x8, l_switch.table.pix_decode_frame@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
Lloh27:
	adrp	x10, l_switch.table.pix_decode_frame.9@PAGE
Lloh28:
	add	x10, x10, l_switch.table.pix_decode_frame.9@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w8, [sp, #36]
	mul	w23, w8, w9
	add	x0, sp, #44
	bl	_bytestream2_get_bytes_left
	ldr	w2, [sp, #40]
	mul	w8, w2, w23
	cmp	w0, w8
	b.lo	LBB0_12
; %bb.18:
	ldr	w1, [sp, #36]
	mov	x0, x19
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_27
; %bb.19:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_27
; %bb.20:
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x24, x0
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	ldr	w8, [x26]
	cmp	w24, w8
	b.eq	LBB0_28
; %bb.22:
	ldr	w8, [x25]
	cmp	w24, w8
	b.eq	LBB0_28
; %bb.23:
	ldr	x8, [x22, #24]
	ldr	x25, [x8, #8]
Lloh32:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.7@PAGE
Lloh36:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh37:
	adrp	x8, _std_pal_table@GOTPAGE
Lloh38:
	ldr	x8, [x8, _std_pal_table@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #1024
	bl	_memcpy
	mov	w8, #1
	str	w8, [x22]
LBB0_24:
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x25, x0
	add	x0, sp, #44
	mov	w1, #8
	bl	_bytestream2_skip
	add	x0, sp, #44
	bl	_bytestream2_get_bytes_left
Lloh40:
	adrp	x8, _IMAGE_DATA_CHUNK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IMAGE_DATA_CHUNK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w24, w8
	ccmp	w25, w0, #0, eq
	b.ne	LBB0_26
; %bb.25:
	udiv	w8, w25, w23
	ldr	w9, [sp, #40]
	cmp	w8, w9
	b.hs	LBB0_35
LBB0_26:
Lloh43:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.8@PAGE
Lloh47:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_11
LBB0_27:
	mov	x24, x0
	b	LBB0_14
LBB0_28:
	ldr	x8, [x22, #24]
	ldr	x26, [x8, #8]
	add	x0, sp, #16
	add	x1, sp, #44
	bl	_pix_decode_header
	tbnz	w0, #31, LBB0_36
; %bb.29:
	ldr	w8, [sp, #16]
	cmp	w8, #7
	b.eq	LBB0_31
; %bb.30:
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
LBB0_31:
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x25, x0
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x24, x0
	add	x0, sp, #44
	mov	w1, #8
	bl	_bytestream2_skip
Lloh50:
	adrp	x8, _IMAGE_DATA_CHUNK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IMAGE_DATA_CHUNK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_34
; %bb.32:
	cmp	w24, #1032
	b.ne	LBB0_34
; %bb.33:
	add	x0, sp, #44
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1032
	b.ge	LBB0_37
LBB0_34:
Lloh53:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x2, l_.str.6@PAGE
Lloh57:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_35:
	ldp	x9, x8, [x22, #16]
	ldr	x19, [x8]
	ldr	w24, [x9]
	ldr	x25, [x20, #8]
	add	x0, sp, #44
	bl	_bytestream2_tell
	add	x2, x0, x25
	ldr	w5, [sp, #40]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x23
	mov	x4, x23
	bl	_av_image_copy_plane
Lloh58:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x22, #4]
	str	w9, [x21]
	ldr	w24, [x20]
	b	LBB0_14
LBB0_36:
	mov	x24, x0
Lloh61:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
Lloh64:
	adrp	x2, l_.str.4@PAGE
Lloh65:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_37:
	mov	x24, #0
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	bl	_bytestream2_get_be32u
	orr	w8, w0, #0xff000000
	str	w8, [x26, x24]
	add	x24, x24, #4
	cmp	w24, #1024
	b.ne	LBB0_38
; %bb.39:
	add	x0, sp, #44
	mov	w1, #8
	bl	_bytestream2_skip
	mov	w8, #1
	str	w8, [x22]
	add	x0, sp, #44
	bl	_bytestream2_get_be32
	mov	x24, x0
	b	LBB0_24
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a BRender PIX file.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_HEADER1_CHUNK,4,2              ; @HEADER1_CHUNK
	.comm	_HEADER2_CHUNK,4,2              ; @HEADER2_CHUNK
l_.str.1:                               ; @.str.1
	.asciz	"Invalid chunk type %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid header length.\n"

	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB555BE,8,3        ; @AV_PIX_FMT_RGB555BE
	.comm	_AV_PIX_FMT_RGB565BE,8,3        ; @AV_PIX_FMT_RGB565BE
	.comm	_AV_PIX_FMT_RGB24,8,3           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_0RGB,8,3            ; @AV_PIX_FMT_0RGB
	.comm	_AV_PIX_FMT_ARGB,8,3            ; @AV_PIX_FMT_ARGB
	.comm	_AV_PIX_FMT_YA8,8,3             ; @AV_PIX_FMT_YA8
l_.str.3:                               ; @.str.3
	.asciz	"Format %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.4:                               ; @.str.4
	.asciz	"Invalid palette header length.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Palette not in RGB format"

	.comm	_IMAGE_DATA_CHUNK,4,2           ; @IMAGE_DATA_CHUNK
l_.str.6:                               ; @.str.6
	.asciz	"Invalid palette data.\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.7:                               ; @.str.7
	.asciz	"Using default palette, colors might be off.\n"

	.comm	_std_pal_table,4,2              ; @std_pal_table
l_.str.8:                               ; @.str.8
	.asciz	"Invalid image data.\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_pix_decode_frame
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pix_decode_frame
l_switch.table.pix_decode_frame:
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_RGB555BE
	.quad	_AV_PIX_FMT_RGB565BE
	.quad	_AV_PIX_FMT_RGB24
	.quad	_AV_PIX_FMT_0RGB
	.quad	_AV_PIX_FMT_ARGB
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_PAL8
	.quad	_AV_PIX_FMT_YA8

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pix_decode_frame.9
l_switch.table.pix_decode_frame.9:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2

.subsections_via_symbols
