	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_vbi_init1              ## -- Begin function saa7134_vbi_init1
	.p2align	4, 0x90
_saa7134_vbi_init1:                     ## @saa7134_vbi_init1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$12, %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%rbx), %rdi
	movq	_saa7134_buffer_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%rbx, (%rbx)
	movq	_vbibufs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	jg	LBB0_2
## %bb.1:
	movl	$2, (%rax)
	movl	$2, %ecx
LBB0_2:
	movq	_VIDEO_MAX_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jle	LBB0_4
## %bb.3:
	movl	%edx, (%rax)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7134_buffer_timeout,4,2     ## @saa7134_buffer_timeout
	.comm	_vbibufs,4,2                    ## @vbibufs
	.comm	_VIDEO_MAX_FRAME,4,2            ## @VIDEO_MAX_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_vbi_init1              ; -- Begin function saa7134_vbi_init1
	.p2align	2
_saa7134_vbi_init1:                     ; @saa7134_vbi_init1
	.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, x0
	add	x0, x0, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
Lloh0:
	adrp	x8, _saa7134_buffer_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7134_buffer_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	str	x19, [x19]
Lloh3:
	adrp	x8, _vbibufs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vbibufs@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.gt	LBB0_2
; %bb.1:
	mov	w9, #2
	str	w9, [x8]
LBB0_2:
Lloh5:
	adrp	x10, _VIDEO_MAX_FRAME@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VIDEO_MAX_FRAME@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_4
; %bb.3:
	str	w10, [x8]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7134_buffer_timeout,4,2     ; @saa7134_buffer_timeout
	.comm	_vbibufs,4,2                    ; @vbibufs
	.comm	_VIDEO_MAX_FRAME,4,2            ; @VIDEO_MAX_FRAME
.subsections_via_symbols
