	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_enable_aspm                ## -- Begin function alx_enable_aspm
	.p2align	4, 0x90
_alx_enable_aspm:                       ## @alx_enable_aspm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_alx_hw_revision
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ALX_PMCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_alx_read_mem32
	movl	%eax, %ebx
	movq	_ALX_PMCTRL_LCKDET_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ALX_PMCTRL_LCKDET_TIMER_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_ALX_SET_FIELD
	movq	_ALX_PMCTRL_RCVR_WT_1US@GOTPCREL(%rip), %rax
	movq	_ALX_PMCTRL_L1_CLKSW_EN@GOTPCREL(%rip), %rcx
	movq	_ALX_PMCTRL_L1_SRDSRX_PWD@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	_ALX_PMCTRL_L1REQ_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ALX_PMCTRL_L1REG_TO_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_ALX_SET_FIELD
	movq	_ALX_PMCTRL_L1_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ALX_PMCTRL_L1_TIMER_16US@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_ALX_SET_FIELD
	movq	_ALX_PMCTRL_L1_SRDS_EN@GOTPCREL(%rip), %rcx
	movq	_ALX_PMCTRL_L1_SRDSPLL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	orl	(%rcx), %r12d
	movq	_ALX_PMCTRL_L1_BUFSRX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_SADLY_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_HOTRST_WTEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_L0S_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_L1_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_ASPM_FCEN@GOTPCREL(%rip), %r14
	orl	(%r14), %r12d
	movq	_ALX_PMCTRL_TXL1_AFTER_L0S@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_RXL1_AFTER_L0S@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_alx_is_rev_a
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_alx_hw_with_cr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ALX_PMCTRL_L1_SRDS_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ALX_PMCTRL_L1_SRDSPLL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_ALX_PMCTRL@GOTPCREL(%rip), %rsi
	movq	_ALX_PMCTRL_L1_EN@GOTPCREL(%rip), %rdi
	movq	_ALX_PMCTRL_L0S_EN@GOTPCREL(%rip), %rax
	movl	(%r14), %edx
	movl	(%rax), %eax
	orl	%edx, %eax
	testl	%r15d, %r15d
	cmovel	%r15d, %eax
	orl	(%rdi), %edx
	testl	%ecx, %ecx
	cmovel	%ecx, %edx
	orl	%r12d, %edx
	orl	%eax, %edx
	movl	(%rsi), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alx_write_mem32                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_PMCTRL,4,2                 ## @ALX_PMCTRL
	.comm	_ALX_PMCTRL_LCKDET_TIMER,4,2    ## @ALX_PMCTRL_LCKDET_TIMER
	.comm	_ALX_PMCTRL_LCKDET_TIMER_DEF,4,2 ## @ALX_PMCTRL_LCKDET_TIMER_DEF
	.comm	_ALX_PMCTRL_RCVR_WT_1US,4,2     ## @ALX_PMCTRL_RCVR_WT_1US
	.comm	_ALX_PMCTRL_L1_CLKSW_EN,4,2     ## @ALX_PMCTRL_L1_CLKSW_EN
	.comm	_ALX_PMCTRL_L1_SRDSRX_PWD,4,2   ## @ALX_PMCTRL_L1_SRDSRX_PWD
	.comm	_ALX_PMCTRL_L1REQ_TO,4,2        ## @ALX_PMCTRL_L1REQ_TO
	.comm	_ALX_PMCTRL_L1REG_TO_DEF,4,2    ## @ALX_PMCTRL_L1REG_TO_DEF
	.comm	_ALX_PMCTRL_L1_TIMER,4,2        ## @ALX_PMCTRL_L1_TIMER
	.comm	_ALX_PMCTRL_L1_TIMER_16US,4,2   ## @ALX_PMCTRL_L1_TIMER_16US
	.comm	_ALX_PMCTRL_L1_SRDS_EN,4,2      ## @ALX_PMCTRL_L1_SRDS_EN
	.comm	_ALX_PMCTRL_L1_SRDSPLL_EN,4,2   ## @ALX_PMCTRL_L1_SRDSPLL_EN
	.comm	_ALX_PMCTRL_L1_BUFSRX_EN,4,2    ## @ALX_PMCTRL_L1_BUFSRX_EN
	.comm	_ALX_PMCTRL_SADLY_EN,4,2        ## @ALX_PMCTRL_SADLY_EN
	.comm	_ALX_PMCTRL_HOTRST_WTEN,4,2     ## @ALX_PMCTRL_HOTRST_WTEN
	.comm	_ALX_PMCTRL_L0S_EN,4,2          ## @ALX_PMCTRL_L0S_EN
	.comm	_ALX_PMCTRL_L1_EN,4,2           ## @ALX_PMCTRL_L1_EN
	.comm	_ALX_PMCTRL_ASPM_FCEN,4,2       ## @ALX_PMCTRL_ASPM_FCEN
	.comm	_ALX_PMCTRL_TXL1_AFTER_L0S,4,2  ## @ALX_PMCTRL_TXL1_AFTER_L0S
	.comm	_ALX_PMCTRL_RXL1_AFTER_L0S,4,2  ## @ALX_PMCTRL_RXL1_AFTER_L0S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alx_enable_aspm                ; -- Begin function alx_enable_aspm
	.p2align	2
