	.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), %r12
	movl	(%r12), %esi
	callq	_skge_read16
	movl	%eax, %r14d
	movl	(%r12), %esi
	movq	_CS_RST_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r12), %esi
	movq	_CS_RST_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movq	_B2_TST_CTRL1@GOTPCREL(%rip), %r13
	movl	(%r13), %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	(%r13), %esi
	movq	_TST_CFG_WRITE_OFF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r12), %esi
	movq	_CS_MRST_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	movl	(%r12), %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.8:
	movl	4(%r15), %edx
	movq	_SK_PHY_MARV_COPPER@GOTPCREL(%rip), %rsi
	movq	_PHY_ADDR_MARV@GOTPCREL(%rip), %rcx
	cmpl	(%rsi), %edx
	jge	LBB0_11
## %bb.9:
	cmpl	$1392508928, %eax               ## imm = 0x53000000
	je	LBB0_11
## %bb.10:
	movl	$1, 8(%r15)
LBB0_11:
	movl	(%rcx), %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
	shll	$24, %eax
	cmpl	$133, (%r15)
	jne	LBB0_18
## %bb.12:
	cmpl	$50331648, %eax                 ## imm = 0x3000000
	jne	LBB0_14
## %bb.13:
	movl	$524288, 24(%r15)               ## imm = 0x80000
	movl	$1048576, %eax                  ## imm = 0x100000
	jmp	LBB0_15
LBB0_1:
	cmpl	$133, %edx
	jne	LBB0_35
## %bb.2:
	movl	4(%r15), %edx
	cmpl	$128, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.5:
	movq	_PHY_ADDR_BCOM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_18:
	movq	%rbx, %r14
	movl	%eax, %ecx
	sarl	$12, %ecx
	testl	%eax, %eax
	movl	$131072, %eax                   ## imm = 0x20000
	cmovnel	%ecx, %eax
	movl	%eax, 20(%r15)
	movq	_IS_HW_ERR@GOTPCREL(%rip), %rbx
	movq	_IS_EXT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rbx), %eax
	movl	%eax, 28(%r15)
	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_21
## %bb.19:
	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_21
