	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnm_encode_frame
_pnm_encode_frame:                      ## @pnm_encode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movl	$1, %ecx
	callq	_av_image_get_buffer_size
                                        ## kill: def $eax killed $eax def $rax
	leal	200(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_26
## %bb.1:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_4
## %bb.2:
	movq	8(%r12), %r13
	movslq	(%r12), %rsi
	movl	8(%rbx), %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_3:
	movl	4(%rbx), %r8d
	leal	(%r8,%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	movl	$53, %ecx
	jmp	LBB0_15
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_26
LBB0_5:
	movl	4(%rbx), %r8d
	leal	(%r8,%r8), %eax
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %r8d
	leal	(%r8,%r8,2), %eax
LBB0_7:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$54, %ecx
	jmp	LBB0_14
LBB0_8:
	movl	4(%rbx), %r8d
	leal	7(%r8), %eax
	sarl	$3, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$52, %ecx
	jmp	LBB0_14
LBB0_9:
	movl	4(%rbx), %r8d
	movl	%r8d, %eax
	orl	%edx, %eax
	testb	$1, %al
	jne	LBB0_27
## %bb.10:
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	movl	$53, %ecx
	jmp	LBB0_12
LBB0_11:
	movl	4(%rbx), %r8d
	movl	$53, %ecx
	movl	%edx, %r9d
LBB0_12:
	movl	%r8d, %eax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_13:
	movl	4(%rbx), %r8d
	leal	(%r8,%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$53, %ecx
LBB0_14:
	movl	%edx, %r9d
LBB0_15:
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movq	%rsi, %r14
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r13, %rdi
	callq	_strlen
	cltq
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	cmpl	$132, %edi
	je	LBB0_17
## %bb.16:
	leaq	(,%r14,4), %rbx
	addq	%r13, %rbx
	callq	_av_pix_fmt_desc_get
	movq	(%rax), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	subq	%r12, %rbx
	shrq	$2, %rbx
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	cltq
	leaq	(%r12,%rax,4), %r12
LBB0_17:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_20
## %bb.18:
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movslq	(%rax), %r14
	movq	(%rcx), %rbx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rax
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r14
	movl	%edx, %r13d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	addq	%r14, %rbx
	decl	%r13d
	jne	LBB0_19
	jmp	LBB0_21
LBB0_20:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_21:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_25
## %bb.22:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	$2, %r13d
	jl	LBB0_25
## %bb.23:
	movl	%r15d, %r14d
	sarl	%r14d
	shrl	%r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	8(%rax), %rbx
	movq	16(%rax), %r15
	movslq	%r14d, %rax
	leaq	(,%rax,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	4(%rax), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	movslq	8(%rax), %rax
	leaq	(%r15,%rax,4), %r15
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%r13d
	jne	LBB0_24
LBB0_25:
	subq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	shrq	$2, %r12
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, (%rcx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rcx)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_26:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pgmyuv needs even width and height\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"P%c\n%d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_pnm_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnm_encode_frame
_pnm_encode_frame:                      ; @pnm_encode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x0]
	ldp	w1, w2, [x23, #4]
	mov	w3, #1
	bl	_av_image_get_buffer_size
	add	w2, w0, #200
	mov	x0, x23
	mov	x1, x20
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_23
; %bb.1:
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.2:
	ldr	x27, [x20, #8]
	ldrsw	x26, [x20]
	ldr	w22, [x23, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	br	x10
LBB0_3:
	ldr	w8, [x23, #4]
	lsl	w24, w8, #1
	add	w9, w22, w22, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	mov	w3, #53
	b	LBB0_14
LBB0_4:
	mov	w0, #-1
	b	LBB0_23
LBB0_5:
	ldr	w8, [x23, #4]
	add	w9, w8, w8, lsl #1
	lsl	w24, w9, #1
	b	LBB0_7
LBB0_6:
	ldr	w8, [x23, #4]
	add	w24, w8, w8, lsl #1
LBB0_7:
	mov	w3, #54
	b	LBB0_13
LBB0_8:
	ldr	w8, [x23, #4]
	add	w9, w8, #7
	asr	w24, w9, #3
	mov	w3, #52
	b	LBB0_13
LBB0_9:
	ldr	w8, [x23, #4]
	orr	w9, w8, w22
	tbnz	w9, #0, LBB0_24
; %bb.10:
	add	w9, w22, w22, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	mov	w3, #53
	mov	x24, x8
	b	LBB0_14
LBB0_11:
	ldr	w8, [x23, #4]
	mov	w3, #53
	mov	x9, x22
	mov	x24, x8
	b	LBB0_14
LBB0_12:
	ldr	w8, [x23, #4]
	lsl	w24, w8, #1
	mov	w3, #53
LBB0_13:
	mov	x9, x22
LBB0_14:
	stp	x8, x9, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x27
	mov	x1, x26
	bl	_snprintf
	mov	x0, x27
	bl	_strlen
	add	x25, x27, w0, sxtw #2
	ldr	w0, [x23]
	cmp	w0, #132
	b.eq	LBB0_16
; %bb.15:
	add	x19, x27, x26, lsl #2
	bl	_av_pix_fmt_desc_get
	ldr	x8, [x0]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w3, w8
	sub	x8, x19, x25
	lsr	x1, x8, #2
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	mov	x0, x25
	bl	_strlen
	add	x25, x25, w0, sxtw #2
LBB0_16:
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.17:
	ldp	x8, x9, [x21]
	ldrsw	x8, [x8]
	ldr	x26, [x9]
	sbfiz	x19, x24, #2, #32
	lsl	x28, x8, #2
	mov	x27, x22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	mov	x2, x24
	bl	_memcpy
	add	x25, x25, x19
	add	x26, x26, x28
	subs	w27, w27, #1
	b.ne	LBB0_18
LBB0_19:
	ldr	w8, [x23]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	ccmp	w22, #2, #8, eq
	b.lt	LBB0_22
; %bb.20:
	asr	w23, w24, #1
	lsr	w27, w22, #1
	ldr	x8, [x21, #8]
	ldp	x26, x24, [x8, #8]
	sbfiz	x28, x23, #3, #32
	sbfiz	x19, x23, #2, #32
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	bl	_memcpy
	add	x0, x25, x19
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x21]
	ldpsw	x9, x8, [x8, #4]
	add	x26, x26, x9, lsl #2
	add	x24, x24, x8, lsl #2
	add	x25, x25, x28
	subs	w27, w27, #1
	b.ne	LBB0_21
LBB0_22:
	mov	w0, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sub	x8, x25, x8
	lsr	x8, x8, #2
	str	w8, [x20]
Lloh6:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	w8, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_log
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pgmyuv needs even width and height\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"P%c\n%d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_pnm_encode_frame
.subsections_via_symbols
