	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_p_frame_png
_handle_p_frame_png:                    ## @handle_p_frame_png
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_av_image_get_linesize
	movl	4(%r14), %esi
	imull	(%r14), %esi
	movl	%eax, %edi
	callq	_FFMIN
	movl	%eax, %r12d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_thread_await_progress
	movl	8(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.1:
	movslq	12(%r14), %r11
	movl	%r12d, %edx
	movl	%edx, %r9d
	andl	$-4, %r9d
	leaq	-4(%r9), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$2, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	andl	$3, %r15d
	leaq	(,%r11,8), %rcx
	xorl	%esi, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rdi
	addq	%rcx, %r13
	incq	%rsi
	cmpl	%r8d, %esi
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, %r12d
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rax
	imulq	%r11, %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rbx
	cmpq	%rbx, %rdi
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rax
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rax
	notq	%rax
	addq	%rdx, %rax
	testq	%r15, %r15
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%r14,8), %r10
	addq	%r10, (%rdi,%r14,8)
	incq	%r14
	decq	%rbx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %rax
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%r14,8), %rax
	addq	%rax, (%rdi,%r14,8)
	movq	8(%r13,%r14,8), %rax
	addq	%rax, 8(%rdi,%r14,8)
	movq	16(%r13,%r14,8), %rax
	addq	%rax, 16(%rdi,%r14,8)
	movq	24(%r13,%r14,8), %rax
	addq	%rax, 24(%rdi,%r14,8)
	addq	$4, %r14
	cmpq	%r14, %rdx
	jne	LBB0_19
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r13,%rax,8), %xmm0
	movdqu	16(%r13,%rax,8), %xmm1
	movdqu	(%rdi,%rax,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rdi,%rax,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rdi,%rax,8), %xmm1
	movdqu	48(%rdi,%rax,8), %xmm3
	movdqu	%xmm2, (%rdi,%rax,8)
	movdqu	%xmm0, 16(%rdi,%rax,8)
	movdqu	32(%r13,%rax,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	48(%r13,%rax,8), %xmm1
	paddq	%xmm3, %xmm1
	movdqu	%xmm0, 32(%rdi,%rax,8)
	movdqu	%xmm1, 48(%rdi,%rax,8)
	addq	$8, %rax
	addq	$-2, %rbx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movdqu	(%r13,%rax,8), %xmm0
	movdqu	16(%r13,%rax,8), %xmm1
	movdqu	(%rdi,%rax,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rdi,%rax,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%rdi,%rax,8)
	movdqu	%xmm0, 16(%rdi,%rax,8)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %r14
	cmpq	%rdx, %r9
	je	LBB0_2
	jmp	LBB0_15
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_handle_p_frame_png
.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_png
_handle_p_frame_png:                    ; @handle_p_frame_png
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	x22, [x8]
	mov	x21, x0
	ldr	x8, [x21, #16]!
	ldr	x8, [x8]
	ldr	x23, [x8]
	ldr	w0, [x1]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_av_image_get_linesize
	ldp	w8, w9, [x20]
	mul	w1, w9, w8
	bl	_FFMIN
	mov	x19, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_ff_thread_await_progress
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x9, #0
	mov	w10, w19
	and	x11, x10, #0xfffffff8
	lsl	x13, x10, #3
	ldrsw	x12, [x20, #12]
	and	x13, x13, #0x7ffffffc0
	lsl	x14, x12, #3
	mov	x15, x23
	mov	x16, x22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x16, x16, x14
	add	x15, x15, x14
	add	x9, x9, #1
	cmp	w9, w8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x17, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x17, x9, x12, x10
	lsl	x17, x17, #3
	add	x0, x22, x17
	add	x17, x23, x17
	cmp	x16, x17
	mov	x17, #0
	ccmp	x15, x0, #2, lo
	b.lo	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x15, x17
	ldp	q0, q1, [x0]
	ldp	q2, q3, [x0, #32]
	add	x0, x16, x17
	ldp	q4, q5, [x0]
	ldp	q6, q7, [x0, #32]
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	stp	q0, q1, [x0]
	stp	q2, q3, [x0, #32]
	add	x17, x17, #64
	cmp	x13, x17
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x17, x11
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x0, x17, #3
	ldr	x1, [x15, x0]
	ldr	x2, [x16, x0]
	add	x1, x2, x1
	str	x1, [x16, x0]
	add	x17, x17, #1
	cmp	x10, x17
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_handle_p_frame_png
.subsections_via_symbols
