	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8168d_1_hw_phy_config
_rtl8168d_1_hw_phy_config:              ## @rtl8168d_1_hw_phy_config
	.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
	movq	%rdi, %r12
	movq	_rtl8168d_1_phy_reg_init_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_rtl_writephy_batch
	movq	%r12, %rdi
	movl	$31, %esi
	movl	$2, %edx
	callq	_rtl_writephy
	movq	%r12, %rdi
	movl	$11, %esi
	movl	$16, %edx
	movl	$239, %ecx
	callq	_rtl_w0w1_phy
	movq	%r12, %rdi
	movl	$12, %esi
	movl	$41472, %edx                    ## imm = 0xA200
	movl	$23808, %ecx                    ## imm = 0x5D00
	callq	_rtl_w0w1_phy
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rtl8168d_efuse_read
	cmpl	$177, %eax
	jne	LBB0_5
## %bb.1:
	movq	_rtl8168d_1_phy_reg_init_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_rtl_writephy_batch
	movq	%r12, %rdi
	movl	$13, %esi
	callq	_rtl_readphy
	movl	%eax, %r14d
	cmpb	$108, %r14b
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movl	$31, %esi
	movl	$2, %edx
	callq	_rtl_writephy
	leaq	_rtl8168d_1_hw_phy_config.set(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	andl	$65280, %r14d                   ## imm = 0xFF00
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	orl	%r14d, %edx
	movq	%r12, %rdi
	movl	$13, %esi
	callq	_rtl_writephy
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_6
LBB0_5:
	leaq	_rtl8168d_1_hw_phy_config.phy_reg_init(%rip), %rsi
	movq	%r12, %rdi
	callq	_rtl_writephy_batch
LBB0_6:
	movq	%r12, %rdi
	movl	$31, %esi
	movl	$2, %edx
	callq	_rtl_writephy
	movq	%r12, %rdi
	movl	$13, %esi
	movl	$768, %edx                      ## imm = 0x300
	callq	_rtl_patchphy
	movq	%r12, %rdi
	movl	$15, %esi
	movl	$16, %edx
	callq	_rtl_patchphy
	movq	%r12, %rdi
	movl	$31, %esi
	movl	$2, %edx
	callq	_rtl_writephy
	movq	%r12, %rdi
	movl	$2, %esi
	movl	$256, %edx                      ## imm = 0x100
	movl	$1536, %ecx                     ## imm = 0x600
	callq	_rtl_w0w1_phy
	movq	%r12, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	movl	$57344, %ecx                    ## imm = 0xE000
	callq	_rtl_w0w1_phy
	movq	%r12, %rdi
	movl	$31, %esi
	movl	$5, %edx
	callq	_rtl_writephy
	movq	%r12, %rdi
	movl	$5, %esi
	movl	$27, %edx
	callq	_rtl_writephy
	movq	_MII_EXPANSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$48896, %edx                    ## imm = 0xBF00
	callq	_rtl_apply_firmware_cond
	movq	%r12, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_writephy                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rtl8168d_1_phy_reg_init_0,8,3  ## @rtl8168d_1_phy_reg_init_0
	.comm	_rtl8168d_1_phy_reg_init_1,8,3  ## @rtl8168d_1_phy_reg_init_1
	.section	__TEXT,__const
	.p2align	4                               ## @rtl8168d_1_hw_phy_config.set
_rtl8168d_1_hw_phy_config.set:
	.long	101                             ## 0x65
	.long	102                             ## 0x66
	.long	103                             ## 0x67
	.long	104                             ## 0x68
	.long	105                             ## 0x69
	.long	106                             ## 0x6a
	.long	107                             ## 0x6b
	.long	108                             ## 0x6c

	.p2align	4                               ## @rtl8168d_1_hw_phy_config.phy_reg_init
_rtl8168d_1_hw_phy_config.phy_reg_init:
	.long	31                              ## 0x1f
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	26210                           ## 0x6662
	.long	31                              ## 0x1f
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	33584                           ## 0x8330
	.long	6                               ## 0x6
	.long	26210                           ## 0x6662

	.comm	_MII_EXPANSION,4,2              ## @MII_EXPANSION
	.no_dead_strip	_rtl8168d_1_hw_phy_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8168d_1_hw_phy_config
_rtl8168d_1_hw_phy_config:              ; @rtl8168d_1_hw_phy_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _rtl8168d_1_phy_reg_init_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtl8168d_1_phy_reg_init_0@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_rtl_writephy_batch
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #11
	mov	w2, #16
	mov	w3, #239
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #12
	mov	w2, #41472
	mov	w3, #23808
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #1
	bl	_rtl8168d_efuse_read
	cmp	w0, #177
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _rtl8168d_1_phy_reg_init_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtl8168d_1_phy_reg_init_1@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_rtl_writephy_batch
	mov	x0, x19
	mov	w1, #13
	bl	_rtl_readphy
	and	w8, w0, #0xff
	cmp	w8, #108
	b.eq	LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2
	bl	_rtl_writephy
Lloh6:
	adrp	x20, _rtl8168d_1_hw_phy_config.set@PAGE
Lloh7:
	add	x20, x20, _rtl8168d_1_hw_phy_config.set@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	and	w21, w21, #0xff00
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x22, lsl #2]
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #13
	bl	_rtl_writephy
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, _rtl8168d_1_hw_phy_config.phy_reg_init@PAGE
Lloh9:
	add	x1, x1, _rtl8168d_1_hw_phy_config.phy_reg_init@PAGEOFF
	mov	x0, x19
	bl	_rtl_writephy_batch
LBB0_6:
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #13
	mov	w2, #768
	bl	_rtl_patchphy
	mov	x0, x19
	mov	w1, #15
	mov	w2, #16
	bl	_rtl_patchphy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #2
	mov	w2, #256
	mov	w3, #1536
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	mov	w3, #57344
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #5
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #5
	mov	w2, #27
	bl	_rtl_writephy
Lloh10:
	adrp	x8, _MII_EXPANSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_EXPANSION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #48896
	bl	_rtl_apply_firmware_cond
	mov	x0, x19
	mov	w1, #31
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl_writephy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8168d_1_phy_reg_init_0,8,3  ; @rtl8168d_1_phy_reg_init_0
	.comm	_rtl8168d_1_phy_reg_init_1,8,3  ; @rtl8168d_1_phy_reg_init_1
	.section	__TEXT,__const
	.p2align	2                               ; @rtl8168d_1_hw_phy_config.set
_rtl8168d_1_hw_phy_config.set:
	.long	101                             ; 0x65
	.long	102                             ; 0x66
	.long	103                             ; 0x67
	.long	104                             ; 0x68
	.long	105                             ; 0x69
	.long	106                             ; 0x6a
	.long	107                             ; 0x6b
	.long	108                             ; 0x6c

	.p2align	2                               ; @rtl8168d_1_hw_phy_config.phy_reg_init
_rtl8168d_1_hw_phy_config.phy_reg_init:
	.long	31                              ; 0x1f
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	26210                           ; 0x6662
	.long	31                              ; 0x1f
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	33584                           ; 0x8330
	.long	6                               ; 0x6
	.long	26210                           ; 0x6662

	.comm	_MII_EXPANSION,4,2              ; @MII_EXPANSION
	.no_dead_strip	_rtl8168d_1_hw_phy_config
.subsections_via_symbols
