	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_g_fmt_vid_out_overlay
_ivtv_g_fmt_vid_out_overlay:            ## @ivtv_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
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_fh2id
	movq	8(%rax), %r15
	movq	24(%r15), %r12
	movq	%rbx, %rdi
	callq	_fh2id
	movq	(%rax), %rax
	movq	_V4L2_CAP_VIDEO_OUTPUT_OVERLAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12,%rax,4)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 16(%r15)
	je	LBB0_1
## %bb.3:
	movl	12(%r15), %eax
	movl	%eax, 56(%r14)
	movl	8(%r15), %eax
	movl	%eax, 52(%r14)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movups	%xmm0, 24(%r14)
	movq	$0, 40(%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CAP_VIDEO_OUTPUT_OVERLAY,4,2 ## @V4L2_CAP_VIDEO_OUTPUT_OVERLAY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_ivtv_g_fmt_vid_out_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_g_fmt_vid_out_overlay
_ivtv_g_fmt_vid_out_overlay:            ; @ivtv_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
	mov	x20, x1
	mov	x0, x1
	bl	_fh2id
	ldr	x21, [x0, #8]
	ldr	x22, [x21, #24]
	mov	x0, x20
	bl	_fh2id
	ldr	x8, [x0]
	ldr	w8, [x22, x8, lsl #2]
Lloh0:
	adrp	x9, _V4L2_CAP_VIDEO_OUTPUT_OVERLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_OUTPUT_OVERLAY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	d0, [x21, #8]
	stur	d0, [x19, #52]
Lloh3:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	str	xzr, [x19, #40]
	ldr	d0, [x21]
	str	d0, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CAP_VIDEO_OUTPUT_OVERLAY,4,2 ; @V4L2_CAP_VIDEO_OUTPUT_OVERLAY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.no_dead_strip	_ivtv_g_fmt_vid_out_overlay
.subsections_via_symbols
