	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_reset
_skge_reset:                            ## @skge_reset
	.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, %r15
	movq	_B0_CTST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_skge_read16
	movl	%eax, %r14d
	movl	(%r13), %esi
	movq	_CS_RST_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r13), %esi
	movq	_CS_RST_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B2_TST_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_TST_CFG_WRITE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B2_TST_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_skge_write8
	movq	32(%r15), %rdi
	movq	_PCI_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_word
	movq	32(%r15), %rdi
	movl	(%rbx), %esi
	movq	_PCI_STATUS_ERROR_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-48(%rbp), %edx
	callq	_pci_write_config_word
	movl	(%r12), %esi
	movq	_TST_CFG_WRITE_OFF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r13), %esi
	movq	_CS_MRST_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r13), %esi
	movq	_CS_CLK_RUN_HOT@GOTPCREL(%rip), %rax
	movq	_CS_CLK_RUN_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_CS_CLK_RUN_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	andl	%r14d, %edx
	movq	%r15, %rdi
	callq	_skge_write16
	movq	_B2_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read8
	movl	%eax, (%r15)
	movq	_B2_E_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read8
	andl	$15, %eax
	movl	%eax, 4(%r15)
	movq	_B2_PMD_TYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read8
	shll	$24, %eax
	cmpl	$1409286144, %eax               ## imm = 0x54000000
	sete	%cl
	cmpl	$822083584, %eax                ## imm = 0x31000000
	sete	%dl
	orb	%cl, %dl
	movzbl	%dl, %ecx
	movl	%ecx, 8(%r15)
	movl	(%r15), %edx
	leal	-130(%rdx), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.4:
	movq	%rbx, %r14
	movl	4(%r15), %ecx
	movq	_SK_PHY_MARV_COPPER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_7
## %bb.5:
	cmpl	$1392508928, %eax               ## imm = 0x53000000
	je	LBB0_7
## %bb.6:
	movl	$1, 8(%r15)
LBB0_7:
	movq	_PHY_ADDR_MARV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_B2_MAC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read8
	movsbl	%al, %eax
	movq	_CFG_SNG_MAC@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %ecx
	andl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	$1, %ecx
	adcl	$1, %edx
	movl	%edx, 12(%r15)
	movq	_CFG_CHIP_R_MSK@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %ecx
	andl	%eax, %ecx
	shrl	$4, %ecx
	movb	%cl, 16(%r15)
	movq	_B2_E_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read8
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_is_genesis
	shll	$24, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	cmpl	$50331648, %ebx                 ## imm = 0x3000000
	jne	LBB0_10
## %bb.9:
	movabsq	$2251799814733824, %rax         ## imm = 0x8000000100000
	movq	%rax, 20(%r15)
	jmp	LBB0_15
LBB0_1:
	cmpl	$133, %edx
	jne	LBB0_37
## %bb.2:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.13:
	sarl	$12, %ebx
	jmp	LBB0_14
LBB0_37:
	movq	32(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_10:
	sarl	$15, %ebx
LBB0_14:
	movl	%ebx, 20(%r15)
LBB0_15:
	movq	_IS_HW_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, 28(%r15)
	movq	%r15, %rdi
	callq	_is_genesis
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	cmpl	$128, 4(%r15)
	je	LBB0_18
LBB0_17:
	movq	_IS_EXT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r15)
LBB0_18:
	movq	%r15, %rdi
	callq	_is_genesis
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_genesis_init
	jmp	LBB0_26
LBB0_20:
	movq	_PC_VAUX_ENA@GOTPCREL(%rip), %rax
	movq	_PC_VCC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_B0_POWER_CTRL@GOTPCREL(%rip), %rax
	movq	_PC_VAUX_OFF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PC_VCC_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B0_ISRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read32
	testl	%eax, (%rbx)
	je	LBB0_23
## %bb.21:
	movq	_B0_HWE_ISRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skge_read32
	movq	_IS_IRQ_SENSOR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movq	32(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 28(%r15)
LBB0_23:
	movl	(%r12), %esi
	movq	_TST_CFG_WRITE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	32(%r15), %rdi
	movq	_PCI_DEV_REG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	_PCI_PHY_COMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movq	32(%r15), %rdi
	movl	(%rbx), %esi
	callq	_pci_write_config_dword
	movl	(%r12), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	cmpl	$0, 12(%r15)
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	movq	_GMAC_LINK_CTRL@GOTPCREL(%rip), %r14
	movq	_GMLC_RST_SET@GOTPCREL(%rip), %r12
	movq	_GMLC_RST_CLR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skge_write16
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skge_write16
	incl	%ebx
	cmpl	12(%r15), %ebx
	jl	LBB0_25
LBB0_26:
	movq	_B2_TI_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_TIM_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%rbx), %esi
	movq	_TIM_CLR_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B0_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LED_STAT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	cmpl	$0, 12(%r15)
	jle	LBB0_29
