	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_interrupt
_esw_interrupt:                         ## @esw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_RT305X_ESW_REG_ISR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_esw_r32
	movl	%eax, %r14d
	movq	_RT305X_ESW_PORT_ST_CHG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_RT305X_ESW_REG_POA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_esw_r32
	movq	_RT305X_ESW_POA_LINK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_RT305X_ESW_POA_LINK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
LBB0_2:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_esw_w32
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT305X_ESW_REG_ISR,4,2         ## @RT305X_ESW_REG_ISR
	.comm	_RT305X_ESW_PORT_ST_CHG,4,2     ## @RT305X_ESW_PORT_ST_CHG
	.comm	_RT305X_ESW_REG_POA,4,2         ## @RT305X_ESW_REG_POA
	.comm	_RT305X_ESW_POA_LINK_SHIFT,4,2  ## @RT305X_ESW_POA_LINK_SHIFT
	.comm	_RT305X_ESW_POA_LINK_MASK,4,2   ## @RT305X_ESW_POA_LINK_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link changed 0x%02X\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_interrupt
_esw_interrupt:                         ; @esw_interrupt
	.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, x1
Lloh0:
	adrp	x21, _RT305X_ESW_REG_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RT305X_ESW_REG_ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_esw_r32
	mov	x20, x0
Lloh2:
	adrp	x8, _RT305X_ESW_PORT_ST_CHG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT305X_ESW_PORT_ST_CHG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _RT305X_ESW_REG_POA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RT305X_ESW_REG_POA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_esw_r32
Lloh8:
	adrp	x8, _RT305X_ESW_POA_LINK_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RT305X_ESW_POA_LINK_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh11:
	adrp	x9, _RT305X_ESW_POA_LINK_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RT305X_ESW_POA_LINK_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w2, w8, w9
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_2:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_esw_w32
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh18:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RT305X_ESW_REG_ISR,4,2         ; @RT305X_ESW_REG_ISR
	.comm	_RT305X_ESW_PORT_ST_CHG,4,2     ; @RT305X_ESW_PORT_ST_CHG
	.comm	_RT305X_ESW_REG_POA,4,2         ; @RT305X_ESW_REG_POA
	.comm	_RT305X_ESW_POA_LINK_SHIFT,4,2  ; @RT305X_ESW_POA_LINK_SHIFT
	.comm	_RT305X_ESW_POA_LINK_MASK,4,2   ; @RT305X_ESW_POA_LINK_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link changed 0x%02X\n"

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