	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_g_fmt_sliced_vbi_out
_ivtv_g_fmt_sliced_vbi_out:             ## @ivtv_g_fmt_sliced_vbi_out
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %r14
	movq	16(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_V4L2_CAP_SLICED_VBI_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movl	$144, (%rbx)
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 168(%rcx)
	movq	8(%rbx), %rcx
	addq	$8, %rcx
	movl	$21, %edx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 184(%rcx)
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	$16, %edx
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	%rbx, %rdi
	callq	_ivtv_get_service_set
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ## @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,8,3        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,8,3            ## @V4L2_SLICED_VPS
	.no_dead_strip	_ivtv_g_fmt_sliced_vbi_out
.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_sliced_vbi_out
_ivtv_g_fmt_sliced_vbi_out:             ; @ivtv_g_fmt_sliced_vbi_out
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x0, x1
	bl	_fh2id
	ldr	x20, [x0]
	ldr	x8, [x19, #16]
	stp	xzr, xzr, [x8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #144
	str	w8, [x19]
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x8, [x9, #168]
	ldr	x9, [x19, #8]
	add	x9, x9, #8
	mov	w10, #21
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x8, [x9, #184]
Lloh12:
	adrp	x8, _V4L2_SLICED_VPS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_SLICED_VPS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	mov	w10, #16
LBB0_5:
	ldr	x9, [x9]
	str	x8, [x9, x10, lsl #3]
	mov	x0, x19
	bl	_ivtv_get_service_set
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ; @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,8,3        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,8,3            ; @V4L2_SLICED_VPS
	.no_dead_strip	_ivtv_g_fmt_sliced_vbi_out
.subsections_via_symbols