## %bb.20:
	movq	32(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 28(%r15)
LBB0_21:
	movl	(%r13), %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	(%r13), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_skge_write8
	cmpl	$0, 12(%r15)
	jle	LBB0_24
## %bb.22:
	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_23:                                ## =>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_23
	jmp	LBB0_24
LBB0_35:
	movq	32(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_7
LBB0_14:
	sarl	$15, %eax
LBB0_15:
	movl	%eax, 20(%r15)
	movq	_IS_HW_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	cmpl	$128, 4(%r15)
	je	LBB0_17
## %bb.16:
	movq	_IS_EXT_REG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 28(%r15)
LBB0_17:
	movq	%r15, %rdi
	callq	_genesis_init
LBB0_24:
	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_27
## %bb.25:
	xorl	%ebx, %ebx
	movq	_TXA_CTRL@GOTPCREL(%rip), %r14
	movq	_TXA_ENA_ARB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_26:                                ## =>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_26
LBB0_27:
	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
	movl	28(%r15), %edx
	movq	%r15, %rdi
	callq	_skge_write32
	cmpl	$0, 12(%r15)
	jle	LBB0_33
## %bb.28:
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_yukon_reset
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	incl	%ebx
	cmpl	12(%r15), %ebx
	jge	LBB0_33
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$133, (%r15)
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_genesis_reset
	jmp	LBB0_32
LBB0_33:
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_3:
	movq	_PHY_ADDR_XMAC@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_7:
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_PHY_ADDR_XMAC,4,2              ## @PHY_ADDR_XMAC
	.comm	_PHY_ADDR_BCOM,4,2              ## @PHY_ADDR_BCOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported phy type 0x%x\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
	.no_dead_strip	_skge_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_reset
_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	w9, w0, #24
	mov	w8, #1409286144
	cmp	w9, w8
	mov	w8, #822083584
	ccmp	w9, w8, #4, ne
	cset	w8, eq
	str	w8, [x19, #8]
	ldr	w2, [x19]
	sub	w8, w2, #130
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.1:
	ldr	w10, [x19, #4]
Lloh43:
	adrp	x8, _SK_PHY_MARV_COPPER@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SK_PHY_MARV_COPPER@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x8]
Lloh46:
	adrp	x8, _PHY_ADDR_MARV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PHY_ADDR_MARV@GOTPAGEOFF]
	cmp	w10, w11
	b.ge	LBB0_4
; %bb.2:
	mov	w10, #1392508928
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #8]
Lloh48:
	adrp	x8, _PHY_ADDR_MARV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PHY_ADDR_MARV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh50:
	adrp	x8, _B2_MAC_CFG@GOTPAGE
Lloh51:
	ldr	x8, [x8, _B2_MAC_CFG@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	sxtb	w8, w0
Lloh53:
	adrp	x9, _CFG_SNG_MAC@GOTPAGE
Lloh54:
	ldr	x9, [x9, _CFG_SNG_MAC@GOTPAGEOFF]
Lloh55:
	ldrsb	w9, [x9]
	tst	w8, w9
	mov	w9, #1
	cinc	w9, w9, eq
	str	w9, [x19, #12]
Lloh56:
	adrp	x9, _CFG_CHIP_R_MSK@GOTPAGE
Lloh57:
	ldr	x9, [x9, _CFG_CHIP_R_MSK@GOTPAGEOFF]
Lloh58:
	ldrsb	w9, [x9]
	and	w8, w8, w9
	lsr	w8, w8, #4
	strb	w8, [x19, #16]
Lloh59:
	adrp	x8, _B2_E_0@GOTPAGE
Lloh60:
	ldr	x8, [x8, _B2_E_0@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read8
	ldr	w9, [x19]
	lsl	w8, w0, #24
	cmp	w9, #133
	b.ne	LBB0_11
; %bb.5:
	mov	w9, #50331648
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.6:
	mov	w8, #524288
	str	w8, [x19, #24]
	mov	w8, #1048576
	b	LBB0_19
LBB0_7:
	cmp	w2, #133
	b.ne	LBB0_17
; %bb.8:
	ldr	w2, [x19, #4]
	cmp	w2, #128
	b.eq	LBB0_32
; %bb.9:
	cmp	w2, #129
	b.ne	LBB0_33
; %bb.10:
Lloh62:
	adrp	x8, _PHY_ADDR_BCOM@GOTPAGE
Lloh63:
	ldr	x8, [x8, _PHY_ADDR_BCOM@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	asr	w9, w8, #12
	mov	w10, #131072
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19, #20]
Lloh64:
	adrp	x20, _IS_HW_ERR@GOTPAGE
Lloh65:
	ldr	x20, [x20, _IS_HW_ERR@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh66:
	adrp	x9, _IS_EXT_REG@GOTPAGE
Lloh67:
	ldr	x9, [x9, _IS_EXT_REG@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #28]
Lloh69:
	adrp	x8, _B0_POWER_CTRL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _B0_POWER_CTRL@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _PC_VAUX_ENA@GOTPAGE
Lloh73:
	ldr	x8, [x8, _PC_VAUX_ENA@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _PC_VCC_ENA@GOTPAGE
Lloh76:
	ldr	x9, [x9, _PC_VCC_ENA@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh78:
	adrp	x9, _PC_VAUX_OFF@GOTPAGE
Lloh79:
	ldr	x9, [x9, _PC_VAUX_OFF@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh81:
	adrp	x9, _PC_VCC_ON@GOTPAGE
Lloh82:
	ldr	x9, [x9, _PC_VCC_ON@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_skge_write8
Lloh84:
	adrp	x8, _B0_ISRC@GOTPAGE
Lloh85:
	ldr	x8, [x8, _B0_ISRC@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.12:
Lloh87:
	adrp	x8, _B0_HWE_ISRC@GOTPAGE
Lloh88:
	ldr	x8, [x8, _B0_HWE_ISRC@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skge_read32
Lloh90:
	adrp	x8, _IS_IRQ_SENSOR@GOTPAGE
Lloh91:
	ldr	x8, [x8, _IS_IRQ_SENSOR@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19, #32]
Lloh93:
	adrp	x1, l_.str.2@PAGE
Lloh94:
	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_14:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_skge_write8
	ldr	x0, [x19, #32]
Lloh95:
	adrp	x20, _PCI_DEV_REG1@GOTPAGE
Lloh96:
	ldr	x20, [x20, _PCI_DEV_REG1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_dword
Lloh97:
	adrp	x8, _PCI_PHY_COMA@GOTPAGE
Lloh98:
	ldr	x8, [x8, _PCI_PHY_COMA@GOTPAGEOFF]
Lloh99:
	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_22
; %bb.15:
	mov	w20, #0
Lloh100:
	adrp	x21, _GMAC_LINK_CTRL@GOTPAGE
Lloh101:
	ldr	x21, [x21, _GMAC_LINK_CTRL@GOTPAGEOFF]
Lloh102:
	adrp	x22, _GMLC_RST_SET@GOTPAGE
Lloh103:
	ldr	x22, [x22, _GMLC_RST_SET@GOTPAGEOFF]
Lloh104:
	adrp	x23, _GMLC_RST_CLR@GOTPAGE
Lloh105:
	ldr	x23, [x23, _GMLC_RST_CLR@GOTPAGEOFF]
LBB0_16:                                ; =>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_16
	b	LBB0_22
LBB0_17:
	ldr	x0, [x19, #32]
Lloh106:
	adrp	x1, l_.str.1@PAGE
Lloh107:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_18:
	asr	w8, w8, #15
LBB0_19:
	str	w8, [x19, #20]
Lloh108:
	adrp	x8, _IS_HW_ERR@GOTPAGE
Lloh109:
	ldr	x8, [x8, _IS_HW_ERR@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	w9, [x19, #4]
	cmp	w9, #128
	b.eq	LBB0_21
; %bb.20:
Lloh111:
	adrp	x9, _IS_EXT_REG@GOTPAGE
Lloh112:
	ldr	x9, [x9, _IS_EXT_REG@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #28]
LBB0_21:
	mov	x0, x19
	bl	_genesis_init
LBB0_22:
Lloh114:
	adrp	x20, _B2_TI_CTRL@GOTPAGE
Lloh115:
	ldr	x20, [x20, _B2_TI_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh116:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh117:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
Lloh118:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w1, [x20]
Lloh119:
	adrp	x8, _TIM_CLR_IRQ@GOTPAGE
Lloh120:
	ldr	x8, [x8, _TIM_CLR_IRQ@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
Lloh122:
	adrp	x8, _B0_LED@GOTPAGE
Lloh123:
	ldr	x8, [x8, _B0_LED@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
Lloh125:
	adrp	x8, _LED_STAT_ON@GOTPAGE
Lloh126:
	ldr	x8, [x8, _LED_STAT_ON@GOTPAGEOFF]
Lloh127:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	mov	w20, #0
Lloh128:
	adrp	x21, _TXA_CTRL@GOTPAGE
Lloh129:
	ldr	x21, [x21, _TXA_CTRL@GOTPAGEOFF]
Lloh130:
	adrp	x22, _TXA_ENA_ARB@GOTPAGE
Lloh131:
	ldr	x22, [x22, _TXA_ENA_ARB@GOTPAGEOFF]
LBB0_24:                                ; =>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_24
LBB0_25:
Lloh132:
	adrp	x8, _B3_RI_CTRL@GOTPAGE
Lloh133:
	ldr	x8, [x8, _B3_RI_CTRL@GOTPAGEOFF]
Lloh134:
	ldr	w1, [x8]
Lloh135:
	adrp	x8, _RI_RST_CLR@GOTPAGE
Lloh136:
	ldr	x8, [x8, _RI_RST_CLR@GOTPAGEOFF]
Lloh137:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write16
Lloh138:
	adrp	x8, _B3_RI_WTO_R1@GOTPAGE
Lloh139:
	ldr	x8, [x8, _B3_RI_WTO_R1@GOTPAGEOFF]
Lloh140:
	ldr	w1, [x8]
Lloh141:
	adrp	x20, _SK_RI_TO_53@GOTPAGE
Lloh142:
	ldr	x20, [x20, _SK_RI_TO_53@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh143:
	adrp	x8, _B3_RI_WTO_XA1@GOTPAGE
Lloh144:
	ldr	x8, [x8, _B3_RI_WTO_XA1@GOTPAGEOFF]
Lloh145:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh146:
	adrp	x8, _B3_RI_WTO_XS1@GOTPAGE
Lloh147:
	ldr	x8, [x8, _B3_RI_WTO_XS1@GOTPAGEOFF]
Lloh148:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh149:
	adrp	x8, _B3_RI_RTO_R1@GOTPAGE
Lloh150:
	ldr	x8, [x8, _B3_RI_RTO_R1@GOTPAGEOFF]
Lloh151:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh152:
	adrp	x8, _B3_RI_RTO_XA1@GOTPAGE
Lloh153:
	ldr	x8, [x8, _B3_RI_RTO_XA1@GOTPAGEOFF]
Lloh154:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh155:
	adrp	x8, _B3_RI_RTO_XS1@GOTPAGE
Lloh156:
	ldr	x8, [x8, _B3_RI_RTO_XS1@GOTPAGEOFF]
Lloh157:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh158:
	adrp	x8, _B3_RI_WTO_R2@GOTPAGE
Lloh159:
	ldr	x8, [x8, _B3_RI_WTO_R2@GOTPAGEOFF]
Lloh160:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh161:
	adrp	x8, _B3_RI_WTO_XA2@GOTPAGE
Lloh162:
	ldr	x8, [x8, _B3_RI_WTO_XA2@GOTPAGEOFF]
Lloh163:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh164:
	adrp	x8, _B3_RI_WTO_XS2@GOTPAGE
Lloh165:
	ldr	x8, [x8, _B3_RI_WTO_XS2@GOTPAGEOFF]
Lloh166:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh167:
	adrp	x8, _B3_RI_RTO_R2@GOTPAGE
Lloh168:
	ldr	x8, [x8, _B3_RI_RTO_R2@GOTPAGEOFF]
Lloh169:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh170:
	adrp	x8, _B3_RI_RTO_XA2@GOTPAGE
Lloh171:
	ldr	x8, [x8, _B3_RI_RTO_XA2@GOTPAGEOFF]
Lloh172:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh173:
	adrp	x8, _B3_RI_RTO_XS2@GOTPAGE
Lloh174:
	ldr	x8, [x8, _B3_RI_RTO_XS2@GOTPAGEOFF]
Lloh175:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_skge_write8
Lloh176:
	adrp	x8, _B0_HWE_IMSK@GOTPAGE
Lloh177:
	ldr	x8, [x8, _B0_HWE_IMSK@GOTPAGEOFF]
Lloh178:
	ldr	w1, [x8]
Lloh179:
	adrp	x8, _IS_ERR_MSK@GOTPAGE
Lloh180:
	ldr	x8, [x8, _IS_ERR_MSK@GOTPAGEOFF]
Lloh181:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write32
Lloh182:
	adrp	x8, _B2_IRQM_MSK@GOTPAGE
Lloh183:
	ldr	x8, [x8, _B2_IRQM_MSK@GOTPAGEOFF]
Lloh184:
	adrp	x9, _IS_XA1_F@GOTPAGE
Lloh185:
	ldr	x9, [x9, _IS_XA1_F@GOTPAGEOFF]
Lloh186:
	ldr	w1, [x8]
Lloh187:
	ldr	w8, [x9]
Lloh188:
	adrp	x9, _IS_XA2_F@GOTPAGE
Lloh189:
	ldr	x9, [x9, _IS_XA2_F@GOTPAGEOFF]
Lloh190:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_skge_write32
Lloh191:
	adrp	x8, _B2_IRQM_INI@GOTPAGE
Lloh192:
	ldr	x8, [x8, _B2_IRQM_INI@GOTPAGEOFF]
Lloh193:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #100
	bl	_skge_usecs2clk
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_skge_write32
Lloh194:
	adrp	x8, _B2_IRQM_CTRL@GOTPAGE
Lloh195:
	ldr	x8, [x8, _B2_IRQM_CTRL@GOTPAGEOFF]
Lloh196:
	ldr	w1, [x8]
Lloh197:
	adrp	x8, _TIM_START@GOTPAGE
Lloh198:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
Lloh199:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write32
Lloh200:
	adrp	x8, _B0_IMSK@GOTPAGE
Lloh201:
	ldr	x8, [x8, _B0_IMSK@GOTPAGEOFF]
Lloh202:
	ldr	w1, [x8]
	ldr	w2, [x19, #28]
	mov	x0, x19
	bl	_skge_write32
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.26:
	mov	w20, #0
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	bl	_yukon_reset
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.ge	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	cmp	w8, #133
	b.ne	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	bl	_genesis_reset
	b	LBB0_28
LBB0_31:
	mov	w0, #0
	b	LBB0_35
LBB0_32:
Lloh203:
	adrp	x8, _PHY_ADDR_XMAC@GOTPAGE
Lloh204:
	ldr	x8, [x8, _PHY_ADDR_XMAC@GOTPAGEOFF]
	b	LBB0_4
LBB0_33:
	ldr	x0, [x19, #32]
Lloh205:
	adrp	x1, l_.str@PAGE
Lloh206:
	add	x1, x1, l_.str@PAGEOFF
LBB0_34:
	bl	_dev_err
Lloh207:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh208:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh209:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_35:
	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 AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh130, Lloh131
	.loh AdrpLdrGot	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh200, Lloh201, Lloh202
	.loh AdrpLdrGotLdr	Lloh197, Lloh198, Lloh199
	.loh AdrpLdrGotLdr	Lloh194, Lloh195, Lloh196
	.loh AdrpLdrGotLdr	Lloh191, Lloh192, Lloh193
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh187
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh186
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh173, Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGot	Lloh203, Lloh204
	.loh AdrpAdd	Lloh205, Lloh206
	.loh AdrpLdrGotLdr	Lloh207, Lloh208, Lloh209
	.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
	.comm	_PHY_ADDR_XMAC,4,2              ; @PHY_ADDR_XMAC
	.comm	_PHY_ADDR_BCOM,4,2              ; @PHY_ADDR_BCOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported phy type 0x%x\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
	.no_dead_strip	_skge_reset
.subsections_via_symbols
