	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv4_read_packet
_yuv4_read_packet:                      ## @yuv4_read_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_FRAME_HEADER@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	16(%r12), %rdi
	callq	_avio_tell
	movl	%eax, %r15d
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	callq	_avio_r8
	movb	%al, (%rbx,%r14)
	cmpb	$10, %al
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_2
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_5:
	movb	$0, 1(%rbx,%r14)
LBB0_6:
	movq	16(%r12), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	cmpq	$0, 8(%rcx)
	je	LBB0_9
LBB0_8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	cmpl	(%r13), %r14d
	je	LBB0_11
## %bb.10:
	movq	_Y4M_FRAME_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	16(%r12), %rdi
	movl	(%r12), %edx
	movq	_Y4M_FRAME_MAGIC_LEN@GOTPCREL(%rip), %r14
	subl	(%r14), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.16:
	movl	(%r12), %ecx
	movl	%ecx, %edx
	subl	(%r14), %edx
	cmpl	%edx, %eax
	jne	LBB0_18
## %bb.17:
	movq	$0, 8(%rbx)
	movq	8(%r12), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rbx)
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_18:
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movq	16(%r12), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.19:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_13
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAME_HEADER,4,2           ## @MAX_FRAME_HEADER
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_Y4M_FRAME_MAGIC,4,2            ## @Y4M_FRAME_MAGIC
	.comm	_Y4M_FRAME_MAGIC_LEN,4,2        ## @Y4M_FRAME_MAGIC_LEN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_yuv4_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv4_read_packet
_yuv4_read_packet:                      ; @yuv4_read_packet
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MAX_FRAME_HEADER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_FRAME_HEADER@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x0, [x0, #16]
	bl	_avio_tell
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #16]
	bl	_avio_r8
	strb	w0, [x22, x24]
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	add	x8, x22, x24
	strb	wzr, [x8, #1]
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldr	w8, [x23]
	cmp	w24, w8
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _Y4M_FRAME_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Y4M_FRAME_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbz	x0, LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.14:
	sub	sp, x29, #48
	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
LBB0_15:
	ldr	x0, [x20, #16]
	ldr	w8, [x20]
Lloh17:
	adrp	x22, _Y4M_FRAME_MAGIC_LEN@GOTPAGE
Lloh18:
	ldr	x22, [x22, _Y4M_FRAME_MAGIC_LEN@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w2, w8, w9
	mov	x1, x19
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_13
; %bb.16:
	ldr	w8, [x20]
	ldr	w9, [x22]
	sub	w9, w8, w9
	cmp	w0, w9
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	str	xzr, [x19, #8]
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	sub	w9, w21, w9
	sdiv	w8, w9, w8
	mov	w9, #1
	stp	w8, w9, [x19]
	b	LBB0_13
LBB0_18:
	mov	x0, x19
	bl	_av_packet_unref
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_8
; %bb.19:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_13
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAME_HEADER,4,2           ; @MAX_FRAME_HEADER
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_Y4M_FRAME_MAGIC,4,2            ; @Y4M_FRAME_MAGIC
	.comm	_Y4M_FRAME_MAGIC_LEN,4,2        ; @Y4M_FRAME_MAGIC_LEN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_yuv4_read_packet
.subsections_via_symbols
