	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_interrupt
_emac_interrupt:                        ## @emac_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, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_EMAC_INT_CTL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_EMAC_INT_STA_REG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r12, %rdi
	callq	_netif_msg_intr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_2:
	testl	$256, %ebx                      ## imm = 0x100
	je	LBB0_5
## %bb.3:
	cmpl	$1, (%r12)
	jne	LBB0_5
## %bb.4:
	movl	$0, (%r12)
	movq	%r15, %rdi
	callq	_emac_rx
LBB0_5:
	testb	$3, %bl
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_emac_tx_done
LBB0_7:
	testb	$12, %bl
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_netdev_info
LBB0_9:
	cmpl	$1, (%r12)
	jne	LBB0_11
## %bb.10:
	movq	_EMAC_INT_CTL_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	orl	$271, %eax                      ## imm = 0x10F
	movq	(%rbx), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_INT_CTL_REG,8,3           ## @EMAC_INT_CTL_REG
	.comm	_EMAC_INT_STA_REG,8,3           ## @EMAC_INT_STA_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"emac interrupt %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	" ab : %x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_emac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_interrupt
_emac_interrupt:                        ; @emac_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	x21, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x23, _EMAC_INT_CTL_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EMAC_INT_CTL_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x24, _EMAC_INT_STA_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EMAC_INT_STA_REG@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_netif_msg_intr
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
LBB0_2:
	tbz	w22, #8, LBB0_5
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x20]
	mov	x0, x21
	bl	_emac_rx
LBB0_5:
	tst	w22, #0x3
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_emac_tx_done
LBB0_7:
	tst	w22, #0xc
	b.eq	LBB0_9
; %bb.8:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_netdev_info
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	w8, #271
	orr	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_INT_CTL_REG,8,3           ; @EMAC_INT_CTL_REG
	.comm	_EMAC_INT_STA_REG,8,3           ; @EMAC_INT_STA_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"emac interrupt %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	" ab : %x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_emac_interrupt
.subsections_via_symbols
