	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function videobuf_status
_videobuf_status:                       ## @videobuf_status
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	48(%rdx), %edi
	movq	_MAGIC_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAGIC_CHECK
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MAGIC_QTYPE_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAGIC_CHECK
	movl	44(%r14), %eax
	movl	%eax, 40(%rbx)
	movl	%r15d, (%rbx)
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	cmpl	$135, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$136, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$137, %eax
	jne	LBB0_7
## %bb.3:
	movl	32(%r14), %eax
	movl	%eax, 28(%rbx)
	jmp	LBB0_4
LBB0_5:
	movl	40(%r14), %eax
	movl	%eax, 32(%rbx)
LBB0_4:
	movl	36(%r14), %eax
	movl	%eax, 36(%rbx)
	jmp	LBB0_7
LBB0_6:
	movl	32(%r14), %eax
	movl	%eax, 28(%rbx)
LBB0_7:
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.8:
	movq	_V4L2_BUF_FLAG_MAPPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
LBB0_9:
	movl	4(%r14), %edx
	addl	$-128, %edx
	cmpl	$6, %edx
	ja	LBB0_14
## %bb.10:
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_11:
	movq	_V4L2_BUF_FLAG_ERROR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_12:
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rcx
LBB0_13:
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
LBB0_14:
	movl	20(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r14), %edi
	callq	_ns_to_timeval
	movl	%eax, 16(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r14), %eax
	sarl	%eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_MAGIC_BUFFER,4,2               ## @MAGIC_BUFFER
	.comm	_MAGIC_QTYPE_OPS,4,2            ## @MAGIC_QTYPE_OPS
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ## @V4L2_BUF_FLAG_MAPPED
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ## @V4L2_BUF_FLAG_QUEUED
	.comm	_V4L2_BUF_FLAG_ERROR,4,2        ## @V4L2_BUF_FLAG_ERROR
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ## @V4L2_BUF_FLAG_DONE
	.no_dead_strip	_videobuf_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function videobuf_status
_videobuf_status:                       ; @videobuf_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x2, #48]
Lloh0:
	adrp	x8, _MAGIC_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAGIC_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MAGIC_CHECK
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MAGIC_QTYPE_OPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAGIC_QTYPE_OPS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MAGIC_CHECK
	ldr	w8, [x20, #44]
	str	w8, [x19, #40]
	ldr	w8, [x20]
	stp	w21, w8, [x19]
	cmp	w8, #135
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #136
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #137
	b.ne	LBB0_6
; %bb.3:
	ldp	w8, w9, [x20, #32]
	str	w8, [x19, #28]
	str	w9, [x19, #36]
	b	LBB0_6
LBB0_4:
	ldur	d0, [x20, #36]
	rev64.2s	v0, v0
	str	d0, [x19, #32]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20, #32]
	str	w8, [x19, #28]
LBB0_6:
Lloh6:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_8
; %bb.7:
Lloh9:
	adrp	x9, _V4L2_BUF_FLAG_MAPPED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_BUF_FLAG_MAPPED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_8:
	ldr	w9, [x20, #4]
	sub	w10, w9, #128
	cmp	w10, #6
	b.hi	LBB0_13
; %bb.9:
Lloh12:
	adrp	x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
Lloh14:
	adrp	x11, lJTI0_0@PAGE
Lloh15:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_10
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_10:
Lloh16:
	adrp	x9, _V4L2_BUF_FLAG_ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_BUF_FLAG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_11:
Lloh19:
	adrp	x9, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #24]
LBB0_13:
	ldp	w0, w8, [x20, #16]
	str	w8, [x19, #20]
	bl	_ns_to_timeval
	str	w0, [x19, #16]
	ldp	w9, w8, [x20, #8]
	asr	w9, w9, #1
	stp	w9, w8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
                                        ; -- End function
	.comm	_MAGIC_BUFFER,4,2               ; @MAGIC_BUFFER
	.comm	_MAGIC_QTYPE_OPS,4,2            ; @MAGIC_QTYPE_OPS
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ; @V4L2_BUF_FLAG_MAPPED
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ; @V4L2_BUF_FLAG_QUEUED
	.comm	_V4L2_BUF_FLAG_ERROR,4,2        ; @V4L2_BUF_FLAG_ERROR
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ; @V4L2_BUF_FLAG_DONE
	.no_dead_strip	_videobuf_status
.subsections_via_symbols
