	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1111_config_init
_m88e1111_config_init:                  ## @m88e1111_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	%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, %r14
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_phy_read
	movq	_MII_M1111_HWCFG_FIBER_COPPER_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_write
	movq	_MII_BMCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movq	_BMCR_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_phy_write
	movq	(%r14), %rax
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rcx
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %r12
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %r15
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.2:
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.3:
	cmpq	(%r13), %rax
	je	LBB0_4
LBB0_18:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movq	_MII_M1111_HWCFG_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MII_M1111_HWCFG_MODE_SGMII_NO_CLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MII_M1111_HWCFG_FIBER_COPPER_AUTO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_22
LBB0_21:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_write
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_22
LBB0_4:
	movq	_MII_M1111_PHY_EXT_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movq	(%r14), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rsi
	movq	_MII_M1111_RX_DELAY@GOTPCREL(%rip), %rcx
	movq	_MII_M1111_TX_DELAY@GOTPCREL(%rip), %rdx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	orl	(%rdx), %ecx
	movl	%ecx, %eax
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %rsi
	cmpq	(%r15), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_MII_M1111_TX_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MII_M1111_RX_DELAY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_9:
	cmpq	(%r13), %rcx
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %rbx
	jne	LBB0_11
## %bb.10:
	movq	_MII_M1111_RX_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MII_M1111_TX_DELAY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_11:
	movl	(%rsi), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_22
## %bb.12:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_22
## %bb.13:
	movq	_MII_M1111_HWCFG_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_14
## %bb.15:
	movq	_MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	movq	_MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPCREL(%rip), %rcx
LBB0_16:
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_22
## %bb.17:
	movq	(%r14), %rax
	jmp	LBB0_18
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_M1111_PHY_EXT_SR,4,2       ## @MII_M1111_PHY_EXT_SR
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_AUTO,4,2 ## @MII_M1111_HWCFG_FIBER_COPPER_AUTO
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_MII_M1111_PHY_EXT_CR,4,2       ## @MII_M1111_PHY_EXT_CR
	.comm	_MII_M1111_RX_DELAY,4,2         ## @MII_M1111_RX_DELAY
	.comm	_MII_M1111_TX_DELAY,4,2         ## @MII_M1111_TX_DELAY
	.comm	_MII_M1111_HWCFG_MODE_MASK,4,2  ## @MII_M1111_HWCFG_MODE_MASK
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_RES,4,2 ## @MII_M1111_HWCFG_FIBER_COPPER_RES
	.comm	_MII_M1111_HWCFG_MODE_FIBER_RGMII,4,2 ## @MII_M1111_HWCFG_MODE_FIBER_RGMII
	.comm	_MII_M1111_HWCFG_MODE_COPPER_RGMII,4,2 ## @MII_M1111_HWCFG_MODE_COPPER_RGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_M1111_HWCFG_MODE_SGMII_NO_CLK,4,2 ## @MII_M1111_HWCFG_MODE_SGMII_NO_CLK
	.no_dead_strip	_m88e1111_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1111_config_init
_m88e1111_config_init:                  ; @m88e1111_config_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x20, _MII_M1111_PHY_EXT_SR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_M1111_PHY_EXT_SR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_phy_read
Lloh2:
	adrp	x22, _MII_M1111_HWCFG_FIBER_COPPER_AUTO@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MII_M1111_HWCFG_FIBER_COPPER_AUTO@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
Lloh4:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
Lloh6:
	adrp	x23, _BMCR_RESET@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BMCR_RESET@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_write
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh10:
	adrp	x27, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh11:
	ldr	x27, [x27, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x27]
Lloh13:
	adrp	x26, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh14:
	ldr	x26, [x26, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh15:
	adrp	x25, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh16:
	ldr	x25, [x25, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
	ldr	x11, [x26]
	ldr	x12, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_14
; %bb.1:
Lloh17:
	adrp	x24, _MII_M1111_PHY_EXT_CR@GOTPAGE
Lloh18:
	ldr	x24, [x24, _MII_M1111_PHY_EXT_CR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_phy_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_19
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _MII_M1111_RX_DELAY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MII_M1111_RX_DELAY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MII_M1111_TX_DELAY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MII_M1111_TX_DELAY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w2
	b	LBB0_9
LBB0_4:
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _MII_M1111_TX_DELAY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MII_M1111_TX_DELAY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w8, w2, w8
Lloh28:
	adrp	x9, _MII_M1111_RX_DELAY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MII_M1111_RX_DELAY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
Lloh30:
	adrp	x8, _MII_M1111_RX_DELAY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MII_M1111_RX_DELAY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	bic	w8, w2, w8
Lloh33:
	adrp	x9, _MII_M1111_TX_DELAY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MII_M1111_TX_DELAY@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
LBB0_9:
	orr	w2, w8, w9
LBB0_10:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_18
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_19
; %bb.12:
Lloh35:
	adrp	x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bic	w8, w2, w8
Lloh38:
	adrp	x9, _MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPAGEOFF]
Lloh40:
	adrp	x10, _MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPAGEOFF]
Lloh42:
	adrp	x11, _MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPAGE
Lloh43:
	ldr	x11, [x11, _MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w8, w9
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_18
; %bb.13:
	ldr	x8, [x19]
LBB0_14:
Lloh45:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh46:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_19
; %bb.16:
Lloh48:
	adrp	x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _MII_M1111_HWCFG_MODE_SGMII_NO_CLK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MII_M1111_HWCFG_MODE_SGMII_NO_CLK@GOTPAGEOFF]
	bic	w8, w2, w8
Lloh53:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_18
LBB0_17:
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_phy_write
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_20
LBB0_18:
	mov	x2, x0
LBB0_19:
	mov	x0, x2
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh44
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_M1111_PHY_EXT_SR,4,2       ; @MII_M1111_PHY_EXT_SR
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_AUTO,4,2 ; @MII_M1111_HWCFG_FIBER_COPPER_AUTO
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_MII_M1111_PHY_EXT_CR,4,2       ; @MII_M1111_PHY_EXT_CR
	.comm	_MII_M1111_RX_DELAY,4,2         ; @MII_M1111_RX_DELAY
	.comm	_MII_M1111_TX_DELAY,4,2         ; @MII_M1111_TX_DELAY
	.comm	_MII_M1111_HWCFG_MODE_MASK,4,2  ; @MII_M1111_HWCFG_MODE_MASK
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_RES,4,2 ; @MII_M1111_HWCFG_FIBER_COPPER_RES
	.comm	_MII_M1111_HWCFG_MODE_FIBER_RGMII,4,2 ; @MII_M1111_HWCFG_MODE_FIBER_RGMII
	.comm	_MII_M1111_HWCFG_MODE_COPPER_RGMII,4,2 ; @MII_M1111_HWCFG_MODE_COPPER_RGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_M1111_HWCFG_MODE_SGMII_NO_CLK,4,2 ; @MII_M1111_HWCFG_MODE_SGMII_NO_CLK
	.no_dead_strip	_m88e1111_config_init
.subsections_via_symbols
