	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_irq
_cx25821_irq:                           ## @cx25821_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	%rsi, %r14
	movq	_PCI_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r12d
	movq	_VID_CHANNEL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	leaq	l___const.cx25821_irq.mask(%rip), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PCI_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_cx_write
	movq	_VID_CHANNEL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$4, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r13d
	testl	%r12d, %r13d
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_cx_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_cx25821_video_irq
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.cx25821_irq.mask
l___const.cx25821_irq.mask:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	64                              ## 0x40
	.long	128                             ## 0x80

	.comm	_PCI_INT_STAT,4,2               ## @PCI_INT_STAT
	.comm	_VID_CHANNEL_NUM,4,2            ## @VID_CHANNEL_NUM
	.no_dead_strip	_cx25821_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_irq
_cx25821_irq:                           ; @cx25821_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x24, _PCI_INT_STAT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCI_INT_STAT@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
Lloh2:
	adrp	x25, _VID_CHANNEL_NUM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VID_CHANNEL_NUM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
LBB0_3:
	mov	x20, x0
	mov	x22, #0
	mov	w21, #0
Lloh4:
	adrp	x26, l___const.cx25821_irq.mask@PAGE
Lloh5:
	add	x26, x26, l___const.cx25821_irq.mask@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	bl	_cx_write
	ldr	w8, [x25]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x26, x22, lsl #2]
	tst	w23, w20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8]
	bl	_cx_read
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_cx25821_video_irq
	add	w21, w21, w0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.cx25821_irq.mask
l___const.cx25821_irq.mask:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	64                              ; 0x40
	.long	128                             ; 0x80

	.comm	_PCI_INT_STAT,4,2               ; @PCI_INT_STAT
	.comm	_VID_CHANNEL_NUM,4,2            ; @VID_CHANNEL_NUM
	.no_dead_strip	_cx25821_irq
.subsections_via_symbols
