	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_irq
_bttv_irq:                              ## @bttv_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_BT848_INT_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_btread
	movl	%eax, %r13d
	movq	_BT848_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	movl	%eax, %r12d
	andl	%r13d, %r12d
	je	LBB0_1
## %bb.2:
	leaq	32(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_btwrite
	movl	12(%r15), %esi
	leaq	L_.str.14(%rip), %rdi
	callq	_pr_err
LBB0_52:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_bttv_print_irqbits
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_53:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_btread
	movl	%eax, %r13d
	movq	_BT848_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	movl	%eax, %r12d
	incl	%ebx
	andl	%r13d, %r12d
	je	LBB0_54
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	%r13d, %edi
	callq	_btwrite
	movq	_BT848_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	movl	%eax, %ecx
	movq	_irq_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r13d
	movl	12(%r15), %ebx
	movl	48(%r15), %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	sarl	$28, %r15d
	movq	_BT848_RISC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_pr_debug
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_bttv_print_irqbits
	movq	_BT848_INT_HLOCK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_DSTATUS_HLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.3(%rip), %rsi
	andl	%ebx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_VPRES@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	_BT848_INT_STAT@GOTPCREL(%rip), %r14
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_DSTATUS_PRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.3(%rip), %rsi
	andl	%ebx, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_FMTCHG@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.7(%rip), %rsi
	movq	_BT848_DSTATUS_NUML@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.6(%rip), %rsi
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_VSYNC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	48(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_GPINT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 40(%r15)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_input_irq
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_I2CDONE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, (%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wake_up
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_RISCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ecx
	andl	$1073741824, %ecx               ## imm = 0x40000000
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_irq_switch_vbi
	movq	_BT848_INT_RISCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ecx
	andl	$536870912, %ecx                ## imm = 0x20000000
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_irq_wakeup_top
	movq	_BT848_INT_RISCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %eax
	andl	$268435456, %eax                ## imm = 0x10000000
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_irq_switch_video
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_HLOCK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%r15)
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	movq	%r15, %rdi
	callq	_audio_mux_gpio
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_SCERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BT848_INT_OCERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	testl	%r12d, %edx
	je	LBB0_43
## %bb.37:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.11(%rip), %r13
	testl	%r12d, %ecx
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.10(%rip), %r13
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.11(%rip), %rbx
	testl	%r12d, %eax
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.12(%rip), %rbx
LBB0_41:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15), %r14d
	movq	_BT848_RISC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	leaq	L_.str.9(%rip), %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pr_info
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_bttv_print_irqbits
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	movq	_bttv_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_BT848_INT_STAT@GOTPCREL(%rip), %r14
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_print_riscaddr
LBB0_43:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_fdsr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_FDSR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15), %r13d
	movq	_BT848_RISC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_btread
	leaq	L_.str.13(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movq	_bttv_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bttv_print_riscaddr
LBB0_47:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, %ebx
	jb	LBB0_53
## %bb.48:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$7, %ebx
	ja	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_BT848_INT_GPINT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_50
## %bb.51:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r15), %esi
	leaq	L_.str.15(%rip), %rdi
	callq	_pr_err
	movq	_BT848_INT_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_btread
	movq	_BT848_INT_GPINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r13), %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	callq	_btwrite
	jmp	LBB0_52
LBB0_54:
	incl	8(%r15)
	incl	4(%r15)
	movl	$1, %edi
	jmp	LBB0_55
LBB0_1:
	incl	8(%r15)
	xorl	%edi, %edi
LBB0_55:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT848_INT_STAT,4,2             ## @BT848_INT_STAT
	.comm	_BT848_INT_MASK,4,2             ## @BT848_INT_MASK
	.comm	_BT848_DSTATUS,4,2              ## @BT848_DSTATUS
	.comm	_irq_debug,8,3                  ## @irq_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: irq loop=%d fc=%d riscs=%x, riscc=%08x, "

	.comm	_BT848_RISC_COUNT,4,2           ## @BT848_RISC_COUNT
	.comm	_BT848_INT_HLOCK,4,2            ## @BT848_INT_HLOCK
L_.str.1:                               ## @.str.1
	.asciz	"   HLOC => %s"

	.comm	_BT848_DSTATUS_HLOC,4,2         ## @BT848_DSTATUS_HLOC
L_.str.2:                               ## @.str.2
	.asciz	"yes"

L_.str.3:                               ## @.str.3
	.asciz	"no"

	.comm	_BT848_INT_VPRES,4,2            ## @BT848_INT_VPRES
