	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_check_invariants
_gem_check_invariants:                  ## @gem_check_invariants
	.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, %r13
	movq	40(%rdi), %r14
	movq	(%r14), %rax
	movq	_PCI_VENDOR_ID_APPLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_TXDMA_FSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	shll	$6, %eax
	movl	%eax, 8(%r13)
	movq	_RXDMA_FSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	shll	$6, %eax
	movl	%eax, 12(%r13)
	movl	$0, 16(%r13)
	movq	_MIF_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	movq	_MIF_CFG_PSELECT@GOTPCREL(%rip), %rcx
	movq	_MIF_CFG_POLL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_MIF_CFG_BBMODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_MIF_CFG_MDI1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_MIF_CFG_MDI0@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	24(%r13), %rsi
	callq	_writel
	movq	_PCS_DMODE_MGM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCS_DMODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r13), %rsi
	callq	_writel
	movq	_MAC_XIFCFG_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAC_XIFCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r13), %rsi
	callq	_writel
	movq	40(%r13), %rax
	movq	8(%rax), %rax
	movq	_PCI_DEVICE_ID_APPLE_K2_GMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movl	$1, 20(%r13)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_3:
	movq	_MIF_CFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	movq	(%r14), %rcx
	movq	_PCI_VENDOR_ID_SUN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_6
## %bb.4:
	movq	8(%r14), %rcx
	movq	_PCI_DEVICE_ID_SUN_RIO_GEM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_MIF_CFG_MDI0@GOTPCREL(%rip), %rcx
	movq	_MIF_CFG_MDI1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_31
LBB0_6:
	movq	_MIF_CFG_MDI1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_phy_mii_mdio1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r13)
	movq	_MIF_CFG_PSELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	%eax, %edi
	movq	(%r12), %rsi
	addq	24(%r13), %rsi
	callq	_writel
	jmp	LBB0_12
