	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_out_g_fbuf           ## -- Begin function vivid_vid_out_g_fbuf
	.p2align	4, 0x90
_vivid_vid_out_g_fbuf:                  ## @vivid_vid_out_g_fbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	_V4L2_FBUF_CAP_EXTERNOVERLAY@GOTPCREL(%rip), %rcx
	movq	_V4L2_FBUF_CAP_BITMAP_CLIPPING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_LIST_CLIPPING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_CHROMAKEY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_SRC_CHROMAKEY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_GLOBAL_ALPHA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_LOCAL_ALPHA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_FBUF_CAP_LOCAL_INV_ALPHA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	movq	_V4L2_FBUF_FLAG_OVERLAY@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, 4(%rbx)
	movq	24(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rbx)
	cmpl	$5, 12(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_PIX_FMT_ARGB555@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %edx
	movl	%edx, 40(%rbx)
	movl	8(%rax), %eax
	movl	%eax, 12(%rbx)
	imull	%eax, %ecx
	movl	%ecx, 16(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FBUF_CAP_EXTERNOVERLAY,4,2 ## @V4L2_FBUF_CAP_EXTERNOVERLAY
	.comm	_V4L2_FBUF_CAP_BITMAP_CLIPPING,4,2 ## @V4L2_FBUF_CAP_BITMAP_CLIPPING
	.comm	_V4L2_FBUF_CAP_LIST_CLIPPING,4,2 ## @V4L2_FBUF_CAP_LIST_CLIPPING
	.comm	_V4L2_FBUF_CAP_CHROMAKEY,4,2    ## @V4L2_FBUF_CAP_CHROMAKEY
	.comm	_V4L2_FBUF_CAP_SRC_CHROMAKEY,4,2 ## @V4L2_FBUF_CAP_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_CAP_GLOBAL_ALPHA,4,2 ## @V4L2_FBUF_CAP_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_CAP_LOCAL_ALPHA,4,2  ## @V4L2_FBUF_CAP_LOCAL_ALPHA
	.comm	_V4L2_FBUF_CAP_LOCAL_INV_ALPHA,4,2 ## @V4L2_FBUF_CAP_LOCAL_INV_ALPHA
	.comm	_V4L2_FBUF_FLAG_OVERLAY,4,2     ## @V4L2_FBUF_FLAG_OVERLAY
	.comm	_V4L2_PIX_FMT_ARGB555,4,2       ## @V4L2_PIX_FMT_ARGB555
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ## @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_out_g_fbuf           ; -- Begin function vivid_vid_out_g_fbuf
	.p2align	2
_vivid_vid_out_g_fbuf:                  ; @vivid_vid_out_g_fbuf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
Lloh0:
	adrp	x8, _V4L2_FBUF_CAP_EXTERNOVERLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FBUF_CAP_EXTERNOVERLAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_FBUF_CAP_BITMAP_CLIPPING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FBUF_CAP_BITMAP_CLIPPING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _V4L2_FBUF_CAP_LIST_CLIPPING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_FBUF_CAP_LIST_CLIPPING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _V4L2_FBUF_CAP_CHROMAKEY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_FBUF_CAP_CHROMAKEY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _V4L2_FBUF_CAP_SRC_CHROMAKEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_FBUF_CAP_SRC_CHROMAKEY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _V4L2_FBUF_CAP_GLOBAL_ALPHA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_FBUF_CAP_GLOBAL_ALPHA@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _V4L2_FBUF_CAP_LOCAL_ALPHA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_FBUF_CAP_LOCAL_ALPHA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _V4L2_FBUF_CAP_LOCAL_INV_ALPHA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_FBUF_CAP_LOCAL_INV_ALPHA@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh24:
	adrp	x8, _V4L2_FBUF_FLAG_OVERLAY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_FBUF_FLAG_OVERLAY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	orr	w8, w9, w8
	ldr	x9, [x0, #24]
	str	x9, [x19, #48]
	ldp	w11, w9, [x0, #12]
	str	w9, [x19, #44]
	stp	w8, w10, [x19, #4]
Lloh27:
	adrp	x8, _V4L2_PIX_FMT_ARGB555@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_PIX_FMT_ARGB555@GOTPAGEOFF]
Lloh29:
	adrp	x9, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh30:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
	cmp	w11, #5
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	w8, [x0, #8]
	mul	w9, w8, w10
	stp	w8, w9, [x19, #12]
Lloh31:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh33:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh34:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	xzr, [x19, #24]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FBUF_CAP_EXTERNOVERLAY,4,2 ; @V4L2_FBUF_CAP_EXTERNOVERLAY
	.comm	_V4L2_FBUF_CAP_BITMAP_CLIPPING,4,2 ; @V4L2_FBUF_CAP_BITMAP_CLIPPING
	.comm	_V4L2_FBUF_CAP_LIST_CLIPPING,4,2 ; @V4L2_FBUF_CAP_LIST_CLIPPING
	.comm	_V4L2_FBUF_CAP_CHROMAKEY,4,2    ; @V4L2_FBUF_CAP_CHROMAKEY
	.comm	_V4L2_FBUF_CAP_SRC_CHROMAKEY,4,2 ; @V4L2_FBUF_CAP_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_CAP_GLOBAL_ALPHA,4,2 ; @V4L2_FBUF_CAP_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_CAP_LOCAL_ALPHA,4,2  ; @V4L2_FBUF_CAP_LOCAL_ALPHA
	.comm	_V4L2_FBUF_CAP_LOCAL_INV_ALPHA,4,2 ; @V4L2_FBUF_CAP_LOCAL_INV_ALPHA
	.comm	_V4L2_FBUF_FLAG_OVERLAY,4,2     ; @V4L2_FBUF_FLAG_OVERLAY
	.comm	_V4L2_PIX_FMT_ARGB555,4,2       ; @V4L2_PIX_FMT_ARGB555
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ; @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
.subsections_via_symbols
