	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_sgmii_interrupt
_emac_sgmii_interrupt:                  ## @emac_sgmii_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, %r14
	movq	_EMAC_SGMII_PHY_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rsi), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_SGMII_ISR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_7
## %bb.1:
	leaq	8(%r14), %r15
	movq	_SGMII_PHY_INTERRUPT_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_atomic_inc_return
	movq	_DECODE_ERROR_LIMIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_schedule_work
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_emac_sgmii_irq_clear
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_schedule_work
LBB0_7:
	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	_EMAC_SGMII_PHY_INTERRUPT_STATUS,8,3 ## @EMAC_SGMII_PHY_INTERRUPT_STATUS
	.comm	_SGMII_ISR_MASK,4,2             ## @SGMII_ISR_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_SGMII_PHY_INTERRUPT_ERR,4,2    ## @SGMII_PHY_INTERRUPT_ERR
	.comm	_DECODE_ERROR_LIMIT,4,2         ## @DECODE_ERROR_LIMIT
	.no_dead_strip	_emac_sgmii_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_sgmii_interrupt
_emac_sgmii_interrupt:                  ; @emac_sgmii_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
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _EMAC_SGMII_PHY_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EMAC_SGMII_PHY_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _SGMII_ISR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGMII_ISR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w20, w8, w0
	b.eq	LBB0_7
; %bb.1:
	add	x21, x19, #8
Lloh6:
	adrp	x8, _SGMII_PHY_INTERRUPT_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGMII_PHY_INTERRUPT_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_atomic_inc_return
Lloh9:
	adrp	x8, _DECODE_ERROR_LIMIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DECODE_ERROR_LIMIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_schedule_work
LBB0_4:
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_emac_sgmii_irq_clear
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_schedule_work
LBB0_7:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_SGMII_PHY_INTERRUPT_STATUS,8,3 ; @EMAC_SGMII_PHY_INTERRUPT_STATUS
	.comm	_SGMII_ISR_MASK,4,2             ; @SGMII_ISR_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_SGMII_PHY_INTERRUPT_ERR,4,2    ; @SGMII_PHY_INTERRUPT_ERR
	.comm	_DECODE_ERROR_LIMIT,4,2         ; @DECODE_ERROR_LIMIT
	.no_dead_strip	_emac_sgmii_interrupt
.subsections_via_symbols
