	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ael2020_intr_handler
_ael2020_intr_handler:                  ## @ael2020_intr_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AEL2020_GPIO_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	callq	_t3_mdio_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	-20(%rbp), %eax
	movq	_AEL2020_GPIO_MODDET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_ael2020_get_module_type
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movl	%eax, %ecx
	movq	%rcx, 8(%rbx)
	movq	_phy_modtype_none@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rcx
	jmp	LBB0_9
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_6:
	movq	_phy_modtype_twinax@GOTPCREL(%rip), %rdx
	movq	_phy_modtype_twinax_long@GOTPCREL(%rip), %rdi
	movq	_edc_twinax@GOTPCREL(%rip), %rsi
	movq	%rsi, %rcx
	cmpl	(%rdi), %eax
	je	LBB0_8
## %bb.7:
	movq	_edc_sr@GOTPCREL(%rip), %rcx
LBB0_8:
	cmpl	(%rdx), %eax
	cmoveq	%rsi, %rcx
LBB0_9:
	movl	(%rcx), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_10
## %bb.12:
	movq	_cphy_cause_module_change@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_t3_phy_lasi_intr_handler
	testl	%eax, %eax
	js	LBB0_17
## %bb.14:
	orl	%r14d, %eax
	jne	LBB0_17
## %bb.15:
	movq	_cphy_cause_link_change@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ael2020_reset
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	_cphy_cause_module_change@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_AEL2020_GPIO_INTR,4,2          ## @AEL2020_GPIO_INTR
	.comm	_AEL2020_GPIO_MODDET,4,2        ## @AEL2020_GPIO_MODDET
	.comm	_phy_modtype_none,4,2           ## @phy_modtype_none
	.comm	_phy_modtype_twinax,4,2         ## @phy_modtype_twinax
	.comm	_phy_modtype_twinax_long,4,2    ## @phy_modtype_twinax_long
	.comm	_edc_twinax,4,2                 ## @edc_twinax
	.comm	_edc_sr,4,2                     ## @edc_sr
	.comm	_cphy_cause_module_change,4,2   ## @cphy_cause_module_change
	.comm	_cphy_cause_link_change,4,2     ## @cphy_cause_link_change
	.no_dead_strip	_ael2020_intr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ael2020_intr_handler
_ael2020_intr_handler:                  ; @ael2020_intr_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AEL2020_GPIO_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AEL2020_GPIO_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_t3_mdio_read
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _AEL2020_GPIO_MODDET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AEL2020_GPIO_MODDET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #300
	bl	_ael2020_get_module_type
	tbnz	w0, #31, LBB0_1
; %bb.4:
	mov	w8, w0
	str	x8, [x19, #8]
Lloh9:
	adrp	x8, _phy_modtype_none@GOTPAGE
Lloh10:
	ldr	x8, [x8, _phy_modtype_none@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x8, x19
	b	LBB0_8
LBB0_6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _phy_modtype_twinax@GOTPAGE
Lloh13:
	ldr	x8, [x8, _phy_modtype_twinax@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _phy_modtype_twinax_long@GOTPAGE
Lloh16:
	ldr	x9, [x9, _phy_modtype_twinax_long@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
Lloh18:
	adrp	x8, _edc_sr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _edc_sr@GOTPAGEOFF]
Lloh20:
	adrp	x9, _edc_twinax@GOTPAGE
Lloh21:
	ldr	x9, [x9, _edc_twinax@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.9:
Lloh22:
	adrp	x8, _cphy_cause_module_change@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cphy_cause_module_change@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x19
	bl	_t3_phy_lasi_intr_handler
	tbnz	w0, #31, LBB0_1
; %bb.11:
	orr	w8, w0, w20
Lloh25:
	adrp	x9, _cphy_cause_link_change@GOTPAGE
Lloh26:
	ldr	x9, [x9, _cphy_cause_link_change@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, w8, eq
	b	LBB0_1
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_ael2020_reset
Lloh28:
	adrp	x8, _cphy_cause_module_change@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cphy_cause_module_change@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_AEL2020_GPIO_INTR,4,2          ; @AEL2020_GPIO_INTR
	.comm	_AEL2020_GPIO_MODDET,4,2        ; @AEL2020_GPIO_MODDET
	.comm	_phy_modtype_none,4,2           ; @phy_modtype_none
	.comm	_phy_modtype_twinax,4,2         ; @phy_modtype_twinax
	.comm	_phy_modtype_twinax_long,4,2    ; @phy_modtype_twinax_long
	.comm	_edc_twinax,4,2                 ; @edc_twinax
	.comm	_edc_sr,4,2                     ; @edc_sr
	.comm	_cphy_cause_module_change,4,2   ; @cphy_cause_module_change
	.comm	_cphy_cause_link_change,4,2     ; @cphy_cause_link_change
	.no_dead_strip	_ael2020_intr_handler
.subsections_via_symbols
