	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_overlay
_vidioc_s_fmt_vid_overlay:              ## @vidioc_s_fmt_vid_overlay
	.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	24(%rax), %rax
	movq	(%rax), %r12
	leaq	20(%rbx), %rdi
	leaq	16(%rbx), %r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_omap_vout_new_window
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_OMAP_DSS_COLOR_KEY_GFX_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OMAP_DSS_OVL_CAP_GLOBAL_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	$0, (%r14)
LBB0_4:
	movl	(%r15), %ecx
	movq	_V4L2_FBUF_FLAG_CHROMAKEY@GOTPCREL(%rip), %rax
	movq	_V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rax), %eax
	orl	%edx, %eax
	xorl	%r15d, %r15d
	testl	%ecx, %eax
	setne	%al
	testl	%ecx, %edx
	je	LBB0_6
## %bb.5:
	movq	_OMAP_DSS_COLOR_KEY_VID_SRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_6:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	cmpq	$0, (%rdi)
	je	LBB0_11
## %bb.9:
	movb	%al, %r15b
	leaq	-56(%rbp), %r14
	movq	%r14, %rsi
	callq	*%rcx
	movl	%r15d, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	8(%r12), %rdi
	movq	%r14, %rsi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	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	_OMAP_DSS_OVL_CAP_GLOBAL_ALPHA,4,2 ## @OMAP_DSS_OVL_CAP_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ## @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ## @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,4,2 ## @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_s_fmt_vid_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fmt_vid_overlay
_vidioc_s_fmt_vid_overlay:              ; @vidioc_s_fmt_vid_overlay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	bl	_video_drvdata
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x22, [x8]
	add	x0, x0, #20
	add	x21, x19, #16
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_omap_vout_new_window
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_COLOR_KEY_GFX_DST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
Lloh3:
	adrp	x10, _OMAP_DSS_OVL_CAP_GLOBAL_ALPHA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OMAP_DSS_OVL_CAP_GLOBAL_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x20]
	str	x9, [x19, #8]
	b	LBB0_4
LBB0_3:
	str	xzr, [x20]
LBB0_4:
	ldr	w9, [x21]
Lloh6:
	adrp	x10, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	cset	w20, ne
Lloh12:
	adrp	x10, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OMAP_DSS_COLOR_KEY_VID_SRC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w11, w9
	csel	w21, w8, w10, eq
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x0]
	cbz	x9, LBB0_9
; %bb.7:
	mov	x1, sp
	blr	x8
	stp	w20, w21, [sp]
	ldr	w8, [x19]
	str	w8, [sp, #8]
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	mov	x1, sp
	blr	x8
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_COLOR_KEY_GFX_DST,4,2 ; @OMAP_DSS_COLOR_KEY_GFX_DST
	.comm	_OMAP_DSS_OVL_CAP_GLOBAL_ALPHA,4,2 ; @OMAP_DSS_OVL_CAP_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ; @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ; @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_OMAP_DSS_COLOR_KEY_VID_SRC,4,2 ; @OMAP_DSS_COLOR_KEY_VID_SRC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_s_fmt_vid_overlay
.subsections_via_symbols
