	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ael1002_reset
_ael1002_reset:                         ## @ael1002_reset
	.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
	xorl	%esi, %esi
	callq	_ael1002_power_down
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AEL100X_TX_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%r14), %esi
	movq	_AEL1002_PWR_DOWN_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	movq	_AEL1002_PWR_DOWN_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	movq	_AEL1002_XFI_EQL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %esi
	movq	_AEL1002_LB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$32, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_t3_mdio_change_bits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_AEL100X_TX_CONFIG1,4,2         ## @AEL100X_TX_CONFIG1
	.comm	_AEL1002_PWR_DOWN_HI,4,2        ## @AEL1002_PWR_DOWN_HI
	.comm	_AEL1002_PWR_DOWN_LO,4,2        ## @AEL1002_PWR_DOWN_LO
	.comm	_AEL1002_XFI_EQL,4,2            ## @AEL1002_XFI_EQL
	.comm	_AEL1002_LB_EN,4,2              ## @AEL1002_LB_EN
	.no_dead_strip	_ael1002_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ael1002_reset
_ael1002_reset:                         ; @ael1002_reset
	.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
	mov	w1, #0
	bl	_ael1002_power_down
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x20, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _AEL100X_TX_CONFIG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AEL100X_TX_CONFIG1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_t3_mdio_write
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _AEL1002_PWR_DOWN_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AEL1002_PWR_DOWN_HI@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_t3_mdio_write
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _AEL1002_PWR_DOWN_LO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AEL1002_PWR_DOWN_LO@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_t3_mdio_write
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _AEL1002_XFI_EQL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AEL1002_XFI_EQL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #24
	bl	_t3_mdio_write
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _AEL1002_LB_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AEL1002_LB_EN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_t3_mdio_change_bits
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_AEL100X_TX_CONFIG1,4,2         ; @AEL100X_TX_CONFIG1
	.comm	_AEL1002_PWR_DOWN_HI,4,2        ; @AEL1002_PWR_DOWN_HI
	.comm	_AEL1002_PWR_DOWN_LO,4,2        ; @AEL1002_PWR_DOWN_LO
	.comm	_AEL1002_XFI_EQL,4,2            ; @AEL1002_XFI_EQL
	.comm	_AEL1002_LB_EN,4,2              ; @AEL1002_LB_EN
	.no_dead_strip	_ael1002_reset
.subsections_via_symbols
