	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9031_config_init
_ksz9031_config_init:                   ## @ksz9031_config_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ksz9031_enable_edpd
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movq	_MII_KSZ9031RN_CLK_PAD_SKEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ksz9031_config_init.clk_skews(%rip), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$5, %ecx
	movl	$2, %r9d
	callq	_ksz9031_of_load_skew_values
	movq	_MII_KSZ9031RN_CONTROL_PAD_SKEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ksz9031_config_init.control_skews(%rip), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	movl	$2, %r9d
	callq	_ksz9031_of_load_skew_values
	movq	_MII_KSZ9031RN_RX_DATA_PAD_SKEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ksz9031_config_init.rx_data_skews(%rip), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_ksz9031_of_load_skew_values
	movq	_MII_KSZ9031RN_TX_DATA_PAD_SKEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ksz9031_config_init.tx_data_skews(%rip), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_ksz9031_of_load_skew_values
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	_CTL1000_ENABLE_MASTER@GOTPCREL(%rip), %rax
	movq	_CTL1000_AS_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	orl	%ebx, %edx
	orl	(%rcx), %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ksz9031_center_flp_timing      ## TAILCALL
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	callq	_phydev_err
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @ksz9031_config_init.clk_skews
_ksz9031_config_init.clk_skews:
	.quad	L_.str
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rxc-skew-ps"

L_.str.1:                               ## @.str.1
	.asciz	"txc-skew-ps"

	.section	__DATA,__data
	.p2align	4                               ## @ksz9031_config_init.rx_data_skews
_ksz9031_config_init.rx_data_skews:
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"rxd0-skew-ps"

L_.str.3:                               ## @.str.3
	.asciz	"rxd1-skew-ps"

L_.str.4:                               ## @.str.4
	.asciz	"rxd2-skew-ps"

L_.str.5:                               ## @.str.5
	.asciz	"rxd3-skew-ps"

	.section	__DATA,__data
	.p2align	4                               ## @ksz9031_config_init.tx_data_skews
_ksz9031_config_init.tx_data_skews:
	.quad	L_.str.6
	.quad	L_.str.7
	.quad	L_.str.8
	.quad	L_.str.9

	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"txd0-skew-ps"

L_.str.7:                               ## @.str.7
	.asciz	"txd1-skew-ps"

L_.str.8:                               ## @.str.8
	.asciz	"txd2-skew-ps"

L_.str.9:                               ## @.str.9
	.asciz	"txd3-skew-ps"

	.section	__DATA,__data
	.p2align	4                               ## @ksz9031_config_init.control_skews
_ksz9031_config_init.control_skews:
	.quad	L_.str.10
	.quad	L_.str.11

	.section	__TEXT,__cstring,cstring_literals
L_.str.10:                              ## @.str.10
	.asciz	"txen-skew-ps"

L_.str.11:                              ## @.str.11
	.asciz	"rxdv-skew-ps"

	.comm	_MII_KSZ9031RN_CLK_PAD_SKEW,4,2 ## @MII_KSZ9031RN_CLK_PAD_SKEW
	.comm	_MII_KSZ9031RN_CONTROL_PAD_SKEW,4,2 ## @MII_KSZ9031RN_CONTROL_PAD_SKEW
	.comm	_MII_KSZ9031RN_RX_DATA_PAD_SKEW,4,2 ## @MII_KSZ9031RN_RX_DATA_PAD_SKEW
	.comm	_MII_KSZ9031RN_TX_DATA_PAD_SKEW,4,2 ## @MII_KSZ9031RN_TX_DATA_PAD_SKEW
L_.str.12:                              ## @.str.12
	.asciz	"micrel,force-master"

	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_CTL1000_ENABLE_MASTER,4,2      ## @CTL1000_ENABLE_MASTER
	.comm	_CTL1000_AS_MASTER,4,2          ## @CTL1000_AS_MASTER
L_.str.13:                              ## @.str.13
	.asciz	"failed to force the phy to master mode\n"

	.no_dead_strip	_ksz9031_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9031_config_init
_ksz9031_config_init:                   ; @ksz9031_config_init
	.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
	bl	_ksz9031_enable_edpd
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x8, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x20, [x8]
	cmp	x20, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_2
; %bb.3:
	cbz	x20, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _MII_KSZ9031RN_CLK_PAD_SKEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_KSZ9031RN_CLK_PAD_SKEW@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x4, _ksz9031_config_init.clk_skews@PAGE
Lloh4:
	add	x4, x4, _ksz9031_config_init.clk_skews@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w3, #5
	mov	w5, #2
	bl	_ksz9031_of_load_skew_values
