	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1145_config_init
_m88e1145_config_init:                  ## @m88e1145_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
	movl	$29, %esi
	movl	$27, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	%r14, %rdi
	movl	$30, %esi
	movl	$16783, %edx                    ## imm = 0x418F
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	%r14, %rdi
	movl	$29, %esi
	movl	$22, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%r14, %rdi
	movl	$30, %esi
	movl	$41690, %edx                    ## imm = 0xA2DA
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	(%r14), %rax
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.5:
	movq	_MII_M1145_PHY_EXT_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_MII_M1145_RGMII_RX_DELAY@GOTPCREL(%rip), %rcx
	movq	_MII_M1145_RGMII_TX_DELAY@GOTPCREL(%rip), %rsi
	movl	(%rcx), %edx
	orl	%eax, %edx
	orl	(%rsi), %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	_M1145_DEV_FLAGS_RESISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.8:
	movq	%r14, %rdi
	movl	$29, %esi
	movl	$18, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	movl	$30, %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	andl	$61503, %eax                    ## imm = 0xF03F
	orl	$1152, %eax                     ## imm = 0x480
	movq	%r14, %rdi
	movl	$30, %esi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movl	$29, %esi
	movl	$3, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	$30, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_phy_write
	testl	%eax, %eax
	jns	LBB0_14
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_MII_M1145_PHY_EXT_CR,4,2       ## @MII_M1145_PHY_EXT_CR
	.comm	_MII_M1145_RGMII_RX_DELAY,4,2   ## @MII_M1145_RGMII_RX_DELAY
	.comm	_MII_M1145_RGMII_TX_DELAY,4,2   ## @MII_M1145_RGMII_TX_DELAY
	.comm	_M1145_DEV_FLAGS_RESISTANCE,4,2 ## @M1145_DEV_FLAGS_RESISTANCE
	.no_dead_strip	_m88e1145_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1145_config_init
_m88e1145_config_init:                  ; @m88e1145_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
	mov	w1, #29
	mov	w2, #27
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #16783
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.2:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #22
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.3:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #41690
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.5:
Lloh3:
	adrp	x20, _MII_M1145_PHY_EXT_CR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MII_M1145_PHY_EXT_CR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_14
; %bb.6:
Lloh5:
	adrp	x8, _MII_M1145_RGMII_RX_DELAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_M1145_RGMII_RX_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MII_M1145_RGMII_TX_DELAY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MII_M1145_RGMII_TX_DELAY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.7:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _M1145_DEV_FLAGS_RESISTANCE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M1145_DEV_FLAGS_RESISTANCE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #18
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.9:
	mov	x0, x19
	mov	w1, #30
	bl	_phy_read
	tbnz	w0, #31, LBB0_14
; %bb.10:
	mov	w8, #61503
	and	w8, w0, w8
	mov	w9, #1152
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #30
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.11:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #3
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #32768
	bl	_phy_write
	tbnz	w0, #31, LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_MII_M1145_PHY_EXT_CR,4,2       ; @MII_M1145_PHY_EXT_CR
	.comm	_MII_M1145_RGMII_RX_DELAY,4,2   ; @MII_M1145_RGMII_RX_DELAY
	.comm	_MII_M1145_RGMII_TX_DELAY,4,2   ; @MII_M1145_RGMII_TX_DELAY
	.comm	_M1145_DEV_FLAGS_RESISTANCE,4,2 ; @M1145_DEV_FLAGS_RESISTANCE
	.no_dead_strip	_m88e1145_config_init
.subsections_via_symbols
