	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnm_parse
_pnm_parse:                             ## @pnm_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%r8, -136(%rbp)
	movl	%r9d, -48(%rbp)
	movq	(%rdi), %r12
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_2
## %bb.1:
	movq	16(%r12), %rsi
	movq	24(%r12), %rdi
	addq	%rsi, %rdi
	addq	32(%r12), %rsi
	movq	%r8, %rbx
	movq	%r15, %r13
	movl	%r9d, %r15d
	callq	_memmove
	movl	%r15d, %r9d
	movq	%r13, %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	%rbx, %r8
	movdqu	24(%r12), %xmm0
	movq	8(%r12), %xmm1                  ## xmm1 = mem[0],zero
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 24(%r12)
	movq	$0, 8(%r12)
LBB0_2:
	leaq	8(%r12), %rbx
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.39:
	movl	%r9d, %esi
	callq	_FFMIN
	subl	%eax, (%r12)
	cmovel	%eax, %r13d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -116(%rbp)                ## 4-byte Spill
	movslq	%r9d, %rax
	leaq	(%r8,%rax,4), %r15
	xorl	%ecx, %ecx
	leaq	-112(%rbp), %r13
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rcx, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	leaq	(%r8,%rax,4), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%r15, %rbx
	subq	%rax, %r15
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%r12), %rcx
	movq	%rcx, -104(%rbp)
	movq	%rcx, -112(%rbp)
	addq	%rcx, %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -104(%rbp)
	movq	%rax, -112(%rbp)
	movq	%r15, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, -96(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ff_pnm_decode_header
	testq	%rax, %rax
	jns	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-104(%rbp), %rsi
	cmpq	-96(%rbp), %rsi
	jge	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, 24(%r12)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	$0, 24(%r12)
	movl	$0, 4(%r12)
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	subl	-112(%rbp), %esi
	movl	$1, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMAX
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	movq	%rbx, %r15
	jmp	LBB0_4
LBB0_14:
	cmpl	$3, -88(%rbp)
	movq	-104(%rbp), %r15
	jg	LBB0_28
## %bb.15:
	movq	-96(%rbp), %r14
	cmpq	$0, 24(%r12)
	je	LBB0_16
## %bb.17:
	movslq	4(%r12), %rax
	movq	%r14, %rcx
	subq	%r15, %rcx
	sarq	$2, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setge	%dil
	callq	_av_assert0
	movslq	4(%r12), %rax
	leaq	(%r15,%rax,4), %rax
	jmp	LBB0_18
LBB0_10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_29
LBB0_28:
	subl	-112(%rbp), %r15d
	movl	8(%r14), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	$1, %ecx
	callq	_av_image_get_buffer_size
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%r15d, %ecx
	addl	%eax, %ecx
	movl	%ecx, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_29:
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_16:
	movq	%r15, %rax
LBB0_18:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpq	%r14, %rax
	jb	LBB0_20
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$80, %ecx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	%r14, %rax
	jae	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	addq	$4, %rax
	movl	(%r15), %ecx
	cmpl	$35, %ecx
	jne	LBB0_21
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rdx
	subq	%rax, %rdx
	shrq	$2, %rdx
	movq	%rax, %rdi
	movl	$10, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$4, %rax
	cmpq	%r14, %rax
	jb	LBB0_20
	jmp	LBB0_23
LBB0_22:
	movl	-112(%rbp), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx,4), %r13d
	addl	$-4, %r13d
	movl	$0, 4(%r12)
LBB0_23:
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_25
## %bb.24:
	movl	-104(%rbp), %eax
	shll	$2, %eax
	subl	%eax, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%r15,%rax,4), %eax
	movl	%eax, 4(%r12)
LBB0_25:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_30:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%rcx), %r13d
	je	LBB0_33
## %bb.31:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	-112(%rbp), %rax
	je	LBB0_33
## %bb.32:
	subl	24(%r12), %r13d
LBB0_33:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, %eax
	subl	-116(%rbp), %eax                ## 4-byte Folded Reload
	jle	LBB0_35
## %bb.34:
	movl	%eax, (%r12)
	movl	(%rcx), %r13d