## %bb.27:
	xorl	%ebx, %ebx
	movq	_TXA_CTRL@GOTPCREL(%rip), %r14
	movq	_TXA_ENA_ARB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skge_write8
	incl	%ebx
	cmpl	12(%r15), %ebx
	jl	LBB0_28
LBB0_29:
	movq	_B3_RI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RI_RST_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write16
	movq	_B3_RI_WTO_R1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SK_RI_TO_53@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_WTO_XA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_WTO_XS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_R1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_XA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_XS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_WTO_R2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_WTO_XA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_WTO_XS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_R2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_XA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B3_RI_RTO_XS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B0_HWE_IMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IS_ERR_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write32
	movq	_B2_IRQM_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IS_XA1_F@GOTPCREL(%rip), %rax
	movq	_IS_XA2_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write32
	movq	_B2_IRQM_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	$100, %esi
	callq	_skge_usecs2clk
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_skge_write32
	movq	_B2_IRQM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write32
	movq	_B0_IMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_skge_write32
	cmpl	$0, 12(%r15)
	jle	LBB0_36
## %bb.30:
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=1
	callq	_genesis_reset
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	incl	%ebx
	cmpl	12(%r15), %ebx
	jge	LBB0_35
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_is_genesis
	movq	%r15, %rdi
	movl	%ebx, %esi
	testq	%rax, %rax
	jne	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	callq	_yukon_reset
	jmp	LBB0_34
LBB0_35:
	xorl	%ebx, %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$131072, 20(%r15)               ## imm = 0x20000
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_B0_CTST,4,2                    ## @B0_CTST
	.comm	_CS_RST_SET,4,2                 ## @CS_RST_SET
	.comm	_CS_RST_CLR,4,2                 ## @CS_RST_CLR
	.comm	_B2_TST_CTRL1,4,2               ## @B2_TST_CTRL1
	.comm	_TST_CFG_WRITE_ON,4,2           ## @TST_CFG_WRITE_ON
	.comm	_B2_TST_CTRL2,4,2               ## @B2_TST_CTRL2
	.comm	_PCI_STATUS,4,2                 ## @PCI_STATUS
	.comm	_PCI_STATUS_ERROR_BITS,4,2      ## @PCI_STATUS_ERROR_BITS
	.comm	_TST_CFG_WRITE_OFF,4,2          ## @TST_CFG_WRITE_OFF
	.comm	_CS_MRST_CLR,4,2                ## @CS_MRST_CLR
	.comm	_CS_CLK_RUN_HOT,4,2             ## @CS_CLK_RUN_HOT
	.comm	_CS_CLK_RUN_RST,4,2             ## @CS_CLK_RUN_RST
	.comm	_CS_CLK_RUN_ENA,4,2             ## @CS_CLK_RUN_ENA
	.comm	_B2_CHIP_ID,4,2                 ## @B2_CHIP_ID
	.comm	_B2_E_1,4,2                     ## @B2_E_1
	.comm	_B2_PMD_TYP,4,2                 ## @B2_PMD_TYP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Genesis chip detected but not configured\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SK_PHY_MARV_COPPER,4,2         ## @SK_PHY_MARV_COPPER
	.comm	_PHY_ADDR_MARV,4,2              ## @PHY_ADDR_MARV
L_.str.1:                               ## @.str.1
	.asciz	"unsupported chip type 0x%x\n"

	.comm	_B2_MAC_CFG,4,2                 ## @B2_MAC_CFG
	.comm	_CFG_SNG_MAC,1,0                ## @CFG_SNG_MAC
	.comm	_CFG_CHIP_R_MSK,1,0             ## @CFG_CHIP_R_MSK
	.comm	_B2_E_0,4,2                     ## @B2_E_0
	.comm	_IS_HW_ERR,4,2                  ## @IS_HW_ERR
	.comm	_IS_EXT_REG,4,2                 ## @IS_EXT_REG
	.comm	_B0_POWER_CTRL,4,2              ## @B0_POWER_CTRL
	.comm	_PC_VAUX_ENA,4,2                ## @PC_VAUX_ENA
	.comm	_PC_VCC_ENA,4,2                 ## @PC_VCC_ENA
	.comm	_PC_VAUX_OFF,4,2                ## @PC_VAUX_OFF
	.comm	_PC_VCC_ON,4,2                  ## @PC_VCC_ON
	.comm	_B0_ISRC,4,2                    ## @B0_ISRC
	.comm	_B0_HWE_ISRC,4,2                ## @B0_HWE_ISRC
	.comm	_IS_IRQ_SENSOR,4,2              ## @IS_IRQ_SENSOR
