	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fbuf
_vidioc_s_fbuf:                         ## @vidioc_s_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, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	_OMAP_DSS_COLOR_KEY_GFX_DST@GOTPCREL(%rip), %r8
	movq	8(%rax), %rax
	movq	(%rax), %r12
	movl	(%r14), %eax
	movq	_V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_V4L2_FBUF_FLAG_CHROMAKEY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%eax, %edi
	je	LBB0_3
## %bb.1:
	testl	%eax, %esi
	jne	LBB0_23
## %bb.2:
	orl	(%rbx), %edi
	movl	%edi, (%rbx)
	movq	_OMAP_DSS_COLOR_KEY_VID_SRC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	jmp	LBB0_6
LBB0_3:
	movl	(%r8), %r13d
	testl	%eax, %esi
	je	LBB0_5
## %bb.4:
	movq	_V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_23
LBB0_5:
	notl	%edi
	andl	(%rbx), %edi
	movl	%edi, (%rbx)
LBB0_6:
	movl	(%rdx), %esi
	testl	%eax, %esi
	je	LBB0_8
## %bb.7:
	orl	%esi, %edi
	movl	%edi, (%rbx)
	movl	(%r8), %r13d
	jmp	LBB0_9
LBB0_8:
	notl	%esi
	andl	%esi, %edi
	movl	%edi, (%rbx)
LBB0_9:
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	xorl	%r15d, %r15d
	testl	%eax, %ecx
	setne	%dl
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.10:
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.11:
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.12:
	movb	%dl, %r15b
	leaq	-56(%rbp), %rsi
	callq	*%rcx
	movl	%r15d, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	8(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	*(%rdi)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.13:
	movl	(%r14), %eax
LBB0_14:
	movq	_V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_16
## %bb.15:
	orl	%ecx, (%rbx)
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_16:
	notl	%ecx
	andl	%ecx, (%rbx)
	xorl	%r14d, %r14d
LBB0_17:
	movq	8(%r12), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.18:
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.19:
	cmpq	$0, (%rdi)
	je	LBB0_24
## %bb.20:
	leaq	-56(%rbp), %rsi
	callq	*%rcx
	movq	_OMAP_DSS_OVL_CAP_ZORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_22
## %bb.21:
	movl	%r14d, -48(%rbp)
LBB0_22:
	movq	8(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_COLOR_KEY_GFX_DST,4,2 ## @OMAP_DSS_COLOR_KEY_GFX_DST
	.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	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ## @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,4,2 ## @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_OMAP_DSS_OVL_CAP_ZORDER,4,2    ## @OMAP_DSS_OVL_CAP_ZORDER
	.no_dead_strip	_vidioc_s_fbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fbuf
_vidioc_s_fbuf:                         ; @vidioc_s_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	x20, x2
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x11, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGE
Lloh1:
	ldr	x11, [x11, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGEOFF]
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGEOFF]
	ldr	w12, [x9]
Lloh4:
	adrp	x10, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGE
Lloh5:
	ldr	x10, [x10, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGEOFF]
	ldr	w13, [x10]
	and	w13, w13, w8
	tst	w12, w8
	b.eq	LBB0_3
; %bb.1:
	cbnz	w13, LBB0_22
; %bb.2:
	ldr	w13, [x19]
	orr	w12, w13, w12
	str	w12, [x19]
Lloh6:
	adrp	x13, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGE
Lloh7:
	ldr	x13, [x13, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x13]
	b	LBB0_6
LBB0_3:
	ldr	w22, [x11]
	cbz	w13, LBB0_5
; %bb.4:
Lloh9:
	adrp	x13, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGE
Lloh10:
	ldr	x13, [x13, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	tst	w13, w8
	b.ne	LBB0_22
LBB0_5:
	ldr	w13, [x19]
	bic	w12, w13, w12
	str	w12, [x19]
LBB0_6:
	ldr	w13, [x10]
	tst	w13, w8
	b.eq	LBB0_8
; %bb.7:
	orr	w12, w12, w13
	str	w12, [x19]
	ldr	w22, [x11]
	b	LBB0_9
LBB0_8:
	bic	w11, w12, w13
	str	w11, [x19]
LBB0_9:
	ldr	w10, [x10]
	ldr	w9, [x9]
	orr	w9, w9, w10
	tst	w9, w8
	cset	w23, ne
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_14
; %bb.11:
	ldr	x10, [x0]
	cbz	x10, LBB0_14
; %bb.12:
	mov	x1, sp
	blr	x9
	stp	w23, w22, [sp]
	ldr	w8, [x19, #4]
	str	w8, [sp, #12]
	ldr	x0, [x21, #8]
	ldr	x8, [x0]
	mov	x1, sp
	blr	x8
	cbnz	x0, LBB0_22
; %bb.13:
	ldr	w8, [x20]
LBB0_14:
Lloh12:
	adrp	x9, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	w20, #1
	ldr	x0, [x21, #8]
	cbnz	x0, LBB0_17
	b	LBB0_23
LBB0_16:
	mov	w20, #0
	ldr	w8, [x19]
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_23
LBB0_17:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_24
; %bb.18:
	ldr	x9, [x0]
	cbz	x9, LBB0_24
; %bb.19:
	mov	x1, sp
	blr	x8
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _OMAP_DSS_OVL_CAP_ZORDER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OMAP_DSS_OVL_CAP_ZORDER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.20:
	str	w20, [sp, #8]
LBB0_21:
	ldr	x0, [x21, #8]
	ldr	x8, [x0]
	mov	x1, sp
	blr	x8
	cbz	x0, LBB0_23
LBB0_22:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	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
LBB0_24:
	mov	w0, #0
	b	LBB0_23
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_COLOR_KEY_GFX_DST,4,2 ; @OMAP_DSS_COLOR_KEY_GFX_DST
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ; @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,4,2 ; @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_OMAP_DSS_OVL_CAP_ZORDER,4,2    ; @OMAP_DSS_OVL_CAP_ZORDER
	.no_dead_strip	_vidioc_s_fbuf
.subsections_via_symbols
