	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vorbis_parse_frame_flags    ## -- Begin function av_vorbis_parse_frame_flags
	.p2align	4, 0x90
_av_vorbis_parse_frame_flags:           ## @av_vorbis_parse_frame_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_21
## %bb.1:
	cmpq	$0, 40(%rdi)
	je	LBB0_21
## %bb.2:
	movl	(%rsi), %edx
	testb	$1, %dl
	jne	LBB0_3
## %bb.13:
	movl	4(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_15
## %bb.14:
	movl	8(%rdi), %eax
	andl	%edx, %eax
	sarl	%eax
LBB0_15:
	cmpl	%ecx, %eax
	jge	LBB0_16
## %bb.17:
	movq	16(%rdi), %rcx
	cltq
	movslq	(%rcx,%rax,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.19:
	xorl	%eax, %eax
	testl	%edx, 24(%rdi)
	setne	%al
	movq	32(%rdi), %rdx
	movl	(%rdx,%rax,4), %eax
	jmp	LBB0_20
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.4:
	cmpl	$5, %edx
	je	LBB0_10
## %bb.5:
	cmpl	$3, %edx
	je	LBB0_9
## %bb.6:
	cmpl	$1, %edx
	jne	LBB0_11
## %bb.7:
	movq	_VORBIS_FLAG_HEADER@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_12:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_18:
	movl	(%rdi), %eax
	movq	32(%rdi), %rdx
LBB0_20:
	movl	(%rdx,%rcx,4), %ecx
	addl	%ecx, %eax
	sarl	$2, %eax
	movl	%ecx, (%rdi)
LBB0_21:
	popq	%rbp
	retq
LBB0_10:
	movq	_VORBIS_FLAG_SETUP@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_9:
	movq	_VORBIS_FLAG_COMMENT@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VORBIS_FLAG_HEADER,4,2         ## @VORBIS_FLAG_HEADER
	.comm	_VORBIS_FLAG_COMMENT,4,2        ## @VORBIS_FLAG_COMMENT
	.comm	_VORBIS_FLAG_SETUP,4,2          ## @VORBIS_FLAG_SETUP
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid mode in packet\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vorbis_parse_frame_flags    ; -- Begin function av_vorbis_parse_frame_flags
	.p2align	2
_av_vorbis_parse_frame_flags:           ; @av_vorbis_parse_frame_flags
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #0
	cmp	w2, #1
	b.lt	LBB0_21
; %bb.1:
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_21
; %bb.2:
	ldr	w8, [x1]
	tbnz	w8, #0, LBB0_6
; %bb.3:
	ldr	w9, [x0, #4]
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.4:
	mov	w10, #0
	cmp	w10, w9
	b.lt	LBB0_14
LBB0_5:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
	cbz	x3, LBB0_11
; %bb.7:
	cmp	w8, #5
	b.eq	LBB0_18
; %bb.8:
	cmp	w8, #3
	b.eq	LBB0_19
; %bb.9:
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #0
Lloh5:
	adrp	x9, _VORBIS_FLAG_HEADER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VORBIS_FLAG_HEADER@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
LBB0_12:
	bl	_av_log
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	b	LBB0_21
LBB0_13:
	ldr	w10, [x0, #8]
	and	w10, w10, w8
	asr	w10, w10, #1
	cmp	w10, w9
	b.ge	LBB0_5
LBB0_14:
	ldr	x9, [x0, #16]
	ldrsw	x9, [x9, w10, sxtw #2]
	cbz	w9, LBB0_16
; %bb.15:
	ldr	w10, [x0, #24]
	tst	w10, w8
	cset	w8, ne
	ldr	x10, [x0, #32]
	ldr	w8, [x10, w8, uxtw #2]
	b	LBB0_17
LBB0_16:
	ldr	w8, [x0]
	ldr	x10, [x0, #32]
LBB0_17:
	ldr	w9, [x10, x9, lsl #2]
	add	w8, w9, w8
	asr	w8, w8, #2
	str	w9, [x0]
	b	LBB0_21
LBB0_18:
	mov	w8, #0
Lloh15:
	adrp	x9, _VORBIS_FLAG_SETUP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VORBIS_FLAG_SETUP@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	mov	w8, #0
Lloh17:
	adrp	x9, _VORBIS_FLAG_COMMENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VORBIS_FLAG_COMMENT@GOTPAGEOFF]
LBB0_20:
	ldr	w9, [x9]
	ldr	w10, [x3]
	orr	w9, w10, w9
	str	w9, [x3]
LBB0_21:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VORBIS_FLAG_HEADER,4,2         ; @VORBIS_FLAG_HEADER
	.comm	_VORBIS_FLAG_COMMENT,4,2        ; @VORBIS_FLAG_COMMENT
	.comm	_VORBIS_FLAG_SETUP,4,2          ; @VORBIS_FLAG_SETUP
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid mode in packet\n"

.subsections_via_symbols
