	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rhine_interrupt
_rhine_interrupt:                       ## @rhine_interrupt
	.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	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rhine_get_events
	movl	%eax, %r15d
	movq	_intr@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_netif_dbg
	movq	_RHINE_EVENT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_rhine_irq_disable
	movq	%rbx, %rdi
	callq	_napi_schedule
	movl	$1, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	_IntrLinkChange@GOTPCREL(%rip), %rax
	movq	_IntrStatsMax@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RHINE_EVENT_NAPI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, %r15d
	je	LBB0_5
## %bb.4:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	callq	_netif_err
LBB0_5:
	movl	%r12d, %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	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt, status %08x\n"

	.comm	_RHINE_EVENT,4,2                ## @RHINE_EVENT
	.comm	_IntrLinkChange,4,2             ## @IntrLinkChange
	.comm	_IntrStatsMax,4,2               ## @IntrStatsMax
	.comm	_RHINE_EVENT_NAPI,4,2           ## @RHINE_EVENT_NAPI
L_.str.1:                               ## @.str.1
	.asciz	"Something Wicked happened! %08x\n"

	.no_dead_strip	_rhine_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rhine_interrupt
_rhine_interrupt:                       ; @rhine_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	bl	_rhine_get_events
	mov	x21, x0
Lloh0:
	adrp	x23, _intr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _intr@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	bl	_netif_dbg
Lloh4:
	adrp	x8, _RHINE_EVENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RHINE_EVENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_rhine_irq_disable
	mov	x0, x20
	bl	_napi_schedule
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh7:
	adrp	x8, _IntrLinkChange@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IntrLinkChange@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IntrStatsMax@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IntrStatsMax@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _RHINE_EVENT_NAPI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RHINE_EVENT_NAPI@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w21, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	bl	_netif_err
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt, status %08x\n"

	.comm	_RHINE_EVENT,4,2                ; @RHINE_EVENT
	.comm	_IntrLinkChange,4,2             ; @IntrLinkChange
	.comm	_IntrStatsMax,4,2               ; @IntrStatsMax
	.comm	_RHINE_EVENT_NAPI,4,2           ; @RHINE_EVENT_NAPI
l_.str.1:                               ; @.str.1
	.asciz	"Something Wicked happened! %08x\n"

	.no_dead_strip	_rhine_interrupt
.subsections_via_symbols
