	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152_eee_en
_r8152_eee_en:                          ## @r8152_eee_en
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_EEE_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ocp_read_word
	movl	%eax, %r12d
	movq	_OCP_EEE_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	movq	_sd_rise_time_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	_OCP_EEE_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OCP_EEE_CONFIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_fast_snr_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EEE_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EEE_TX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	orl	%r12d, %r15d
	orl	%eax, %r15d
	movq	_EEE_10_CAP@GOTPCREL(%rip), %rax
	movq	_EEE_NWAY_EN@GOTPCREL(%rip), %rcx
	movq	_TX_QUIET_EN@GOTPCREL(%rip), %rdx
	movq	_RX_QUIET_EN@GOTPCREL(%rip), %rsi
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	orl	(%rsi), %r14d
	movl	$1, %edi
	callq	_sd_rise_time
	movl	%eax, %r12d
	orl	%r14d, %r12d
	movq	_RG_DACQUIET_EN@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	orl	(%rax), %r14d
	movq	_RG_LDVQUIET_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$42, %edi
	jmp	LBB0_3
LBB0_2:
	orl	%r15d, %eax
	notl	%eax
	movl	%r12d, %r15d
	andl	%eax, %r15d
	movq	_EEE_10_CAP@GOTPCREL(%rip), %rax
	movq	_EEE_NWAY_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TX_QUIET_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RX_QUIET_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movl	$7, %edi
	callq	_sd_rise_time
	movl	%eax, %r12d
	movq	_RG_DACQUIET_EN@GOTPCREL(%rip), %rax
	movq	_RG_LDVQUIET_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%r14d, %r12d
	notl	%ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	%ecx, %r14d
	movl	$511, %edi                      ## imm = 0x1FF
LBB0_3:
	callq	_fast_snr
	notl	%ebx
	movl	%ebx, %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	andl	%ecx, %ebx
	orl	%eax, %ebx
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_EEE_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_ocp_write_word
	movq	_OCP_EEE_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_ocp_reg_write
	movq	_OCP_EEE_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_ocp_reg_write
	movq	_OCP_EEE_CONFIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_reg_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_EEE_CR,4,2                 ## @PLA_EEE_CR
	.comm	_OCP_EEE_CONFIG1,4,2            ## @OCP_EEE_CONFIG1
	.comm	_sd_rise_time_mask,4,2          ## @sd_rise_time_mask
	.comm	_OCP_EEE_CONFIG2,4,2            ## @OCP_EEE_CONFIG2
	.comm	_OCP_EEE_CONFIG3,4,2            ## @OCP_EEE_CONFIG3
	.comm	_fast_snr_mask,4,2              ## @fast_snr_mask
	.comm	_EEE_RX_EN,4,2                  ## @EEE_RX_EN
	.comm	_EEE_TX_EN,4,2                  ## @EEE_TX_EN
	.comm	_EEE_10_CAP,4,2                 ## @EEE_10_CAP
	.comm	_EEE_NWAY_EN,4,2                ## @EEE_NWAY_EN
	.comm	_TX_QUIET_EN,4,2                ## @TX_QUIET_EN
	.comm	_RX_QUIET_EN,4,2                ## @RX_QUIET_EN
	.comm	_RG_DACQUIET_EN,4,2             ## @RG_DACQUIET_EN
	.comm	_RG_LDVQUIET_EN,4,2             ## @RG_LDVQUIET_EN
	.no_dead_strip	_r8152_eee_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152_eee_en
_r8152_eee_en:                          ; @r8152_eee_en
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x27, _PLA_EEE_CR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PLA_EEE_CR@GOTPAGEOFF]
	ldr	w2, [x27]
	bl	_ocp_read_word
	mov	x21, x0
Lloh4:
	adrp	x28, _OCP_EEE_CONFIG1@GOTPAGE
Lloh5:
	ldr	x28, [x28, _OCP_EEE_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ocp_reg_read
Lloh6:
	adrp	x8, _sd_rise_time_mask@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sd_rise_time_mask@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w25, w0, w8
Lloh9:
	adrp	x8, _OCP_EEE_CONFIG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCP_EEE_CONFIG2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ocp_reg_read
	mov	x22, x0
Lloh12:
	adrp	x8, _OCP_EEE_CONFIG3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OCP_EEE_CONFIG3@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ocp_reg_read
	mov	x20, x0
Lloh15:
	adrp	x8, _fast_snr_mask@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fast_snr_mask@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
Lloh18:
	adrp	x8, _EEE_RX_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EEE_RX_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _EEE_TX_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EEE_TX_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cbz	w23, LBB0_2
; %bb.1:
	orr	w8, w8, w21
	orr	w21, w8, w9
Lloh24:
	adrp	x8, _EEE_10_CAP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EEE_10_CAP@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
Lloh27:
	adrp	x8, _EEE_NWAY_EN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EEE_NWAY_EN@GOTPAGEOFF]
