	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qdm2_parse_packet
_qdm2_parse_packet:                     ## @qdm2_parse_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movslq	16(%rbp), %rcx
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.2:
	cmpl	$1, %ecx
	je	LBB0_25
## %bb.3:
	movq	%r9, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r9,%rcx,4), %r14
	cmpl	$255, (%r9)
	jne	LBB0_4
## %bb.5:
	cmpq	$0, (%r13)
	jle	LBB0_7
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	$0, (%r13)
	movq	8(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_7:
	addq	$4, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_qdm2_parse_config
	testl	%eax, %eax
	js	LBB0_25
## %bb.8:
	movl	%eax, %ecx
	leaq	(%rbx,%rcx,4), %rbx
	movq	_AV_CODEC_ID_QDM2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r12), %rdx
	movq	%rcx, (%rdx)
	jmp	LBB0_9
LBB0_1:
	movq	24(%r13), %rcx
LBB0_20:
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.21:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_qdm2_restore_block
	testl	%eax, %eax
	js	LBB0_25
## %bb.22:
	movq	24(%r13), %rcx
	movq	%rcx, %rax
	decq	%rax
	movq	%rax, 24(%r13)
	jne	LBB0_24
## %bb.23:
	movq	$0, (%r13)
LBB0_24:
	movl	32(%r13), %eax
	movl	%eax, (%r14)
	movq	_RTP_NOTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	xorl	%eax, %eax
	cmpq	$2, %rcx
	setge	%al
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
LBB0_9:
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_26
## %bb.10:
	movq	%r14, %rcx
	subq	%rbx, %rcx
	cmpq	$13, %rcx
	jl	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_qdm2_parse_subpacket
	testl	%eax, %eax
	js	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %ecx
	leaq	(%rbx,%rcx,4), %rbx
	movq	%r14, %rcx
	subq	%rbx, %rcx
	cmpq	$12, %rcx
	jg	LBB0_11
LBB0_13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movl	%ecx, 32(%r13)
	movq	(%r13), %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	cmpq	16(%r13), %rcx
	jge	LBB0_14
LBB0_26:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_14:
	movq	$0, 24(%r13)
	movq	8(%r13), %rdx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rsi
	cmpq	$128, %rsi
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rcx
	movq	%rcx, 24(%r13)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 8(%rdx,%rsi,8)
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rcx
	movq	%rcx, 24(%r13)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of sequence config - dropping queue\n"

	.comm	_AV_CODEC_ID_QDM2,8,3           ## @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RTP_NOTS_VALUE,4,2             ## @RTP_NOTS_VALUE
	.no_dead_strip	_qdm2_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdm2_parse_packet
_qdm2_parse_packet:                     ; @qdm2_parse_packet
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x8, x0
Lloh0:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cmp	w6, #0
	b.le	LBB0_7
; %bb.1:
	cmp	w6, #1
	b.eq	LBB0_13
; %bb.2:
	mov	x23, x5
	add	x24, x5, w6, sxtw #2
	ldr	w9, [x5]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.3:
	ldr	x9, [x19]
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	bl	_av_log
	str	xzr, [x19]
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_5:
	add	x23, x23, #4
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_qdm2_parse_config
	tbnz	w0, #31, LBB0_13
; %bb.6:
	add	x23, x23, w0, uxtw #2
Lloh8:
	adrp	x8, _AV_CODEC_ID_QDM2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_CODEC_ID_QDM2@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x22]
	str	x8, [x9]
	b	LBB0_15
LBB0_7:
	ldr	x8, [x19, #24]
LBB0_8:
	cbz	x8, LBB0_13
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_qdm2_restore_block
	tbnz	w0, #31, LBB0_13
; %bb.10:
	ldr	x8, [x19, #24]
	subs	x9, x8, #1
	str	x9, [x19, #24]
	b.ne	LBB0_12
; %bb.11:
	str	xzr, [x19]
LBB0_12:
	ldr	w9, [x19, #32]
	str	w9, [x20]
Lloh11:
	adrp	x9, _RTP_NOTS_VALUE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTP_NOTS_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x19, #32]
	cmp	x8, #1
	cset	w0, gt
LBB0_13:
	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
LBB0_14:
	ldr	x8, [x22]
	ldr	x8, [x8]
LBB0_15:
Lloh14:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.16:
	sub	x8, x24, x23
	cmp	x8, #13
	b.lt	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_qdm2_parse_subpacket
	tbnz	w0, #31, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, w0, uxtw #2
	sub	x8, x24, x23
	cmp	x8, #12
	b.gt	LBB0_17
LBB0_19:
	ldr	w8, [x20]
	str	w8, [x19, #32]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_21
LBB0_20:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_21:
	mov	x9, #0
	mov	x8, #0
	str	xzr, [x19, #24]
	ldr	x10, [x19, #8]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x9, #8
	cmp	x9, #1024
	b.eq	LBB0_8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9]
	cmp	x11, #1
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x8, #1
	str	x8, [x19, #24]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of sequence config - dropping queue\n"

	.comm	_AV_CODEC_ID_QDM2,8,3           ; @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RTP_NOTS_VALUE,4,2             ; @RTP_NOTS_VALUE
	.no_dead_strip	_qdm2_parse_packet
.subsections_via_symbols
