	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8168h_2_hw_phy_config
_rtl8168h_2_hw_phy_config:              ## @rtl8168h_2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rtl_apply_firmware
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$2627, %edx                     ## imm = 0xA43
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$19, %esi
	movl	$32906, %edx                    ## imm = 0x808A
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$20, %esi
	movl	$10, %edx
	movl	$63, %ecx
	callq	_rtl_w0w1_phy
	movq	%r14, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$2627, %edx                     ## imm = 0xA43
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$19, %esi
	movl	$2065, %edx                     ## imm = 0x811
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$20, %esi
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%ecx, %ecx
	callq	_rtl_w0w1_phy
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$2626, %edx                     ## imm = 0xA42
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$22, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_rtl_w0w1_phy
	movq	%r14, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_rtl_writephy
	movl	(%r14), %ebx
	movl	$11, %edi
	callq	_BIT
	movl	%ebx, %edi
	movl	$2628, %esi                     ## imm = 0xA44
	movl	$17, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_phy_modify_paged
	movq	%r14, %rdi
	movl	$56578, %esi                    ## imm = 0xDD02
	movl	$32893, %edx                    ## imm = 0x807D
	callq	_r8168_mac_ocp_write
	movq	%r14, %rdi
	movl	$56578, %esi                    ## imm = 0xDD02
	callq	_r8168_mac_ocp_read
	movl	%eax, %ebx
	shrl	$4, %ebx
	andl	$8, %ebx
	movq	%r14, %rdi
	movl	$56576, %esi                    ## imm = 0xDD00
	callq	_r8168_mac_ocp_read
	movl	%eax, %ecx
	shrl	$13, %ecx
	andl	$7, %ecx
	orl	%ebx, %ecx
	movl	%eax, %edx
	shrl	$9, %edx
	andl	$15, %edx
	movl	%eax, %ebx
	shrl	$5, %ebx
	andl	$15, %ebx
	movl	%eax, %esi
	shrl	%esi
	andl	$8, %esi
	andl	$7, %eax
	orl	%esi, %eax
	cmpl	$15, %ecx
	jne	LBB0_4
## %bb.1:
	cmpl	$15, %edx
	jne	LBB0_4
## %bb.2:
	cmpl	$15, %ebx
	jne	LBB0_4
## %bb.3:
	cmpl	$15, %eax
	je	LBB0_5
LBB0_4:
	shll	$12, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	shll	$4, %ebx
	orl	%edx, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$3023, %edx                     ## imm = 0xBCF
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$22, %esi
	movl	%ebx, %edx
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_rtl_writephy
LBB0_5:
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$3021, %edx                     ## imm = 0xBCD
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$22, %esi
	callq	_rtl_readphy
	andl	$15, %eax
	xorl	%ecx, %ecx
	subl	$3, %eax
	cmovbl	%ecx, %eax
	imull	$4369, %eax, %edx               ## imm = 0x1111
	movq	%r14, %rdi
	movl	$23, %esi
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$31, %esi
	movl	$3021, %edx                     ## imm = 0xBCD
	callq	_rtl_writephy
	movq	%r14, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_rtl_writephy
	movl	(%r14), %ebx
	movl	$7, %edi
	callq	_BIT
	movl	%ebx, %edi
	movl	$2628, %esi                     ## imm = 0xA44
	movl	$17, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_phy_modify_paged
	movq	%r14, %rdi
	callq	_rtl8168g_disable_aldps
	movq	%r14, %rdi
	callq	_rtl8168g_config_eee_phy
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl_enable_eee                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl8168h_2_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 rtl8168h_2_hw_phy_config
_rtl8168h_2_hw_phy_config:              ; @rtl8168h_2_hw_phy_config
	.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
	bl	_rtl_apply_firmware
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2627
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #19
	mov	w2, #32906
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #20
	mov	w2, #10
	mov	w3, #63
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #0
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2627
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #19
	mov	w2, #2065
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #20
	mov	w2, #2048
	mov	w3, #0
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #2626
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #22
	mov	w2, #2
	mov	w3, #0
	bl	_rtl_w0w1_phy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #0
	bl	_rtl_writephy
	ldr	w20, [x19]
	mov	w0, #11
	bl	_BIT
	mov	x4, x0
	mov	x0, x20
	mov	w1, #2628
	mov	w2, #17
	mov	w3, #0
	bl	_phy_modify_paged
	mov	x0, x19
	mov	w1, #56578
	mov	w2, #32893
	bl	_r8168_mac_ocp_write
	mov	x0, x19
	mov	w1, #56578
	bl	_r8168_mac_ocp_read
	lsr	w8, w0, #4
	and	w20, w8, #0x8
	mov	x0, x19
	mov	w1, #56576
	bl	_r8168_mac_ocp_read
	bfxil	w20, w0, #13, #3
	ubfx	w10, w0, #9, #4
	ubfx	w8, w0, #5, #4
	lsr	w9, w0, #1
	and	w9, w9, #0x8
	bfxil	w9, w0, #0, #3
	cmp	w20, #15
	b.ne	LBB0_4
; %bb.1:
	cmp	w10, #15
	b.ne	LBB0_4
; %bb.2:
	cmp	w8, #15
	b.ne	LBB0_4
; %bb.3:
	cmp	w9, #15
	b.eq	LBB0_5
LBB0_4:
	lsl	w10, w10, #8
	bfi	w10, w20, #12, #4
	bfi	w10, w8, #4, #4
	orr	w20, w10, w9
	mov	x0, x19
	mov	w1, #31
	mov	w2, #3023
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #22
	mov	x2, x20
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #0
	bl	_rtl_writephy
LBB0_5:
	mov	x0, x19
	mov	w1, #31
	mov	w2, #3021
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #22
	bl	_rtl_readphy
	and	w8, w0, #0xf
	subs	w8, w8, #3
	csel	w8, wzr, w8, lo
	mov	w9, #4369
	mul	w2, w8, w9
	mov	x0, x19
	mov	w1, #23
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #3021
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #31
	mov	w2, #0
	bl	_rtl_writephy
	ldr	w20, [x19]
	mov	w0, #7
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	mov	w1, #2628
	mov	w2, #17
	mov	w4, #0
	bl	_phy_modify_paged
	mov	x0, x19
	bl	_rtl8168g_disable_aldps
	mov	x0, x19
	bl	_rtl8168g_config_eee_phy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl_enable_eee
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl8168h_2_hw_phy_config
.subsections_via_symbols
