	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_emac_interrupt_unlocked
_ravb_emac_interrupt_unlocked:          ## @ravb_emac_interrupt_unlocked
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ECSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ravb_read
	movl	%eax, %ebx
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ravb_write
	movq	_ECSR_MPD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
LBB0_2:
	movq	_ECSR_ICD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	(%r15)
LBB0_4:
	movq	_ECSR_LCHNG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.5:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ravb_read
	xorl	%ecx, %ecx
	cmpq	$0, (%r14)
	movq	_PSR_LMON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovnel	%edx, %ecx
	xorl	%eax, %ecx
	movq	%r15, %rdi
	testl	%edx, %ecx
	je	LBB0_9
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ravb_rcv_snd_enable            ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ravb_rcv_snd_disable           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECSR,4,2                       ## @ECSR
	.comm	_ECSR_MPD,4,2                   ## @ECSR_MPD
	.comm	_ECSR_ICD,4,2                   ## @ECSR_ICD
	.comm	_ECSR_LCHNG,4,2                 ## @ECSR_LCHNG
	.comm	_PSR,4,2                        ## @PSR
	.comm	_PSR_LMON,4,2                   ## @PSR_LMON
	.no_dead_strip	_ravb_emac_interrupt_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_emac_interrupt_unlocked
_ravb_emac_interrupt_unlocked:          ; @ravb_emac_interrupt_unlocked
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _ECSR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ECSR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ravb_read
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_ravb_write
Lloh2:
	adrp	x8, _ECSR_MPD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECSR_MPD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
	mov	w1, #0
	bl	_pm_wakeup_event
LBB0_2:
Lloh5:
	adrp	x8, _ECSR_ICD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECSR_ICD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_4:
Lloh8:
	adrp	x8, _ECSR_LCHNG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECSR_LCHNG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh11:
	adrp	x8, _PSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PSR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ravb_read
Lloh14:
	adrp	x8, _PSR_LMON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSR_LMON@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh16:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w9, wzr, w8, eq
	eor	w9, w9, w0
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ravb_rcv_snd_enable
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ravb_rcv_snd_disable
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ECSR,4,2                       ; @ECSR
	.comm	_ECSR_MPD,4,2                   ; @ECSR_MPD
	.comm	_ECSR_ICD,4,2                   ; @ECSR_ICD
	.comm	_ECSR_LCHNG,4,2                 ; @ECSR_LCHNG
	.comm	_PSR,4,2                        ; @PSR
	.comm	_PSR_LMON,4,2                   ; @PSR_LMON
	.no_dead_strip	_ravb_emac_interrupt_unlocked
.subsections_via_symbols