LBB0_35:
	leaq	-136(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_ff_combine_frame
	testq	%rax, %rax
	js	LBB0_36
## %bb.37:
	movq	-136(%rbp), %rax
	movq	%rax, (%r15)
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_38
LBB0_36:
	movq	$0, (%r15)
	movl	$0, (%r14)
	movl	-48(%rbp), %r13d
LBB0_38:
	movl	%r13d, %eax
	addq	$104, %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
	.no_dead_strip	_pnm_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnm_parse
_pnm_parse:                             ; @pnm_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x5
	mov	x24, x4
	mov	x27, x3
	mov	x20, x2
	mov	x25, x1
	str	x4, [sp, #56]
	str	w5, [sp, #52]
	ldr	x26, [x0]
	mov	x21, x26
	ldr	x2, [x21, #8]!
Lloh0:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cmp	x2, #1
	b.lt	LBB0_2
; %bb.1:
	add	x19, x26, #8
	ldp	x8, x9, [x26, #16]
	add	x0, x9, x8
	ldr	x9, [x26, #32]
	add	x1, x9, x8
	bl	_memmove
	ldur	q0, [x26, #24]
	ld1r.2d	{ v1 }, [x19]
	add.2d	v0, v0, v1
	stur	q0, [x26, #24]
	str	xzr, [x26, #8]
LBB0_2:
	ldr	w0, [x26]
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x23
	bl	_FFMIN
	ldr	w8, [x26]
	subs	w8, w8, w0
	str	w8, [x26]
	csel	w22, w0, w22, eq
	b	LBB0_31
LBB0_4:
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	w8, #0
	add	x27, x24, w23, sxtw #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x9, w8
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	sbfiz	x8, x8, #2, #32
	add	x28, x24, x8
	sub	x19, x27, x8
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x26, #16]
	stp	x9, x9, [sp, #16]
	add	x8, x9, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	x28, x28, [sp, #16]
	mov	x8, x19
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x25
	bl	_ff_pnm_decode_header
	tbz	x0, #63, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [sp, #24]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x26, #24]
	cbz	x9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x26, #24]
	str	wzr, [x26, #4]
	ldr	x8, [x26, #24]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #16]
	sub	w1, w8, w9
	mov	w0, #1
	bl	_FFMAX
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	w8, w0, w8
	b	LBB0_5
LBB0_13:
	ldr	w8, [sp, #40]
	ldr	x27, [sp, #24]
	cmp	w8, #3
Lloh3:
	adrp	x28, _END_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x28, [x28, _END_NOT_FOUND@GOTPAGEOFF]
	b.gt	LBB0_17
; %bb.14:
	ldr	x25, [sp, #32]
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_18
; %bb.15:
	ldrsw	x8, [x26, #4]
	sub	x9, x25, x27
	cmp	x8, x9, asr #2
	cset	w0, le
	bl	_av_assert0
	ldrsw	x8, [x26, #4]
	add	x0, x27, x8, lsl #2
	cmp	x0, x25
	b.lo	LBB0_22
	b	LBB0_24
LBB0_16:
Lloh5:
	adrp	x28, _END_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x28, [x28, _END_NOT_FOUND@GOTPAGEOFF]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_27
LBB0_17:
	ldr	w8, [sp, #16]
	sub	w19, w27, w8
	ldp	w1, w0, [x25, #4]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_av_image_get_buffer_size
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	w8, w10, w19
	add	w22, w8, w0
	b	LBB0_27
LBB0_18:
	mov	x0, x27
	cmp	x0, x25
	b.lo	LBB0_22
	b	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	w8, #80
	b.eq	LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x0, x25
	b.lo	LBB0_22
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x0, x0, #4
	cmp	x0, x25
	b.hs	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x27, x0
	ldr	w8, [x0], #4
	cmp	w8, #35
	b.ne	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	x8, x25, x0
	lsr	x2, x8, #2
	mov	w1, #10
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memchr
	cbnz	x0, LBB0_21
LBB0_24:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
LBB0_25:
	ldr	w8, [x28]
	cmp	w22, w8
	b.ne	LBB0_27
; %bb.26:
	ldr	w8, [sp, #24]
	sub	w8, w27, w8, lsl #2
	add	w8, w8, w10, lsl #2
	str	w8, [x26, #4]
LBB0_27:
	ldr	w8, [x28]
	ldr	x9, [sp, #16]
	add	x10, x24, x10, lsl #2
	cmp	w22, w8
	ccmp	x10, x9, #4, ne
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	b.eq	LBB0_29
; %bb.28:
	ldr	w8, [x26, #24]
	sub	w22, w22, w8
LBB0_29:
	subs	w8, w22, w23
	b.le	LBB0_31
; %bb.30:
	str	w8, [x26]
	ldr	w22, [x28]
LBB0_31:
	add	x2, sp, #56
	add	x3, sp, #52
	mov	x0, x21
	mov	x1, x22
	bl	_ff_combine_frame
	tbnz	x0, #63, LBB0_33
; %bb.32:
	ldr	x8, [sp, #56]
	str	x8, [x20]
	ldr	w8, [sp, #52]
	str	w8, [x27]
	b	LBB0_34
LBB0_33:
	str	xzr, [x20]
	str	wzr, [x27]
	ldr	w22, [sp, #52]
LBB0_34:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_35:
	ldr	w8, [sp, #16]
	sub	w8, w0, w8, lsl #2
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	w8, w8, w10, lsl #2
	sub	w22, w8, #4
	str	wzr, [x26, #4]
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_pnm_parse
.subsections_via_symbols
