	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_irq_417                ## -- Begin function cx23885_irq_417
	.p2align	4, 0x90
_cx23885_irq_417:                       ## @cx23885_irq_417
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	48(%rdi), %edi
	callq	_cx_read
	movl	%eax, %r15d
	movl	44(%r14), %edi
	callq	_cx_read
	leaq	L_.str(%rip), %rsi
	movl	$7, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_VID_B_MSK_BAD_PKT@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	jne	LBB0_9
## %bb.3:
	movq	_VID_B_MSK_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.4:
	movq	_VID_B_MSK_VBI_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.5:
	movq	_VID_B_MSK_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	_VID_B_MSK_VBI_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	_VID_B_MSK_OF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_VID_B_MSK_VBI_OF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_24
LBB0_9:
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_pr_err
	testl	%ebx, (%r12)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_11:
	movq	_VID_B_MSK_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_13:
	movq	_VID_B_MSK_VBI_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_15:
	movq	_VID_B_MSK_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_17:
	movq	_VID_B_MSK_VBI_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_19:
	movq	_VID_B_MSK_OF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_21:
	movq	_VID_B_MSK_VBI_OF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_23
## %bb.22:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_23:
	movl	36(%r14), %esi
	movl	40(%r14), %edi
	callq	_cx_clear
	movq	16(%r14), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_cx23885_sram_channel_dump
	movq	%r14, %rdi
	callq	_cx23885_417_check_encoder
LBB0_26:
	movl	24(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_24:
	movq	_VID_B_MSK_RISCI1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_26
## %bb.25:
	leaq	16(%r14), %r12
	leaq	L_.str.9(%rip), %rsi
	movl	$7, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	28(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	leaq	32(%r14), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_cx23885_wakeup
	movq	%r13, %rdi
	callq	_spin_unlock
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status: 0x%08x  mask: 0x%08x count: 0x%x\n"

	.comm	_VID_B_MSK_BAD_PKT,4,2          ## @VID_B_MSK_BAD_PKT
	.comm	_VID_B_MSK_OPC_ERR,4,2          ## @VID_B_MSK_OPC_ERR
	.comm	_VID_B_MSK_VBI_OPC_ERR,4,2      ## @VID_B_MSK_VBI_OPC_ERR
	.comm	_VID_B_MSK_SYNC,4,2             ## @VID_B_MSK_SYNC
	.comm	_VID_B_MSK_VBI_SYNC,4,2         ## @VID_B_MSK_VBI_SYNC
	.comm	_VID_B_MSK_OF,4,2               ## @VID_B_MSK_OF
	.comm	_VID_B_MSK_VBI_OF,4,2           ## @VID_B_MSK_VBI_OF
L_.str.1:                               ## @.str.1
	.asciz	"%s: V4L mpeg risc op code error, status = 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"        VID_B_MSK_BAD_PKT\n"

L_.str.3:                               ## @.str.3
	.asciz	"        VID_B_MSK_OPC_ERR\n"

L_.str.4:                               ## @.str.4
	.asciz	"        VID_B_MSK_VBI_OPC_ERR\n"

L_.str.5:                               ## @.str.5
	.asciz	"        VID_B_MSK_SYNC\n"

L_.str.6:                               ## @.str.6
	.asciz	"        VID_B_MSK_VBI_SYNC\n"

L_.str.7:                               ## @.str.7
	.asciz	"        VID_B_MSK_OF\n"

L_.str.8:                               ## @.str.8
	.asciz	"        VID_B_MSK_VBI_OF\n"

	.comm	_VID_B_MSK_RISCI1,4,2           ## @VID_B_MSK_RISCI1
L_.str.9:                               ## @.str.9
	.asciz	"        VID_B_MSK_RISCI1\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_irq_417                ; -- Begin function cx23885_irq_417
	.p2align	2
_cx23885_irq_417:                       ; @cx23885_irq_417
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_24
; %bb.1:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #48]
	bl	_cx_read
	mov	x21, x0
	ldr	w0, [x20, #44]
	bl	_cx_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x21, [sp, #8]
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #7
	bl	_dprintk
Lloh2:
	adrp	x28, _VID_B_MSK_BAD_PKT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _VID_B_MSK_BAD_PKT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _VID_B_MSK_OPC_ERR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _VID_B_MSK_OPC_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _VID_B_MSK_VBI_OPC_ERR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VID_B_MSK_VBI_OPC_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x25, _VID_B_MSK_SYNC@GOTPAGE
Lloh9:
	ldr	x25, [x25, _VID_B_MSK_SYNC@GOTPAGEOFF]
Lloh10:
	adrp	x24, _VID_B_MSK_VBI_SYNC@GOTPAGE
Lloh11:
	ldr	x24, [x24, _VID_B_MSK_VBI_SYNC@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh12:
	adrp	x23, _VID_B_MSK_OF@GOTPAGE
Lloh13:
	ldr	x23, [x23, _VID_B_MSK_OF@GOTPAGEOFF]
Lloh14:
	adrp	x22, _VID_B_MSK_VBI_OF@GOTPAGE
Lloh15:
	ldr	x22, [x22, _VID_B_MSK_VBI_OF@GOTPAGEOFF]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x27]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x26]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x25]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x24]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x23]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_25