_alx_enable_aspm:                       ; @alx_enable_aspm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_alx_hw_revision
	mov	x22, x0
Lloh0:
	adrp	x8, _ALX_PMCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALX_PMCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alx_read_mem32
	mov	x23, x0
Lloh3:
	adrp	x8, _ALX_PMCTRL_LCKDET_TIMER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALX_PMCTRL_LCKDET_TIMER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ALX_PMCTRL_LCKDET_TIMER_DEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALX_PMCTRL_LCKDET_TIMER_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_ALX_SET_FIELD
Lloh9:
	adrp	x8, _ALX_PMCTRL_RCVR_WT_1US@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALX_PMCTRL_RCVR_WT_1US@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ALX_PMCTRL_L1_CLKSW_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ALX_PMCTRL_L1_CLKSW_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _ALX_PMCTRL_L1_SRDSRX_PWD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ALX_PMCTRL_L1_SRDSRX_PWD@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w23, w8, w10
Lloh18:
	adrp	x8, _ALX_PMCTRL_L1REQ_TO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ALX_PMCTRL_L1REQ_TO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ALX_PMCTRL_L1REG_TO_DEF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ALX_PMCTRL_L1REG_TO_DEF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ALX_SET_FIELD
Lloh24:
	adrp	x8, _ALX_PMCTRL_L1_TIMER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ALX_PMCTRL_L1_TIMER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _ALX_PMCTRL_L1_TIMER_16US@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ALX_PMCTRL_L1_TIMER_16US@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ALX_SET_FIELD
Lloh30:
	adrp	x26, _ALX_PMCTRL_L1_SRDS_EN@GOTPAGE
Lloh31:
	ldr	x26, [x26, _ALX_PMCTRL_L1_SRDS_EN@GOTPAGEOFF]
Lloh32:
	adrp	x27, _ALX_PMCTRL_L1_SRDSPLL_EN@GOTPAGE
