	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_header
_decode_header:                         ## @decode_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$29, %eax
	jg	LBB0_3
## %bb.1:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_50
LBB0_3:
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movl	$56, %edi
	movl	$66, %esi
	movl	$80, %edx
	movl	$83, %ecx
	callq	_MKTAG
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, (%r14)
	leal	-57(%rax), %ecx
	cmpl	$-57, %ecx
	ja	LBB0_9
## %bb.8:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_48
LBB0_4:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	jmp	LBB0_49
LBB0_6:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_48:
	movl	%eax, %ecx
LBB0_49:
	xorl	%eax, %eax
	callq	_av_log
LBB0_50:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_51:
	movl	(%rax), %ebx
LBB0_52:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, 4(%r14)
	cmpl	$30001, %eax                    ## imm = 0x7531
	jl	LBB0_13
## %bb.10:
	movq	16(%r14), %rdi
	movq	_FF_COMPLIANCE_EXPERIMENTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, (%rdi)
	jle	LBB0_13
## %bb.11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, 8(%r14)
	movq	16(%r14), %rdi
	cmpl	$30001, %eax                    ## imm = 0x7531
	jl	LBB0_16
## %bb.14:
	movq	_FF_COMPLIANCE_EXPERIMENTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, (%rdi)
	jle	LBB0_16
## %bb.15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_12:
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXPERIMENTAL@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_16:
	movl	4(%r14), %edx
	movl	%eax, %esi
	callq	_ff_set_dimensions
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_52
## %bb.17:
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	movq	%rax, 48(%r14)
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	cmpl	$10, %eax
	jae	LBB0_18
## %bb.19:
	movl	$927, %ecx                      ## imm = 0x39F
	btl	%eax, %ecx
	jb	LBB0_20
