	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp83811_config_init
_dp83811_config_init:                   ## @dp83811_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MII_DP83811_SGMII_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_phy_read
	movq	(%rbx), %rcx
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rsi
	movq	_DP83811_SGMII_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	notl	%edi
	andl	%eax, %edi
	orl	%eax, %edx
	cmpq	(%rsi), %rcx
	movl	(%r14), %esi
	cmovnel	%edi, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_DP83811_WOL_MAGIC_EN@GOTPCREL(%rip), %rax
	movq	_DP83811_WOL_SECURE_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DP83811_WOL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DP83811_DEVADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_DP83811_WOL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_write_mmd                  ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_DP83811_SGMII_CTRL,4,2     ## @MII_DP83811_SGMII_CTRL
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_DP83811_SGMII_EN,4,2           ## @DP83811_SGMII_EN
	.comm	_DP83811_WOL_MAGIC_EN,4,2       ## @DP83811_WOL_MAGIC_EN
	.comm	_DP83811_WOL_SECURE_ON,4,2      ## @DP83811_WOL_SECURE_ON
	.comm	_DP83811_WOL_EN,4,2             ## @DP83811_WOL_EN
	.comm	_DP83811_DEVADDR,4,2            ## @DP83811_DEVADDR
	.comm	_MII_DP83811_WOL_CFG,4,2        ## @MII_DP83811_WOL_CFG
	.no_dead_strip	_dp83811_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp83811_config_init
_dp83811_config_init:                   ; @dp83811_config_init
	.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	x20, _MII_DP83811_SGMII_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_DP83811_SGMII_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_phy_read
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _DP83811_SGMII_EN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DP83811_SGMII_EN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh7:
	ldr	w10, [x10]
	bic	w11, w0, w10
	orr	w10, w10, w0
	cmp	x8, x9
	csel	w2, w10, w11, eq
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _DP83811_WOL_MAGIC_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DP83811_WOL_MAGIC_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DP83811_WOL_SECURE_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DP83811_WOL_SECURE_ON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _DP83811_WOL_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DP83811_WOL_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh17:
	adrp	x8, _DP83811_DEVADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DP83811_DEVADDR@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MII_DP83811_WOL_CFG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MII_DP83811_WOL_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	ldr	w2, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write_mmd
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_DP83811_SGMII_CTRL,4,2     ; @MII_DP83811_SGMII_CTRL
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_DP83811_SGMII_EN,4,2           ; @DP83811_SGMII_EN
	.comm	_DP83811_WOL_MAGIC_EN,4,2       ; @DP83811_WOL_MAGIC_EN
	.comm	_DP83811_WOL_SECURE_ON,4,2      ; @DP83811_WOL_SECURE_ON
	.comm	_DP83811_WOL_EN,4,2             ; @DP83811_WOL_EN
	.comm	_DP83811_DEVADDR,4,2            ; @DP83811_DEVADDR
	.comm	_MII_DP83811_WOL_CFG,4,2        ; @MII_DP83811_WOL_CFG
	.no_dead_strip	_dp83811_config_init
.subsections_via_symbols
