	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_reset_vpath
_vxge_reset_vpath:                      ## @vxge_reset_vpath
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	callq	_is_vxge_card_up
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	___VXGE_STATE_RESET_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	16(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_vxge_hw_vpath_reset
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	callq	_is_vxge_card_up
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	(%r15), %rax
	movq	16(%rax,%rbx,8), %rdi
	callq	_vxge_hw_vpath_recover_from_reset
	cmpq	(%r13), %rax
	jne	LBB0_6
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r12
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_vxge_restore_vpath_mac_addr
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_vxge_restore_vpath_vid_table
	movq	(%r15), %rax
	movq	16(%rax,%r12), %rdi
	callq	_vxge_hw_vpath_bcast_enable
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vxge_vpath_intr_enable
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	(%r15), %rax
	movq	16(%rax,%r12), %rdi
	callq	_vxge_hw_vpath_enable
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	(%r15), %rax
	movq	16(%rax,%r12), %rdi
	callq	_vxge_hw_vpath_rx_doorbell_init
	movq	(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%r12)
	leaq	8(%r15), %rsi
	movl	%r14d, %edi
	callq	_clear_bit
	addq	(%r15), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vxge_wake_tx_queue
	jmp	LBB0_11
LBB0_9:
	movq	_VXGE_HW_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movl	%r14d, %edx
	callq	_vxge_debug_init
	movl	%r12d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_HW_OK,8,3                 ## @VXGE_HW_OK
	.comm	___VXGE_STATE_RESET_CARD,4,2    ## @__VXGE_STATE_RESET_CARD
	.comm	_VXGE_ERR,4,2                   ## @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vxge_hw_vpath_recover_from_resetfailed for vpath:%d"

L_.str.1:                               ## @.str.1
	.asciz	"vxge_hw_vpath_reset failed forvpath:%d"

	.comm	_VXGE_HW_FAIL,4,2               ## @VXGE_HW_FAIL
	.no_dead_strip	_vxge_reset_vpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_reset_vpath
_vxge_reset_vpath:                      ; @vxge_reset_vpath
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _VXGE_HW_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VXGE_HW_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_is_vxge_card_up
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, ___VXGE_STATE_RESET_CARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___VXGE_STATE_RESET_CARD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	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_4:
	ldr	x8, [x20]
	mov	w9, #24
	smaddl	x8, w19, w9, x8
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_vxge_hw_vpath_reset
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:
	sxtw	x23, w19
	mov	x0, x20
	bl	_is_vxge_card_up
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x0, [x8, #16]
	bl	_vxge_hw_vpath_recover_from_reset
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_8:
	ldr	x8, [x20]
	add	x9, x23, x23, lsl #1
	lsl	x21, x9, #3
	add	x0, x8, x21
	bl	_vxge_restore_vpath_mac_addr
	ldr	x8, [x20]
	add	x0, x8, x21
	bl	_vxge_restore_vpath_vid_table
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_vxge_hw_vpath_bcast_enable
	mov	x0, x20
	mov	x1, x19
	bl	_vxge_vpath_intr_enable
	bl	_smp_wmb
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_vxge_hw_vpath_enable
	bl	_smp_wmb
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_vxge_hw_vpath_rx_doorbell_init
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x9, x9, x21
	str	x8, [x9, #8]
	add	x1, x20, #8
	mov	x0, x19
	bl	_clear_bit
	ldr	x8, [x20]
	add	x0, x8, x21
	mov	x1, #0
	bl	_vxge_wake_tx_queue
	b	LBB0_2
LBB0_9:
Lloh5:
	adrp	x8, _VXGE_HW_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VXGE_HW_FAIL@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_10:
Lloh8:
	adrp	x8, _VXGE_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VXGE_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x8, _VXGE_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VXGE_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x2, x19
	bl	_vxge_debug_init
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_HW_OK,8,3                 ; @VXGE_HW_OK
	.comm	___VXGE_STATE_RESET_CARD,4,2    ; @__VXGE_STATE_RESET_CARD
	.comm	_VXGE_ERR,4,2                   ; @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vxge_hw_vpath_recover_from_resetfailed for vpath:%d"

l_.str.1:                               ; @.str.1
	.asciz	"vxge_hw_vpath_reset failed forvpath:%d"

	.comm	_VXGE_HW_FAIL,4,2               ; @VXGE_HW_FAIL
	.no_dead_strip	_vxge_reset_vpath
.subsections_via_symbols
