	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_global_reset
_cas_global_reset:                      ## @cas_global_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
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	12(%r15), %edi
	callq	_CAS_PHY_MII
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_SW_RESET_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SW_RESET_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SW_RESET_TX@GOTPCREL(%rip), %rax
	movq	_SW_RESET_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SW_RESET_BLOCK_PCS_SLINK@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %edi
	movq	_REG_SW_RESET@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movl	$3, %edi
	callq	_mdelay
	movq	_STOP_TRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.5:
	incl	%ebx
	movq	_SW_RESET_TX@GOTPCREL(%rip), %r12
	movq	_SW_RESET_RX@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_6
LBB0_8:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_9:
	movq	_BIM_CFG_DPAR_INTR_ENABLE@GOTPCREL(%rip), %rax
	movq	_BIM_CFG_RMA_INTR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_BIM_CFG_RTA_INTR_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_REG_BIM_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	_PCI_ERR_BADACK@GOTPCREL(%rip), %rax
	movq	_PCI_ERR_DTRTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_PCI_ERR_OTHER@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PCI_ERR_BIM_DMA_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PCI_ERR_BIM_DMA_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	notl	%edi
	movq	_REG_PCI_ERR_STATUS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	_PCS_DATAPATH_MODE_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_PCS_DATAPATH_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SW_RESET_TX,4,2                ## @SW_RESET_TX
	.comm	_SW_RESET_RX,4,2                ## @SW_RESET_RX
	.comm	_SW_RESET_BLOCK_PCS_SLINK,4,2   ## @SW_RESET_BLOCK_PCS_SLINK
	.comm	_REG_SW_RESET,8,3               ## @REG_SW_RESET
	.comm	_STOP_TRIES,4,2                 ## @STOP_TRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sw reset failed\n"

	.comm	_BIM_CFG_DPAR_INTR_ENABLE,4,2   ## @BIM_CFG_DPAR_INTR_ENABLE
	.comm	_BIM_CFG_RMA_INTR_ENABLE,4,2    ## @BIM_CFG_RMA_INTR_ENABLE
	.comm	_BIM_CFG_RTA_INTR_ENABLE,4,2    ## @BIM_CFG_RTA_INTR_ENABLE
	.comm	_REG_BIM_CFG,8,3                ## @REG_BIM_CFG
	.comm	_PCI_ERR_BADACK,4,2             ## @PCI_ERR_BADACK
	.comm	_PCI_ERR_DTRTO,4,2              ## @PCI_ERR_DTRTO
	.comm	_PCI_ERR_OTHER,4,2              ## @PCI_ERR_OTHER
	.comm	_PCI_ERR_BIM_DMA_WRITE,4,2      ## @PCI_ERR_BIM_DMA_WRITE
	.comm	_PCI_ERR_BIM_DMA_READ,4,2       ## @PCI_ERR_BIM_DMA_READ
	.comm	_REG_PCI_ERR_STATUS_MASK,8,3    ## @REG_PCI_ERR_STATUS_MASK
	.comm	_PCS_DATAPATH_MODE_MII,4,2      ## @PCS_DATAPATH_MODE_MII
	.comm	_REG_PCS_DATAPATH_MODE,8,3      ## @REG_PCS_DATAPATH_MODE
	.no_dead_strip	_cas_global_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_global_reset
_cas_global_reset:                      ; @cas_global_reset
	.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
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_CAS_PHY_MII
	cbz	w0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _SW_RESET_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SW_RESET_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SW_RESET_TX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SW_RESET_TX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _SW_RESET_TX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SW_RESET_TX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SW_RESET_RX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SW_RESET_RX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _SW_RESET_BLOCK_PCS_SLINK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SW_RESET_BLOCK_PCS_SLINK@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh13:
	adrp	x20, _REG_SW_RESET@GOTPAGE
