	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_hw_init_8125
_rtl_hw_init_8125:                      ## @rtl_hw_init_8125
	.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, %r14
	movq	_OCP_STD_PHY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_RTL_R32
	movq	_RXDV_GATED_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_RTL_W32
	movq	_rtl_rxtx_empty_cond@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$100, %edx
	movl	$42, %ecx
	callq	_rtl_udelay_loop_wait_high
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ChipCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_RTL_R8
	movq	_CmdTxEnb@GOTPCREL(%rip), %rcx
	movq	_CmdRxEnb@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_RTL_W8
	movl	$1, %edi
	callq	_msleep
	movq	_MCU@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_RTL_R8
	movq	_NOW_IS_OOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_RTL_W8
	movl	$14, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	$59614, %esi                    ## imm = 0xE8DE
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_r8168_mac_ocp_modify
	movq	_rtl_link_list_ready_cond@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$100, %edx
	movl	$42, %ecx
	callq	_rtl_udelay_loop_wait_high
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movl	$49322, %esi                    ## imm = 0xC0AA
	movl	$2000, %edx                     ## imm = 0x7D0
	callq	_r8168_mac_ocp_write
	movq	%r14, %rdi
	movl	$49318, %esi                    ## imm = 0xC0A6
	movl	$336, %edx                      ## imm = 0x150
	callq	_r8168_mac_ocp_write
	movq	%r14, %rdi
	movl	$49182, %esi                    ## imm = 0xC01E
	movl	$21845, %edx                    ## imm = 0x5555
	callq	_r8168_mac_ocp_write
	movq	_rtl_link_list_ready_cond@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$100, %edx
	movl	$42, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl_udelay_loop_wait_high      ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCP_STD_PHY_BASE,4,2           ## @OCP_STD_PHY_BASE
	.comm	_MISC,4,2                       ## @MISC
	.comm	_RXDV_GATED_EN,4,2              ## @RXDV_GATED_EN
	.comm	_rtl_rxtx_empty_cond,4,2        ## @rtl_rxtx_empty_cond
	.comm	_ChipCmd,4,2                    ## @ChipCmd
	.comm	_CmdTxEnb,4,2                   ## @CmdTxEnb
	.comm	_CmdRxEnb,4,2                   ## @CmdRxEnb
	.comm	_MCU,4,2                        ## @MCU
	.comm	_NOW_IS_OOB,4,2                 ## @NOW_IS_OOB
	.comm	_rtl_link_list_ready_cond,4,2   ## @rtl_link_list_ready_cond
	.no_dead_strip	_rtl_hw_init_8125
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_hw_init_8125
_rtl_hw_init_8125:                      ; @rtl_hw_init_8125
	.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
Lloh0:
	adrp	x8, _OCP_STD_PHY_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCP_STD_PHY_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MISC@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x1, x20
	bl	_RTL_R32
Lloh6:
	adrp	x8, _RXDV_GATED_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXDV_GATED_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_RTL_W32
Lloh9:
	adrp	x1, _rtl_rxtx_empty_cond@GOTPAGE
Lloh10:
	ldr	x1, [x1, _rtl_rxtx_empty_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #100
	mov	w3, #42
	bl	_rtl_udelay_loop_wait_high
	cbz	w0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _ChipCmd@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ChipCmd@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_RTL_R8
Lloh14:
	adrp	x8, _CmdTxEnb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CmdTxEnb@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _CmdRxEnb@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CmdRxEnb@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_RTL_W8
	mov	w0, #1
	bl	_msleep
Lloh20:
	adrp	x8, _MCU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MCU@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_RTL_R8
Lloh23:
	adrp	x8, _NOW_IS_OOB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NOW_IS_OOB@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_RTL_W8
	mov	w0, #14
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #59614
	mov	w3, #0
	bl	_r8168_mac_ocp_modify
Lloh26:
	adrp	x1, _rtl_link_list_ready_cond@GOTPAGE
Lloh27:
	ldr	x1, [x1, _rtl_link_list_ready_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #100
	mov	w3, #42
	bl	_rtl_udelay_loop_wait_high
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #49322
	mov	w2, #2000
	bl	_r8168_mac_ocp_write
	mov	x0, x19
	mov	w1, #49318
	mov	w2, #336
	bl	_r8168_mac_ocp_write
	mov	x0, x19
	mov	w1, #49182
	mov	w2, #21845
	bl	_r8168_mac_ocp_write
Lloh28:
	adrp	x1, _rtl_link_list_ready_cond@GOTPAGE
Lloh29:
	ldr	x1, [x1, _rtl_link_list_ready_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #100
	mov	w3, #42
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl_udelay_loop_wait_high
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_OCP_STD_PHY_BASE,4,2           ; @OCP_STD_PHY_BASE
	.comm	_MISC,4,2                       ; @MISC
	.comm	_RXDV_GATED_EN,4,2              ; @RXDV_GATED_EN
	.comm	_rtl_rxtx_empty_cond,4,2        ; @rtl_rxtx_empty_cond
	.comm	_ChipCmd,4,2                    ; @ChipCmd
	.comm	_CmdTxEnb,4,2                   ; @CmdTxEnb
	.comm	_CmdRxEnb,4,2                   ; @CmdRxEnb
	.comm	_MCU,4,2                        ; @MCU
	.comm	_NOW_IS_OOB,4,2                 ; @NOW_IS_OOB
	.comm	_rtl_link_list_ready_cond,4,2   ; @rtl_link_list_ready_cond
	.no_dead_strip	_rtl_hw_init_8125
.subsections_via_symbols