L_.str.4:                               ## @.str.4
	.asciz	"   PRES => %s"

	.comm	_BT848_DSTATUS_PRES,4,2         ## @BT848_DSTATUS_PRES
	.comm	_BT848_INT_FMTCHG,4,2           ## @BT848_INT_FMTCHG
L_.str.5:                               ## @.str.5
	.asciz	"   NUML => %s"

	.comm	_BT848_DSTATUS_NUML,4,2         ## @BT848_DSTATUS_NUML
L_.str.6:                               ## @.str.6
	.asciz	"625"

L_.str.7:                               ## @.str.7
	.asciz	"525"

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

	.comm	_BT848_INT_VSYNC,4,2            ## @BT848_INT_VSYNC
	.comm	_BT848_INT_GPINT,4,2            ## @BT848_INT_GPINT
	.comm	_BT848_INT_I2CDONE,4,2          ## @BT848_INT_I2CDONE
	.comm	_BT848_INT_RISCI,4,2            ## @BT848_INT_RISCI
	.comm	_BT848_INT_SCERR,4,2            ## @BT848_INT_SCERR
	.comm	_BT848_INT_OCERR,4,2            ## @BT848_INT_OCERR
L_.str.9:                               ## @.str.9
	.asciz	"%d: %s%s @ %08x,"

L_.str.10:                              ## @.str.10
	.asciz	"SCERR"

L_.str.11:                              ## @.str.11
	.space	1

L_.str.12:                              ## @.str.12
	.asciz	"OCERR"

	.comm	_bttv_debug,8,3                 ## @bttv_debug
	.comm	_fdsr,8,3                       ## @fdsr
	.comm	_BT848_INT_FDSR,4,2             ## @BT848_INT_FDSR
L_.str.13:                              ## @.str.13
	.asciz	"%d: FDSR @ %08x\n"

L_.str.14:                              ## @.str.14
	.asciz	"%d: IRQ lockup, cleared int mask ["

L_.str.15:                              ## @.str.15
	.asciz	"%d: IRQ lockup, clearing GPINT from int mask ["

L_.str.16:                              ## @.str.16
	.asciz	"]\n"

	.no_dead_strip	_bttv_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_irq
_bttv_irq:                              ; @bttv_irq
	.cfi_startproc
; %bb.0:
	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
	mov	x19, x1
Lloh0:
	adrp	x21, _BT848_INT_STAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BT848_INT_STAT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_btread
	mov	x22, x0
Lloh2:
	adrp	x28, _BT848_INT_MASK@GOTPAGE