Lloh29:
	ldr	w26, [x8]
Lloh30:
	adrp	x8, _TX_QUIET_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TX_QUIET_EN@GOTPAGEOFF]
Lloh32:
	ldr	w27, [x8]
Lloh33:
	adrp	x8, _RX_QUIET_EN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX_QUIET_EN@GOTPAGEOFF]
Lloh35:
	ldr	w28, [x8]
	mov	w0, #1
	bl	_sd_rise_time
	orr	w8, w23, w25
	orr	w8, w8, w26
Lloh36:
	adrp	x26, _MCU_TYPE_PLA@GOTPAGE
Lloh37:
	ldr	x26, [x26, _MCU_TYPE_PLA@GOTPAGEOFF]
	orr	w8, w8, w27
Lloh38:
	adrp	x27, _PLA_EEE_CR@GOTPAGE
Lloh39:
	ldr	x27, [x27, _PLA_EEE_CR@GOTPAGEOFF]
	orr	w8, w8, w28
Lloh40:
	adrp	x28, _OCP_EEE_CONFIG1@GOTPAGE
Lloh41:
	ldr	x28, [x28, _OCP_EEE_CONFIG1@GOTPAGEOFF]
	orr	w23, w8, w0
Lloh42:
	adrp	x8, _RG_DACQUIET_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RG_DACQUIET_EN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _RG_LDVQUIET_EN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RG_LDVQUIET_EN@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
	mov	w0, #42
	b	LBB0_3
LBB0_2:
	orr	w8, w9, w8
	bic	w21, w21, w8
Lloh48:
	adrp	x8, _EEE_10_CAP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EEE_10_CAP@GOTPAGEOFF]
Lloh50:
	adrp	x9, _EEE_NWAY_EN@GOTPAGE
Lloh51:
	ldr	x9, [x9, _EEE_NWAY_EN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _TX_QUIET_EN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _TX_QUIET_EN@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh57:
	adrp	x9, _RX_QUIET_EN@GOTPAGE
Lloh58:
	ldr	x9, [x9, _RX_QUIET_EN@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w23, w25, w8
	mov	w0, #7
	bl	_sd_rise_time
	orr	w23, w23, w0
Lloh60:
	adrp	x8, _RG_DACQUIET_EN@GOTPAGE
Lloh61:
	ldr	x8, [x8, _RG_DACQUIET_EN@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _RG_LDVQUIET_EN@GOTPAGE
Lloh64:
	ldr	x9, [x9, _RG_LDVQUIET_EN@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w22, w22, w8
	mov	w0, #511
LBB0_3:
	bl	_fast_snr
	bic	w8, w20, w24
	orr	w20, w0, w8
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x3, x21
	bl	_ocp_write_word
	ldr	w1, [x28]
	mov	x0, x19
	mov	x2, x23
	bl	_ocp_reg_write
Lloh66:
	adrp	x8, _OCP_EEE_CONFIG2@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OCP_EEE_CONFIG2@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_ocp_reg_write
Lloh69:
	adrp	x8, _OCP_EEE_CONFIG3@GOTPAGE
Lloh70:
	ldr	x8, [x8, _OCP_EEE_CONFIG3@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	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	_ocp_reg_write
	.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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_EEE_CR,4,2                 ; @PLA_EEE_CR
	.comm	_OCP_EEE_CONFIG1,4,2            ; @OCP_EEE_CONFIG1
	.comm	_sd_rise_time_mask,4,2          ; @sd_rise_time_mask
	.comm	_OCP_EEE_CONFIG2,4,2            ; @OCP_EEE_CONFIG2
	.comm	_OCP_EEE_CONFIG3,4,2            ; @OCP_EEE_CONFIG3
	.comm	_fast_snr_mask,4,2              ; @fast_snr_mask
	.comm	_EEE_RX_EN,4,2                  ; @EEE_RX_EN
	.comm	_EEE_TX_EN,4,2                  ; @EEE_TX_EN
	.comm	_EEE_10_CAP,4,2                 ; @EEE_10_CAP
	.comm	_EEE_NWAY_EN,4,2                ; @EEE_NWAY_EN
	.comm	_TX_QUIET_EN,4,2                ; @TX_QUIET_EN
	.comm	_RX_QUIET_EN,4,2                ; @RX_QUIET_EN
	.comm	_RG_DACQUIET_EN,4,2             ; @RG_DACQUIET_EN
	.comm	_RG_LDVQUIET_EN,4,2             ; @RG_LDVQUIET_EN
	.no_dead_strip	_r8152_eee_en
.subsections_via_symbols
