	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_irq
_cx8802_irq:                            ## @cx8802_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_IRQ_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	(%rsi), %rbx
	movq	_MO_PCI_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	_PCI_INT_TSINT@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	orl	(%rbx), %r12d
	andl	%eax, %r12d
	je	LBB0_3
## %bb.6:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_MO_PCI_INTSTAT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MAX_IRQ_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_cx_write
	testl	%r12d, (%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_cx88_core_irq
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, (%r14)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cx8802_mpeg_irq
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r15), %ecx
	movq	_MAX_IRQ_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	movq	_MO_PCI_INTSTAT@GOTPCREL(%rip), %r13
	jge	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	callq	_cx_read
	movl	(%r14), %r12d
	orl	(%rbx), %r12d
	incl	%r15d
	andl	%eax, %r12d
	jne	LBB0_7
## %bb.5:
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	cmpl	%eax, %ecx
	je	LBB0_14
	jmp	LBB0_15
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movl	$1, %ebx
	cmpl	%eax, %ecx
	jne	LBB0_15
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_warn
	movq	_MO_PCI_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
LBB0_15:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IRQ_LOOP,4,2               ## @MAX_IRQ_LOOP
	.comm	_MO_PCI_INTSTAT,4,2             ## @MO_PCI_INTSTAT
	.comm	_PCI_INT_TSINT,4,2              ## @PCI_INT_TSINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx8802_irq\n"

L_.str.1:                               ## @.str.1
	.asciz	"    loop: %d/%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"    status: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"clearing mask\n"

L_.str.4:                               ## @.str.4
	.asciz	"irq loop -- clearing mask\n"

	.comm	_MO_PCI_INTMSK,4,2              ## @MO_PCI_INTMSK
	.no_dead_strip	_cx8802_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_irq
_cx8802_irq:                            ; @cx8802_irq
	.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
Lloh0:
	adrp	x25, _MAX_IRQ_LOOP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_IRQ_LOOP@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x20, [x1]
Lloh2:
	adrp	x27, _MO_PCI_INTSTAT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MO_PCI_INTSTAT@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_cx_read
	ldr	w8, [x20]
Lloh4:
	adrp	x28, _PCI_INT_TSINT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCI_INT_TSINT@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ands	w24, w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w26, #0
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_dprintk
	ldr	w8, [x25]
	stp	x26, x8, [sp]
	mov	w0, #1
	mov	x1, x22
	bl	_dprintk
	str	x24, [sp]
	mov	w0, #1
	mov	x1, x23
	bl	_dprintk
	ldr	w0, [x27]
	mov	x1, x24
	bl	_cx_write
	ldr	w8, [x20]
	tst	w8, w24
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_cx88_core_irq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	tst	w8, w24
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_cx8802_mpeg_irq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.ge	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	bl	_cx_read
	ldr	w8, [x20]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ands	w24, w8, w0
	b.ne	LBB0_3
; %bb.9:
	mov	w19, #1
	b	LBB0_14
LBB0_10:
	mov	w26, #0
	mov	w19, #0
	cmp	w26, w8
	b.eq	LBB0_13
	b	LBB0_14
LBB0_11:
	mov	w19, #0
	b	LBB0_14
LBB0_12:
	mov	w19, #1
	cmp	w26, w8
	b.ne	LBB0_14
LBB0_13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	bl	_dprintk
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warn
Lloh16:
	adrp	x8, _MO_PCI_INTMSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MO_PCI_INTMSK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
LBB0_14:
	mov	x0, x19
	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
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IRQ_LOOP,4,2               ; @MAX_IRQ_LOOP
	.comm	_MO_PCI_INTSTAT,4,2             ; @MO_PCI_INTSTAT
	.comm	_PCI_INT_TSINT,4,2              ; @PCI_INT_TSINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx8802_irq\n"

l_.str.1:                               ; @.str.1
	.asciz	"    loop: %d/%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"    status: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"clearing mask\n"

l_.str.4:                               ; @.str.4
	.asciz	"irq loop -- clearing mask\n"

	.comm	_MO_PCI_INTMSK,4,2              ; @MO_PCI_INTMSK
	.no_dead_strip	_cx8802_irq
.subsections_via_symbols
