	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi1_mdio_init
_mi1_mdio_init:                         ## @mi1_mdio_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	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	addl	%ecx, %ecx
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %r15d
	movq	_F_MI1_PREAMBLE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rsi), %edi
	callq	_V_MI1_MDI_INVERT
	movl	%eax, %r12d
	movl	12(%r13), %edi
	callq	_V_MI1_MDI_ENABLE
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r14d, %ebx
	movl	%r15d, %edi
	callq	_V_MI1_CLK_DIV
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_V_MI1_SOF
	orl	%eax, %r15d
LBB0_2:
	movq	_A_ELMER0_PORT0_MI1_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t1_tpi_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_F_MI1_PREAMBLE_ENABLE,4,2      ## @F_MI1_PREAMBLE_ENABLE
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_A_ELMER0_PORT0_MI1_CFG,4,2     ## @A_ELMER0_PORT0_MI1_CFG
	.no_dead_strip	_mi1_mdio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi1_mdio_init
_mi1_mdio_init:                         ; @mi1_mdio_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	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x1]
	lsl	w9, w9, #1
	sdiv	w8, w8, w9
	sub	w20, w8, #1
Lloh0:
	adrp	x8, _F_MI1_PREAMBLE_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_MI1_PREAMBLE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x1, #16]
	bl	_V_MI1_MDI_INVERT
	orr	w22, w0, w22
	ldr	w0, [x21, #12]
	bl	_V_MI1_MDI_ENABLE
	orr	w22, w22, w0
	mov	x0, x20
	bl	_V_MI1_CLK_DIV
	orr	w20, w22, w0
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_V_MI1_SOF
	orr	w20, w0, w20
LBB0_2:
Lloh6:
	adrp	x8, _A_ELMER0_PORT0_MI1_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_ELMER0_PORT0_MI1_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, 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
	b	_t1_tpi_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_F_MI1_PREAMBLE_ENABLE,4,2      ; @F_MI1_PREAMBLE_ENABLE
	.comm	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_A_ELMER0_PORT0_MI1_CFG,4,2     ; @A_ELMER0_PORT0_MI1_CFG
	.no_dead_strip	_mi1_mdio_init
.subsections_via_symbols
