	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_intr
_emac_intr:                             ## @emac_intr
	.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, %rbx
	callq	_EMAC_LOCK
	movq	_EMAC_INT_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_EMAC_WRITE_REG
	movq	_EMAC_INT_STA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_EMAC_READ_REG
	movl	%eax, %r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_EMAC_WRITE_REG
	movq	_EMAC_INT_STA_RX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_emac_rxeof
LBB0_2:
	movq	_EMAC_INT_STA_TX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_emac_txeof
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_IFQ_DRV_IS_EMPTY
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_emac_start_locked
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_EMAC_READ_REG
	movq	_EMAC_INT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_EMAC_WRITE_REG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EMAC_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_INT_CTL,4,2               ## @EMAC_INT_CTL
	.comm	_EMAC_INT_STA,4,2               ## @EMAC_INT_STA
	.comm	_EMAC_INT_STA_RX,4,2            ## @EMAC_INT_STA_RX
	.comm	_EMAC_INT_STA_TX,4,2            ## @EMAC_INT_STA_TX
	.comm	_EMAC_INT_EN,4,2                ## @EMAC_INT_EN
	.no_dead_strip	_emac_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_intr
_emac_intr:                             ; @emac_intr
	.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	_EMAC_LOCK
Lloh0:
	adrp	x21, _EMAC_INT_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EMAC_INT_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_EMAC_WRITE_REG
Lloh2:
	adrp	x22, _EMAC_INT_STA@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EMAC_INT_STA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_EMAC_READ_REG
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_EMAC_WRITE_REG
Lloh4:
	adrp	x8, _EMAC_INT_STA_RX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMAC_INT_STA_RX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_emac_rxeof
LBB0_2:
Lloh7:
	adrp	x8, _EMAC_INT_STA_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EMAC_INT_STA_TX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_emac_txeof
	ldr	x20, [x19]
	mov	x0, x20
	bl	_IFQ_DRV_IS_EMPTY
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_emac_start_locked
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EMAC_READ_REG
Lloh10:
	adrp	x8, _EMAC_INT_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EMAC_INT_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EMAC_WRITE_REG
	mov	x0, x19
	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	_EMAC_UNLOCK
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_INT_CTL,4,2               ; @EMAC_INT_CTL
	.comm	_EMAC_INT_STA,4,2               ; @EMAC_INT_STA
	.comm	_EMAC_INT_STA_RX,4,2            ; @EMAC_INT_STA_RX
	.comm	_EMAC_INT_STA_TX,4,2            ; @EMAC_INT_STA_TX
	.comm	_EMAC_INT_EN,4,2                ; @EMAC_INT_EN
	.no_dead_strip	_emac_intr
.subsections_via_symbols
