	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_convert_packet_flags
_simple_convert_packet_flags:           ## @simple_convert_packet_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$96, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	$2, -64(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$4, -56(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, -52(%rbp)
	movl	$8, -48(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, -44(%rbp)
	movl	$16, -40(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_DISCONTINUITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$32, -32(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$64, -24(%rbp)
	movq	_VC_CONTAINER_PACKET_FLAG_ENCRYPTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	movq	$0, -16(%rbp)
	movl	$16, -96(%rbp)
	movl	%r8d, -92(%rbp)
	movl	$32, -88(%rbp)
	movl	%r9d, -84(%rbp)
	movl	$128, -80(%rbp)
	movl	%eax, -76(%rbp)
	movq	$0, -72(%rbp)
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.3:
	leaq	-64(%rbp), %rcx
	jmp	LBB0_5
LBB0_4:
	leaq	-96(%rbp), %rcx
LBB0_5:
	movl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.7:
	addq	$8, %rcx
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %esi
	addq	$8, %rcx
	testl	%esi, %esi
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %esi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	orl	-4(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movl	%edx, %eax
	jmp	LBB0_11
LBB0_6:
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$96, %rsp
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_DISCONTINUITY,4,2 ## @VC_CONTAINER_PACKET_FLAG_DISCONTINUITY
	.comm	_VC_CONTAINER_PACKET_FLAG_CONFIG,4,2 ## @VC_CONTAINER_PACKET_FLAG_CONFIG
	.comm	_VC_CONTAINER_PACKET_FLAG_ENCRYPTED,4,2 ## @VC_CONTAINER_PACKET_FLAG_ENCRYPTED
	.no_dead_strip	_simple_convert_packet_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_convert_packet_flags
_simple_convert_packet_flags:           ; @simple_convert_packet_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	mov	w8, #2
Lloh3:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	mov	w8, #4
Lloh6:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
	mov	w8, #8
Lloh9:
	adrp	x10, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w8, w10, [sp, #48]
	mov	w8, #16
Lloh12:
	adrp	x11, _VC_CONTAINER_PACKET_FLAG_DISCONTINUITY@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VC_CONTAINER_PACKET_FLAG_DISCONTINUITY@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	stp	w8, w11, [sp, #56]
	mov	w11, #32
Lloh15:
	adrp	x12, _VC_CONTAINER_PACKET_FLAG_CONFIG@GOTPAGE
Lloh16:
	ldr	x12, [x12, _VC_CONTAINER_PACKET_FLAG_CONFIG@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	stp	w11, w12, [sp, #64]
	mov	w13, #64
Lloh18:
	adrp	x14, _VC_CONTAINER_PACKET_FLAG_ENCRYPTED@GOTPAGE
Lloh19:
	ldr	x14, [x14, _VC_CONTAINER_PACKET_FLAG_ENCRYPTED@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	stp	w13, w14, [sp, #72]
	movi.2d	v0, #0000000000000000
	str	d0, [sp, #80]
	stp	w8, w9, [sp]
	stp	w11, w10, [sp, #8]
	mov	w8, #128
	stp	w8, w12, [sp, #16]
	str	d0, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8, w1, uxtw #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.2:
	add	x8, sp, #32
	ldr	w9, [x8]
	cbz	w9, LBB0_8
LBB0_3:
	mov	w0, #0
	add	x8, x8, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8], #8
	cbz	w9, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tst	w9, w2
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w9, [x8, #-4]
	orr	w0, w9, w0
	b	LBB0_4
LBB0_7:
	mov	x8, sp
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x2
LBB0_10:
	ldur	x8, [x29, #-8]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_DISCONTINUITY,4,2 ; @VC_CONTAINER_PACKET_FLAG_DISCONTINUITY
	.comm	_VC_CONTAINER_PACKET_FLAG_CONFIG,4,2 ; @VC_CONTAINER_PACKET_FLAG_CONFIG
	.comm	_VC_CONTAINER_PACKET_FLAG_ENCRYPTED,4,2 ; @VC_CONTAINER_PACKET_FLAG_ENCRYPTED
	.no_dead_strip	_simple_convert_packet_flags
.subsections_via_symbols
