	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_packet
_check_packet:                          ## @check_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	(%rsi), %rcx
	cmpq	(%rdi), %rcx
	jae	LBB0_2
## %bb.3:
	movq	8(%rdi), %rax
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_ATTACHMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet stream index: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVMEDIA_TYPE_ATTACHMENT,8,3    ## @AVMEDIA_TYPE_ATTACHMENT
L_.str.1:                               ## @.str.1
	.asciz	"Received a packet for an attachment stream.\n"

	.no_dead_strip	_check_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_packet
_check_packet:                          ; @check_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_ATTACHMENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_ATTACHMENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_5:
Lloh8:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	bl	_av_log
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet stream index: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVMEDIA_TYPE_ATTACHMENT,8,3    ; @AVMEDIA_TYPE_ATTACHMENT
l_.str.1:                               ; @.str.1
	.asciz	"Received a packet for an attachment stream.\n"

	.no_dead_strip	_check_packet
.subsections_via_symbols
