	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_link_intr_enable
_bcmgenet_link_intr_enable:             ## @bcmgenet_link_intr_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_5
## %bb.1:
	movq	_UMAC_IRQ_LINK_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_GENET_IS_V1
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_GENET_IS_V2
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_GENET_IS_V3
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_UMAC_IRQ_PHY_DET_R@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_8:
	movq	_UMAC_IRQ_LINK_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movq	_INTRL2_CPU_MASK_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bcmgenet_intrl2_0_writel       ## TAILCALL
LBB0_6:
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_MOCA@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%rbx), %rax
	movq	_GENET_HAS_MOCA_LINK_DET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%rax), %r14d
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_UMAC_IRQ_LINK_EVENT,4,2        ## @UMAC_IRQ_LINK_EVENT
	.comm	_UMAC_IRQ_PHY_DET_R,4,2         ## @UMAC_IRQ_PHY_DET_R
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ## @PHY_INTERFACE_MODE_MOCA
	.comm	_GENET_HAS_MOCA_LINK_DET,4,2    ## @GENET_HAS_MOCA_LINK_DET
	.comm	_INTRL2_CPU_MASK_CLEAR,4,2      ## @INTRL2_CPU_MASK_CLEAR
	.no_dead_strip	_bcmgenet_link_intr_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_link_intr_enable
_bcmgenet_link_intr_enable:             ; @bcmgenet_link_intr_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _UMAC_IRQ_LINK_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMAC_IRQ_LINK_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GENET_IS_V1
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_GENET_IS_V2
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_GENET_IS_V3
	cbz	x0, LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _UMAC_IRQ_PHY_DET_R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UMAC_IRQ_PHY_DET_R@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _UMAC_IRQ_LINK_EVENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UMAC_IRQ_LINK_EVENT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _GENET_HAS_MOCA_LINK_DET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GENET_HAS_MOCA_LINK_DET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _UMAC_IRQ_LINK_EVENT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _UMAC_IRQ_LINK_EVENT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w20, wzr, w10, eq
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
Lloh18:
	adrp	x8, _INTRL2_CPU_MASK_CLEAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTRL2_CPU_MASK_CLEAR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcmgenet_intrl2_0_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UMAC_IRQ_LINK_EVENT,4,2        ; @UMAC_IRQ_LINK_EVENT
	.comm	_UMAC_IRQ_PHY_DET_R,4,2         ; @UMAC_IRQ_PHY_DET_R
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ; @PHY_INTERFACE_MODE_MOCA
	.comm	_GENET_HAS_MOCA_LINK_DET,4,2    ; @GENET_HAS_MOCA_LINK_DET
	.comm	_INTRL2_CPU_MASK_CLEAR,4,2      ; @INTRL2_CPU_MASK_CLEAR
	.no_dead_strip	_bcmgenet_link_intr_enable
.subsections_via_symbols
