	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vip_irq
_vip_irq:                               ## @vip_irq
	.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, %r14
	movq	_DVP_ITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reg_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_DVP_IT_FIFO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movl	24(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%r14)
	cmpl	$6, %eax
	jl	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_5:
	movq	_DVP_IT_VST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_DVP_IT_VSB@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%ebx, (%rax)
	jne	LBB0_12
## %bb.7:
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	jle	LBB0_12
LBB0_8:
	movq	_DVP_IT_VSB@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	20(%r14)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_12:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.11:
	movq	_DVP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_reg_read
	movq	_DVP_CTL_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_reg_write
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	8(%r14), %rdi
	movl	%eax, (%rdi)
	movslq	16(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r14)
	movq	%rax, 8(%rdi)
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vb2_buffer_done
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DVP_ITS,4,2                    ## @DVP_ITS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DVP_IT_FIFO,4,2                ## @DVP_IT_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIP: fifo overflow\n"

	.comm	_DVP_IT_VST,4,2                 ## @DVP_IT_VST
	.comm	_DVP_IT_VSB,4,2                 ## @DVP_IT_VSB
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_DVP_CTL,4,2                    ## @DVP_CTL
	.comm	_DVP_CTL_ENA,4,2                ## @DVP_CTL_ENA
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.no_dead_strip	_vip_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vip_irq
_vip_irq:                               ; @vip_irq
	.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, x1
Lloh0:
	adrp	x8, _DVP_ITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVP_ITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _DVP_IT_FIFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DVP_IT_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x19, #24]
	add	w9, w8, #1
	str	w9, [x19, #24]
	cmp	w8, #6
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_4:
Lloh8:
	adrp	x8, _DVP_IT_VST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DVP_IT_VST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	adrp	x8, _DVP_IT_VSB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DVP_IT_VSB@GOTPAGEOFF]
	tst	w9, w20
	b.eq	LBB0_7
; %bb.5:
	ldr	w9, [x8]
	tst	w9, w20
	b.ne	LBB0_12
; %bb.6:
	ldr	w9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	cmp	w9, #1
	b.lt	LBB0_12
LBB0_7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _DVP_CTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DVP_CTL@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_reg_read
Lloh18:
	adrp	x8, _DVP_CTL_ENA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVP_CTL_ENA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_reg_write
	bl	_ktime_get_ns
	ldr	x8, [x19, #8]
	str	w0, [x8]
	ldrsw	x9, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	str	x9, [x8, #8]
Lloh21:
	adrp	x9, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_vb2_buffer_done
LBB0_12:
Lloh24:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DVP_ITS,4,2                    ; @DVP_ITS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DVP_IT_FIFO,4,2                ; @DVP_IT_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIP: fifo overflow\n"

	.comm	_DVP_IT_VST,4,2                 ; @DVP_IT_VST
	.comm	_DVP_IT_VSB,4,2                 ; @DVP_IT_VSB
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_DVP_CTL,4,2                    ; @DVP_CTL
	.comm	_DVP_CTL_ENA,4,2                ; @DVP_CTL_ENA
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.no_dead_strip	_vip_irq
.subsections_via_symbols