Lloh3:
	ldr	x28, [x28, _BT848_INT_MASK@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_btread
	ands	w26, w0, w22
	b.eq	LBB0_41
; %bb.1:
	mov	w20, #0
	add	x8, x19, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh4:
	adrp	x25, _BT848_INT_GPINT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _BT848_INT_GPINT@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	w0, #0
	bl	_btwrite
	ldr	w1, [x19, #12]
Lloh6:
	adrp	x0, l_.str.14@PAGE
Lloh7:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_pr_err
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_bttv_print_irqbits
Lloh8:
	adrp	x0, l_.str.16@PAGE
Lloh9:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_pr_cont
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_btread
	mov	x22, x0
	ldr	w0, [x28]
	bl	_btread
	add	w20, w20, #1
	ands	w26, w0, w22
	b.eq	LBB0_40
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x22
	bl	_btwrite
Lloh10:
	adrp	x8, _BT848_DSTATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BT848_DSTATUS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_btread
Lloh13:
	adrp	x8, _irq_debug@GOTPAGE
Lloh14:
	ldr	x8, [x8, _irq_debug@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
	mov	x25, x21
	mov	x21, x28
	ldr	w24, [x19, #12]
	ldr	w28, [x19, #48]
	asr	w23, w22, #28
Lloh16:
	adrp	x8, _BT848_RISC_COUNT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BT848_RISC_COUNT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_btread
	mov	x5, x0
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x20
	mov	x3, x28
	mov	x4, x23
	bl	_pr_debug
	mov	x0, x22
	mov	x1, x26
	bl	_bttv_print_irqbits
Lloh21:
	adrp	x8, _BT848_INT_HLOCK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT848_INT_HLOCK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x8, _BT848_DSTATUS_HLOC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BT848_DSTATUS_HLOC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w27
Lloh27:
	adrp	x8, l_.str.2@PAGE
Lloh28:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh29:
	adrp	x9, l_.str.3@PAGE
Lloh30:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh33:
	adrp	x8, _BT848_INT_VPRES@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BT848_INT_VPRES@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh36:
	adrp	x8, _BT848_DSTATUS_PRES@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BT848_DSTATUS_PRES@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w27
Lloh39:
	adrp	x8, l_.str.2@PAGE
Lloh40:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh41:
	adrp	x9, l_.str.3@PAGE
Lloh42:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_cont
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh45:
	adrp	x8, _BT848_INT_FMTCHG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BT848_INT_FMTCHG@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w22
	mov	x28, x21
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh48:
	adrp	x8, _BT848_DSTATUS_NUML@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BT848_DSTATUS_NUML@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w27
Lloh51:
	adrp	x8, l_.str.6@PAGE
Lloh52:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh53:
	adrp	x9, l_.str.7@PAGE
Lloh54:
	add	x9, x9, l_.str.7@PAGEOFF
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh55:
	adrp	x0, l_.str.5@PAGE
Lloh56:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_cont
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh57:
	adrp	x0, l_.str.8@PAGE
Lloh58:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_cont
	mov	x21, x25
Lloh59:
	adrp	x25, _BT848_INT_GPINT@GOTPAGE
Lloh60:
	ldr	x25, [x25, _BT848_INT_GPINT@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh61:
	adrp	x8, _BT848_INT_VSYNC@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BT848_INT_VSYNC@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	tst	w8, w26
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_input_irq
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh64:
	adrp	x8, _BT848_INT_I2CDONE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BT848_INT_I2CDONE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w22, [x19]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_wake_up
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh67:
	adrp	x8, _BT848_INT_RISCI@GOTPAGE
Lloh68:
	ldr	x8, [x8, _BT848_INT_RISCI@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	and	w8, w8, w26
	and	w9, w22, #0x40000000
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_irq_switch_vbi
Lloh70:
	adrp	x8, _BT848_INT_RISCI@GOTPAGE
Lloh71:
	ldr	x8, [x8, _BT848_INT_RISCI@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	and	w8, w8, w26
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w22, #0x20000000
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_irq_wakeup_top
Lloh73:
	adrp	x8, _BT848_INT_RISCI@GOTPAGE
Lloh74:
	ldr	x8, [x8, _BT848_INT_RISCI@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	and	w8, w8, w26
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w22, #0x10000000
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_irq_switch_video
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh76:
	adrp	x8, _BT848_INT_HLOCK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _BT848_INT_HLOCK@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [x19, #16]
	mov	x0, x19
	bl	_audio_mux_gpio
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh79:
	adrp	x8, _BT848_INT_SCERR@GOTPAGE
Lloh80:
	ldr	x8, [x8, _BT848_INT_SCERR@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x8]
Lloh82:
	adrp	x8, _BT848_INT_OCERR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _BT848_INT_OCERR@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	orr	w10, w8, w9
	tst	w10, w26
	b.eq	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x19, #12]
	tst	w9, w26
Lloh85:
	adrp	x9, l_.str.10@PAGE
Lloh86:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh87:
	adrp	x10, l_.str.11@PAGE
Lloh88:
	add	x10, x10, l_.str.11@PAGEOFF
	csel	x24, x10, x9, eq
	tst	w8, w26
Lloh89:
	adrp	x8, l_.str.12@PAGE
Lloh90:
	add	x8, x8, l_.str.12@PAGEOFF
	csel	x27, x10, x8, eq
Lloh91:
	adrp	x8, _BT848_RISC_COUNT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _BT848_RISC_COUNT@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	bl	_btread
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp, #8]
	str	x24, [sp]
Lloh94:
	adrp	x0, l_.str.9@PAGE
Lloh95:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x23
	bl	_pr_info
	mov	x0, x22
	mov	x1, x26
	bl	_bttv_print_irqbits
Lloh96:
	adrp	x0, l_.str.8@PAGE
Lloh97:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_cont
Lloh98:
	adrp	x8, _bttv_debug@GOTPAGE
Lloh99:
	ldr	x8, [x8, _bttv_debug@GOTPAGEOFF]
Lloh100:
	ldr	x8, [x8]
	cbz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_print_riscaddr
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh101:
	adrp	x8, _fdsr@GOTPAGE
Lloh102:
	ldr	x8, [x8, _fdsr@GOTPAGEOFF]
Lloh103:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh104:
	adrp	x8, _BT848_INT_FDSR@GOTPAGE
Lloh105:
	ldr	x8, [x8, _BT848_INT_FDSR@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x19, #12]
Lloh107:
	adrp	x8, _BT848_RISC_COUNT@GOTPAGE
Lloh108:
	ldr	x8, [x8, _BT848_RISC_COUNT@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
	bl	_btread
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh110:
	adrp	x0, l_.str.13@PAGE
Lloh111:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, x23
	bl	_pr_info
Lloh112:
	adrp	x8, _bttv_debug@GOTPAGE
Lloh113:
	ldr	x8, [x8, _bttv_debug@GOTPAGEOFF]
Lloh114:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bttv_print_riscaddr
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #4
	b.lo	LBB0_4
; %bb.37:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #7
	b.hi	LBB0_2
; %bb.38:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	tst	w8, w26
	b.eq	LBB0_2
; %bb.39:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19, #12]
Lloh115:
	adrp	x0, l_.str.15@PAGE
Lloh116:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_pr_err
	ldr	w0, [x28]
	bl	_btread
	ldr	w8, [x25]
	bic	w0, w0, w8
	ldr	w1, [x28]
	bl	_btwrite
	b	LBB0_3
LBB0_40:
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	mov	w0, #1
	b	LBB0_42
LBB0_41:
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_42:
	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
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh115, Lloh116
	.cfi_endproc
                                        ; -- End function
	.comm	_BT848_INT_STAT,4,2             ; @BT848_INT_STAT
	.comm	_BT848_INT_MASK,4,2             ; @BT848_INT_MASK
	.comm	_BT848_DSTATUS,4,2              ; @BT848_DSTATUS
	.comm	_irq_debug,8,3                  ; @irq_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: irq loop=%d fc=%d riscs=%x, riscc=%08x, "

	.comm	_BT848_RISC_COUNT,4,2           ; @BT848_RISC_COUNT
	.comm	_BT848_INT_HLOCK,4,2            ; @BT848_INT_HLOCK
l_.str.1:                               ; @.str.1
	.asciz	"   HLOC => %s"

	.comm	_BT848_DSTATUS_HLOC,4,2         ; @BT848_DSTATUS_HLOC
l_.str.2:                               ; @.str.2
	.asciz	"yes"

l_.str.3:                               ; @.str.3
	.asciz	"no"

	.comm	_BT848_INT_VPRES,4,2            ; @BT848_INT_VPRES
l_.str.4:                               ; @.str.4
	.asciz	"   PRES => %s"

	.comm	_BT848_DSTATUS_PRES,4,2         ; @BT848_DSTATUS_PRES
	.comm	_BT848_INT_FMTCHG,4,2           ; @BT848_INT_FMTCHG
l_.str.5:                               ; @.str.5
	.asciz	"   NUML => %s"

	.comm	_BT848_DSTATUS_NUML,4,2         ; @BT848_DSTATUS_NUML
l_.str.6:                               ; @.str.6
	.asciz	"625"

l_.str.7:                               ; @.str.7
	.asciz	"525"

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

	.comm	_BT848_INT_VSYNC,4,2            ; @BT848_INT_VSYNC
	.comm	_BT848_INT_GPINT,4,2            ; @BT848_INT_GPINT
	.comm	_BT848_INT_I2CDONE,4,2          ; @BT848_INT_I2CDONE
	.comm	_BT848_INT_RISCI,4,2            ; @BT848_INT_RISCI
	.comm	_BT848_INT_SCERR,4,2            ; @BT848_INT_SCERR
	.comm	_BT848_INT_OCERR,4,2            ; @BT848_INT_OCERR
l_.str.9:                               ; @.str.9
	.asciz	"%d: %s%s @ %08x,"

l_.str.10:                              ; @.str.10
	.asciz	"SCERR"

l_.str.11:                              ; @.str.11
	.space	1

l_.str.12:                              ; @.str.12
	.asciz	"OCERR"

	.comm	_bttv_debug,8,3                 ; @bttv_debug
	.comm	_fdsr,8,3                       ; @fdsr
	.comm	_BT848_INT_FDSR,4,2             ; @BT848_INT_FDSR
l_.str.13:                              ; @.str.13
	.asciz	"%d: FDSR @ %08x\n"

l_.str.14:                              ; @.str.14
	.asciz	"%d: IRQ lockup, cleared int mask ["

l_.str.15:                              ; @.str.15
	.asciz	"%d: IRQ lockup, clearing GPINT from int mask ["

l_.str.16:                              ; @.str.16
	.asciz	"]\n"

	.no_dead_strip	_bttv_irq
.subsections_via_symbols
