	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_check_invariants
_cas_check_invariants:                  ## @cas_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, %r15
	movq	56(%rdi), %rbx
	movl	$0, (%rdi)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_REG_TX_FIFO_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r15), %rdi
	callq	_readl
	shll	$6, %eax
	movl	%eax, 8(%r15)
	movq	_RX_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	40(%r15), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_PCI_SLOT
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_cas_get_vpd_info
	movl	%eax, 12(%r15)
	movq	_CAS_PHY_SERDES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CAS_FLAG_1000MB_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_REG_MIF_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r15), %rdi
	callq	_readl
	movq	_MIF_CFG_MDIO_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CAS_PHY_MII_MDIO1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_MIF_CFG_MDIO_0@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_CAS_PHY_MII_MDIO0@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_7:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cas_mif_poll
	movq	_PCS_DATAPATH_MODE_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_PCS_DATAPATH_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r15), %rsi
	callq	_writel
	movq	_MII_PHYSID1@GOTPCREL(%rip), %r12
	movq	_MII_PHYSID2@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, 16(%r15)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
                                        ## kill: def $eax killed $eax def $rax
	orl	%ebx, %eax
	leal	-1(%rax), %ecx
	cmpl	$-2, %ecx
	jb	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, 16(%r15)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
                                        ## kill: def $eax killed $eax def $rax
	orl	%ebx, %eax
	leal	-1(%rax), %ecx
	cmpl	$-2, %ecx
	jb	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, 16(%r15)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
                                        ## kill: def $eax killed $eax def $rax
	orl	%ebx, %eax
	leal	-1(%rax), %ecx
	cmpl	$-2, %ecx
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
	cmpl	$32, %r14d
	jne	LBB0_8
## %bb.12:
	movq	_REG_MIF_STATE_MACHINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r15), %rdi
	callq	_readl
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	$-1, %r14d
	jmp	LBB0_16
