	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_needed_flags
_get_needed_flags:                      ## @get_needed_flags
	.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	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r9
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rcx), %edi
	je	LBB0_2
## %bb.1:
	movq	_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	movq	8(%r13), %rax
	xorl	%r10d, %r10d
	movl	$0, %ecx
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.3:
	movq	_FLAG_STREAM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	movl	16(%r13), %r8d
	movl	%r8d, %eax
	cltd
	idivl	8(%r14)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_FLAG_SIZE_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	orl	%edi, %ecx
	movq	24(%r13), %rdi
	subq	(%rsi), %rdi
	cmpq	16(%r14), %rdi
	je	LBB0_8
## %bb.7:
	movq	_FLAG_CODED_PTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
LBB0_8:
	orl	%r10d, %ecx
	orl	%ecx, %ebx
	cmpq	$0, 40(%r13)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.9:
	cmpl	$4, (%r9)
	jl	LBB0_11
## %bb.10:
	movq	_FLAG_SM_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_11:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	4(%r9), %eax
	addl	%eax, %eax
	xorl	%r12d, %r12d
	movq	_FLAG_CHECKSUM@GOTPCREL(%rip), %rcx
	movl	$0, %r15d
	cmpl	%eax, %r8d
	jle	LBB0_13
## %bb.12:
	movl	(%rcx), %r15d
LBB0_13:
	callq	_FFABS
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	jle	LBB0_15
## %bb.14:
	movq	_FLAG_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_15:
	orl	%r12d, %ebx
	orl	%ebx, %r15d
	movslq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	16(%r13), %ecx
	cmpl	$4096, %ecx                     ## imm = 0x1000
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jg	LBB0_19
## %bb.17:
	movq	8(%rsi), %rdx
	movl	(%rdx,%rax,4), %edx
	cmpl	%edx, %ecx
	jl	LBB0_19
## %bb.18:
	movl	32(%r13), %edi
	movq	16(%rsi), %rcx
	movl	(%rcx,%rax,4), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	_FLAG_HEADER_IDX@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_20:
	movq	_FLAG_CODED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	28(%r14), %eax
	orl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_FLAG_KEY,4,2                   ## @FLAG_KEY
	.comm	_FLAG_STREAM_ID,4,2             ## @FLAG_STREAM_ID
	.comm	_FLAG_SIZE_MSB,4,2              ## @FLAG_SIZE_MSB
	.comm	_FLAG_CODED_PTS,4,2             ## @FLAG_CODED_PTS
	.comm	_FLAG_SM_DATA,4,2               ## @FLAG_SM_DATA
	.comm	_FLAG_CHECKSUM,4,2              ## @FLAG_CHECKSUM
	.comm	_FLAG_HEADER_IDX,4,2            ## @FLAG_HEADER_IDX
	.comm	_FLAG_CODED,4,2                 ## @FLAG_CODED
	.no_dead_strip	_get_needed_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_needed_flags
_get_needed_flags:                      ; @get_needed_flags
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FLAG_KEY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FLAG_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	ldr	x9, [x3, #8]
	ldr	x10, [x2]
Lloh6:
	adrp	x11, _FLAG_STREAM_ID@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FLAG_STREAM_ID@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w9, w9, w8
	ldr	w8, [x3, #16]
	ldr	w10, [x2, #8]
	sdiv	w10, w8, w10
Lloh9:
	adrp	x11, _FLAG_SIZE_MSB@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FLAG_SIZE_MSB@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w10, #0
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
	ldr	x10, [x3, #24]
	ldr	x11, [x1]
	ldr	x12, [x2, #16]
Lloh12:
	adrp	x13, _FLAG_CODED_PTS@GOTPAGE
Lloh13:
	ldr	x13, [x13, _FLAG_CODED_PTS@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	sub	x0, x10, x11
	cmp	x0, x12
	csel	w10, wzr, w13, eq
	orr	w9, w9, w10
	ldr	x10, [x3, #40]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	w10, [x21]
	cmp	w10, #4
	b.lt	LBB0_3
; %bb.2:
Lloh15:
	adrp	x10, _FLAG_SM_DATA@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FLAG_SM_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_3:
	ldr	w10, [x21, #4]
Lloh18:
	adrp	x23, _FLAG_CHECKSUM@GOTPAGE
Lloh19:
	ldr	x23, [x23, _FLAG_CHECKSUM@GOTPAGEOFF]
	ldr	w11, [x23]
	cmp	w8, w10, lsl #1
	csel	w8, w11, wzr, gt
	orr	w24, w8, w9
	bl	_FFABS
	ldr	x8, [x22, #8]
	ldr	w9, [x23]
	cmp	x0, x8
	csel	w8, w9, wzr, gt
	orr	w22, w24, w8
	ldrsw	x8, [x19, #24]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	w9, [x20, #16]
	cmp	w9, #1, lsl #12                 ; =4096
	b.gt	LBB0_7
; %bb.5:
	ldr	x10, [x21, #8]
	ldr	w2, [x10, x8, lsl #2]
	cmp	w9, w2
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x20, #32]
	ldr	x9, [x21, #16]
	ldr	w1, [x9, x8, lsl #2]
	bl	_memcmp
	cbz	x0, LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _FLAG_HEADER_IDX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FLAG_HEADER_IDX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_8:
	ldr	w8, [x19, #28]
Lloh23:
	adrp	x9, _FLAG_CODED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FLAG_CODED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w0, w8, w22
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_FLAG_KEY,4,2                   ; @FLAG_KEY
	.comm	_FLAG_STREAM_ID,4,2             ; @FLAG_STREAM_ID
	.comm	_FLAG_SIZE_MSB,4,2              ; @FLAG_SIZE_MSB
	.comm	_FLAG_CODED_PTS,4,2             ; @FLAG_CODED_PTS
	.comm	_FLAG_SM_DATA,4,2               ; @FLAG_SM_DATA
	.comm	_FLAG_CHECKSUM,4,2              ; @FLAG_CHECKSUM
	.comm	_FLAG_HEADER_IDX,4,2            ; @FLAG_HEADER_IDX
	.comm	_FLAG_CODED,4,2                 ; @FLAG_CODED
	.no_dead_strip	_get_needed_flags
.subsections_via_symbols