L_.str.2:                               ## @.str.2
	.asciz	"stuck hardware sensor bit\n"

	.comm	_PCI_DEV_REG1,4,2               ## @PCI_DEV_REG1
	.comm	_PCI_PHY_COMA,4,2               ## @PCI_PHY_COMA
	.comm	_GMAC_LINK_CTRL,4,2             ## @GMAC_LINK_CTRL
	.comm	_GMLC_RST_SET,4,2               ## @GMLC_RST_SET
	.comm	_GMLC_RST_CLR,4,2               ## @GMLC_RST_CLR
	.comm	_B2_TI_CTRL,4,2                 ## @B2_TI_CTRL
	.comm	_TIM_STOP,4,2                   ## @TIM_STOP
	.comm	_TIM_CLR_IRQ,4,2                ## @TIM_CLR_IRQ
	.comm	_B0_LED,4,2                     ## @B0_LED
	.comm	_LED_STAT_ON,4,2                ## @LED_STAT_ON
	.comm	_TXA_CTRL,4,2                   ## @TXA_CTRL
	.comm	_TXA_ENA_ARB,4,2                ## @TXA_ENA_ARB
	.comm	_B3_RI_CTRL,4,2                 ## @B3_RI_CTRL
	.comm	_RI_RST_CLR,4,2                 ## @RI_RST_CLR
	.comm	_B3_RI_WTO_R1,4,2               ## @B3_RI_WTO_R1
	.comm	_SK_RI_TO_53,4,2                ## @SK_RI_TO_53
	.comm	_B3_RI_WTO_XA1,4,2              ## @B3_RI_WTO_XA1
	.comm	_B3_RI_WTO_XS1,4,2              ## @B3_RI_WTO_XS1
	.comm	_B3_RI_RTO_R1,4,2               ## @B3_RI_RTO_R1
	.comm	_B3_RI_RTO_XA1,4,2              ## @B3_RI_RTO_XA1
	.comm	_B3_RI_RTO_XS1,4,2              ## @B3_RI_RTO_XS1
	.comm	_B3_RI_WTO_R2,4,2               ## @B3_RI_WTO_R2
	.comm	_B3_RI_WTO_XA2,4,2              ## @B3_RI_WTO_XA2
	.comm	_B3_RI_WTO_XS2,4,2              ## @B3_RI_WTO_XS2
	.comm	_B3_RI_RTO_R2,4,2               ## @B3_RI_RTO_R2
	.comm	_B3_RI_RTO_XA2,4,2              ## @B3_RI_RTO_XA2
	.comm	_B3_RI_RTO_XS2,4,2              ## @B3_RI_RTO_XS2
	.comm	_B0_HWE_IMSK,4,2                ## @B0_HWE_IMSK
	.comm	_IS_ERR_MSK,4,2                 ## @IS_ERR_MSK
	.comm	_B2_IRQM_MSK,4,2                ## @B2_IRQM_MSK
	.comm	_IS_XA1_F,4,2                   ## @IS_XA1_F
	.comm	_IS_XA2_F,4,2                   ## @IS_XA2_F
	.comm	_B2_IRQM_INI,4,2                ## @B2_IRQM_INI
	.comm	_B2_IRQM_CTRL,4,2               ## @B2_IRQM_CTRL
	.comm	_TIM_START,4,2                  ## @TIM_START
	.comm	_B0_IMSK,4,2                    ## @B0_IMSK
	.comm	_PHY_ADDR_BCOM,4,2              ## @PHY_ADDR_BCOM
	.comm	_PHY_ADDR_XMAC,4,2              ## @PHY_ADDR_XMAC
	.no_dead_strip	_skge_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function skge_reset
