	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_parse
_png_parse:                             ## @png_parse
	.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	%r8, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)
	movl	%r9d, -44(%rbp)
	movq	8(%rdi), %r12
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_AV_PICTURE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	leaq	12(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.2:
	movl	%r9d, %esi
	callq	_FFMIN
	subl	%eax, (%r12)
	jne	LBB0_31
## %bb.3:
	movl	%eax, %r14d
	cmpl	$-1, 4(%r12)
	je	LBB0_29
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	-44(%rbp), %r9d
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_31
LBB0_5:
	movl	16(%r12), %ecx
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.6:
	movl	%r9d, %edx
	movq	_PNGSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MNGSIG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ecx
	orl	(%rbx,%r14,4), %ecx
	cmpl	%eax, %ecx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%esi, %ecx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	cmpq	%r14, %rdx
	jne	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	movl	%edx, %r14d
	jmp	LBB0_14
LBB0_11:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_31
LBB0_12:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_13:
	incl	%r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$1, %eax
LBB0_14:
	movl	%ecx, 16(%r12)
	testl	%eax, %eax
	je	LBB0_31
LBB0_15:
	cmpl	%r14d, %r9d
	jle	LBB0_31
## %bb.16:
	movl	4(%r12), %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%ecx
	movl	%ecx, 4(%r12)
	testl	%eax, %eax
	je	LBB0_31
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%r14d
	cmpl	%r14d, %r9d
	jle	LBB0_31
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r12), %r15d
	shll	$8, %r15d
	movslq	%r14d, %rdx
	orl	(%rbx,%rdx,4), %r15d
	movl	%r15d, 20(%r12)
	cmpl	$7, %ecx
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$3, %ecx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	addl	$4, %r15d
	movl	%r15d, 8(%r12)
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	8(%r12), %eax
	movl	%r9d, %ecx
	subl	%r14d, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r14d, %ecx
	subl	%r9d, %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%r12)
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$73, %edi
	movl	$69, %esi
	movl	$78, %edx
	movl	$68, %ecx
	callq	_MKBETAG
	cmpl	%eax, %r15d
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$0, 4(%r12)
	cmpl	$0, (%r12)
	jne	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	addl	8(%r12), %r14d
	movl	12(%r12), %eax
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_31
LBB0_27:
	cmpl	$0, (%r12)
	je	LBB0_30
## %bb.28:
	movl	$-1, 4(%r12)
	jmp	LBB0_31
LBB0_29:
	movl	%r14d, %r13d
	jmp	LBB0_31
LBB0_30:
	movl	8(%r12), %eax
	leal	(%r14,%rax), %r13d
	incl	%r13d
LBB0_31:
	leaq	-64(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_ff_combine_frame
	testq	%rax, %rax
	js	LBB0_33
## %bb.32:
	movl	$0, 12(%r12)
	movl	$0, 4(%r12)
	movq	-64(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-44(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_34
LBB0_33:
	movl	-44(%rbp), %r13d
LBB0_34:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.comm	_AV_PICTURE_TYPE_NONE,4,2       ## @AV_PICTURE_TYPE_NONE
	.comm	_PNGSIG,4,2                     ## @PNGSIG
	.comm	_MNGSIG,4,2                     ## @MNGSIG
	.no_dead_strip	_png_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_parse
_png_parse:                             ; @png_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	str	x4, [sp, #8]
	str	w5, [sp, #4]
	ldr	x25, [x0, #8]
Lloh0:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _AV_PICTURE_TYPE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PICTURE_TYPE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
	str	wzr, [x3]
	mov	x22, x25
	ldr	w8, [x22, #12]!
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w0, [x25]
	cbz	w0, LBB0_10
; %bb.2:
	mov	x1, x5
	bl	_FFMIN
	ldr	w8, [x25]
	subs	w8, w8, w0
	str	w8, [x25]
	b.ne	LBB0_29
; %bb.3:
	mov	x24, x0
	ldr	w8, [x25, #4]
	cmn	w8, #1
	b.eq	LBB0_27
; %bb.4:
	ldr	w8, [x22]
	ldr	w5, [sp, #4]
	cbnz	w8, LBB0_13
	b	LBB0_29
LBB0_5:
	ldr	w9, [x25, #16]
	cmp	w5, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x8, #0
	mov	w24, w5
Lloh6:
	adrp	x10, _PNGSIG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PNGSIG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MNGSIG@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MNGSIG@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x23, x8, lsl #2]
	orr	w9, w12, w9, lsl #8
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x24, x8
	b.ne	LBB0_7
; %bb.9:
	mov	w8, #0
	str	w9, [x25, #16]
	cbnz	w8, LBB0_13
	b	LBB0_29
LBB0_10:
	mov	w24, #0
	cbnz	w8, LBB0_13
	b	LBB0_29
LBB0_11:
	mov	w8, #0
	mov	w24, #0
	str	w9, [x25, #16]
	cbnz	w8, LBB0_13
	b	LBB0_29
LBB0_12:
	add	w24, w8, #1
	mov	w8, #1
	str	w8, [x22]
	str	w9, [x25, #16]
	cbz	w8, LBB0_29
LBB0_13:
	cmp	w5, w24
	b.le	LBB0_29
; %bb.14:
	ldr	w9, [x25, #4]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x25, #20]
	ldr	w11, [x23, w24, sxtw #2]
	orr	w26, w11, w10, lsl #8
	str	w26, [x25, #20]
	cmp	w9, #7
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w9, #3
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w10, w26, #4
	str	w10, [x25, #8]
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w9, w9, #1
	str	w9, [x25, #4]
	cbnz	w8, LBB0_24
	b	LBB0_29
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x25, #8]
	sub	w9, w5, w24
	cmp	w8, w9
	b.lt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w9, w24, w5
	add	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x25]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #73
	mov	w1, #69
	mov	w2, #78
	mov	w3, #68
	bl	_MKBETAG
	cmp	w26, w0
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	str	wzr, [x25, #4]
	ldr	w8, [x25]
	cbnz	w8, LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w9, #0
	ldp	w10, w8, [x25, #8]
	add	w24, w10, w24
	ldr	w5, [sp, #4]
	cbz	w8, LBB0_29
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w24, w24, #1
	cmp	w5, w24
	b.gt	LBB0_15
	b	LBB0_29
LBB0_25:
	ldr	w8, [x25]
	cbz	w8, LBB0_28
; %bb.26:
	mov	w8, #-1
	str	w8, [x25, #4]
	b	LBB0_29
LBB0_27:
	mov	x21, x24
	b	LBB0_29
LBB0_28:
	ldr	w8, [x25, #8]
	add	w8, w24, w8
	add	w21, w8, #1
LBB0_29:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x22
	mov	x1, x21
	bl	_ff_combine_frame
	tbnz	x0, #63, LBB0_31
; %bb.30:
	str	wzr, [x25, #12]
	str	wzr, [x25, #4]
	ldr	x8, [sp, #8]
	str	x8, [x20]
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_32
LBB0_31:
	ldr	w21, [sp, #4]
LBB0_32:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.comm	_AV_PICTURE_TYPE_NONE,4,2       ; @AV_PICTURE_TYPE_NONE
	.comm	_PNGSIG,4,2                     ; @PNGSIG
	.comm	_MNGSIG,4,2                     ; @MNGSIG
	.no_dead_strip	_png_parse
.subsections_via_symbols
