	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function my3126_interrupt_handler
_my3126_interrupt_handler:              ## @my3126_interrupt_handler
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	cmpl	$50, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_cphy_mdio_read
	movl	-36(%rbp), %r15d
	movl	4(%rbx), %eax
	xorl	%r15d, %eax
	movq	_MDIO_STAT1_LSTATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_t1_link_changed
LBB0_3:
	movl	%r15d, 4(%rbx)
	movl	$0, (%rbx)
LBB0_4:
	movq	_SUNI1x10GEXP_REG_MSTAT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OFFSET
	movq	_SUNI1x10GEXP_BITMSK_MSTAT_SNAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_t1_tpi_write
	movq	_SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OFFSET
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_t1_tpi_read
	movq	_SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OFFSET
	leaq	-36(%rbp), %r15
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	movl	-36(%rbp), %eax
	addl	%eax, -40(%rbp)
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	movl	-36(%rbp), %eax
	movl	%eax, 8(%rbx)
	testl	$524544, %eax                   ## imm = 0x80100
	jne	LBB0_7
## %bb.5:
	movl	12(%rbx), %eax
	cmpl	-40(%rbp), %eax
	je	LBB0_7
## %bb.6:
	cmpl	$0, 16(%rbx)
	je	LBB0_13
LBB0_7:
	movq	%r14, %rdi
	callq	_is_T2
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	orb	$2, -35(%rbp)
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_t1_is_T1B
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	orb	$16, -34(%rbp)
LBB0_11:
	movl	$0, 16(%rbx)
LBB0_12:
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	callq	_t1_tpi_write
	movl	-36(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-40(%rbp), %eax
	movl	%eax, 12(%rbx)
	incl	(%rbx)
	movq	_cphy_cause_link_change@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_is_T2
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	andb	$-3, -35(%rbp)
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	callq	_t1_is_T1B
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	andb	$-17, -34(%rbp)
LBB0_17:
	movl	$1, 16(%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
	.comm	_MDIO_STAT1_LSTATUS,4,2         ## @MDIO_STAT1_LSTATUS
	.comm	_SUNI1x10GEXP_REG_MSTAT_CONTROL,4,2 ## @SUNI1x10GEXP_REG_MSTAT_CONTROL
	.comm	_SUNI1x10GEXP_BITMSK_MSTAT_SNAP,4,2 ## @SUNI1x10GEXP_BITMSK_MSTAT_SNAP
	.comm	_SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW,4,2 ## @SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW
	.comm	_SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW,4,2 ## @SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW
	.comm	_A_ELMER0_GPO,4,2               ## @A_ELMER0_GPO
	.comm	_cphy_cause_link_change,4,2     ## @cphy_cause_link_change
	.no_dead_strip	_my3126_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function my3126_interrupt_handler
_my3126_interrupt_handler:              ; @my3126_interrupt_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
	cmp	w8, #50
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_STAT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_STAT1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_cphy_mdio_read
	ldr	w21, [sp, #12]
	ldr	w8, [x19, #4]
	eor	w8, w8, w21
Lloh6:
	adrp	x9, _MDIO_STAT1_LSTATUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDIO_STAT1_LSTATUS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_t1_link_changed
LBB0_3:
	stp	wzr, w21, [x19]
LBB0_4:
Lloh9:
	adrp	x8, _SUNI1x10GEXP_REG_MSTAT_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_MSTAT_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_OFFSET
	mov	x1, x0
Lloh12:
	adrp	x8, _SUNI1x10GEXP_BITMSK_MSTAT_SNAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUNI1x10GEXP_BITMSK_MSTAT_SNAP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_t1_tpi_write
Lloh15:
	adrp	x8, _SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_OFFSET
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_t1_tpi_read
Lloh18:
	adrp	x8, _SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_OFFSET
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_t1_tpi_read
	ldp	w9, w8, [sp, #8]
	add	w8, w9, w8
	str	w8, [sp, #8]
Lloh21:
	adrp	x21, _A_ELMER0_GPO@GOTPAGE
Lloh22:
	ldr	x21, [x21, _A_ELMER0_GPO@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_t1_tpi_read
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	mov	w9, #256
	movk	w9, #8, lsl #16
	tst	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x19, #12]
	ldr	w9, [sp, #8]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_14
LBB0_7:
	mov	x0, x20
	bl	_is_T2
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x200
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_t1_is_T1B
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x100000
LBB0_11:
	str	w8, [sp, #12]
LBB0_12:
	str	wzr, [x19, #16]
LBB0_13:
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_t1_tpi_write
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh23:
	adrp	x8, _cphy_cause_link_change@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cphy_cause_link_change@GOTPAGEOFF]
Lloh25:
	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
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x20
	bl	_is_T2
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffdff
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	bl	_t1_is_T1B
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffefffff
LBB0_18:
	str	w8, [sp, #12]
LBB0_19:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
	.comm	_MDIO_STAT1_LSTATUS,4,2         ; @MDIO_STAT1_LSTATUS
	.comm	_SUNI1x10GEXP_REG_MSTAT_CONTROL,4,2 ; @SUNI1x10GEXP_REG_MSTAT_CONTROL
	.comm	_SUNI1x10GEXP_BITMSK_MSTAT_SNAP,4,2 ; @SUNI1x10GEXP_BITMSK_MSTAT_SNAP
	.comm	_SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW,4,2 ; @SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW
	.comm	_SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW,4,2 ; @SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW
	.comm	_A_ELMER0_GPO,4,2               ; @A_ELMER0_GPO
	.comm	_cphy_cause_link_change,4,2     ; @cphy_cause_link_change
	.no_dead_strip	_my3126_interrupt_handler
.subsections_via_symbols