Lloh5:
	adrp	x8, _MII_KSZ9031RN_CONTROL_PAD_SKEW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_KSZ9031RN_CONTROL_PAD_SKEW@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x4, _ksz9031_config_init.control_skews@PAGE
Lloh9:
	add	x4, x4, _ksz9031_config_init.control_skews@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	mov	w5, #2
	bl	_ksz9031_of_load_skew_values
Lloh10:
	adrp	x8, _MII_KSZ9031RN_RX_DATA_PAD_SKEW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_KSZ9031RN_RX_DATA_PAD_SKEW@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x4, _ksz9031_config_init.rx_data_skews@PAGE
Lloh14:
	add	x4, x4, _ksz9031_config_init.rx_data_skews@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	mov	w5, #4
	bl	_ksz9031_of_load_skew_values
Lloh15:
	adrp	x8, _MII_KSZ9031RN_TX_DATA_PAD_SKEW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_KSZ9031RN_TX_DATA_PAD_SKEW@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x4, _ksz9031_config_init.tx_data_skews@PAGE
Lloh19:
	add	x4, x4, _ksz9031_config_init.tx_data_skews@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	mov	w5, #4
	bl	_ksz9031_of_load_skew_values
Lloh20:
	adrp	x1, l_.str.12@PAGE
Lloh21:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cbz	x0, LBB0_7
; %bb.5:
Lloh22:
	adrp	x21, _MII_CTRL1000@GOTPAGE
Lloh23:
	ldr	x21, [x21, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh24:
	adrp	x8, _CTL1000_ENABLE_MASTER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CTL1000_ENABLE_MASTER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _CTL1000_AS_MASTER@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CTL1000_AS_MASTER@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_9
LBB0_7:
	mov	x0, x19
	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	_ksz9031_center_flp_timing
LBB0_8:
	mov	x20, x0
	b	LBB0_11
LBB0_9:
	mov	x20, x0
LBB0_10:
Lloh30:
	adrp	x1, l_.str.13@PAGE
Lloh31:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_phydev_err
LBB0_11:
	mov	x0, x20
	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
	ret
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @ksz9031_config_init.clk_skews
_ksz9031_config_init.clk_skews:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rxc-skew-ps"

l_.str.1:                               ; @.str.1
	.asciz	"txc-skew-ps"

	.section	__DATA,__data
	.p2align	3                               ; @ksz9031_config_init.rx_data_skews
_ksz9031_config_init.rx_data_skews:
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"rxd0-skew-ps"

l_.str.3:                               ; @.str.3
	.asciz	"rxd1-skew-ps"

l_.str.4:                               ; @.str.4
	.asciz	"rxd2-skew-ps"

l_.str.5:                               ; @.str.5
	.asciz	"rxd3-skew-ps"

	.section	__DATA,__data
	.p2align	3                               ; @ksz9031_config_init.tx_data_skews
_ksz9031_config_init.tx_data_skews:
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9

	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"txd0-skew-ps"

l_.str.7:                               ; @.str.7
	.asciz	"txd1-skew-ps"

l_.str.8:                               ; @.str.8
	.asciz	"txd2-skew-ps"

l_.str.9:                               ; @.str.9
	.asciz	"txd3-skew-ps"

	.section	__DATA,__data
	.p2align	3                               ; @ksz9031_config_init.control_skews
_ksz9031_config_init.control_skews:
	.quad	l_.str.10
	.quad	l_.str.11

	.section	__TEXT,__cstring,cstring_literals
l_.str.10:                              ; @.str.10
	.asciz	"txen-skew-ps"

l_.str.11:                              ; @.str.11
	.asciz	"rxdv-skew-ps"

	.comm	_MII_KSZ9031RN_CLK_PAD_SKEW,4,2 ; @MII_KSZ9031RN_CLK_PAD_SKEW
	.comm	_MII_KSZ9031RN_CONTROL_PAD_SKEW,4,2 ; @MII_KSZ9031RN_CONTROL_PAD_SKEW
	.comm	_MII_KSZ9031RN_RX_DATA_PAD_SKEW,4,2 ; @MII_KSZ9031RN_RX_DATA_PAD_SKEW
	.comm	_MII_KSZ9031RN_TX_DATA_PAD_SKEW,4,2 ; @MII_KSZ9031RN_TX_DATA_PAD_SKEW
l_.str.12:                              ; @.str.12
	.asciz	"micrel,force-master"

	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_CTL1000_ENABLE_MASTER,4,2      ; @CTL1000_ENABLE_MASTER
	.comm	_CTL1000_AS_MASTER,4,2          ; @CTL1000_AS_MASTER
l_.str.13:                              ; @.str.13
	.asciz	"failed to force the phy to master mode\n"

	.no_dead_strip	_ksz9031_config_init
.subsections_via_symbols
