	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_try_fmt_sliced_vbi_cap  ## -- Begin function vidioc_try_fmt_sliced_vbi_cap
	.p2align	4, 0x90
_vidioc_try_fmt_sliced_vbi_cap:         ## @vidioc_try_fmt_sliced_vbi_cap
	.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
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	andl	(%rax,%rcx,4), %r12d
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_vivid_is_sdtv_cap
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$0, 16(%rbx)
	je	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.5:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movq	_V4L2_SLICED_TELETEXT_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
LBB0_6:
	andl	%r15d, %esi
	movq	%r14, %rdi
	callq	_vivid_fill_service_lines
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ## @V4L2_SLICED_TELETEXT_B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_try_fmt_sliced_vbi_cap  ; -- Begin function vidioc_try_fmt_sliced_vbi_cap
	.p2align	2
_vidioc_try_fmt_sliced_vbi_cap:         ; @vidioc_try_fmt_sliced_vbi_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	w22, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w21, [x19]
	bl	_vivid_is_sdtv_cap
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
	and	w9, w23, w22
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh8:
	adrp	x11, _V4L2_SLICED_TELETEXT_B@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V4L2_SLICED_TELETEXT_B@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	w9, #0
	csel	w8, w10, w8, eq
	and	w1, w8, w21
	mov	x0, x19
	bl	_vivid_fill_service_lines
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ; @V4L2_SLICED_TELETEXT_B
.subsections_via_symbols
