	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_g_fmt_vid_out_overlay   ## -- Begin function vidioc_g_fmt_vid_out_overlay
	.p2align	4, 0x90
_vidioc_g_fmt_vid_out_overlay:          ## @vidioc_g_fmt_vid_out_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, %r14
	callq	_video_drvdata
	cmpl	$0, 48(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movq	40(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movq	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm2
	punpcklqdq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0]
	movdqu	%xmm2, 36(%r14)
	movl	(%rbx), %r15d
	movl	%r15d, (%r14)
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movl	36(%rbx), %ecx
	movl	%ecx, 28(%r14)
	movl	32(%rbx), %ecx
	movl	%ecx, 24(%r14)
	cmpl	%r15d, %eax
	cmovbl	%eax, %r15d
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movd	%xmm0, %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	pextrd	$1, %xmm0, %edx
	imull	%eax, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	$0, 16(%r14)
LBB0_6:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	movq	8(%rbx), %rsi
	shll	$2, %r15d
	movl	%r15d, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_g_fmt_vid_out_overlay   ; -- Begin function vidioc_g_fmt_vid_out_overlay
	.p2align	2
_vidioc_g_fmt_vid_out_overlay:          ; @vidioc_g_fmt_vid_out_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	x19, x2
	bl	_video_drvdata
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	ldr	d1, [x0, #40]
	ldr	d0, [x0, #16]
	mov.16b	v2, v0
	mov.d	v2[1], v1[0]
	stur	q2, [x19, #36]
	ldr	w9, [x0]
	str	w9, [x19]
Lloh0:
	adrp	x10, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	str	w10, [x19, #32]
	ldr	d1, [x0, #32]
	str	d1, [x19, #24]
	cmp	w8, w9
	csel	w21, w8, w9, lo
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_10
; %bb.2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	fmov	w8, s0
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
	mov.s	w9, v0[1]
	mul	w2, w8, w9
	bl	_copy_to_user
	cbnz	x0, LBB0_7
LBB0_4:
	cbz	w21, LBB0_11
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x1, [x20, #8]
	lsl	w2, w21, #2
	bl	_copy_to_user
	cbz	x0, LBB0_12
LBB0_7:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	str	xzr, [x19, #16]
	cbnz	w21, LBB0_5
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
