	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_fctl_chunk
_decode_fctl_chunk:                     ## @decode_fctl_chunk
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$26, %edx
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PNG_IHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %eax
	movl	16(%rbx), %ecx
	movl	%eax, 4(%rbx)
	movl	%ecx, 12(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 20(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, 28(%rbx)
	movl	40(%rbx), %eax
	movl	%eax, 36(%rbx)
	leaq	72(%rbx), %r13
	movq	%r13, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	testl	%r12d, %r12d
	je	LBB0_5
LBB0_9:
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.10:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_1
## %bb.11:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_1
## %bb.12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_1
## %bb.13:
	movl	44(%rbx), %eax
	subl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, %r15d
	jg	LBB0_1
## %bb.14:
	movl	48(%rbx), %eax
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_1
## %bb.15:
	movq	_APNG_BLEND_OP_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APNG_BLEND_OP_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%esi, %ecx
	je	LBB0_18
## %bb.16:
	cmpl	%eax, %ecx
	je	LBB0_18
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_1
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_1
LBB0_5:
	cmpl	44(%rbx), %r15d
	jne	LBB0_1
## %bb.6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	48(%rbx), %eax
	jne	LBB0_1
## %bb.7:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_1
## %bb.8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.19:
	movq	64(%rbx), %rdx
	movq	(%rdx), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_20
LBB0_21:
	movq	_APNG_DISPOSE_OP_PREVIOUS@GOTPCREL(%rip), %rdx
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	cmpl	(%rdx), %r12d
	jne	LBB0_23
## %bb.22:
	movq	_APNG_DISPOSE_OP_BACKGROUND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	jmp	LBB0_23
LBB0_20:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
LBB0_23:
	cmpl	%esi, %ecx
	jne	LBB0_26
## %bb.24:
	cmpl	$0, 56(%rbx)
	jne	LBB0_26
## %bb.25:
	movq	(%r14), %rdx
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %r8
	movq	_AV_PIX_FMT_RGB48BE@GOTPCREL(%rip), %r9
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %r10
	movq	_AV_PIX_FMT_GRAY8@GOTPCREL(%rip), %r11
	movq	_AV_PIX_FMT_GRAY16BE@GOTPCREL(%rip), %rsi
	movq	_AV_PIX_FMT_MONOBLACK@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	cmovel	%eax, %ecx
	cmpq	(%rsi), %rdx
	cmovel	%eax, %ecx
	cmpq	(%r11), %rdx
	cmovel	%eax, %ecx
	cmpq	(%r10), %rdx
	cmovel	%eax, %ecx
	cmpq	(%r9), %rdx
	cmovel	%eax, %ecx
	cmpq	(%r8), %rdx
	cmovel	%eax, %ecx
LBB0_26:
	movl	%r15d, 8(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rbx)
	movl	%r12d, 40(%rbx)
	movl	%ecx, 52(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_PNG_IHDR,4,2                   ## @PNG_IHDR
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fctl before IHDR\n"

	.comm	_APNG_BLEND_OP_OVER,4,2         ## @APNG_BLEND_OP_OVER
	.comm	_APNG_BLEND_OP_SOURCE,4,2       ## @APNG_BLEND_OP_SOURCE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid blend_op %d\n"

	.comm	_APNG_DISPOSE_OP_PREVIOUS,4,2   ## @APNG_DISPOSE_OP_PREVIOUS
	.comm	_APNG_DISPOSE_OP_BACKGROUND,4,2 ## @APNG_DISPOSE_OP_BACKGROUND
	.comm	_AV_PIX_FMT_RGB24,8,3           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_RGB48BE,8,3         ## @AV_PIX_FMT_RGB48BE
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_GRAY8,8,3           ## @AV_PIX_FMT_GRAY8
	.comm	_AV_PIX_FMT_GRAY16BE,8,3        ## @AV_PIX_FMT_GRAY16BE
	.comm	_AV_PIX_FMT_MONOBLACK,8,3       ## @AV_PIX_FMT_MONOBLACK
	.no_dead_strip	_decode_fctl_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_fctl_chunk
_decode_fctl_chunk:                     ; @decode_fctl_chunk
	.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
	cmp	w2, #26
	b.ne	LBB0_18
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PNG_IHDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_IHDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.2:
	ldr	w8, [x19, #8]
	str	w8, [x19, #4]
	ldr	w8, [x19, #16]
	str	w8, [x19, #12]
	ldr	w8, [x19, #24]
	str	w8, [x19, #20]
	ldr	w8, [x19, #32]
	str	w8, [x19, #28]
	ldr	w8, [x19, #40]
	str	w8, [x19, #36]
	add	x28, x19, #72
	mov	x0, x28
	bl	_bytestream2_get_be32
	mov	x27, x0
	mov	x0, x28
	bl	_bytestream2_get_be32
	mov	x21, x0
	mov	x0, x28
	bl	_bytestream2_get_be32
	mov	x22, x0
	mov	x0, x28
	bl	_bytestream2_get_be32
	mov	x23, x0
	mov	x0, x28
	bl	_bytestream2_get_be32
	mov	x24, x0
	mov	x0, x28
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x28
	bl	_bytestream2_get_byte
	mov	x26, x0
	mov	x0, x28
	bl	_bytestream2_get_byte
	mov	x25, x0
	mov	x0, x28
	mov	w1, #4
	bl	_bytestream2_skip
	cbz	w27, LBB0_14
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.4:
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.5:
	tbnz	w23, #31, LBB0_18
; %bb.6:
	tbnz	w24, #31, LBB0_18
; %bb.7:
	ldr	w8, [x19, #44]
	sub	w8, w8, w23
	cmp	w21, w8
	b.gt	LBB0_18
; %bb.8:
	ldr	w8, [x19, #48]
	sub	w8, w8, w24
	cmp	w22, w8
	b.gt	LBB0_18
; %bb.9:
Lloh3:
	adrp	x8, _APNG_BLEND_OP_OVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APNG_BLEND_OP_OVER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _APNG_BLEND_OP_SOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APNG_BLEND_OP_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w25, w9
	b.eq	LBB0_20
; %bb.10:
	cmp	w25, w8
	b.eq	LBB0_20
; %bb.11:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_av_log
	b	LBB0_18
LBB0_14:
	ldr	w8, [x19, #44]
	cmp	w21, w8
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [x19, #48]
	cmp	w22, w8
	b.ne	LBB0_18
; %bb.16:
	cbnz	w23, LBB0_18
; %bb.17:
	cbz	w24, LBB0_3
LBB0_18:
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_19:
	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_20:
	cbz	w27, LBB0_22
; %bb.21:
	ldr	x10, [x19, #64]
	ldr	x10, [x10]
	ldr	w10, [x10]
	cbnz	w10, LBB0_24
LBB0_22:
Lloh22:
	adrp	x10, _APNG_DISPOSE_OP_PREVIOUS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _APNG_DISPOSE_OP_PREVIOUS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w26, w10
	b.ne	LBB0_24
; %bb.23:
Lloh25:
	adrp	x10, _APNG_DISPOSE_OP_BACKGROUND@GOTPAGE
Lloh26:
	ldr	x10, [x10, _APNG_DISPOSE_OP_BACKGROUND@GOTPAGEOFF]
Lloh27:
	ldr	w26, [x10]
LBB0_24:
	cmp	w25, w9
	b.ne	LBB0_27
; %bb.25:
	ldr	w9, [x19, #56]
	cbnz	w9, LBB0_27
; %bb.26:
Lloh28:
	adrp	x9, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x11, _AV_PIX_FMT_RGB48BE@GOTPAGE
Lloh32:
	ldr	x11, [x11, _AV_PIX_FMT_RGB48BE@GOTPAGEOFF]
Lloh33:
	adrp	x12, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh34:
	ldr	x12, [x12, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh35:
	ldr	x11, [x11]
Lloh36:
	ldr	x12, [x12]
Lloh37:
	adrp	x13, _AV_PIX_FMT_GRAY8@GOTPAGE
Lloh38:
	ldr	x13, [x13, _AV_PIX_FMT_GRAY8@GOTPAGEOFF]
Lloh39:
	adrp	x14, _AV_PIX_FMT_GRAY16BE@GOTPAGE
Lloh40:
	ldr	x14, [x14, _AV_PIX_FMT_GRAY16BE@GOTPAGEOFF]
Lloh41:
	ldr	x13, [x13]
Lloh42:
	ldr	x14, [x14]
Lloh43:
	adrp	x15, _AV_PIX_FMT_MONOBLACK@GOTPAGE
Lloh44:
	ldr	x15, [x15, _AV_PIX_FMT_MONOBLACK@GOTPAGEOFF]
Lloh45:
	ldr	x15, [x15]
	cmp	x10, x15
	ccmp	x10, x14, #4, ne
	ccmp	x10, x13, #4, ne
	ccmp	x10, x12, #4, ne
	ccmp	x10, x11, #4, ne
	ccmp	x10, x9, #4, ne
	csel	w25, w8, w25, eq
LBB0_27:
	mov	w0, #0
	str	w21, [x19, #8]
	str	w22, [x19, #16]
	str	w23, [x19, #24]
	str	w24, [x19, #32]
	str	w26, [x19, #40]
	str	w25, [x19, #52]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_PNG_IHDR,4,2                   ; @PNG_IHDR
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fctl before IHDR\n"

	.comm	_APNG_BLEND_OP_OVER,4,2         ; @APNG_BLEND_OP_OVER
	.comm	_APNG_BLEND_OP_SOURCE,4,2       ; @APNG_BLEND_OP_SOURCE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid blend_op %d\n"

	.comm	_APNG_DISPOSE_OP_PREVIOUS,4,2   ; @APNG_DISPOSE_OP_PREVIOUS
	.comm	_APNG_DISPOSE_OP_BACKGROUND,4,2 ; @APNG_DISPOSE_OP_BACKGROUND
	.comm	_AV_PIX_FMT_RGB24,8,3           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_RGB48BE,8,3         ; @AV_PIX_FMT_RGB48BE
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_GRAY8,8,3           ; @AV_PIX_FMT_GRAY8
	.comm	_AV_PIX_FMT_GRAY16BE,8,3        ; @AV_PIX_FMT_GRAY16BE
	.comm	_AV_PIX_FMT_MONOBLACK,8,3       ; @AV_PIX_FMT_MONOBLACK
	.no_dead_strip	_decode_fctl_chunk
.subsections_via_symbols
