	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_g_vbi_data
_saa711x_g_vbi_data:                    ## @saa711x_g_vbi_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.2:
	movq	%r14, %rdi
	movl	$107, %esi
	callq	_saa711x_read
	testb	$-64, %al
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$108, %esi
	callq	_saa711x_read
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$109, %esi
	jmp	LBB0_5
LBB0_6:
	movl	16(%rbx), %r15d
	movq	%r14, %rdi
	movl	$102, %esi
	callq	_saa711x_read
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.9:
	testb	$-64, %al
	jne	LBB0_3
## %bb.10:
	movq	%r14, %rdi
	movl	$103, %esi
	callq	_saa711x_read
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$104, %esi
	jmp	LBB0_5
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_7:
	testb	$48, %al
	je	LBB0_8
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_8:
	movq	%r14, %rdi
	movl	$105, %esi
	callq	_saa711x_read
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$106, %esi
LBB0_5:
	callq	_saa711x_read
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa711x_g_vbi_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_g_vbi_data
_saa711x_g_vbi_data:                    ; @saa711x_g_vbi_data
	.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, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	w1, #107
	bl	_saa711x_read
	tst	w0, #0xc0
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x20
	mov	w1, #108
	bl	_saa711x_read
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #109
	b	LBB0_12
LBB0_4:
	ldr	w21, [x19, #16]
	mov	x0, x20
	mov	w1, #102
	bl	_saa711x_read
	cbz	w21, LBB0_8
; %bb.5:
	tst	w0, #0xc0
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x20
	mov	w1, #103
	bl	_saa711x_read
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #104
	b	LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	tst	w0, #0x30
	b.eq	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	mov	w1, #105
	bl	_saa711x_read
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #106
LBB0_12:
	bl	_saa711x_read
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa711x_g_vbi_data
.subsections_via_symbols
