	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_p_frame_apng
_handle_p_frame_apng:                   ## @handle_p_frame_apng
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movq	_APNG_BLEND_OP_OVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %edi
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	jae	LBB0_2
LBB0_3:
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	callq	_av_malloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	movq	16(%r12), %rax
	movq	_APNG_DISPOSE_OP_PREVIOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.12:
	leaq	96(%r12), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ff_thread_await_progress
	movq	96(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movl	12(%r12), %edx
	imull	8(%r12), %edx
	movq	%r13, %rdi
	callq	_memcpy
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.5:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_50
LBB0_7:
	leaq	104(%r12), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ff_thread_await_progress
	movq	104(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movl	12(%r12), %edx
	imull	8(%r12), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	16(%r12), %rax
	movq	_APNG_DISPOSE_OP_BACKGROUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	24(%r12), %rbx
	movq	32(%r12), %rax
	addq	%rbx, %rax
	cmpq	%rax, %rbx
	jae	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	8(%r12), %rax
	imulq	%rbx, %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movslq	40(%r12), %rcx
	movslq	44(%r12), %rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx,8), %rdi
	movl	48(%r12), %edx
	imull	%ecx, %edx
	xorl	%esi, %esi
	callq	_memset
	incq	%rbx
	movq	32(%r12), %rax
	addq	24(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_11:
	leaq	96(%r12), %r14
	movq	96(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	12(%r12), %edx
	imull	8(%r12), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ff_thread_report_progress
LBB0_13:
	movq	_APNG_BLEND_OP_SOURCE@GOTPCREL(%rip), %rdx
	movq	(%r12), %rsi
	movq	56(%r12), %r14
	movq	64(%r12), %rcx
	leaq	(%rcx,%r14), %rax
	cmpq	(%rdx), %rsi
	jne	LBB0_16
	.p2align	4, 0x90
## %bb.14:
	cmpq	%rax, %r14
	jae	LBB0_49
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movslq	8(%r12), %rax
	imulq	%r14, %rax
	movslq	40(%r12), %rsi
	movl	80(%r12), %edx
	imull	%esi, %edx
	imulq	72(%r12), %rsi
	addq	%rax, %rsi
	leaq	(,%rsi,8), %rdi
	addq	%r13, %rdi
	shlq	$3, %rsi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	addq	(%rax), %rsi
	callq	_memcpy
	incq	%r14
	movq	64(%r12), %rax
	addq	56(%r12), %rax
	cmpq	%rax, %r14
	jb	LBB0_15
	jmp	LBB0_49
LBB0_16:
	cmpq	%rax, %r14
	jae	LBB0_49
## %bb.17:
	movl	40(%r12), %edx
	movq	72(%r12), %rbx
	movl	80(%r12), %eax
                                        ## implicit-def: $rsi
                                        ## kill: killed $rsi
                                        ## implicit-def: $r8
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	56(%r12), %r14
	movq	64(%r12), %rcx
	movq	%rsi, %rbx
	movq	-176(%rbp), %r13                ## 8-byte Reload
LBB0_48:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	incq	%rdi
	leaq	(%rcx,%r14), %rsi
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	cmpq	%rsi, %rdi
	jae	LBB0_49
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
                                        ##       Child Loop BB0_35 Depth 3
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	cmpq	%rsi, %rbx
	jae	LBB0_48
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	8(%r12), %rax
	imulq	-152(%rbp), %rax                ## 8-byte Folded Reload
	leaq	(,%rax,8), %rcx
	addq	%r13, %rcx
	shlq	$3, %rax
	movslq	%edx, %rsi
	imulq	%rbx, %rsi
	leaq	(%rcx,%rsi,8), %r13
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	(%rcx), %rax
	leaq	(%rax,%rsi,8), %r14
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %r12
	movq	%r8, %r15
	callq	_memcpy
	movq	%r15, %r8
	movq	%r12, %r15
	movq	-160(%rbp), %r12                ## 8-byte Reload
LBB0_46:                                ##   in Loop: Header=BB0_20 Depth=2
	incq	%rbx
	movslq	40(%r12), %rdx
	leaq	(%r14,%rdx,8), %r14
	leaq	(%r13,%rdx,8), %r13
	movq	72(%r12), %rsi
	movslq	80(%r12), %rax
	leaq	(%rsi,%rax), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_47
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_35 Depth 3
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$129, %eax
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	24(%r14), %r8
	movq	24(%r13), %rcx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	88(%r12), %rcx
	movq	(%r14), %rsi
	movsbq	3(%rcx,%rsi,4), %r8
	movq	(%r13), %rsi
	movsbq	3(%rcx,%rsi,4), %rcx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	8(%r14), %r8
	movq	8(%r13), %rcx
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=2
	testq	%r8, %r8
	je	LBB0_46
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpq	$255, %r8
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	cmpl	$129, %eax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%r8, %rbx
	callq	_avpriv_request_sample
	movq	%rbx, %r8
	movq	(%r14), %rax
	movq	%rax, (%r13)
	jmp	LBB0_45
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	$255, %eax
	subq	%r8, %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	imulq	-136(%rbp), %rdi                ## 8-byte Folded Reload
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	movq	%r8, %rbx
	callq	_FAST_DIV255
	movq	%rax, %r15
	addq	%rbx, %r15
	xorl	%edi, %edi
	cmpl	$11, 40(%r12)
	setl	%dil
	callq	_av_assert0
	movl	40(%r12), %ecx
	cmpl	$1, %ecx
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	$1, %ecx
	xorl	%r12d, %r12d
LBB0_44:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%r15, -128(%rbp,%r12,8)
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	movl	%ecx, %edx
	callq	_memcpy
	movq	%rbx, %r8
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	-184(%rbp), %r15                ## 8-byte Reload
LBB0_45:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_46
LBB0_34:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%rbx, %rax
	shlq	$8, %rax
	subq	%rbx, %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	shlq	$8, %rsi
	subq	%r15, %rsi
	xorl	%r12d, %r12d
	movq	%r13, -192(%rbp)                ## 8-byte Spill
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_35 Depth=3
	movq	$0, -128(%rbp,%r12,8)
LBB0_43:                                ##   in Loop: Header=BB0_35 Depth=3
	incq	%r12
	leal	-1(%rcx), %eax
	cltq
	cmpq	%rax, %r12
	jae	LBB0_44
LBB0_35:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_20 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r15, %r15
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=3
	movq	(%r14,%r12,8), %rdx
	cmpq	$255, -136(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=3
	imulq	%rbx, %rdx
	movq	(%r13,%r12,8), %rdi
	imulq	-216(%rbp), %rdi                ## 8-byte Folded Reload
	addq	%rdx, %rdi
	movq	%r14, %r13
	movq	%r15, %r14
	movq	%rsi, %r15
	callq	_FAST_DIV255
	movq	%r15, %rsi
	movq	%r14, %r15
	movq	%r13, %r14
	movq	-192(%rbp), %r13                ## 8-byte Reload
	movq	%rax, -128(%rbp,%r12,8)
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	40(%rax), %ecx
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_35 Depth=3
	imulq	-200(%rbp), %rdx                ## 8-byte Folded Reload
	movq	(%r13,%r12,8), %rax
	imulq	-208(%rbp), %rax                ## 8-byte Folded Reload
	addq	%rdx, %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_35 Depth=3
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_42
LBB0_40:                                ##   in Loop: Header=BB0_35 Depth=3
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_42:                                ##   in Loop: Header=BB0_35 Depth=3
	movq	%rax, -128(%rbp,%r12,8)
	jmp	LBB0_43
LBB0_49:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	12(%r12), %edx
	imull	8(%r12), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	%r13, %rdi
	callq	_av_free
	xorl	%eax, %eax
LBB0_50:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_52
## %bb.51:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_APNG_BLEND_OP_OVER,8,3         ## @APNG_BLEND_OP_OVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Blending with pixel format %s"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_APNG_DISPOSE_OP_PREVIOUS,8,3   ## @APNG_DISPOSE_OP_PREVIOUS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_APNG_DISPOSE_OP_BACKGROUND,8,3 ## @APNG_DISPOSE_OP_BACKGROUND
	.comm	_APNG_BLEND_OP_SOURCE,8,3       ## @APNG_BLEND_OP_SOURCE
L_.str.1:                               ## @.str.1
	.asciz	"Alpha blending palette samples"

	.no_dead_strip	_handle_p_frame_apng
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_p_frame_apng
_handle_p_frame_apng:                   ; @handle_p_frame_apng
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x22, x2
	mov	x21, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _APNG_BLEND_OP_OVER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APNG_BLEND_OP_OVER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x26]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hs	LBB0_7
LBB0_2:
	ldp	w0, w1, [x21, #8]
	bl	_av_malloc_array
	cbz	x0, LBB0_5
; %bb.3:
	mov	x25, x0
	ldr	x8, [x21, #16]
Lloh6:
	adrp	x9, _APNG_DISPOSE_OP_PREVIOUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APNG_DISPOSE_OP_PREVIOUS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	add	x0, x21, #96
Lloh9:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ff_thread_await_progress
	ldr	x8, [x21, #96]
	ldr	x8, [x8]
	ldr	x1, [x8]
	ldp	w8, w9, [x21, #8]
	mul	w2, w9, w8
	mov	x0, x25
	bl	_memcpy
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.6:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	b	_AVERROR
LBB0_7:
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_avpriv_request_sample
Lloh20:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_44
LBB0_8:
	add	x0, x21, #104
Lloh23:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh24:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_ff_thread_await_progress
	ldr	x8, [x21, #104]
	ldr	x8, [x8]
	ldr	x1, [x8]
	ldp	w8, w9, [x21, #8]
	mul	w2, w9, w8
	mov	x0, x25
	bl	_memcpy
	ldr	x8, [x21, #16]
Lloh25:
	adrp	x9, _APNG_DISPOSE_OP_BACKGROUND@GOTPAGE
Lloh26:
	ldr	x9, [x9, _APNG_DISPOSE_OP_BACKGROUND@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldp	x19, x8, [x21, #24]
	add	x8, x8, x19
	cmp	x19, x8
	b.hs	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x21, #8]
	mul	x8, x19, x8
	add	x8, x25, x8, lsl #3
	ldp	w9, w10, [x21, #40]
	mul	w10, w10, w9
	add	x0, x8, w10, sxtw #3
	ldr	w8, [x21, #48]
	mul	w2, w8, w9
	mov	w1, #0
	bl	_memset
	add	x19, x19, #1
	ldp	x8, x9, [x21, #24]
	add	x8, x9, x8
	cmp	x19, x8
	b.lo	LBB0_10
LBB0_11:
	mov	x23, x21
	ldr	x8, [x23, #96]!
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldp	w8, w9, [x23, #-88]
	mul	w2, w9, w8
	mov	x1, x25
	bl	_memcpy
	ldr	w1, [x20]
	mov	x0, x23
	mov	w2, #0
	bl	_ff_thread_report_progress
LBB0_12:
Lloh28:
	adrp	x8, _APNG_BLEND_OP_SOURCE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _APNG_BLEND_OP_SOURCE@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh30:
	ldr	x11, [x8]
	ldp	x24, x8, [x21, #56]
	add	x9, x8, x24
	cmp	x10, x11
	b.ne	LBB0_15
; %bb.13:
	cmp	x24, x9
	b.hs	LBB0_43
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x21, #8]
	mul	x8, x24, x8
	ldrsw	x9, [x21, #40]
	ldr	x10, [x21, #72]
	madd	x8, x10, x9, x8
	lsl	x8, x8, #3
	add	x0, x25, x8
	ldr	x10, [x22]
	ldr	x10, [x10]
	add	x1, x10, x8
	ldr	w8, [x21, #80]
	mul	w2, w8, w9
	bl	_memcpy
	add	x24, x24, #1
	ldp	x8, x9, [x21, #56]
	add	x8, x9, x8
	cmp	x24, x8
	b.lo	LBB0_14
	b	LBB0_43
LBB0_15:
	cmp	x24, x9
	b.hs	LBB0_43
; %bb.16:
	ldr	w2, [x21, #40]
	ldr	x20, [x21, #72]
                                        ; implicit-def: $x12
                                        ; implicit-def: $x23
	stp	x22, x24, [sp, #16]             ; 16-byte Folded Spill
	ldr	w9, [x21, #80]
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	str	x26, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x12, x22
	ldp	x24, x8, [x21, #56]
	mov	x20, x10
	ldp	x25, x22, [sp, #8]              ; 16-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	x11, x11, #1
	add	x10, x8, x24
	str	x11, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x11, x10
	b.hs	LBB0_43
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;       Child Loop BB0_39 Depth 3
	add	x10, x20, w9, sxtw
	cmp	x20, x10
	b.hs	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrsw	x8, [x21, #8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	mul	x8, x9, x8
	lsl	x8, x8, #3
	mov	x9, x2
	sxtw	x9, w9
	mul	x9, x20, x9
	lsl	x9, x9, #3
	add	x10, x25, x8
	add	x24, x10, x9
	ldr	x10, [x22]
	ldr	x10, [x10]
	add	x8, x10, x8
	add	x25, x8, x9
	mov	x22, x12
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x24
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x20, x20, #1
	ldrsw	x2, [x21, #40]
	lsl	x8, x2, #3
	add	x25, x25, x8
	add	x24, x24, x8
	ldr	x10, [x21, #72]
	ldrsw	x9, [x21, #80]
	add	x8, x10, x9
	cmp	x20, x8
	b.hs	LBB0_17
LBB0_23:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_39 Depth 3
	ldr	w8, [x26]
	cmp	w8, #130
	b.eq	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	cmp	w8, #129
	b.eq	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
	cmp	w8, #128
	b.ne	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x23, [x25, #24]
	ldr	x22, [x24, #24]
	cbnz	x23, LBB0_30
	b	LBB0_22
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x9, [x21, #88]
	ldr	x10, [x25]
	add	x10, x9, x10, lsl #2
	ldrsb	x23, [x10, #3]
	ldr	x10, [x24]
	add	x9, x9, x10, lsl #2
	ldrsb	x22, [x9, #3]
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=2
	cbnz	x23, LBB0_30
	b	LBB0_22
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x23, [x25, #8]
	ldr	x22, [x24, #8]
	cbz	x23, LBB0_22
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=2
	cmp	x23, #255
	b.eq	LBB0_21
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=2
	cmp	w8, #129
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x26
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_avpriv_request_sample
	ldr	x8, [x25]
	str	x8, [x24]
	b	LBB0_22
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	w8, #255
	sub	x8, x8, x23
	mul	x0, x8, x22
	stp	x0, x8, [sp, #48]               ; 16-byte Folded Spill
	bl	_FAST_DIV255
	add	x27, x0, x23
	ldr	w8, [x21, #40]
	cmp	w8, #11
	cset	w0, lt
	bl	_av_assert0
	ldr	w2, [x21, #40]
	cmp	w2, #1
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x28, #0
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x8, sp, #64
	str	x27, [x8, x28, lsl #3]
	add	x1, sp, #64
	mov	x0, x24
	bl	_memcpy
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_22
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x28, #0
	lsl	x8, x23, #8
	sub	x8, x8, x23
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	lsl	x8, x27, #8
	sub	x19, x8, x27
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=3
	add	x8, sp, #64
	str	xzr, [x8, x28, lsl #3]
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=3
	add	x28, x28, #1
	sub	w8, w2, #1
	cmp	x28, w8, sxtw
	b.hs	LBB0_35
LBB0_39:                                ;   Parent Loop BB0_19 Depth=1
                                        ;     Parent Loop BB0_23 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x27, LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=3
	ldr	x8, [x25, x28, lsl #3]
	cmp	x22, #255
	b.ne	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=3
	mul	x8, x8, x23
	mov	x26, x22
	mov	x22, x21
	lsl	x21, x28, #3
	ldr	x9, [x24, x21]
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	madd	x0, x9, x10, x8
	bl	_FAST_DIV255
	add	x8, sp, #64
	str	x0, [x8, x21]
	mov	x21, x22
	mov	x22, x26
	ldr	w2, [x21, #40]
	b	LBB0_38
LBB0_42:                                ;   in Loop: Header=BB0_39 Depth=3
	ldp	x9, x11, [sp, #40]              ; 16-byte Folded Reload
	mul	x8, x9, x8
	lsl	x9, x28, #3
	ldr	x10, [x24, x9]
	madd	x8, x10, x11, x8
	udiv	x8, x8, x19
	add	x10, sp, #64
	str	x8, [x10, x9]
	b	LBB0_38
LBB0_43:
	ldr	x8, [x22]
	ldr	x0, [x8]
	ldp	w8, w9, [x21, #8]
	mul	w2, w9, w8
	mov	x1, x25
	bl	_memcpy
	mov	x0, x25
	bl	_av_free
	mov	w0, #0
LBB0_44:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.45:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_APNG_BLEND_OP_OVER,8,3         ; @APNG_BLEND_OP_OVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Blending with pixel format %s"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_APNG_DISPOSE_OP_PREVIOUS,8,3   ; @APNG_DISPOSE_OP_PREVIOUS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_APNG_DISPOSE_OP_BACKGROUND,8,3 ; @APNG_DISPOSE_OP_BACKGROUND
	.comm	_APNG_BLEND_OP_SOURCE,8,3       ; @APNG_BLEND_OP_SOURCE
l_.str.1:                               ; @.str.1
	.asciz	"Alpha blending palette samples"

	.no_dead_strip	_handle_p_frame_apng
.subsections_via_symbols
