	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ael2005_intr_handler
_ael2005_intr_handler:                  ## @ael2005_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, %r14
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AEL2005_GPIO_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	callq	_t3_mdio_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_AEL2005_MODDET_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %esi
	movq	_AEL2005_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$3328, %ecx                     ## imm = 0xD00
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movq	%r14, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_ael2005_get_module_type
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movl	%eax, (%r14)
	movq	_phy_modtype_none@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	leaq	4(%r14), %rcx
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_t3_phy_lasi_intr_handler
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	orl	%ebx, %eax
	jne	LBB0_18
## %bb.16:
	movq	_cphy_cause_link_change@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	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_9
## %bb.8:
	movq	_edc_sr@GOTPCREL(%rip), %rcx
LBB0_9:
	cmpl	(%rdx), %eax
	cmoveq	%rsi, %rcx
LBB0_10:
	movl	(%rcx), %eax
	cmpl	4(%r14), %eax
	jne	LBB0_11
## %bb.13:
	movq	_cphy_cause_module_change@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ael2005_reset
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	_cphy_cause_module_change@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_AEL2005_GPIO_STAT,4,2          ## @AEL2005_GPIO_STAT
	.comm	_AEL2005_MODDET_IRQ,4,2         ## @AEL2005_MODDET_IRQ
	.comm	_AEL2005_GPIO_CTRL,4,2          ## @AEL2005_GPIO_CTRL
	.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	_ael2005_intr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ael2005_intr_handler
_ael2005_intr_handler:                  ; @ael2005_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	x20, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _AEL2005_GPIO_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AEL2005_GPIO_STAT@GOTPAGEOFF]
Lloh4:
	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]
Lloh5:
	adrp	x9, _AEL2005_MODDET_IRQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AEL2005_MODDET_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _AEL2005_GPIO_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AEL2005_GPIO_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #3328
	bl	_t3_mdio_write
	cbnz	w0, LBB0_1
; %bb.4:
	mov	x0, x19
	mov	w1, #300
	bl	_ael2005_get_module_type
	tbnz	w0, #31, LBB0_1
; %bb.5:
	str	w0, [x19]
Lloh11:
	adrp	x8, _phy_modtype_none@GOTPAGE
Lloh12:
	ldr	x8, [x8, _phy_modtype_none@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.6:
	add	x8, x19, #4
	b	LBB0_11
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_t3_phy_lasi_intr_handler
	tbnz	w0, #31, LBB0_1
; %bb.9:
	orr	w8, w0, w20
Lloh14:
	adrp	x9, _cphy_cause_link_change@GOTPAGE
Lloh15:
	ldr	x9, [x9, _cphy_cause_link_change@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, w8, eq
	b	LBB0_1
LBB0_10:
Lloh17:
	adrp	x8, _phy_modtype_twinax@GOTPAGE
Lloh18:
	ldr	x8, [x8, _phy_modtype_twinax@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _phy_modtype_twinax_long@GOTPAGE
Lloh21:
	ldr	x9, [x9, _phy_modtype_twinax_long@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
Lloh23:
	adrp	x8, _edc_sr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _edc_sr@GOTPAGEOFF]
Lloh25:
	adrp	x9, _edc_twinax@GOTPAGE
Lloh26:
	ldr	x9, [x9, _edc_twinax@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh27:
	adrp	x8, _cphy_cause_module_change@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cphy_cause_module_change@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	bl	_ael2005_reset
Lloh30:
	adrp	x8, _cphy_cause_module_change@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cphy_cause_module_change@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_AEL2005_GPIO_STAT,4,2          ; @AEL2005_GPIO_STAT
	.comm	_AEL2005_MODDET_IRQ,4,2         ; @AEL2005_MODDET_IRQ
	.comm	_AEL2005_GPIO_CTRL,4,2          ; @AEL2005_GPIO_CTRL
	.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	_ael2005_intr_handler
.subsections_via_symbols
