	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au0828_vbi_buffer_timeout
_au0828_vbi_buffer_timeout:             ## @au0828_vbi_buffer_timeout
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vbi_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r12
	leaq	24(%rax), %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	16(%r12), %rbx
	movq	%rbx, -40(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movl	(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_buffer_filled
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vbi_get_next_buf
	cmpl	$1, (%r12)
	jne	LBB0_4
## %bb.3:
	addq	$8, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_mod_timer
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vbi_timeout,4,2                ## @vbi_timeout
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_dev,8,3                        ## @dev
	.no_dead_strip	_au0828_vbi_buffer_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au0828_vbi_buffer_timeout
_au0828_vbi_buffer_timeout:             ; @au0828_vbi_buffer_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _vbi_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vbi_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x20, x0
	add	x21, x0, #24
	add	x19, x0, #4
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	x22, [x20, #16]
	str	x22, [sp, #8]
	cbz	x22, LBB0_2
; %bb.1:
	add	x0, x22, #4
	mov	w1, #0
	bl	_vb2_plane_vaddr
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_buffer_filled
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_vbi_get_next_buf
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	add	x0, x20, #8
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_mod_timer
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vbi_timeout,4,2                ; @vbi_timeout
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_dev,8,3                        ; @dev
	.no_dead_strip	_au0828_vbi_buffer_timeout
.subsections_via_symbols
