	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function early_hw_init
_early_hw_init:                         ## @early_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_is_10G
	cmpq	$1, %rax
	movl	$3, %edi
	sbbl	$0, %edi
	callq	_V_PORTSPEED
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mi1_init
	movq	_A_I2C_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	8(%rbx), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$37, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	decl	%edi
	callq	_V_I2C_CLKDIV
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_T3DBG_GPIO_EN@GOTPCREL(%rip), %rax
	movq	_F_GPIO0_OEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%r15), %edx
	movl	(%rax), %esi
	movq	_F_GPIO0_OUT_VAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_t3_write_reg
	movq	_A_MC5_DB_SERVER_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	_A_SG_OCO_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$4095, %edi                     ## imm = 0xFFF
	callq	_V_BASE1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_uses_xaui
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_F_ENRGMII@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_3:
	movq	_A_XGM_PORT_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_t3_write_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_t3_read_reg
	movq	_F_CLKDIVRESET_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_t3_write_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_t3_read_reg
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_XGM_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_t3_write_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t3_read_reg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_A_I2C_CFG,4,2                  ## @A_I2C_CFG
	.comm	_A_T3DBG_GPIO_EN,4,2            ## @A_T3DBG_GPIO_EN
	.comm	_F_GPIO0_OEN,4,2                ## @F_GPIO0_OEN
	.comm	_F_GPIO0_OUT_VAL,4,2            ## @F_GPIO0_OUT_VAL
	.comm	_A_MC5_DB_SERVER_INDEX,4,2      ## @A_MC5_DB_SERVER_INDEX
	.comm	_A_SG_OCO_BASE,4,2              ## @A_SG_OCO_BASE
	.comm	_F_ENRGMII,4,2                  ## @F_ENRGMII
	.comm	_A_XGM_PORT_CFG,4,2             ## @A_XGM_PORT_CFG
	.comm	_F_CLKDIVRESET_,4,2             ## @F_CLKDIVRESET_
	.no_dead_strip	_early_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function early_hw_init
_early_hw_init:                         ; @early_hw_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
	bl	_is_10G
	cmp	x0, #0
	mov	w8, #2
	cinc	w0, w8, ne
	bl	_V_PORTSPEED
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mi1_init
Lloh0:
	adrp	x8, _A_I2C_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_I2C_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldrsw	x8, [x19, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	sub	w0, w8, #1
	bl	_V_I2C_CLKDIV
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_t3_write_reg
Lloh3:
	adrp	x8, _A_T3DBG_GPIO_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_T3DBG_GPIO_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _F_GPIO0_OEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _F_GPIO0_OEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _F_GPIO0_OUT_VAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _F_GPIO0_OUT_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_t3_write_reg
Lloh12:
	adrp	x8, _A_MC5_DB_SERVER_INDEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _A_MC5_DB_SERVER_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_t3_write_reg
Lloh15:
	adrp	x8, _A_SG_OCO_BASE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _A_SG_OCO_BASE@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	w0, #4095
	bl	_V_BASE1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_uses_xaui
	cbnz	w0, LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _F_ENRGMII@GOTPAGE
Lloh19:
	ldr	x8, [x8, _F_ENRGMII@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_3:
Lloh21:
	adrp	x21, _A_XGM_PORT_CFG@GOTPAGE
Lloh22:
	ldr	x21, [x21, _A_XGM_PORT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_t3_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_t3_read_reg
Lloh23:
	adrp	x8, _F_CLKDIVRESET_@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_CLKDIVRESET_@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_t3_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_t3_read_reg
	ldr	w0, [x21]
	mov	w1, #1
	bl	_XGM_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_t3_write_reg
	ldr	w1, [x21]
	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	_t3_read_reg
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_A_I2C_CFG,4,2                  ; @A_I2C_CFG
	.comm	_A_T3DBG_GPIO_EN,4,2            ; @A_T3DBG_GPIO_EN
	.comm	_F_GPIO0_OEN,4,2                ; @F_GPIO0_OEN
	.comm	_F_GPIO0_OUT_VAL,4,2            ; @F_GPIO0_OUT_VAL
	.comm	_A_MC5_DB_SERVER_INDEX,4,2      ; @A_MC5_DB_SERVER_INDEX
	.comm	_A_SG_OCO_BASE,4,2              ; @A_SG_OCO_BASE
	.comm	_F_ENRGMII,4,2                  ; @F_ENRGMII
	.comm	_A_XGM_PORT_CFG,4,2             ; @A_XGM_PORT_CFG
	.comm	_F_CLKDIVRESET_,4,2             ; @F_CLKDIVRESET_
	.no_dead_strip	_early_hw_init
.subsections_via_symbols
