	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_setup_mac_funcs
_atl1c_setup_mac_funcs:                 ## @atl1c_setup_mac_funcs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_atl1c_set_mac_type
	movq	_REG_LINK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_AT_READ_REG
	movq	_ATL1C_INTR_MODRT_ENABLE@GOTPCREL(%rip), %rax
	movq	_ATL1C_TXQ_MODE_ENHANCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_ATL1C_ASPM_L0S_SUPPORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ATL1C_ASPM_L1_SUPPORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_ATL1C_ASPM_CTRL_MON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	8(%rbx), %rax
	movq	_athr_l1c@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_athr_l1d@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_athr_l1d_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movq	_ATL1C_LINK_CAP_1000M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_LINK_CTRL,4,2              ## @REG_LINK_CTRL
	.comm	_ATL1C_INTR_MODRT_ENABLE,4,2    ## @ATL1C_INTR_MODRT_ENABLE
	.comm	_ATL1C_TXQ_MODE_ENHANCE,4,2     ## @ATL1C_TXQ_MODE_ENHANCE
	.comm	_ATL1C_ASPM_L0S_SUPPORT,4,2     ## @ATL1C_ASPM_L0S_SUPPORT
	.comm	_ATL1C_ASPM_L1_SUPPORT,4,2      ## @ATL1C_ASPM_L1_SUPPORT
	.comm	_ATL1C_ASPM_CTRL_MON,4,2        ## @ATL1C_ASPM_CTRL_MON
	.comm	_athr_l1c,8,3                   ## @athr_l1c
	.comm	_athr_l1d,8,3                   ## @athr_l1d
	.comm	_athr_l1d_2,8,3                 ## @athr_l1d_2
	.comm	_ATL1C_LINK_CAP_1000M,4,2       ## @ATL1C_LINK_CAP_1000M
	.no_dead_strip	_atl1c_setup_mac_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_setup_mac_funcs
_atl1c_setup_mac_funcs:                 ; @atl1c_setup_mac_funcs
	.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
	bl	_atl1c_set_mac_type
Lloh0:
	adrp	x8, _REG_LINK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_LINK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_AT_READ_REG
Lloh3:
	adrp	x8, _ATL1C_INTR_MODRT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATL1C_INTR_MODRT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATL1C_TXQ_MODE_ENHANCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATL1C_TXQ_MODE_ENHANCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ATL1C_ASPM_L0S_SUPPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATL1C_ASPM_L0S_SUPPORT@GOTPAGEOFF]
	str	w8, [x19]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _ATL1C_ASPM_L1_SUPPORT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ATL1C_ASPM_L1_SUPPORT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
Lloh15:
	adrp	x9, _ATL1C_ASPM_CTRL_MON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATL1C_ASPM_CTRL_MON@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _athr_l1c@GOTPAGE
Lloh19:
	ldr	x9, [x9, _athr_l1c@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh21:
	adrp	x9, _athr_l1d@GOTPAGE
Lloh22:
	ldr	x9, [x9, _athr_l1d@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh24:
	adrp	x9, _athr_l1d_2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _athr_l1d_2@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
Lloh27:
	adrp	x8, _ATL1C_LINK_CAP_1000M@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATL1C_LINK_CAP_1000M@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_LINK_CTRL,4,2              ; @REG_LINK_CTRL
	.comm	_ATL1C_INTR_MODRT_ENABLE,4,2    ; @ATL1C_INTR_MODRT_ENABLE
	.comm	_ATL1C_TXQ_MODE_ENHANCE,4,2     ; @ATL1C_TXQ_MODE_ENHANCE
	.comm	_ATL1C_ASPM_L0S_SUPPORT,4,2     ; @ATL1C_ASPM_L0S_SUPPORT
	.comm	_ATL1C_ASPM_L1_SUPPORT,4,2      ; @ATL1C_ASPM_L1_SUPPORT
	.comm	_ATL1C_ASPM_CTRL_MON,4,2        ; @ATL1C_ASPM_CTRL_MON
	.comm	_athr_l1c,8,3                   ; @athr_l1c
	.comm	_athr_l1d,8,3                   ; @athr_l1d
	.comm	_athr_l1d_2,8,3                 ; @athr_l1d_2
	.comm	_ATL1C_LINK_CAP_1000M,4,2       ; @ATL1C_LINK_CAP_1000M
	.no_dead_strip	_atl1c_setup_mac_funcs
.subsections_via_symbols
