	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl2_intr
_atl2_intr:                             ## @atl2_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	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_REG_ISR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_ATL2_READ_REG
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_ISR_PHY@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_atl2_clear_phy_int
LBB0_4:
	movl	(%r15), %esi
	movq	_ISR_DIS_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	%r14, %rdi
	callq	_ATL2_WRITE_REG
	movq	_ISR_PHY_LINKDOWN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rdi
	callq	_netif_running
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_ISR_DMAR_TO_RST@GOTPCREL(%rip), %rax
	movq	_ISR_DMAW_TO_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_8
LBB0_6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ATL2_WRITE_REG
	movq	_REG_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ATL2_WRITE_REG
	movq	%r14, %rdi
	callq	_ATL2_WRITE_FLUSH
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_schedule_work
	jmp	LBB0_15
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movq	_ISR_MANUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rax
	incl	(%rax)
	movq	%r14, %rdi
	callq	_atl2_check_for_link
LBB0_10:
	movq	_ISR_TX_EVENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_atl2_intr_tx
LBB0_12:
	movq	_ISR_RX_EVENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_atl2_intr_rx
LBB0_14:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ATL2_WRITE_REG
LBB0_15:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ISR,4,2                    ## @REG_ISR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ISR_PHY,4,2                    ## @ISR_PHY
	.comm	_ISR_DIS_INT,4,2                ## @ISR_DIS_INT
	.comm	_ISR_PHY_LINKDOWN,4,2           ## @ISR_PHY_LINKDOWN
	.comm	_REG_IMR,4,2                    ## @REG_IMR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ISR_DMAR_TO_RST,4,2            ## @ISR_DMAR_TO_RST
	.comm	_ISR_DMAW_TO_RST,4,2            ## @ISR_DMAW_TO_RST
	.comm	_ISR_MANUAL,4,2                 ## @ISR_MANUAL
	.comm	_ISR_TX_EVENT,4,2               ## @ISR_TX_EVENT
	.comm	_ISR_RX_EVENT,4,2               ## @ISR_RX_EVENT
	.no_dead_strip	_atl2_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl2_intr
_atl2_intr:                             ; @atl2_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	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _REG_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ATL2_READ_REG
	cbz	w0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x22, _ISR_PHY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ISR_PHY@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_atl2_clear_phy_int
LBB0_3:
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _ISR_DIS_INT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISR_DIS_INT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_ATL2_WRITE_REG
Lloh7:
	adrp	x8, _ISR_PHY_LINKDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISR_PHY_LINKDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_netif_running
	cbnz	x0, LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ISR_DMAR_TO_RST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISR_DMAR_TO_RST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ISR_DMAW_TO_RST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ISR_DMAW_TO_RST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_8
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_ATL2_WRITE_REG
Lloh16:
	adrp	x8, _REG_IMR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_IMR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ATL2_WRITE_REG
	mov	x0, x19
	bl	_ATL2_WRITE_FLUSH
	add	x0, x19, #16
	bl	_schedule_work
	b	LBB0_15
LBB0_7:
Lloh19:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	ldr	w8, [x22]
Lloh21:
	adrp	x9, _ISR_MANUAL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ISR_MANUAL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_atl2_check_for_link
LBB0_10:
Lloh24:
	adrp	x8, _ISR_TX_EVENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ISR_TX_EVENT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_atl2_intr_tx
LBB0_12:
Lloh27:
	adrp	x8, _ISR_RX_EVENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ISR_RX_EVENT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_atl2_intr_rx
LBB0_14:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_ATL2_WRITE_REG
LBB0_15:
Lloh30:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ISR,4,2                    ; @REG_ISR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ISR_PHY,4,2                    ; @ISR_PHY
	.comm	_ISR_DIS_INT,4,2                ; @ISR_DIS_INT
	.comm	_ISR_PHY_LINKDOWN,4,2           ; @ISR_PHY_LINKDOWN
	.comm	_REG_IMR,4,2                    ; @REG_IMR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ISR_DMAR_TO_RST,4,2            ; @ISR_DMAR_TO_RST
	.comm	_ISR_DMAW_TO_RST,4,2            ; @ISR_DMAW_TO_RST
	.comm	_ISR_MANUAL,4,2                 ; @ISR_MANUAL
	.comm	_ISR_TX_EVENT,4,2               ; @ISR_TX_EVENT
	.comm	_ISR_RX_EVENT,4,2               ; @ISR_RX_EVENT
	.no_dead_strip	_atl2_intr
.subsections_via_symbols