lCPI0_0:
	.long	1048576                         ; 0x100000
	.long	524288                          ; 0x80000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_skge_reset:                            ; @skge_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _B0_CTST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _B0_CTST@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_skge_read16
	mov	x20, x0
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _CS_RST_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS_RST_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _CS_RST_CLR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CS_RST_CLR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
Lloh8:
	adrp	x21, _B2_TST_CTRL1@GOTPAGE
Lloh9:
	ldr	x21, [x21, _B2_TST_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x22, _TST_CFG_WRITE_ON@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TST_CFG_WRITE_ON@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_skge_write8
Lloh12:
	adrp	x8, _B2_TST_CTRL2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B2_TST_CTRL2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_skge_write8
	ldr	x0, [x19, #32]
Lloh15:
	adrp	x23, _PCI_STATUS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PCI_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_pci_read_config_word
	ldr	x0, [x19, #32]
	ldr	w1, [x23]
	ldr	w8, [sp, #8]
Lloh17:
	adrp	x9, _PCI_STATUS_ERROR_BITS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PCI_STATUS_ERROR_BITS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_pci_write_config_word
	ldr	w1, [x21]
Lloh20:
	adrp	x23, _TST_CFG_WRITE_OFF@GOTPAGE
Lloh21:
	ldr	x23, [x23, _TST_CFG_WRITE_OFF@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_skge_write8
	ldr	w1, [x24]
Lloh22:
	adrp	x8, _CS_MRST_CLR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CS_MRST_CLR@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w1, [x24]
Lloh25:
	adrp	x8, _CS_CLK_RUN_HOT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CS_CLK_RUN_HOT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CS_CLK_RUN_RST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CS_CLK_RUN_RST@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _CS_CLK_RUN_ENA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CS_CLK_RUN_ENA@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w2, w8, w20
	mov	x0, x19
	bl	_skge_write16
Lloh34:
	adrp	x8, _B2_CHIP_ID@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B2_CHIP_ID@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	str	w0, [x19]
Lloh37:
	adrp	x8, _B2_E_1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _B2_E_1@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	and	w8, w0, #0xf
	str	w8, [x19, #4]
Lloh40:
	adrp	x8, _B2_PMD_TYP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _B2_PMD_TYP@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	lsl	w8, w0, #24
	mov	w9, #1409286144
	cmp	w8, w9
	mov	w9, #822083584
	ccmp	w8, w9, #4, ne
	cset	w9, eq
	str	w9, [x19, #8]
	ldr	w9, [x19]
	sub	w10, w9, #130
	cmp	w10, #3
	b.hs	LBB0_7
; %bb.1:
	ldr	w9, [x19, #4]
Lloh43:
	adrp	x10, _SK_PHY_MARV_COPPER@GOTPAGE
Lloh44:
	ldr	x10, [x10, _SK_PHY_MARV_COPPER@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.2:
	mov	w9, #1392508928
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_4:
Lloh46:
	adrp	x8, _PHY_ADDR_MARV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PHY_ADDR_MARV@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh49:
	adrp	x8, _B2_MAC_CFG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _B2_MAC_CFG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	sxtb	w8, w0
Lloh52:
	adrp	x9, _CFG_SNG_MAC@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CFG_SNG_MAC@GOTPAGEOFF]
Lloh54:
	ldrsb	w9, [x9]
	tst	w8, w9
	mov	w9, #1
	cinc	w9, w9, eq
	str	w9, [x19, #12]
Lloh55:
	adrp	x9, _CFG_CHIP_R_MSK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _CFG_CHIP_R_MSK@GOTPAGEOFF]
Lloh57:
	ldrsb	w9, [x9]
	and	w8, w8, w9
	lsr	w8, w8, #4
	strb	w8, [x19, #16]
Lloh58:
	adrp	x8, _B2_E_0@GOTPAGE
Lloh59:
	ldr	x8, [x8, _B2_E_0@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	mov	x20, x0
	mov	x0, x19
	bl	_is_genesis
	lsl	w8, w20, #24
	cbz	x0, LBB0_9
; %bb.5:
	mov	w9, #50331648
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.6:
Lloh61:
	adrp	x8, lCPI0_0@PAGE
Lloh62:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #20]
	b	LBB0_16
LBB0_7:
	cmp	w9, #133
	b.ne	LBB0_11
; %bb.8:
	ldr	x0, [x19, #32]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
	cbz	w8, LBB0_14
; %bb.10:
	asr	w8, w8, #12
	b	LBB0_15
LBB0_11:
	ldr	x0, [x19, #32]
	str	x9, [sp]
Lloh65:
	adrp	x1, l_.str.1@PAGE
Lloh66:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dev_err
Lloh67:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_13:
	asr	w8, w8, #15
	b	LBB0_15
LBB0_14:
	mov	w8, #131072
LBB0_15:
	str	w8, [x19, #20]
LBB0_16:
Lloh70:
	adrp	x20, _IS_HW_ERR@GOTPAGE
Lloh71:
	ldr	x20, [x20, _IS_HW_ERR@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [x19, #28]
	mov	x0, x19
	bl	_is_genesis
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_19
LBB0_18:
Lloh72:
	adrp	x8, _IS_EXT_REG@GOTPAGE
Lloh73:
	ldr	x8, [x8, _IS_EXT_REG@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
	str	w8, [x19, #28]
LBB0_19:
	mov	x0, x19
	bl	_is_genesis
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_genesis_init
	b	LBB0_27
LBB0_21:
Lloh75:
	adrp	x8, _B0_POWER_CTRL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _B0_POWER_CTRL@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _PC_VAUX_ENA@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PC_VAUX_ENA@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
Lloh81:
	adrp	x9, _PC_VCC_ENA@GOTPAGE
Lloh82:
	ldr	x9, [x9, _PC_VCC_ENA@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh84:
	adrp	x9, _PC_VAUX_OFF@GOTPAGE
Lloh85:
	ldr	x9, [x9, _PC_VAUX_OFF@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh87:
	adrp	x9, _PC_VCC_ON@GOTPAGE
Lloh88:
	ldr	x9, [x9, _PC_VCC_ON@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_skge_write8
Lloh90:
	adrp	x8, _B0_ISRC@GOTPAGE
Lloh91:
	ldr	x8, [x8, _B0_ISRC@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_24
; %bb.22:
Lloh93:
	adrp	x8, _B0_HWE_ISRC@GOTPAGE
Lloh94:
	ldr	x8, [x8, _B0_HWE_ISRC@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read32
Lloh96:
	adrp	x8, _IS_IRQ_SENSOR@GOTPAGE
Lloh97:
	ldr	x8, [x8, _IS_IRQ_SENSOR@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_24
; %bb.23:
	ldr	x0, [x19, #32]
Lloh99:
	adrp	x1, l_.str.2@PAGE
Lloh100:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x20]
	ldr	w9, [x19, #28]
	bic	w8, w9, w8
	str	w8, [x19, #28]
LBB0_24:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_skge_write8
	ldr	x0, [x19, #32]
Lloh101:
	adrp	x20, _PCI_DEV_REG1@GOTPAGE
Lloh102:
	ldr	x20, [x20, _PCI_DEV_REG1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_dword
Lloh103:
	adrp	x8, _PCI_PHY_COMA@GOTPAGE
Lloh104:
	ldr	x8, [x8, _PCI_PHY_COMA@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x0, [x19, #32]
	ldr	w1, [x20]
	bl	_pci_write_config_dword
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_skge_write8
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	w20, #0
Lloh106:
	adrp	x21, _GMAC_LINK_CTRL@GOTPAGE
Lloh107:
	ldr	x21, [x21, _GMAC_LINK_CTRL@GOTPAGEOFF]
Lloh108:
	adrp	x22, _GMLC_RST_SET@GOTPAGE
Lloh109:
	ldr	x22, [x22, _GMLC_RST_SET@GOTPAGEOFF]
Lloh110:
	adrp	x23, _GMLC_RST_CLR@GOTPAGE
Lloh111:
	ldr	x23, [x23, _GMLC_RST_CLR@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_skge_write16
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x19
	bl	_skge_write16
	add	w20, w20, #1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.lt	LBB0_26
LBB0_27:
Lloh112:
	adrp	x20, _B2_TI_CTRL@GOTPAGE
Lloh113:
	ldr	x20, [x20, _B2_TI_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh114:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh115:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
Lloh116:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w1, [x20]
Lloh117:
	adrp	x8, _TIM_CLR_IRQ@GOTPAGE
Lloh118:
	ldr	x8, [x8, _TIM_CLR_IRQ@GOTPAGEOFF]
Lloh119:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
Lloh120:
	adrp	x8, _B0_LED@GOTPAGE
Lloh121:
	ldr	x8, [x8, _B0_LED@GOTPAGEOFF]
Lloh122:
	ldr	w1, [x8]
Lloh123:
	adrp	x8, _LED_STAT_ON@GOTPAGE
Lloh124:
	ldr	x8, [x8, _LED_STAT_ON@GOTPAGEOFF]
Lloh125:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	w20, #0
Lloh126:
	adrp	x21, _TXA_CTRL@GOTPAGE
Lloh127:
	ldr	x21, [x21, _TXA_CTRL@GOTPAGEOFF]
Lloh128:
	adrp	x22, _TXA_ENA_ARB@GOTPAGE
Lloh129:
	ldr	x22, [x22, _TXA_ENA_ARB@GOTPAGEOFF]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_skge_write8
	add	w20, w20, #1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.lt	LBB0_29
LBB0_30:
Lloh130:
	adrp	x8, _B3_RI_CTRL@GOTPAGE
Lloh131:
	ldr	x8, [x8, _B3_RI_CTRL@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
Lloh133:
	adrp	x8, _RI_RST_CLR@GOTPAGE
Lloh134:
	ldr	x8, [x8, _RI_RST_CLR@GOTPAGEOFF]
Lloh135:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write16
Lloh136:
	adrp	x8, _B3_RI_WTO_R1@GOTPAGE
Lloh137:
	ldr	x8, [x8, _B3_RI_WTO_R1@GOTPAGEOFF]
Lloh138:
	ldr	w1, [x8]
Lloh139:
	adrp	x20, _SK_RI_TO_53@GOTPAGE
Lloh140:
	ldr	x20, [x20, _SK_RI_TO_53@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh141:
	adrp	x8, _B3_RI_WTO_XA1@GOTPAGE
Lloh142:
	ldr	x8, [x8, _B3_RI_WTO_XA1@GOTPAGEOFF]
Lloh143:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh144:
	adrp	x8, _B3_RI_WTO_XS1@GOTPAGE
Lloh145:
	ldr	x8, [x8, _B3_RI_WTO_XS1@GOTPAGEOFF]
Lloh146:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh147:
	adrp	x8, _B3_RI_RTO_R1@GOTPAGE
Lloh148:
	ldr	x8, [x8, _B3_RI_RTO_R1@GOTPAGEOFF]
Lloh149:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh150:
	adrp	x8, _B3_RI_RTO_XA1@GOTPAGE
Lloh151:
	ldr	x8, [x8, _B3_RI_RTO_XA1@GOTPAGEOFF]
Lloh152:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh153:
	adrp	x8, _B3_RI_RTO_XS1@GOTPAGE
Lloh154:
	ldr	x8, [x8, _B3_RI_RTO_XS1@GOTPAGEOFF]
Lloh155:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh156:
	adrp	x8, _B3_RI_WTO_R2@GOTPAGE
Lloh157:
	ldr	x8, [x8, _B3_RI_WTO_R2@GOTPAGEOFF]
Lloh158:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh159:
	adrp	x8, _B3_RI_WTO_XA2@GOTPAGE
Lloh160:
	ldr	x8, [x8, _B3_RI_WTO_XA2@GOTPAGEOFF]
Lloh161:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh162:
	adrp	x8, _B3_RI_WTO_XS2@GOTPAGE
Lloh163:
	ldr	x8, [x8, _B3_RI_WTO_XS2@GOTPAGEOFF]
Lloh164:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh165:
	adrp	x8, _B3_RI_RTO_R2@GOTPAGE
Lloh166:
	ldr	x8, [x8, _B3_RI_RTO_R2@GOTPAGEOFF]
Lloh167:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh168:
	adrp	x8, _B3_RI_RTO_XA2@GOTPAGE
Lloh169:
	ldr	x8, [x8, _B3_RI_RTO_XA2@GOTPAGEOFF]
Lloh170:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh171:
	adrp	x8, _B3_RI_RTO_XS2@GOTPAGE
Lloh172:
	ldr	x8, [x8, _B3_RI_RTO_XS2@GOTPAGEOFF]
Lloh173:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh174:
	adrp	x8, _B0_HWE_IMSK@GOTPAGE
Lloh175:
	ldr	x8, [x8, _B0_HWE_IMSK@GOTPAGEOFF]
Lloh176:
	ldr	w1, [x8]
Lloh177:
	adrp	x8, _IS_ERR_MSK@GOTPAGE
Lloh178:
	ldr	x8, [x8, _IS_ERR_MSK@GOTPAGEOFF]
Lloh179:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write32
Lloh180:
	adrp	x8, _B2_IRQM_MSK@GOTPAGE
Lloh181:
	ldr	x8, [x8, _B2_IRQM_MSK@GOTPAGEOFF]
Lloh182:
	adrp	x9, _IS_XA1_F@GOTPAGE
Lloh183:
	ldr	x9, [x9, _IS_XA1_F@GOTPAGEOFF]
Lloh184:
	ldr	w1, [x8]
Lloh185:
	ldr	w8, [x9]
Lloh186:
	adrp	x9, _IS_XA2_F@GOTPAGE
Lloh187:
	ldr	x9, [x9, _IS_XA2_F@GOTPAGEOFF]
Lloh188:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_skge_write32
Lloh189:
	adrp	x8, _B2_IRQM_INI@GOTPAGE
Lloh190:
	ldr	x8, [x8, _B2_IRQM_INI@GOTPAGEOFF]
Lloh191:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #100
	bl	_skge_usecs2clk
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_skge_write32
Lloh192:
	adrp	x8, _B2_IRQM_CTRL@GOTPAGE
Lloh193:
	ldr	x8, [x8, _B2_IRQM_CTRL@GOTPAGEOFF]
Lloh194:
	ldr	w1, [x8]
Lloh195:
	adrp	x8, _TIM_START@GOTPAGE
Lloh196:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
Lloh197:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write32
Lloh198:
	adrp	x8, _B0_IMSK@GOTPAGE
Lloh199:
	ldr	x8, [x8, _B0_IMSK@GOTPAGEOFF]
Lloh200:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_skge_write32
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.31:
	mov	w20, #0
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_genesis_reset
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.ge	LBB0_36
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_is_genesis
	cbnz	x0, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_yukon_reset
	b	LBB0_33
LBB0_36:
	mov	w0, #0
LBB0_37:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdr	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh198, Lloh199, Lloh200
	.loh AdrpLdrGotLdr	Lloh195, Lloh196, Lloh197
	.loh AdrpLdrGotLdr	Lloh192, Lloh193, Lloh194
	.loh AdrpLdrGotLdr	Lloh189, Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh186, Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh185
	.loh AdrpLdrGotLdr	Lloh180, Lloh181, Lloh184
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh179
	.loh AdrpLdrGotLdr	Lloh174, Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGot	Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.cfi_endproc
                                        ; -- End function
	.comm	_B0_CTST,4,2                    ; @B0_CTST
	.comm	_CS_RST_SET,4,2                 ; @CS_RST_SET
	.comm	_CS_RST_CLR,4,2                 ; @CS_RST_CLR
	.comm	_B2_TST_CTRL1,4,2               ; @B2_TST_CTRL1
	.comm	_TST_CFG_WRITE_ON,4,2           ; @TST_CFG_WRITE_ON
	.comm	_B2_TST_CTRL2,4,2               ; @B2_TST_CTRL2
	.comm	_PCI_STATUS,4,2                 ; @PCI_STATUS
	.comm	_PCI_STATUS_ERROR_BITS,4,2      ; @PCI_STATUS_ERROR_BITS
	.comm	_TST_CFG_WRITE_OFF,4,2          ; @TST_CFG_WRITE_OFF
	.comm	_CS_MRST_CLR,4,2                ; @CS_MRST_CLR
	.comm	_CS_CLK_RUN_HOT,4,2             ; @CS_CLK_RUN_HOT
	.comm	_CS_CLK_RUN_RST,4,2             ; @CS_CLK_RUN_RST
	.comm	_CS_CLK_RUN_ENA,4,2             ; @CS_CLK_RUN_ENA
	.comm	_B2_CHIP_ID,4,2                 ; @B2_CHIP_ID
	.comm	_B2_E_1,4,2                     ; @B2_E_1
	.comm	_B2_PMD_TYP,4,2                 ; @B2_PMD_TYP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Genesis chip detected but not configured\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SK_PHY_MARV_COPPER,4,2         ; @SK_PHY_MARV_COPPER
	.comm	_PHY_ADDR_MARV,4,2              ; @PHY_ADDR_MARV
l_.str.1:                               ; @.str.1
	.asciz	"unsupported chip type 0x%x\n"

	.comm	_B2_MAC_CFG,4,2                 ; @B2_MAC_CFG
	.comm	_CFG_SNG_MAC,1,0                ; @CFG_SNG_MAC
	.comm	_CFG_CHIP_R_MSK,1,0             ; @CFG_CHIP_R_MSK
	.comm	_B2_E_0,4,2                     ; @B2_E_0
	.comm	_IS_HW_ERR,4,2                  ; @IS_HW_ERR
	.comm	_IS_EXT_REG,4,2                 ; @IS_EXT_REG
	.comm	_B0_POWER_CTRL,4,2              ; @B0_POWER_CTRL
	.comm	_PC_VAUX_ENA,4,2                ; @PC_VAUX_ENA
	.comm	_PC_VCC_ENA,4,2                 ; @PC_VCC_ENA
	.comm	_PC_VAUX_OFF,4,2                ; @PC_VAUX_OFF
	.comm	_PC_VCC_ON,4,2                  ; @PC_VCC_ON
	.comm	_B0_ISRC,4,2                    ; @B0_ISRC
	.comm	_B0_HWE_ISRC,4,2                ; @B0_HWE_ISRC
	.comm	_IS_IRQ_SENSOR,4,2              ; @IS_IRQ_SENSOR
l_.str.2:                               ; @.str.2
	.asciz	"stuck hardware sensor bit\n"

	.comm	_PCI_DEV_REG1,4,2               ; @PCI_DEV_REG1
	.comm	_PCI_PHY_COMA,4,2               ; @PCI_PHY_COMA
	.comm	_GMAC_LINK_CTRL,4,2             ; @GMAC_LINK_CTRL
	.comm	_GMLC_RST_SET,4,2               ; @GMLC_RST_SET
	.comm	_GMLC_RST_CLR,4,2               ; @GMLC_RST_CLR
	.comm	_B2_TI_CTRL,4,2                 ; @B2_TI_CTRL
	.comm	_TIM_STOP,4,2                   ; @TIM_STOP
	.comm	_TIM_CLR_IRQ,4,2                ; @TIM_CLR_IRQ
	.comm	_B0_LED,4,2                     ; @B0_LED
	.comm	_LED_STAT_ON,4,2                ; @LED_STAT_ON
	.comm	_TXA_CTRL,4,2                   ; @TXA_CTRL
	.comm	_TXA_ENA_ARB,4,2                ; @TXA_ENA_ARB
	.comm	_B3_RI_CTRL,4,2                 ; @B3_RI_CTRL
	.comm	_RI_RST_CLR,4,2                 ; @RI_RST_CLR
	.comm	_B3_RI_WTO_R1,4,2               ; @B3_RI_WTO_R1
	.comm	_SK_RI_TO_53,4,2                ; @SK_RI_TO_53
	.comm	_B3_RI_WTO_XA1,4,2              ; @B3_RI_WTO_XA1
	.comm	_B3_RI_WTO_XS1,4,2              ; @B3_RI_WTO_XS1
	.comm	_B3_RI_RTO_R1,4,2               ; @B3_RI_RTO_R1
	.comm	_B3_RI_RTO_XA1,4,2              ; @B3_RI_RTO_XA1
	.comm	_B3_RI_RTO_XS1,4,2              ; @B3_RI_RTO_XS1
	.comm	_B3_RI_WTO_R2,4,2               ; @B3_RI_WTO_R2
	.comm	_B3_RI_WTO_XA2,4,2              ; @B3_RI_WTO_XA2
	.comm	_B3_RI_WTO_XS2,4,2              ; @B3_RI_WTO_XS2
	.comm	_B3_RI_RTO_R2,4,2               ; @B3_RI_RTO_R2
	.comm	_B3_RI_RTO_XA2,4,2              ; @B3_RI_RTO_XA2
	.comm	_B3_RI_RTO_XS2,4,2              ; @B3_RI_RTO_XS2
	.comm	_B0_HWE_IMSK,4,2                ; @B0_HWE_IMSK
	.comm	_IS_ERR_MSK,4,2                 ; @IS_ERR_MSK
	.comm	_B2_IRQM_MSK,4,2                ; @B2_IRQM_MSK
	.comm	_IS_XA1_F,4,2                   ; @IS_XA1_F
	.comm	_IS_XA2_F,4,2                   ; @IS_XA2_F
	.comm	_B2_IRQM_INI,4,2                ; @B2_IRQM_INI
	.comm	_B2_IRQM_CTRL,4,2               ; @B2_IRQM_CTRL
	.comm	_TIM_START,4,2                  ; @TIM_START
	.comm	_B0_IMSK,4,2                    ; @B0_IMSK
	.comm	_PHY_ADDR_BCOM,4,2              ; @PHY_ADDR_BCOM
	.comm	_PHY_ADDR_XMAC,4,2              ; @PHY_ADDR_XMAC
	.no_dead_strip	_skge_reset
.subsections_via_symbols
