	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_s_fmt_vid_overlay
_saa7134_s_fmt_vid_overlay:             ## @saa7134_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movq	_saa7134_no_overlay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	cmpq	$0, 8(%r12)
	jne	LBB0_4
## %bb.3:
	movl	$0, (%r12)
LBB0_4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_verify_preview
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movups	(%r12), %xmm0
	movups	%xmm0, 24(%r15)
	movl	(%r12), %edx
	movl	%edx, (%r15)
	movl	20(%r15), %edi
	movq	8(%r12), %rsi
	shll	$2, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	cmpq	%r14, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_stop_preview
	movq	%r15, %rdi
	callq	_start_preview
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7134_no_overlay,8,3         ## @saa7134_no_overlay
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_saa7134_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 saa7134_s_fmt_vid_overlay
_saa7134_s_fmt_vid_overlay:             ; @saa7134_s_fmt_vid_overlay
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	bl	_video_drvdata
Lloh0:
	adrp	x8, _saa7134_no_overlay@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7134_no_overlay@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	x19, x0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	str	wzr, [x21]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_verify_preview
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	q0, [x21]
	stur	q0, [x19, #24]
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	w0, [x19, #20]
	ldr	x1, [x21, #8]
	lsl	w2, w8, #2
	bl	_copy_from_user
	cbz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.10:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_stop_preview
	mov	x0, x19
	bl	_start_preview
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7134_no_overlay,8,3         ; @saa7134_no_overlay
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_saa7134_s_fmt_vid_overlay
.subsections_via_symbols
