	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_intr_handle_misc
_alx_intr_handle_misc:                  ## @alx_intr_handle_misc
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	_ALX_ISR_FATAL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %r8d
	callq	_netif_warn
	movq	%r15, %rdi
	callq	_alx_schedule_reset
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_2:
	movq	_ALX_ISR_ALERT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_warn
LBB0_4:
	movq	_ALX_ISR_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	testl	%ebx, %edx
	je	LBB0_6
## %bb.5:
	notl	%edx
	andl	(%r15), %edx
	movl	%edx, (%r15)
	movq	_ALX_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_alx_write_mem32
	movq	%r15, %rdi
	callq	_alx_schedule_link_check
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_ISR_FATAL,4,2              ## @ALX_ISR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fatal interrupt 0x%x, resetting\n"

	.comm	_ALX_ISR_ALERT,4,2              ## @ALX_ISR_ALERT
L_.str.1:                               ## @.str.1
	.asciz	"alert interrupt: 0x%x\n"

	.comm	_ALX_ISR_PHY,4,2                ## @ALX_ISR_PHY
	.comm	_ALX_IMR,4,2                    ## @ALX_IMR
	.no_dead_strip	_alx_intr_handle_misc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_intr_handle_misc
_alx_intr_handle_misc:                  ; @alx_intr_handle_misc
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x8, _ALX_ISR_FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALX_ISR_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x4, x21
	bl	_netif_warn
	mov	x0, x19
	bl	_alx_schedule_reset
	mov	w0, #1
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x8, _ALX_ISR_ALERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ALX_ISR_ALERT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_netdev_warn
LBB0_4:
Lloh10:
	adrp	x8, _ALX_ISR_PHY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ALX_ISR_PHY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x19]
	bic	w2, w9, w8
	str	w2, [x19]
Lloh13:
	adrp	x8, _ALX_IMR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ALX_IMR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_alx_write_mem32
	mov	x0, x19
	bl	_alx_schedule_link_check
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_ISR_FATAL,4,2              ; @ALX_ISR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fatal interrupt 0x%x, resetting\n"

	.comm	_ALX_ISR_ALERT,4,2              ; @ALX_ISR_ALERT
l_.str.1:                               ; @.str.1
	.asciz	"alert interrupt: 0x%x\n"

	.comm	_ALX_ISR_PHY,4,2                ; @ALX_ISR_PHY
	.comm	_ALX_IMR,4,2                    ; @ALX_IMR
	.no_dead_strip	_alx_intr_handle_misc
.subsections_via_symbols