LBB0_18:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_48
LBB0_20:
	cltq
	leaq	l_switch.table.decode_header(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movq	%rax, %r12
	testl	%r12d, %r12d
	js	LBB0_21
## %bb.22:
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	leal	4(%r12), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_23
## %bb.24:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_25
## %bb.26:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rdi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %esi
	callq	_memset
	movq	_HAVE_BIGENDIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movl	$2863311531, %esi               ## imm = 0xAAAAAAAB
	imulq	%rax, %rsi
	shrq	$33, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%r12d, %r12d
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %eax
	movq	_HAVE_BIGENDIAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$2, %ecx
	cmpl	%ecx, %edx
	movl	%eax, %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_32
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movl	$256, %edi                      ## imm = 0x100
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	testl	%eax, %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	$2, %eax
	subl	%ebx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_bytestream2_get_byteu
	movq	32(%r15), %rcx
	movq	_HAVE_BIGENDIAN@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	cmovel	-56(%rbp), %edx                 ## 4-byte Folded Reload
	addl	%ebx, %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	%r14d
	movl	$256, %edi                      ## imm = 0x100
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	addl	$4, %ebx
	addl	$-3, %r12d
	cmpl	%eax, %r14d
	jl	LBB0_30
	jmp	LBB0_31
LBB0_21:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_2
LBB0_32:
	addl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_25:
	xorl	%r12d, %r12d
LBB0_33:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movq	%rax, %r12
	testl	%r12d, %r12d
	js	LBB0_34
## %bb.35:
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	leal	4(%r12), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_23
## %bb.36:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movq	%rax, %r12
	testl	%r12d, %r12d
	js	LBB0_37
## %bb.38:
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%r12d, %eax
	jge	LBB0_39
LBB0_23:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_2
LBB0_34:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_2
LBB0_37:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_2
LBB0_39:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jg	LBB0_41
## %bb.40:
	movq	16(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	jmp	LBB0_2
LBB0_41:
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, 12(%r14)
	cmpl	$2, %eax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jb	LBB0_52
## %bb.42:
	cmpl	$3, %eax
	je	LBB0_46
## %bb.43:
	cmpl	$2, %eax
	jne	LBB0_47
## %bb.44:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_45
LBB0_46:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	leaq	L_.str.13(%rip), %rsi
LBB0_45:
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_47:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.14(%rip), %rdx
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Header too short to parse.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Wrong signature %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Wrong version %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid channel count %d.\n"

	.comm	_FF_COMPLIANCE_EXPERIMENTAL,4,2 ## @FF_COMPLIANCE_EXPERIMENTAL
L_.str.4:                               ## @.str.4
	.asciz	"Height > 30000 is experimental, add '-strict %d' if you want to try to decode the picture.\n"

	.comm	_AVERROR_EXPERIMENTAL,4,2       ## @AVERROR_EXPERIMENTAL
L_.str.5:                               ## @.str.5
	.asciz	"Width > 30000 is experimental, add '-strict %d' if you want to try to decode the picture.\n"

	.comm	_PSD_BITMAP,4,2                 ## @PSD_BITMAP
	.comm	_PSD_GRAYSCALE,4,2              ## @PSD_GRAYSCALE
	.comm	_PSD_INDEXED,4,2                ## @PSD_INDEXED
	.comm	_PSD_RGB,4,2                    ## @PSD_RGB
	.comm	_PSD_CMYK,4,2                   ## @PSD_CMYK
	.comm	_PSD_MULTICHANNEL,4,2           ## @PSD_MULTICHANNEL
	.comm	_PSD_DUOTONE,4,2                ## @PSD_DUOTONE
	.comm	_PSD_LAB,4,2                    ## @PSD_LAB
L_.str.6:                               ## @.str.6
	.asciz	"Unknown color mode %d.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Negative size for color map data section.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Incomplete file.\n"

	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.comm	_HAVE_BIGENDIAN,4,2             ## @HAVE_BIGENDIAN
L_.str.9:                               ## @.str.9
	.asciz	"Negative size for image ressources section.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Negative size for layers and masks data section.\n"

L_.str.11:                              ## @.str.11
	.asciz	"File without image data section.\n"

L_.str.12:                              ## @.str.12
	.asciz	"ZIP without predictor compression"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.13:                              ## @.str.13
	.asciz	"ZIP with predictor compression"

L_.str.14:                              ## @.str.14
	.asciz	"Unknown compression %d.\n"

	.no_dead_strip	_decode_header
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.decode_header
l_switch.table.decode_header:
	.quad	_PSD_BITMAP
	.quad	_PSD_GRAYSCALE
	.quad	_PSD_INDEXED
	.quad	_PSD_RGB
	.quad	_PSD_CMYK
	.quad	_PSD_BITMAP
	.quad	_PSD_BITMAP
	.quad	_PSD_MULTICHANNEL
	.quad	_PSD_DUOTONE
	.quad	_PSD_LAB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_header
_decode_header:                         ; @decode_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, #29
	b.gt	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	bl	_bytestream2_get_le32
	mov	x21, x0
	mov	w0, #56
	mov	w1, #66
	mov	w2, #80
	mov	w3, #83
	bl	_MKTAG
	cmp	w21, w0
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_bytestream2_get_be16
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	mov	w1, #6
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_be16
	str	w0, [x19]
	sub	w8, w0, #57
	cmn	w8, #57
	b.hi	LBB0_12
; %bb.5:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x8
LBB0_9:
	bl	_av_log
Lloh20:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	x0, x20
	bl	_bytestream2_get_be32
	str	w0, [x19, #4]
	mov	w21, #30001
	cmp	w0, w21
	b.lt	LBB0_15
; %bb.13:
	ldr	x0, [x19, #16]
	ldr	w9, [x0]
Lloh22:
	adrp	x8, _FF_COMPLIANCE_EXPERIMENTAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FF_COMPLIANCE_EXPERIMENTAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_15
; %bb.14:
Lloh25:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_15:
	mov	x0, x20
	bl	_bytestream2_get_be32
	mov	x1, x0
	str	w1, [x19, #8]
	ldr	x0, [x19, #16]
	cmp	w1, w21
	b.lt	LBB0_19
; %bb.16:
	ldr	w9, [x0]
Lloh30:
	adrp	x8, _FF_COMPLIANCE_EXPERIMENTAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FF_COMPLIANCE_EXPERIMENTAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_19
; %bb.17:
Lloh33:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_18:
	bl	_av_log
Lloh38:
	adrp	x8, _AVERROR_EXPERIMENTAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AVERROR_EXPERIMENTAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_19:
	ldr	w2, [x19, #4]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ff_set_dimensions
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.20:
	mov	x0, x20
	bl	_bytestream2_get_be16
	str	x0, [x19, #48]
	mov	x0, x20
	bl	_bytestream2_get_be16
	cmp	w0, #10
	b.hs	LBB0_22
; %bb.21:
	mov	w8, #927
	lsr	w8, w8, w0
	tbnz	w8, #0, LBB0_23
LBB0_22:
	ldr	x8, [x19, #16]
Lloh40:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh43:
	adrp	x2, l_.str.6@PAGE
Lloh44:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_23:
	sbfiz	x8, x0, #3, #32
Lloh45:
	adrp	x9, l_switch.table.decode_header@PAGE
Lloh46:
	add	x9, x9, l_switch.table.decode_header@PAGEOFF
	ldr	x8, [x9, x8]
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x20
	bl	_bytestream2_get_be32
	mov	x22, x0
	tbnz	w22, #31, LBB0_32
; %bb.24:
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	add	w8, w22, #4
	cmp	w0, w8
	b.lt	LBB0_39
; %bb.25:
	cbz	w22, LBB0_34
; %bb.26:
	ldr	x0, [x19, #32]
Lloh47:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	w1, #255
	bl	_memset
Lloh50:
	adrp	x24, _HAVE_BIGENDIAN@GOTPAGE
Lloh51:
	ldr	x24, [x24, _HAVE_BIGENDIAN@GOTPAGEOFF]
	ldr	w25, [x24]
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	umull	x8, w22, w8
	lsr	x23, x8, #33
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w27, #0
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w8, w25, #1
	ldr	w9, [x24]
	add	w9, w9, #2
	cmp	w25, w9
	mov	x25, x8
	b.ge	LBB0_33
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
	mov	w0, #256
	mov	x1, x23
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w27, #0
	mov	w28, #0
	mov	w26, #0
	mov	w8, #2
	sub	w22, w8, w25
LBB0_31:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_bytestream2_get_byteu
	ldr	x8, [x19, #32]
	ldr	w9, [x24]
	cmp	w9, #0
	csel	w9, w22, w25, eq
	add	w9, w9, w28
	str	w0, [x8, w9, sxtw #2]
	add	w26, w26, #1
	mov	w0, #256
	mov	x1, x23
	bl	_FFMIN
	add	w28, w28, #4
	sub	w27, w27, #3
	cmp	w26, w0
	b.lt	LBB0_31
	b	LBB0_28
LBB0_32:
	ldr	x0, [x19, #16]
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x2, l_.str.7@PAGE
Lloh56:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_33:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	w1, w27, w8
	b	LBB0_35
LBB0_34:
	mov	w1, #0
LBB0_35:
	mov	x0, x20
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_be32
	mov	x22, x0
	tbnz	w22, #31, LBB0_40
; %bb.36:
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	add	w8, w22, #4
	cmp	w0, w8
	b.lt	LBB0_39
; %bb.37:
	mov	x0, x20
	mov	x1, x22
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_be32
	mov	x22, x0
	tbnz	w22, #31, LBB0_41
; %bb.38:
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, w22
	b.ge	LBB0_42
LBB0_39:
	ldr	x0, [x19, #16]
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.8@PAGE
Lloh61:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_40:
	ldr	x0, [x19, #16]
Lloh62:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x2, l_.str.9@PAGE
Lloh66:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_41:
	ldr	x0, [x19, #16]
Lloh67:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
Lloh70:
	adrp	x2, l_.str.10@PAGE
Lloh71:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_9
LBB0_42:
	mov	x0, x20
	mov	x1, x22
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.gt	LBB0_44
; %bb.43:
	ldr	x0, [x19, #16]
Lloh72:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
Lloh75:
	adrp	x2, l_.str.11@PAGE
Lloh76:
	add	x2, x2, l_.str.11@PAGEOFF
	b	LBB0_9
LBB0_44:
	mov	x0, x20
	bl	_bytestream2_get_be16
	str	w0, [x19, #12]
	cmp	w0, #2
	b.lo	LBB0_11
; %bb.45:
	cmp	w0, #3
	b.eq	LBB0_48
; %bb.46:
	cmp	w0, #2
	b.ne	LBB0_50
; %bb.47:
	ldr	x0, [x19, #16]
Lloh77:
	adrp	x1, l_.str.12@PAGE
Lloh78:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_49
LBB0_48:
	ldr	x0, [x19, #16]
Lloh79:
	adrp	x1, l_.str.13@PAGE
Lloh80:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_49:
	bl	_avpriv_request_sample
Lloh81:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_10
LBB0_50:
	ldr	x8, [x19, #16]
Lloh83:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh84:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh86:
	adrp	x2, l_.str.14@PAGE
Lloh87:
	add	x2, x2, l_.str.14@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Header too short to parse.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Wrong signature %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Wrong version %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid channel count %d.\n"

	.comm	_FF_COMPLIANCE_EXPERIMENTAL,4,2 ; @FF_COMPLIANCE_EXPERIMENTAL
l_.str.4:                               ; @.str.4
	.asciz	"Height > 30000 is experimental, add '-strict %d' if you want to try to decode the picture.\n"

	.comm	_AVERROR_EXPERIMENTAL,4,2       ; @AVERROR_EXPERIMENTAL
l_.str.5:                               ; @.str.5
	.asciz	"Width > 30000 is experimental, add '-strict %d' if you want to try to decode the picture.\n"

	.comm	_PSD_BITMAP,4,2                 ; @PSD_BITMAP
	.comm	_PSD_GRAYSCALE,4,2              ; @PSD_GRAYSCALE
	.comm	_PSD_INDEXED,4,2                ; @PSD_INDEXED
	.comm	_PSD_RGB,4,2                    ; @PSD_RGB
	.comm	_PSD_CMYK,4,2                   ; @PSD_CMYK
	.comm	_PSD_MULTICHANNEL,4,2           ; @PSD_MULTICHANNEL
	.comm	_PSD_DUOTONE,4,2                ; @PSD_DUOTONE
	.comm	_PSD_LAB,4,2                    ; @PSD_LAB
l_.str.6:                               ; @.str.6
	.asciz	"Unknown color mode %d.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Negative size for color map data section.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Incomplete file.\n"

	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.comm	_HAVE_BIGENDIAN,4,2             ; @HAVE_BIGENDIAN
l_.str.9:                               ; @.str.9
	.asciz	"Negative size for image ressources section.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Negative size for layers and masks data section.\n"

l_.str.11:                              ; @.str.11
	.asciz	"File without image data section.\n"

l_.str.12:                              ; @.str.12
	.asciz	"ZIP without predictor compression"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.13:                              ; @.str.13
	.asciz	"ZIP with predictor compression"

l_.str.14:                              ; @.str.14
	.asciz	"Unknown compression %d.\n"

	.no_dead_strip	_decode_header
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.decode_header
l_switch.table.decode_header:
	.quad	_PSD_BITMAP
	.quad	_PSD_GRAYSCALE
	.quad	_PSD_INDEXED
	.quad	_PSD_RGB
	.quad	_PSD_CMYK
	.quad	_PSD_BITMAP
	.quad	_PSD_BITMAP
	.quad	_PSD_MULTICHANNEL
	.quad	_PSD_DUOTONE
	.quad	_PSD_LAB

.subsections_via_symbols
