	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse
_parse:                                 ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, (%rdx)
	movl	%r9d, (%rcx)
	cmpl	$3, %r9d
	jl	LBB0_12
## %bb.1:
	movq	%r8, %rbx
	movq	%rsi, %r12
	movl	(%r8), %eax
	movl	%eax, %ecx
	shrl	%ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	jb	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	jmp	LBB0_11
LBB0_3:
	movq	%rdi, %r14
	andl	$1, %eax
	movl	%ecx, (%r12)
	movl	%eax, %ecx
	xorl	$1, %ecx
	movl	%ecx, (%rdi)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 44(%r14)
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r14)
	movq	_AV_FIELD_PROGRESSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r14)
	movq	_AV_PICTURE_STRUCTURE_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	cmpl	$10, %r15d
	jb	LBB0_12
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	leaq	12(%rbx), %rdi
	callq	_AV_RL24
	cmpl	$2752925, %eax                  ## imm = 0x2A019D
	jne	LBB0_10
## %bb.9:
	leaq	24(%rbx), %rdi
	callq	_AV_RL16
	movl	%eax, %r12d
	andl	$16383, %r12d                   ## imm = 0x3FFF
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL16
	movl	%eax, %ebx
	andl	$16383, %ebx                    ## imm = 0x3FFF
	movl	%r12d, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%r12d, %edi
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 24(%r14)
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 16(%r14)
	jmp	LBB0_12
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %ecx
LBB0_11:
	callq	_av_log
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid profile %u.\n"

	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_FIELD_PROGRESSIVE,4,2       ## @AV_FIELD_PROGRESSIVE
	.comm	_AV_PICTURE_STRUCTURE_FRAME,4,2 ## @AV_PICTURE_STRUCTURE_FRAME
L_.str.1:                               ## @.str.1
	.asciz	"Invalid sync code %06x.\n"

	.no_dead_strip	_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse
_parse:                                 ; @parse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x5
	str	x4, [x2]
	str	w5, [x3]
	cmp	w5, #3
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x4
	mov	x21, x1
	ldr	w8, [x4]
	ubfx	w3, w8, #1, #3
	cmp	w3, #4
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	str	w3, [x21]
	ands	w8, w8, #0x1
	eor	w9, w8, #0x1
	str	w9, [x0]
Lloh5:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh7:
	adrp	x10, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh8:
	ldr	x10, [x10, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #40]
Lloh12:
	adrp	x9, _AV_FIELD_PROGRESSIVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_FIELD_PROGRESSIVE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _AV_PICTURE_STRUCTURE_FRAME@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_PICTURE_STRUCTURE_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #32]
	cmp	w19, #10
	b.lo	LBB0_9
; %bb.4:
	cbnz	w8, LBB0_9
; %bb.5:
	add	x0, x22, #12
	bl	_AV_RL24
	sub	w8, w0, #672, lsl #12           ; =2752512
	cmp	w8, #413
	b.ne	LBB0_7
; %bb.6:
	add	x0, x22, #24
	bl	_AV_RL16
	and	w21, w0, #0x3fff
	add	x0, x22, #32
	bl	_AV_RL16
	and	w22, w0, #0x3fff
	stp	w21, w22, [x20, #4]
	mov	x0, x21
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x20, #24]
	mov	x0, x22
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x20, #16]
	b	LBB0_9
LBB0_7:
	mov	x3, x0
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x21
	bl	_av_log
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid profile %u.\n"

	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_FIELD_PROGRESSIVE,4,2       ; @AV_FIELD_PROGRESSIVE
	.comm	_AV_PICTURE_STRUCTURE_FRAME,4,2 ; @AV_PICTURE_STRUCTURE_FRAME
l_.str.1:                               ; @.str.1
	.asciz	"Invalid sync code %06x.\n"

	.no_dead_strip	_parse
.subsections_via_symbols
