	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_phy_intr
_sky2_phy_intr:                         ## @sky2_phy_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r15
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_PHY_MARV_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_gm_phy_read
	movl	%eax, %r12d
	movq	_PHY_MARV_PHY_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_gm_phy_read
	movl	%eax, %ebx
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_netif_info
	movq	_PHY_M_IS_AN_COMPL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sky2_autoneg_done
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_4
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PHY_M_IS_LSP_CHANGE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sky2_phy_speed
	movl	%eax, 8(%r14)
LBB0_7:
	movq	_PHY_M_IS_DUP_CHANGE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_PHY_M_PS_FULL_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_9
## %bb.10:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_12:
	movq	_PHY_M_IS_LST_CHANGE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.13:
	movq	_PHY_M_PS_LINK_UP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
LBB0_4:
	movq	%r14, %rdi
	callq	_sky2_link_up
	jmp	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_sky2_link_down
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MARV_INT_STAT,4,2          ## @PHY_MARV_INT_STAT
	.comm	_PHY_MARV_PHY_STAT,4,2          ## @PHY_MARV_PHY_STAT
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy interrupt status 0x%x 0x%x\n"

	.comm	_PHY_M_IS_AN_COMPL,4,2          ## @PHY_M_IS_AN_COMPL
	.comm	_PHY_M_IS_LSP_CHANGE,4,2        ## @PHY_M_IS_LSP_CHANGE
	.comm	_PHY_M_IS_DUP_CHANGE,4,2        ## @PHY_M_IS_DUP_CHANGE
	.comm	_PHY_M_PS_FULL_DUP,4,2          ## @PHY_M_PS_FULL_DUP
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_PHY_M_IS_LST_CHANGE,4,2        ## @PHY_M_IS_LST_CHANGE
	.comm	_PHY_M_PS_LINK_UP,4,2           ## @PHY_M_PS_LINK_UP
	.no_dead_strip	_sky2_phy_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_phy_intr
_sky2_phy_intr:                         ; @sky2_phy_intr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x20, [x8, w1, uxtw #3]
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _PHY_MARV_INT_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_MARV_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_gm_phy_read
	mov	x23, x0
Lloh3:
	adrp	x8, _PHY_MARV_PHY_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_MARV_PHY_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_gm_phy_read
	mov	x22, x0
Lloh6:
	adrp	x8, _intr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	mov	x5, x22
	bl	_netif_info
Lloh11:
	adrp	x8, _PHY_M_IS_AN_COMPL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_M_IS_AN_COMPL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_sky2_autoneg_done
	cbnz	x0, LBB0_13
; %bb.3:
	mov	x0, x20
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_13
	b	LBB0_11
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh14:
	adrp	x8, _PHY_M_IS_LSP_CHANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_M_IS_LSP_CHANGE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	bl	_sky2_phy_speed
	str	w0, [x19, #8]
LBB0_7:
Lloh17:
	adrp	x8, _PHY_M_IS_DUP_CHANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_M_IS_DUP_CHANGE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _PHY_M_PS_FULL_DUP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_M_PS_FULL_DUP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh25:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh26:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, w22
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_9:
Lloh27:
	adrp	x8, _PHY_M_IS_LST_CHANGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PHY_M_IS_LST_CHANGE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_13
; %bb.10:
Lloh30:
	adrp	x8, _PHY_M_PS_LINK_UP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PHY_M_PS_LINK_UP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_sky2_link_up
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_sky2_link_down
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MARV_INT_STAT,4,2          ; @PHY_MARV_INT_STAT
	.comm	_PHY_MARV_PHY_STAT,4,2          ; @PHY_MARV_PHY_STAT
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy interrupt status 0x%x 0x%x\n"

	.comm	_PHY_M_IS_AN_COMPL,4,2          ; @PHY_M_IS_AN_COMPL
	.comm	_PHY_M_IS_LSP_CHANGE,4,2        ; @PHY_M_IS_LSP_CHANGE
	.comm	_PHY_M_IS_DUP_CHANGE,4,2        ; @PHY_M_IS_DUP_CHANGE
	.comm	_PHY_M_PS_FULL_DUP,4,2          ; @PHY_M_PS_FULL_DUP
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_PHY_M_IS_LST_CHANGE,4,2        ; @PHY_M_IS_LST_CHANGE
	.comm	_PHY_M_PS_LINK_UP,4,2           ; @PHY_M_PS_LINK_UP
	.no_dead_strip	_sky2_phy_intr
.subsections_via_symbols
