	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_hw_start_8168
_rtl_hw_start_8168:                     ## @rtl_hw_start_8168
	.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
	movq	(%rdi), %rax
	movq	_RTL_GIGA_MAC_VER_13@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_RTL_GIGA_MAC_VER_16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	8(%rbx), %edi
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_EXP_DEVCTL_NOSNOOP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pcie_capability_set_word
LBB0_3:
	movq	%rbx, %rdi
	callq	_rtl_is_8168evl_up
	movq	_MaxTxPacketSize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_TxPacketMax@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_EarlySize@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_RTL_W8
	movq	%rbx, %rdi
	callq	_rtl_hw_config
	movq	_IntrMitigate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_RTL_W16                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_GIGA_MAC_VER_13,8,3        ## @RTL_GIGA_MAC_VER_13
	.comm	_RTL_GIGA_MAC_VER_16,8,3        ## @RTL_GIGA_MAC_VER_16
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_NOSNOOP_EN,4,2  ## @PCI_EXP_DEVCTL_NOSNOOP_EN
	.comm	_MaxTxPacketSize,4,2            ## @MaxTxPacketSize
	.comm	_EarlySize,4,2                  ## @EarlySize
	.comm	_TxPacketMax,4,2                ## @TxPacketMax
	.comm	_IntrMitigate,4,2               ## @IntrMitigate
	.no_dead_strip	_rtl_hw_start_8168
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_hw_start_8168
_rtl_hw_start_8168:                     ; @rtl_hw_start_8168
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RTL_GIGA_MAC_VER_13@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_13@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RTL_GIGA_MAC_VER_16@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTL_GIGA_MAC_VER_16@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _PCI_EXP_DEVCTL_NOSNOOP_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_EXP_DEVCTL_NOSNOOP_EN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_pcie_capability_set_word
LBB0_2:
	mov	x0, x19
	bl	_rtl_is_8168evl_up
Lloh12:
	adrp	x8, _MaxTxPacketSize@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MaxTxPacketSize@GOTPAGEOFF]
Lloh14:
	adrp	x9, _TxPacketMax@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TxPacketMax@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _EarlySize@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EarlySize@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RTL_W8
	mov	x0, x19
	bl	_rtl_hw_config
Lloh19:
	adrp	x8, _IntrMitigate@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IntrMitigate@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RTL_W16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_GIGA_MAC_VER_13,8,3        ; @RTL_GIGA_MAC_VER_13
	.comm	_RTL_GIGA_MAC_VER_16,8,3        ; @RTL_GIGA_MAC_VER_16
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_NOSNOOP_EN,4,2  ; @PCI_EXP_DEVCTL_NOSNOOP_EN
	.comm	_MaxTxPacketSize,4,2            ; @MaxTxPacketSize
	.comm	_EarlySize,4,2                  ; @EarlySize
	.comm	_TxPacketMax,4,2                ; @TxPacketMax
	.comm	_IntrMitigate,4,2               ; @IntrMitigate
	.no_dead_strip	_rtl_hw_start_8168
.subsections_via_symbols
