	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fbuf
_vidioc_g_fbuf:                         ## @vidioc_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r15)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movq	_V4L2_PIX_FMT_RGBA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r15)
	movl	(%rbx), %ecx
	movl	%ecx, (%r15)
	movq	(%rax), %rax
	movq	%rax, %xmm0
	movl	%eax, 12(%rbx)
	movq	%rax, %rdx
	shrq	$32, %rdx
	movl	%edx, 16(%rbx)
	shll	$2, %edx
	movl	%edx, 20(%r15)
	imull	%eax, %edx
	movl	%edx, 24(%r15)
	movq	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqu	%xmm1, 4(%r15)
	movq	_V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPCREL(%rip), %rbx
	movq	_V4L2_FBUF_FLAG_CHROMAKEY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%rbx), %eax
	movq	_V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%r15)
	movq	(%r14), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	leaq	-56(%rbp), %rsi
	callq	*%rcx
	movq	-56(%rbp), %rax
	movq	_OMAP_DSS_COLOR_KEY_VID_SRC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %ecx
	orl	%ecx, (%r15)
LBB0_6:
	movq	_OMAP_DSS_COLOR_KEY_GFX_DST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %eax
	orl	%eax, (%r15)
LBB0_8:
	cmpq	$0, -48(%rbp)
	je	LBB0_10
## %bb.9:
	movl	(%r12), %eax
	orl	%eax, (%r15)
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_PIX_FMT_RGBA32,4,2        ## @V4L2_PIX_FMT_RGBA32
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ## @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ## @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ## @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,8,3 ## @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_OMAP_DSS_COLOR_KEY_GFX_DST,8,3 ## @OMAP_DSS_COLOR_KEY_GFX_DST
	.no_dead_strip	_vidioc_g_fbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_fbuf
_vidioc_g_fbuf:                         ; @vidioc_g_fbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	bl	_video_drvdata
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
	str	w8, [x19, #36]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _V4L2_PIX_FMT_RGBA32@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGBA32@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	d0, [x0]
	fmov	w9, s0
	stur	d0, [x21, #12]
	mov.s	w10, v0[1]
	lsl	w10, w10, #2
	mul	w9, w10, w9
	stp	w10, w9, [x19, #20]
	ldur	d1, [x21, #4]
	mov.d	v1[1], v0[0]
	stur	q1, [x19, #4]
Lloh9:
	adrp	x23, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGE
Lloh10:
	ldr	x23, [x23, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh11:
	adrp	x22, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGE
Lloh12:
	ldr	x22, [x22, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh13:
	adrp	x21, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGE
Lloh14:
	ldr	x21, [x21, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGEOFF]
	orr	w9, w10, w9
	ldr	w10, [x21]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x0, [x20]
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x1, sp
	blr	x8
	ldr	x8, [sp]
Lloh15:
	adrp	x9, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x23]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_5:
Lloh18:
	adrp	x9, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	w0, #0
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_PIX_FMT_RGBA32,4,2        ; @V4L2_PIX_FMT_RGBA32
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ; @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ; @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ; @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,8,3 ; @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_OMAP_DSS_COLOR_KEY_GFX_DST,8,3 ; @OMAP_DSS_COLOR_KEY_GFX_DST
	.no_dead_strip	_vidioc_g_fbuf
.subsections_via_symbols