LBB0_13:
	movl	%eax, 20(%r15)
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
	movq	_CAS_BMSR_1000_EXTEND@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.14:
	movq	_CAS_MII_1000_EXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cas_phy_read
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_CAS_FLAG_1000MB_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_REG_TX_FIFO_SIZE,8,3           ## @REG_TX_FIFO_SIZE
	.comm	_RX_FIFO_SIZE,4,2               ## @RX_FIFO_SIZE
	.comm	_CAS_PHY_SERDES,4,2             ## @CAS_PHY_SERDES
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ## @CAS_FLAG_1000MB_CAP
	.comm	_REG_MIF_CFG,8,3                ## @REG_MIF_CFG
	.comm	_MIF_CFG_MDIO_1,4,2             ## @MIF_CFG_MDIO_1
	.comm	_CAS_PHY_MII_MDIO1,4,2          ## @CAS_PHY_MII_MDIO1
	.comm	_MIF_CFG_MDIO_0,4,2             ## @MIF_CFG_MDIO_0
	.comm	_CAS_PHY_MII_MDIO0,4,2          ## @CAS_PHY_MII_MDIO0
	.comm	_PCS_DATAPATH_MODE_MII,4,2      ## @PCS_DATAPATH_MODE_MII
	.comm	_REG_PCS_DATAPATH_MODE,8,3      ## @REG_PCS_DATAPATH_MODE
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MII phy did not respond [%08x]\n"

	.comm	_REG_MIF_STATE_MACHINE,8,3      ## @REG_MIF_STATE_MACHINE
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_CAS_BMSR_1000_EXTEND,4,2       ## @CAS_BMSR_1000_EXTEND
	.comm	_CAS_MII_1000_EXTEND,4,2        ## @CAS_MII_1000_EXTEND
	.comm	_CAS_JUMBO_PAGE_SHIFT,8,3       ## @CAS_JUMBO_PAGE_SHIFT
	.comm	_CAS_MAX_MTU,4,2                ## @CAS_MAX_MTU
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.no_dead_strip	_cas_check_invariants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_check_invariants
_cas_check_invariants:                  ; @cas_check_invariants
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, [x0, #56]
	str	wzr, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	x8, [x0, #32]
Lloh3:
	adrp	x9, _REG_TX_FIFO_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_TX_FIFO_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	lsl	w8, w0, #6
Lloh6:
	adrp	x9, _RX_FIFO_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RX_FIFO_SIZE@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x19, #48]
	ldr	x8, [x19, #40]
	ldr	w20, [x8]
	ldr	w0, [x21]
	bl	_PCI_SLOT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cas_get_vpd_info
	str	w0, [x19, #12]
Lloh9:
	adrp	x8, _CAS_PHY_SERDES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAS_PHY_SERDES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
Lloh12:
	adrp	x8, _CAS_FLAG_1000MB_CAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAS_FLAG_1000MB_CAP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #32]
Lloh15:
	adrp	x9, _REG_MIF_CFG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _REG_MIF_CFG@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh18:
	adrp	x8, _MIF_CFG_MDIO_1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MIF_CFG_MDIO_1@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _CAS_PHY_MII_MDIO1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAS_PHY_MII_MDIO1@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh23:
	adrp	x8, _MIF_CFG_MDIO_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MIF_CFG_MDIO_0@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
Lloh26:
	adrp	x8, _CAS_PHY_MII_MDIO0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CAS_PHY_MII_MDIO0@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_cas_mif_poll
Lloh28:
	adrp	x8, _PCS_DATAPATH_MODE_MII@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCS_DATAPATH_MODE_MII@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
Lloh31:
	adrp	x9, _REG_PCS_DATAPATH_MODE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _REG_PCS_DATAPATH_MODE@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w21, #0
Lloh34:
	adrp	x22, _MII_PHYSID1@GOTPAGE
Lloh35:
	ldr	x22, [x22, _MII_PHYSID1@GOTPAGEOFF]
Lloh36:
	adrp	x23, _MII_PHYSID2@GOTPAGE
Lloh37:
	ldr	x23, [x23, _MII_PHYSID2@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [x19, #16]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cas_phy_read
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cas_phy_read
	orr	w8, w0, w20, lsl #16
	sub	w9, w8, #1
	cmn	w9, #2
	b.lo	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w21, [x19, #16]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cas_phy_read
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cas_phy_read
	orr	w8, w0, w20, lsl #16
	sub	w9, w8, #1
	cmn	w9, #2
	b.lo	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w21, [x19, #16]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cas_phy_read
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cas_phy_read
	orr	w8, w0, w20, lsl #16
	sub	w9, w8, #1
	cmn	w9, #2
	b.lo	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w21, #1
	cmp	w21, #32
	b.ne	LBB0_9
; %bb.13:
	ldr	x8, [x19, #32]
Lloh38:
	adrp	x9, _REG_MIF_STATE_MACHINE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _REG_MIF_STATE_MACHINE@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x1, x0
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
	b	LBB0_2
LBB0_14:
	str	w8, [x19, #20]
Lloh43:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cas_phy_read
Lloh46:
	adrp	x8, _CAS_BMSR_1000_EXTEND@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CAS_BMSR_1000_EXTEND@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.15:
Lloh49:
	adrp	x8, _CAS_MII_1000_EXTEND@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CAS_MII_1000_EXTEND@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cas_phy_read
	cbnz	w0, LBB0_1
	b	LBB0_2
LBB0_16:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_REG_TX_FIFO_SIZE,8,3           ; @REG_TX_FIFO_SIZE
	.comm	_RX_FIFO_SIZE,4,2               ; @RX_FIFO_SIZE
	.comm	_CAS_PHY_SERDES,4,2             ; @CAS_PHY_SERDES
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ; @CAS_FLAG_1000MB_CAP
	.comm	_REG_MIF_CFG,8,3                ; @REG_MIF_CFG
	.comm	_MIF_CFG_MDIO_1,4,2             ; @MIF_CFG_MDIO_1
	.comm	_CAS_PHY_MII_MDIO1,4,2          ; @CAS_PHY_MII_MDIO1
	.comm	_MIF_CFG_MDIO_0,4,2             ; @MIF_CFG_MDIO_0
	.comm	_CAS_PHY_MII_MDIO0,4,2          ; @CAS_PHY_MII_MDIO0
	.comm	_PCS_DATAPATH_MODE_MII,4,2      ; @PCS_DATAPATH_MODE_MII
	.comm	_REG_PCS_DATAPATH_MODE,8,3      ; @REG_PCS_DATAPATH_MODE
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MII phy did not respond [%08x]\n"

	.comm	_REG_MIF_STATE_MACHINE,8,3      ; @REG_MIF_STATE_MACHINE
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_CAS_BMSR_1000_EXTEND,4,2       ; @CAS_BMSR_1000_EXTEND
	.comm	_CAS_MII_1000_EXTEND,4,2        ; @CAS_MII_1000_EXTEND
	.comm	_CAS_JUMBO_PAGE_SHIFT,8,3       ; @CAS_JUMBO_PAGE_SHIFT
	.comm	_CAS_MAX_MTU,4,2                ; @CAS_MAX_MTU
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.no_dead_strip	_cas_check_invariants
.subsections_via_symbols
