	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsw_interrupt_mt7621
_gsw_interrupt_mt7621:                  ## @gsw_interrupt_mt7621
	.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, %r15
	movq	16(%rsi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	movl	$28684, %esi                    ## imm = 0x700C
	callq	_mt7530_mdio_r32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$28684, %esi                    ## imm = 0x700C
	movl	%eax, %edx
	callq	_mt7530_mdio_w32
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movl	$12296, %esi                    ## imm = 0x3008
	callq	_mt7530_mdio_r32
	andl	$1, %eax
	movq	(%r15), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, (%rcx)
	testl	%eax, %eax
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	xorl	%edx, %edx
	callq	_netdev_info
LBB0_3:
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	$12552, %esi                    ## imm = 0x3108
	callq	_mt7530_mdio_r32
	andl	$1, %eax
	movq	(%r15), %rcx
	cmpl	4(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$1, %edx
	callq	_netdev_info
LBB0_6:
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movl	$12808, %esi                    ## imm = 0x3208
	callq	_mt7530_mdio_r32
	andl	$1, %eax
	movq	(%r15), %rcx
	cmpl	8(%rcx), %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, 8(%rcx)
	testl	%eax, %eax
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$2, %edx
	callq	_netdev_info
LBB0_9:
	movl	$3, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movl	$13064, %esi                    ## imm = 0x3308
	callq	_mt7530_mdio_r32
	andl	$1, %eax
	movq	(%r15), %rcx
	cmpl	12(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, 12(%rcx)
	testl	%eax, %eax
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$3, %edx
	callq	_netdev_info
LBB0_12:
	movl	$4, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	movl	$13320, %esi                    ## imm = 0x3408
	callq	_mt7530_mdio_r32
	andl	$1, %eax
	movq	(%r15), %rcx
	cmpl	16(%rcx), %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, 16(%rcx)
	testl	%eax, %eax
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$4, %edx
	callq	_netdev_info
LBB0_15:
	movq	%r15, %rdi
	callq	_mt7620_handle_carrier
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d link up\n"

L_.str.1:                               ## @.str.1
	.asciz	"port %d link down\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsw_interrupt_mt7621
_gsw_interrupt_mt7621:                  ; @gsw_interrupt_mt7621
	.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
	ldr	x8, [x1, #16]
	ldr	x20, [x8]
	mov	x0, x20
	mov	w1, #28684
	bl	_mt7530_mdio_r32
	mov	x21, x0
	mov	x0, x20
	mov	w1, #28684
	mov	x2, x21
	bl	_mt7530_mdio_w32
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #12296
	bl	_mt7530_mdio_r32
	and	w8, w0, #0x1
	ldr	x9, [x19]
	ldr	w10, [x9]
	cmp	w8, w10
	b.eq	LBB0_3
; %bb.2:
	str	w8, [x9]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #0
	bl	_netdev_info
LBB0_3:
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #12552
	bl	_mt7530_mdio_r32
	and	w8, w0, #0x1
	ldr	x9, [x19]
	ldr	w10, [x9, #4]
	cmp	w8, w10
	b.eq	LBB0_6
; %bb.5:
	str	w8, [x9, #4]
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #1
	bl	_netdev_info
LBB0_6:
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x20
	mov	w1, #12808
	bl	_mt7530_mdio_r32
	and	w8, w0, #0x1
	ldr	x9, [x19]
	ldr	w10, [x9, #8]
	cmp	w8, w10
	b.eq	LBB0_9
; %bb.8:
	str	w8, [x9, #8]
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x9, l_.str@PAGE
Lloh9:
	add	x9, x9, l_.str@PAGEOFF
Lloh10:
	adrp	x10, l_.str.1@PAGE
Lloh11:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #2
	bl	_netdev_info
LBB0_9:
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x20
	mov	w1, #13064
	bl	_mt7530_mdio_r32
	and	w8, w0, #0x1
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	cmp	w8, w10
	b.eq	LBB0_12
; %bb.11:
	str	w8, [x9, #12]
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x9, l_.str@PAGE
Lloh13:
	add	x9, x9, l_.str@PAGEOFF
Lloh14:
	adrp	x10, l_.str.1@PAGE
Lloh15:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #3
	bl	_netdev_info
LBB0_12:
	mov	w0, #4
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x20
	mov	w1, #13320
	bl	_mt7530_mdio_r32
	and	w8, w0, #0x1
	ldr	x9, [x19]
	ldr	w10, [x9, #16]
	cmp	w8, w10
	b.eq	LBB0_15
; %bb.14:
	str	w8, [x9, #16]
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x9, l_.str@PAGE
Lloh17:
	add	x9, x9, l_.str@PAGEOFF
Lloh18:
	adrp	x10, l_.str.1@PAGE
Lloh19:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #4
	bl	_netdev_info
LBB0_15:
	mov	x0, x19
	bl	_mt7620_handle_carrier
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d link up\n"

l_.str.1:                               ; @.str.1
	.asciz	"port %d link down\n"

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