LBB0_8:
	ldr	w1, [x20, #8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_err
	ldr	w8, [x28]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_10:
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_12
; %bb.11:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_12:
	ldr	w8, [x26]
	tst	w8, w19
	b.eq	LBB0_14
; %bb.13:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_14:
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_16
; %bb.15:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_16:
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_18
; %bb.17:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_18:
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_20
; %bb.19:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_20:
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_22
; %bb.21:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_22:
	ldp	w1, w0, [x20, #36]
	bl	_cx_clear
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	bl	_cx23885_sram_channel_dump
	mov	x0, x20
	bl	_cx23885_417_check_encoder
LBB0_23:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_cx_write
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	mov	w0, #0
	ret
LBB0_25:
	.cfi_restore_state
Lloh32:
	adrp	x8, _VID_B_MSK_RISCI1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VID_B_MSK_RISCI1@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_23
; %bb.26:
	add	x22, x20, #16
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #7
	bl	_dprintk
	add	x23, x20, #28
	mov	x0, x23
	bl	_spin_lock
	add	x1, x20, #32
	mov	x0, x22
	mov	x2, x21
	bl	_cx23885_wakeup
	mov	x0, x23
	bl	_spin_unlock
	b	LBB0_23
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status: 0x%08x  mask: 0x%08x count: 0x%x\n"

	.comm	_VID_B_MSK_BAD_PKT,4,2          ; @VID_B_MSK_BAD_PKT
	.comm	_VID_B_MSK_OPC_ERR,4,2          ; @VID_B_MSK_OPC_ERR
	.comm	_VID_B_MSK_VBI_OPC_ERR,4,2      ; @VID_B_MSK_VBI_OPC_ERR
	.comm	_VID_B_MSK_SYNC,4,2             ; @VID_B_MSK_SYNC
	.comm	_VID_B_MSK_VBI_SYNC,4,2         ; @VID_B_MSK_VBI_SYNC
	.comm	_VID_B_MSK_OF,4,2               ; @VID_B_MSK_OF
	.comm	_VID_B_MSK_VBI_OF,4,2           ; @VID_B_MSK_VBI_OF
l_.str.1:                               ; @.str.1
	.asciz	"%s: V4L mpeg risc op code error, status = 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"        VID_B_MSK_BAD_PKT\n"

l_.str.3:                               ; @.str.3
	.asciz	"        VID_B_MSK_OPC_ERR\n"

l_.str.4:                               ; @.str.4
	.asciz	"        VID_B_MSK_VBI_OPC_ERR\n"

l_.str.5:                               ; @.str.5
	.asciz	"        VID_B_MSK_SYNC\n"

l_.str.6:                               ; @.str.6
	.asciz	"        VID_B_MSK_VBI_SYNC\n"

l_.str.7:                               ; @.str.7
	.asciz	"        VID_B_MSK_OF\n"

l_.str.8:                               ; @.str.8
	.asciz	"        VID_B_MSK_VBI_OF\n"

	.comm	_VID_B_MSK_RISCI1,4,2           ; @VID_B_MSK_RISCI1
l_.str.9:                               ; @.str.9
	.asciz	"        VID_B_MSK_RISCI1\n"

.subsections_via_symbols
