	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_buf_copy_metadata     ## -- Begin function v4l2_m2m_buf_copy_metadata
	.p2align	4, 0x90
_v4l2_m2m_buf_copy_metadata:            ## @v4l2_m2m_buf_copy_metadata
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_V4L2_BUF_FLAG_TIMECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_V4L2_BUF_FLAG_KEYFRAME@GOTPCREL(%rip), %rdx
	movq	_V4L2_BUF_FLAG_PFRAME@GOTPCREL(%rip), %r8
	movq	_V4L2_BUF_FLAG_BFRAME@GOTPCREL(%rip), %r9
	orl	(%rdx), %eax
	orl	(%r8), %eax
	orl	(%r9), %eax
LBB0_2:
	movl	8(%rdi), %edx
	movl	%edx, 8(%rsi)
	testl	%ecx, (%rdi)
	je	LBB0_4
## %bb.3:
	movl	16(%rdi), %ecx
	movl	%ecx, 16(%rsi)
LBB0_4:
	movl	12(%rdi), %ecx
	movl	%ecx, 12(%rsi)
	movl	%eax, %ecx
	notl	%ecx
	andl	(%rsi), %ecx
	movl	%ecx, (%rsi)
	andl	(%rdi), %eax
	orl	%ecx, %eax
	movl	%eax, (%rsi)
	movl	$1, 4(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_FLAG_TIMECODE,4,2     ## @V4L2_BUF_FLAG_TIMECODE
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ## @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ## @V4L2_BUF_FLAG_KEYFRAME
	.comm	_V4L2_BUF_FLAG_PFRAME,4,2       ## @V4L2_BUF_FLAG_PFRAME
	.comm	_V4L2_BUF_FLAG_BFRAME,4,2       ## @V4L2_BUF_FLAG_BFRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_buf_copy_metadata     ; -- Begin function v4l2_m2m_buf_copy_metadata
	.p2align	2
_v4l2_m2m_buf_copy_metadata:            ; @v4l2_m2m_buf_copy_metadata
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _V4L2_BUF_FLAG_TIMECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMECODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w9
	cbz	w2, LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _V4L2_BUF_FLAG_PFRAME@GOTPAGE
Lloh10:
	ldr	x11, [x11, _V4L2_BUF_FLAG_PFRAME@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _V4L2_BUF_FLAG_BFRAME@GOTPAGE
Lloh13:
	ldr	x12, [x12, _V4L2_BUF_FLAG_BFRAME@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w8, w10, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
LBB0_2:
	ldr	w10, [x0, #8]
	str	w10, [x1, #8]
	ldr	w10, [x0]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x0, #16]
	str	w9, [x1, #16]
LBB0_4:
	ldr	w9, [x0, #12]
	str	w9, [x1, #12]
	ldr	w9, [x1]
	bic	w9, w9, w8
	mov	w10, #1
	str	w9, [x1]
	ldr	w11, [x0]
	and	w8, w11, w8
	orr	w8, w8, w9
	stp	w8, w10, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_FLAG_TIMECODE,4,2     ; @V4L2_BUF_FLAG_TIMECODE
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ; @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ; @V4L2_BUF_FLAG_KEYFRAME
	.comm	_V4L2_BUF_FLAG_PFRAME,4,2       ; @V4L2_BUF_FLAG_PFRAME
	.comm	_V4L2_BUF_FLAG_BFRAME,4,2       ; @V4L2_BUF_FLAG_BFRAME
.subsections_via_symbols
