	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_s_fmt_vbi_cap
_cx18_s_fmt_vbi_cap:                    ## @cx18_s_fmt_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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_cx18_raw_vbi
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movl	16(%rbx), %edi
	movq	_vbi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_raw_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	8(%rbx), %rax
	movq	$0, (%rax)
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_g_fmt_vbi_cap             ## TAILCALL
LBB0_1:
	leaq	20(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	movq	_EBUSY@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	_EBUSY,4,2                      ## @EBUSY
	.comm	_vbi,4,2                        ## @vbi
	.comm	_s_raw_fmt,4,2                  ## @s_raw_fmt
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx18_s_fmt_vbi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_s_fmt_vbi_cap
_cx18_s_fmt_vbi_cap:                    ; @cx18_s_fmt_vbi_cap
	.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	x21, x0
	mov	x0, x1
	bl	_fh2id
	ldr	x22, [x0]
	mov	x0, x22
	bl	_cx18_raw_vbi
	cbz	w0, LBB0_3
LBB0_1:
	ldr	w0, [x22, #16]
Lloh0:
	adrp	x8, _vbi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vbi@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _s_raw_fmt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_raw_fmt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
	str	xzr, [x8]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_cx18_g_fmt_vbi_cap
LBB0_3:
	add	x0, x22, #20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.4:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_vbi,4,2                        ; @vbi
	.comm	_s_raw_fmt,4,2                  ; @s_raw_fmt
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx18_s_fmt_vbi_cap
.subsections_via_symbols