Lloh33:
	ldr	x27, [x27, _ALX_PMCTRL_L1_SRDSPLL_EN@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _ALX_PMCTRL_L1_BUFSRX_EN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ALX_PMCTRL_L1_BUFSRX_EN@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _ALX_PMCTRL_SADLY_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ALX_PMCTRL_SADLY_EN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _ALX_PMCTRL_HOTRST_WTEN@GOTPAGE
Lloh41:
	ldr	x10, [x10, _ALX_PMCTRL_HOTRST_WTEN@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh42:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh43:
	adrp	x28, _ALX_PMCTRL_L0S_EN@GOTPAGE
Lloh44:
	ldr	x28, [x28, _ALX_PMCTRL_L0S_EN@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w8, w9
Lloh45:
	adrp	x25, _ALX_PMCTRL_L1_EN@GOTPAGE
Lloh46:
	ldr	x25, [x25, _ALX_PMCTRL_L1_EN@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh47:
	adrp	x24, _ALX_PMCTRL_ASPM_FCEN@GOTPAGE
Lloh48:
	ldr	x24, [x24, _ALX_PMCTRL_ASPM_FCEN@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh49:
	adrp	x9, _ALX_PMCTRL_TXL1_AFTER_L0S@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ALX_PMCTRL_TXL1_AFTER_L0S@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _ALX_PMCTRL_RXL1_AFTER_L0S@GOTPAGE
Lloh53:
	ldr	x9, [x9, _ALX_PMCTRL_RXL1_AFTER_L0S@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w23, w23, w8
	mov	x0, x22
	bl	_alx_is_rev_a
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_alx_hw_with_cr
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w8, w23
	orr	w23, w8, w9
LBB0_3:
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w23
	ldr	w10, [x25]
	orr	w9, w10, w9
	cmp	w20, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
Lloh55:
	adrp	x8, _ALX_PMCTRL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ALX_PMCTRL@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_alx_write_mem32
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_PMCTRL,4,2                 ; @ALX_PMCTRL
	.comm	_ALX_PMCTRL_LCKDET_TIMER,4,2    ; @ALX_PMCTRL_LCKDET_TIMER
	.comm	_ALX_PMCTRL_LCKDET_TIMER_DEF,4,2 ; @ALX_PMCTRL_LCKDET_TIMER_DEF
	.comm	_ALX_PMCTRL_RCVR_WT_1US,4,2     ; @ALX_PMCTRL_RCVR_WT_1US
	.comm	_ALX_PMCTRL_L1_CLKSW_EN,4,2     ; @ALX_PMCTRL_L1_CLKSW_EN
	.comm	_ALX_PMCTRL_L1_SRDSRX_PWD,4,2   ; @ALX_PMCTRL_L1_SRDSRX_PWD
	.comm	_ALX_PMCTRL_L1REQ_TO,4,2        ; @ALX_PMCTRL_L1REQ_TO
	.comm	_ALX_PMCTRL_L1REG_TO_DEF,4,2    ; @ALX_PMCTRL_L1REG_TO_DEF
	.comm	_ALX_PMCTRL_L1_TIMER,4,2        ; @ALX_PMCTRL_L1_TIMER
	.comm	_ALX_PMCTRL_L1_TIMER_16US,4,2   ; @ALX_PMCTRL_L1_TIMER_16US
	.comm	_ALX_PMCTRL_L1_SRDS_EN,4,2      ; @ALX_PMCTRL_L1_SRDS_EN
	.comm	_ALX_PMCTRL_L1_SRDSPLL_EN,4,2   ; @ALX_PMCTRL_L1_SRDSPLL_EN
	.comm	_ALX_PMCTRL_L1_BUFSRX_EN,4,2    ; @ALX_PMCTRL_L1_BUFSRX_EN
	.comm	_ALX_PMCTRL_SADLY_EN,4,2        ; @ALX_PMCTRL_SADLY_EN
	.comm	_ALX_PMCTRL_HOTRST_WTEN,4,2     ; @ALX_PMCTRL_HOTRST_WTEN
	.comm	_ALX_PMCTRL_L0S_EN,4,2          ; @ALX_PMCTRL_L0S_EN
	.comm	_ALX_PMCTRL_L1_EN,4,2           ; @ALX_PMCTRL_L1_EN
	.comm	_ALX_PMCTRL_ASPM_FCEN,4,2       ; @ALX_PMCTRL_ASPM_FCEN
	.comm	_ALX_PMCTRL_TXL1_AFTER_L0S,4,2  ; @ALX_PMCTRL_TXL1_AFTER_L0S
	.comm	_ALX_PMCTRL_RXL1_AFTER_L0S,4,2  ; @ALX_PMCTRL_RXL1_AFTER_L0S
.subsections_via_symbols