Lloh14:
	ldr	x20, [x20, _REG_SW_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #3
	bl	_mdelay
Lloh15:
	adrp	x8, _STOP_TRIES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STOP_TRIES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	add	w21, w8, #1
Lloh18:
	adrp	x22, _SW_RESET_TX@GOTPAGE
Lloh19:
	ldr	x22, [x22, _SW_RESET_TX@GOTPAGEOFF]
Lloh20:
	adrp	x23, _SW_RESET_RX@GOTPAGE
Lloh21:
	ldr	x23, [x23, _SW_RESET_RX@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_udelay
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_6
LBB0_8:
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_9:
Lloh24:
	adrp	x8, _BIM_CFG_DPAR_INTR_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BIM_CFG_DPAR_INTR_ENABLE@GOTPAGEOFF]
Lloh26:
	adrp	x9, _BIM_CFG_RMA_INTR_ENABLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BIM_CFG_RMA_INTR_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _BIM_CFG_RTA_INTR_ENABLE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BIM_CFG_RTA_INTR_ENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh33:
	adrp	x9, _REG_BIM_CFG@GOTPAGE
Lloh34:
	ldr	x9, [x9, _REG_BIM_CFG@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh36:
	adrp	x8, _PCI_ERR_BADACK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PCI_ERR_BADACK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _PCI_ERR_DTRTO@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PCI_ERR_DTRTO@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _PCI_ERR_OTHER@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PCI_ERR_OTHER@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _PCI_ERR_BIM_DMA_WRITE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _PCI_ERR_BIM_DMA_WRITE@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh48:
	adrp	x9, _PCI_ERR_BIM_DMA_READ@GOTPAGE
Lloh49:
	ldr	x9, [x9, _PCI_ERR_BIM_DMA_READ@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mvn	w0, w8
	ldr	x8, [x19]
Lloh51:
	adrp	x9, _REG_PCI_ERR_STATUS_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _REG_PCI_ERR_STATUS_MASK@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh54:
	adrp	x8, _PCS_DATAPATH_MODE_MII@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PCS_DATAPATH_MODE_MII@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh57:
	adrp	x9, _REG_PCS_DATAPATH_MODE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _REG_PCS_DATAPATH_MODE@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SW_RESET_TX,4,2                ; @SW_RESET_TX
	.comm	_SW_RESET_RX,4,2                ; @SW_RESET_RX
	.comm	_SW_RESET_BLOCK_PCS_SLINK,4,2   ; @SW_RESET_BLOCK_PCS_SLINK
	.comm	_REG_SW_RESET,8,3               ; @REG_SW_RESET
	.comm	_STOP_TRIES,4,2                 ; @STOP_TRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sw reset failed\n"

	.comm	_BIM_CFG_DPAR_INTR_ENABLE,4,2   ; @BIM_CFG_DPAR_INTR_ENABLE
	.comm	_BIM_CFG_RMA_INTR_ENABLE,4,2    ; @BIM_CFG_RMA_INTR_ENABLE
	.comm	_BIM_CFG_RTA_INTR_ENABLE,4,2    ; @BIM_CFG_RTA_INTR_ENABLE
	.comm	_REG_BIM_CFG,8,3                ; @REG_BIM_CFG
	.comm	_PCI_ERR_BADACK,4,2             ; @PCI_ERR_BADACK
	.comm	_PCI_ERR_DTRTO,4,2              ; @PCI_ERR_DTRTO
	.comm	_PCI_ERR_OTHER,4,2              ; @PCI_ERR_OTHER
	.comm	_PCI_ERR_BIM_DMA_WRITE,4,2      ; @PCI_ERR_BIM_DMA_WRITE
	.comm	_PCI_ERR_BIM_DMA_READ,4,2       ; @PCI_ERR_BIM_DMA_READ
	.comm	_REG_PCI_ERR_STATUS_MASK,8,3    ; @REG_PCI_ERR_STATUS_MASK
	.comm	_PCS_DATAPATH_MODE_MII,4,2      ; @PCS_DATAPATH_MODE_MII
	.comm	_REG_PCS_DATAPATH_MODE,8,3      ; @REG_PCS_DATAPATH_MODE
	.no_dead_strip	_cas_global_reset
.subsections_via_symbols
