	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_video_decode_start
_uvc_video_decode_start:                ## @uvc_video_decode_start
	.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	%rdi, %r12
	cmpl	$2, %ecx
	jge	LBB0_1
LBB0_3:
	incl	24(%r12)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %r14
	movl	(%rdx), %eax
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.2:
	movl	%ecx, %ebx
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.4:
	movq	%rsi, %r15
	movq	_UVC_STREAM_FID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	4(%r14), %r13d
	cmpl	%r13d, (%r12)
	je	LBB0_7
## %bb.5:
	incq	8(%r12)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_uvc_video_stats_update
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_uvc_video_clock_decode
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_uvc_video_stats_decode
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	_UVC_STREAM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_11
## %bb.10:
	movq	_UVC_TRACE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	movl	$1, (%r15)
LBB0_11:
	movq	8(%r15), %rax
	movq	_UVC_BUF_STATE_ACTIVE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.12:
	cmpl	(%r12), %r13d
	jne	LBB0_18
## %bb.13:
	movq	_UVC_TRACE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_uvc_trace
	movq	16(%r12), %rax
	movq	_UVC_QUIRK_STREAM_NO_FID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.14:
	movq	_UVC_STREAM_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_16
## %bb.15:
	movq	_UVC_STREAM_FID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%r12)
	jmp	LBB0_16
LBB0_8:
	movl	%r13d, (%r12)
LBB0_16:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_18:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	8(%r12), %rax
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	callq	_uvc_video_get_time
	movl	%eax, %edi
	callq	_ktime_to_ns
	movl	%eax, 24(%r15)
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
LBB0_19:
	cmpl	(%r12), %r13d
	je	LBB0_22
## %bb.20:
	cmpq	$0, 16(%r15)
	je	LBB0_22
## %bb.21:
	movq	_UVC_TRACE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_uvc_trace
	movq	_UVC_BUF_STATE_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_22:
	movl	%r13d, (%r12)
	movl	(%r14), %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVC_STREAM_FID,4,2             ## @UVC_STREAM_FID
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_UVC_STREAM_ERR,4,2             ## @UVC_STREAM_ERR
	.comm	_UVC_TRACE_FRAME,4,2            ## @UVC_TRACE_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Marking buffer as bad (error bit set).\n"

	.comm	_UVC_BUF_STATE_ACTIVE,8,3       ## @UVC_BUF_STATE_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Dropping payload (out of sync).\n"

	.comm	_UVC_QUIRK_STREAM_NO_FID,4,2    ## @UVC_QUIRK_STREAM_NO_FID
	.comm	_UVC_STREAM_EOF,4,2             ## @UVC_STREAM_EOF
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Frame complete (FID bit toggled).\n"

	.comm	_UVC_BUF_STATE_READY,8,3        ## @UVC_BUF_STATE_READY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_uvc_video_decode_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_video_decode_start
_uvc_video_decode_start:                ; @uvc_video_decode_start
	.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	x19, x0
	cmp	w3, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x22, x3
	mov	x20, x2
	ldr	w8, [x2]
	cmp	w8, #2
	ccmp	w8, w3, #0, ge
	b.le	LBB0_5
LBB0_2:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x21, x1
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x24, _UVC_STREAM_FID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _UVC_STREAM_FID@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w23, w9, w8
	ldr	w8, [x19]
	cmp	w8, w23
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
	adds	x8, x8, #1
	str	x8, [x19, #8]
	b.hs	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_uvc_video_stats_update
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_uvc_video_clock_decode
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_uvc_video_stats_decode
	cbz	x21, LBB0_16
; %bb.9:
	ldr	w8, [x20, #4]
Lloh4:
	adrp	x9, _UVC_STREAM_ERR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UVC_STREAM_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh7:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	w8, #1
	str	w8, [x21]
LBB0_11:
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x22, _UVC_BUF_STATE_ACTIVE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _UVC_BUF_STATE_ACTIVE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.12:
	ldr	w8, [x19]
	cmp	w23, w8
	b.ne	LBB0_18
; %bb.13:
Lloh14:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_uvc_trace
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _UVC_QUIRK_STREAM_NO_FID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UVC_QUIRK_STREAM_NO_FID@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	ldr	w8, [x20, #4]
Lloh22:
	adrp	x9, _UVC_STREAM_EOF@GOTPAGE
Lloh23:
	ldr	x9, [x9, _UVC_STREAM_EOF@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	w8, [x24]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
	str	w23, [x19]
LBB0_17:
Lloh25:
	adrp	x8, _ENODATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_3
LBB0_18:
Lloh27:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	ldr	x8, [x19, #8]
	str	x8, [x21, #32]
	bl	_uvc_video_get_time
	bl	_ktime_to_ns
	str	w0, [x21, #24]
	ldr	x8, [x22]
	str	x8, [x21, #8]
LBB0_19:
	ldr	w8, [x19]
	cmp	w23, w8
	b.eq	LBB0_22
; %bb.20:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_22
; %bb.21:
Lloh30:
	adrp	x8, _UVC_TRACE_FRAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UVC_TRACE_FRAME@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_uvc_trace
Lloh35:
	adrp	x8, _UVC_BUF_STATE_READY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UVC_BUF_STATE_READY@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x21, #8]
Lloh38:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_22:
	str	w23, [x19]
	ldr	w0, [x20]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVC_STREAM_FID,4,2             ; @UVC_STREAM_FID
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_UVC_STREAM_ERR,4,2             ; @UVC_STREAM_ERR
	.comm	_UVC_TRACE_FRAME,4,2            ; @UVC_TRACE_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Marking buffer as bad (error bit set).\n"

	.comm	_UVC_BUF_STATE_ACTIVE,8,3       ; @UVC_BUF_STATE_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Dropping payload (out of sync).\n"

	.comm	_UVC_QUIRK_STREAM_NO_FID,4,2    ; @UVC_QUIRK_STREAM_NO_FID
	.comm	_UVC_STREAM_EOF,4,2             ; @UVC_STREAM_EOF
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Frame complete (FID bit toggled).\n"

	.comm	_UVC_BUF_STATE_READY,8,3        ; @UVC_BUF_STATE_READY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_uvc_video_decode_start
.subsections_via_symbols