LBB0_8:
	movl	$0, 20(%r13)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_9:
	movq	_MIF_CFG_MDI0@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r13)
	movq	_MIF_CFG_PSELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	(%r12), %rsi
	addq	24(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	jmp	LBB0_12
LBB0_11:
	movq	_phy_serialink@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_12:
	movq	(%r13), %rax
	movq	_phy_mii_mdio1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_14:
	xorl	%ebx, %ebx
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, 20(%r13)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_sungem_phy_read
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	jne	LBB0_15
## %bb.17:
	movq	8(%r14), %rax
	movq	_PCI_DEVICE_ID_SUN_GEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.18:
	movq	_phy_serdes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_19:
	movq	_TXDMA_FSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	shll	$6, %eax
	movl	%eax, 8(%r13)
	movq	_RXDMA_FSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	movl	%eax, %ecx
	movl	%eax, %edx
	shll	$6, %edx
	movl	%edx, 12(%r13)
	movq	(%r14), %rsi
	xorl	%eax, %eax
	cmpq	(%r15), %rsi
	jne	LBB0_33
## %bb.20:
	movq	8(%r14), %rdi
	movq	_PCI_DEVICE_ID_SUN_GEM@GOTPCREL(%rip), %rbx
	movl	8(%r13), %esi
	cmpq	(%rbx), %rdi
	jne	LBB0_24
## %bb.21:
	cmpl	$9216, %esi                     ## imm = 0x2400
	jne	LBB0_28
## %bb.22:
	cmpl	$320, %ecx                      ## imm = 0x140
	jne	LBB0_28
## %bb.23:
	movl	$0, 16(%r13)
	jmp	LBB0_33
LBB0_24:
	cmpl	$2048, %esi                     ## imm = 0x800
	jne	LBB0_29
## %bb.25:
	cmpl	$32, %ecx
	jne	LBB0_29
## %bb.26:
	movq	_GREG_SWRST_CACHE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$16, %edx
	shll	%cl, %edx
	movl	%edx, 16(%r13)
	jmp	LBB0_33
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_32
LBB0_28:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.3(%rip), %rdi
LBB0_30:
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_32:
	movl	$-1, %eax
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_APPLE,8,3        ## @PCI_VENDOR_ID_APPLE
	.comm	_phy_mii_mdio0,8,3              ## @phy_mii_mdio0
	.comm	_TXDMA_FSZ,8,3                  ## @TXDMA_FSZ
	.comm	_RXDMA_FSZ,8,3                  ## @RXDMA_FSZ
	.comm	_MIF_CFG,8,3                    ## @MIF_CFG
	.comm	_MIF_CFG_PSELECT,4,2            ## @MIF_CFG_PSELECT
	.comm	_MIF_CFG_POLL,4,2               ## @MIF_CFG_POLL
	.comm	_MIF_CFG_BBMODE,4,2             ## @MIF_CFG_BBMODE
	.comm	_MIF_CFG_MDI1,4,2               ## @MIF_CFG_MDI1
	.comm	_MIF_CFG_MDI0,4,2               ## @MIF_CFG_MDI0
	.comm	_PCS_DMODE_MGM,4,2              ## @PCS_DMODE_MGM
	.comm	_PCS_DMODE,8,3                  ## @PCS_DMODE
	.comm	_MAC_XIFCFG_OE,4,2              ## @MAC_XIFCFG_OE
	.comm	_MAC_XIFCFG,8,3                 ## @MAC_XIFCFG
	.comm	_PCI_DEVICE_ID_APPLE_K2_GMAC,8,3 ## @PCI_DEVICE_ID_APPLE_K2_GMAC
	.comm	_PCI_VENDOR_ID_SUN,8,3          ## @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SUN_RIO_GEM,8,3  ## @PCI_DEVICE_ID_SUN_RIO_GEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RIO GEM lacks MII phy, mif_cfg[%08x]\n"

	.comm	_phy_mii_mdio1,8,3              ## @phy_mii_mdio1
	.comm	_phy_serialink,8,3              ## @phy_serialink
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_PCI_DEVICE_ID_SUN_GEM,8,3      ## @PCI_DEVICE_ID_SUN_GEM
L_.str.1:                               ## @.str.1
	.asciz	"RIO MII phy will not respond\n"

	.comm	_phy_serdes,8,3                 ## @phy_serdes
L_.str.2:                               ## @.str.2
	.asciz	"GEM has bogus fifo sizes tx(%d) rx(%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"RIO GEM has bogus fifo sizes tx(%d) rx(%d)\n"

	.comm	_GREG_SWRST_CACHE_SHIFT,4,2     ## @GREG_SWRST_CACHE_SHIFT
	.no_dead_strip	_gem_check_invariants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_check_invariants
_gem_check_invariants:                  ; @gem_check_invariants
	.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
	ldr	x20, [x0, #40]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_APPLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_APPLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _phy_mii_mdio0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _phy_mii_mdio0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _TXDMA_FSZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXDMA_FSZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	lsl	w8, w0, #6
	str	w8, [x19, #8]
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _RXDMA_FSZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RXDMA_FSZ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	lsl	w8, w0, #6
	stp	w8, wzr, [x19, #12]
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x20, _MIF_CFG@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MIF_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _MIF_CFG_PSELECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MIF_CFG_PSELECT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MIF_CFG_POLL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MIF_CFG_POLL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _MIF_CFG_BBMODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MIF_CFG_BBMODE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _MIF_CFG_MDI1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MIF_CFG_MDI1@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _MIF_CFG_MDI0@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MIF_CFG_MDI0@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh28:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh29:
	adrp	x8, _PCS_DMODE_MGM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCS_DMODE_MGM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
Lloh32:
	adrp	x9, _PCS_DMODE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PCS_DMODE@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh35:
	adrp	x8, _MAC_XIFCFG_OE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAC_XIFCFG_OE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
Lloh38:
	adrp	x9, _MAC_XIFCFG@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MAC_XIFCFG@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
Lloh41:
	adrp	x9, _PCI_DEVICE_ID_APPLE_K2_GMAC@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PCI_DEVICE_ID_APPLE_K2_GMAC@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #20]
	b	LBB0_34
LBB0_3:
	ldr	x8, [x19, #24]
Lloh44:
	adrp	x22, _MIF_CFG@GOTPAGE
Lloh45:
	ldr	x22, [x22, _MIF_CFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x9, [x20]
Lloh46:
	adrp	x21, _PCI_VENDOR_ID_SUN@GOTPAGE
Lloh47:
	ldr	x21, [x21, _PCI_VENDOR_ID_SUN@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh48:
	adrp	x8, _MIF_CFG_MDI1@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MIF_CFG_MDI1@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x20, #8]
Lloh50:
	adrp	x10, _PCI_DEVICE_ID_SUN_RIO_GEM@GOTPAGE
Lloh51:
	ldr	x10, [x10, _PCI_DEVICE_ID_SUN_RIO_GEM@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
Lloh53:
	adrp	x9, _MIF_CFG_MDI0@GOTPAGE
Lloh54:
	ldr	x9, [x9, _MIF_CFG_MDI0@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	tst	w9, w0
	b.eq	LBB0_32
LBB0_6:
	ldr	w8, [x8]
Lloh56:
	adrp	x24, _phy_mii_mdio1@GOTPAGE
Lloh57:
	ldr	x24, [x24, _phy_mii_mdio1@GOTPAGEOFF]
Lloh58:
	adrp	x23, _phy_mii_mdio0@GOTPAGE
Lloh59:
	ldr	x23, [x23, _phy_mii_mdio0@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x24]
Lloh60:
	adrp	x9, _MIF_CFG_PSELECT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _MIF_CFG_PSELECT@GOTPAGEOFF]
	str	x8, [x19]
Lloh62:
	ldr	w8, [x9]
	orr	w0, w8, w0
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	str	wzr, [x19, #20]
	b	LBB0_34
LBB0_9:
Lloh63:
	adrp	x8, _MIF_CFG_MDI0@GOTPAGE
Lloh64:
	ldr	x8, [x8, _MIF_CFG_MDI0@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_28
; %bb.10:
	ldr	x8, [x23]
Lloh66:
	adrp	x9, _MIF_CFG_PSELECT@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MIF_CFG_PSELECT@GOTPAGEOFF]
	str	x8, [x19]
Lloh68:
	ldr	w8, [x9]
	bic	w0, w0, w8
LBB0_11:
	ldr	x8, [x19, #24]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
LBB0_12:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_14:
	mov	w22, #0
Lloh69:
	adrp	x23, _MII_BMCR@GOTPAGE
Lloh70:
	ldr	x23, [x23, _MII_BMCR@GOTPAGEOFF]
	mov	w24, #65535
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	str	w22, [x19, #20]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sungem_phy_read
	cmp	w0, w24
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w22, w22, #1
	cmp	w22, #32
	b.ne	LBB0_15
; %bb.17:
	ldr	x8, [x20, #8]
Lloh71:
	adrp	x9, _PCI_DEVICE_ID_SUN_GEM@GOTPAGE
Lloh72:
	ldr	x9, [x9, _PCI_DEVICE_ID_SUN_GEM@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.18:
Lloh74:
	adrp	x8, _phy_serdes@GOTPAGE
Lloh75:
	ldr	x8, [x8, _phy_serdes@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_19:
	ldr	x8, [x19, #24]
Lloh77:
	adrp	x9, _TXDMA_FSZ@GOTPAGE
Lloh78:
	ldr	x9, [x9, _TXDMA_FSZ@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	lsl	w8, w0, #6
	str	w8, [x19, #8]
	ldr	x8, [x19, #24]
Lloh80:
	adrp	x9, _RXDMA_FSZ@GOTPAGE
Lloh81:
	ldr	x9, [x9, _RXDMA_FSZ@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	lsl	w8, w0, #6
	str	w8, [x19, #12]
	ldr	x9, [x20]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_24
; %bb.20:
	ldr	x10, [x20, #8]
Lloh83:
	adrp	x9, _PCI_DEVICE_ID_SUN_GEM@GOTPAGE
Lloh84:
	ldr	x9, [x9, _PCI_DEVICE_ID_SUN_GEM@GOTPAGEOFF]
Lloh85:
	ldr	x11, [x9]
	ldr	w9, [x19, #8]
	cmp	x10, x11
	b.ne	LBB0_25
; %bb.21:
	mov	w10, #9216
	cmp	w9, w10
	b.ne	LBB0_30
; %bb.22:
	cmp	w0, #320
	b.ne	LBB0_30
; %bb.23:
	mov	w0, #0
	str	wzr, [x19, #16]
	b	LBB0_34
LBB0_24:
	mov	w0, #0
	b	LBB0_34
LBB0_25:
	cmp	w9, #2048
	b.ne	LBB0_31
; %bb.26:
	cmp	w0, #32
	b.ne	LBB0_31
; %bb.27:
	mov	w0, #0
Lloh86:
	adrp	x8, _GREG_SWRST_CACHE_SHIFT@GOTPAGE
Lloh87:
	ldr	x8, [x8, _GREG_SWRST_CACHE_SHIFT@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	mov	w9, #16
	lsl	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_34
LBB0_28:
Lloh89:
	adrp	x8, _phy_serialink@GOTPAGE
Lloh90:
	ldr	x8, [x8, _phy_serialink@GOTPAGEOFF]
Lloh91:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_12
LBB0_29:
Lloh92:
	adrp	x0, l_.str.1@PAGE
Lloh93:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_30:
	stp	x9, x8, [sp]
Lloh94:
	adrp	x0, l_.str.2@PAGE
Lloh95:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_31:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh96:
	adrp	x0, l_.str.3@PAGE
Lloh97:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_32:
	str	x0, [sp]
Lloh98:
	adrp	x0, l_.str@PAGE
Lloh99:
	add	x0, x0, l_.str@PAGEOFF
LBB0_33:
	bl	_pr_err
	mov	w0, #-1
LBB0_34:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_APPLE,8,3        ; @PCI_VENDOR_ID_APPLE
	.comm	_phy_mii_mdio0,8,3              ; @phy_mii_mdio0
	.comm	_TXDMA_FSZ,8,3                  ; @TXDMA_FSZ
	.comm	_RXDMA_FSZ,8,3                  ; @RXDMA_FSZ
	.comm	_MIF_CFG,8,3                    ; @MIF_CFG
	.comm	_MIF_CFG_PSELECT,4,2            ; @MIF_CFG_PSELECT
	.comm	_MIF_CFG_POLL,4,2               ; @MIF_CFG_POLL
	.comm	_MIF_CFG_BBMODE,4,2             ; @MIF_CFG_BBMODE
	.comm	_MIF_CFG_MDI1,4,2               ; @MIF_CFG_MDI1
	.comm	_MIF_CFG_MDI0,4,2               ; @MIF_CFG_MDI0
	.comm	_PCS_DMODE_MGM,4,2              ; @PCS_DMODE_MGM
	.comm	_PCS_DMODE,8,3                  ; @PCS_DMODE
	.comm	_MAC_XIFCFG_OE,4,2              ; @MAC_XIFCFG_OE
	.comm	_MAC_XIFCFG,8,3                 ; @MAC_XIFCFG
	.comm	_PCI_DEVICE_ID_APPLE_K2_GMAC,8,3 ; @PCI_DEVICE_ID_APPLE_K2_GMAC
	.comm	_PCI_VENDOR_ID_SUN,8,3          ; @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SUN_RIO_GEM,8,3  ; @PCI_DEVICE_ID_SUN_RIO_GEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RIO GEM lacks MII phy, mif_cfg[%08x]\n"

	.comm	_phy_mii_mdio1,8,3              ; @phy_mii_mdio1
	.comm	_phy_serialink,8,3              ; @phy_serialink
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_PCI_DEVICE_ID_SUN_GEM,8,3      ; @PCI_DEVICE_ID_SUN_GEM
l_.str.1:                               ; @.str.1
	.asciz	"RIO MII phy will not respond\n"

	.comm	_phy_serdes,8,3                 ; @phy_serdes
l_.str.2:                               ; @.str.2
	.asciz	"GEM has bogus fifo sizes tx(%d) rx(%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"RIO GEM has bogus fifo sizes tx(%d) rx(%d)\n"

	.comm	_GREG_SWRST_CACHE_SHIFT,4,2     ; @GREG_SWRST_CACHE_SHIFT
	.no_dead_strip	_gem_check_invariants
.subsections_via_symbols
