	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivi_fillbuff
_vivi_fillbuff:                         ## @vivi_fillbuff
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	4(%rsi), %r12
	movq	%rsi, %rdi
	callq	_videobuf_to_vmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	leaq	(%r12,%r12), %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %rcx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	movq	%r12, %rax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %eax
	movl	32(%rcx), %r10d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_gen_line
	addq	$16, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	incl	%r12d
	addq	%rbx, %r15
	addl	%ebx, %r13d
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incl	32(%rbx)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_kfree
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	subq	24(%rbx), %rdi
	callq	_jiffies_to_msecs
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	(%r15), %rcx
	movq	%rcx, 24(%rbx)
	cmpl	$999, %eax                      ## imm = 0x3E7
	jle	LBB0_11
## %bb.7:
	addl	$-1000, %eax                    ## imm = 0xFC18
	movl	%eax, (%rbx)
	movl	4(%rbx), %r8d
	leal	1(%r8), %ecx
	movl	%ecx, 4(%rbx)
	cmpl	$59, %r8d
	jl	LBB0_12
## %bb.8:
	addl	$-59, %r8d
	movl	%r8d, 4(%rbx)
	movl	8(%rbx), %ecx
	leal	1(%rcx), %edx
	movl	%edx, 8(%rbx)
	cmpl	$60, %ecx
	jl	LBB0_13
## %bb.9:
	addl	$-59, %ecx
	movl	%ecx, 8(%rbx)
	movl	12(%rbx), %ecx
	leal	1(%rcx), %edx
	movl	%edx, 12(%rbx)
	cmpl	$24, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_14
## %bb.10:
	addl	$-23, %ecx
	movl	%ecx, 12(%rbx)
	jmp	LBB0_14
LBB0_11:
	movl	4(%rbx), %r8d
	jmp	LBB0_13
LBB0_12:
	movl	%ecx, %r8d
LBB0_13:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movl	16(%rbx), %edi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%eax, %r9d
	callq	_sprintf
	movl	16(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	movq	%r12, %r8
	movl	%r13d, %r9d
	callq	_dprintk
	incl	16(%r15)
	leaq	-64(%rbp), %rdi
	callq	_do_gettimeofday
	movl	-64(%rbp), %eax
	movl	%eax, 12(%r15)
	movq	_VIDEOBUF_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02d:%02d:%02d:%03d"

L_.str.1:                               ## @.str.1
	.asciz	"vivifill at %s: Buffer 0x%08lx size= %d\n"

	.comm	_VIDEOBUF_DONE,4,2              ## @VIDEOBUF_DONE
	.no_dead_strip	_vivi_fillbuff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivi_fillbuff
_vivi_fillbuff:                         ; @vivi_fillbuff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	ldr	x20, [x0]
	ldp	w24, w25, [x1]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	mov	x0, x1
	bl	_videobuf_to_vmalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x26, x0
	lsl	x27, x25, #1
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_kmalloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x21, x0
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w22, #0
	mov	w28, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w6, [x20, #32]
	ldr	w7, [x20, #16]
	mov	x0, x23
	mov	x1, x21
	mov	w2, #0
	mov	x3, x25
	mov	x4, x24
	mov	x5, x28
	bl	_gen_line
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	bl	_memcpy
	add	w28, w28, #1
	add	x26, x26, x27
	add	w22, w22, w27
	cmp	w24, w28
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	mov	x0, x21
	bl	_kfree
Lloh3:
	adrp	x23, _jiffies@GOTPAGE
Lloh4:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x20, #24]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	ldr	w8, [x20]
	add	w5, w8, w0
	str	w5, [x20]
	ldr	x8, [x23]
	str	x8, [x20, #24]
	cmp	w5, #999
	b.le	LBB0_11
; %bb.7:
	sub	w5, w5, #1000
	ldr	w9, [x20, #4]
	add	w8, w9, #1
	stp	w5, w8, [x20]
	subs	w4, w9, #59
	b.lt	LBB0_12
; %bb.8:
	ldr	w8, [x20, #8]
	add	w9, w8, #1
	stp	w4, w9, [x20, #4]
	cmp	w8, #60
	b.lt	LBB0_13
; %bb.9:
	sub	w9, w8, #59
	ldr	w8, [x20, #12]
	add	w10, w8, #1
	stp	w9, w10, [x20, #8]
	cmp	w8, #24
	b.lt	LBB0_13
; %bb.10:
	sub	w8, w8, #23
	str	w8, [x20, #12]
	b	LBB0_13
LBB0_11:
	ldr	w4, [x20, #4]
	b	LBB0_13
LBB0_12:
	mov	x4, x8
LBB0_13:
	ldp	w2, w0, [x20, #12]
	ldr	w3, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	ldr	w3, [x20, #16]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #2
	mov	x4, x21
	mov	x5, x22
	bl	_dprintk
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	add	x0, sp, #8
	bl	_do_gettimeofday
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x9, _VIDEOBUF_DONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDEOBUF_DONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02d:%02d:%02d:%03d"

l_.str.1:                               ; @.str.1
	.asciz	"vivifill at %s: Buffer 0x%08lx size= %d\n"

	.comm	_VIDEOBUF_DONE,4,2              ; @VIDEOBUF_DONE
	.no_dead_strip	_vivi_fillbuff
.subsections_via_symbols
