	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_reset_up                   ## -- Begin function efx_reset_up
	.p2align	4, 0x90
_efx_reset_up:                          ## @efx_reset_up
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_EFX_ASSERT_RESET_SERIALISED
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
LBB0_2:
	movl	$0, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.5:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.6:
	movq	_RESET_TYPE_INVISIBLE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_10
## %bb.7:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
LBB0_10:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_efx_start_interrupts
	movq	%rbx, %rdi
	callq	_efx_restore_filters
	movq	%rbx, %rdi
	callq	_efx_sriov_reset
	leaq	4(%rbx), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_efx_start_all
	jmp	LBB0_11
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialise NIC\n"

	.comm	_RESET_TYPE_INVISIBLE,4,2       ## @RESET_TYPE_INVISIBLE
L_.str.1:                               ## @.str.1
	.asciz	"could not restore PHY settings\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_reset_up                   ; -- Begin function efx_reset_up
	.p2align	2
_efx_reset_up:                          ; @efx_reset_up
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_EFX_ASSERT_RESET_SERIALISED
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_2:
	str	wzr, [x19], #4
	mov	x0, x19
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	w22, LBB0_11
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.6:
Lloh5:
	adrp	x8, _RESET_TYPE_INVISIBLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESET_TYPE_INVISIBLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	mov	w1, #0
	bl	_efx_start_interrupts
	mov	x0, x19
	bl	_efx_restore_filters
	mov	x0, x19
	bl	_efx_sriov_reset
	add	x0, x19, #4
	bl	_mutex_unlock
	mov	x0, x19
	bl	_efx_start_all
	mov	w20, #0
	b	LBB0_3
LBB0_11:
	mov	w20, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialise NIC\n"

	.comm	_RESET_TYPE_INVISIBLE,4,2       ; @RESET_TYPE_INVISIBLE
l_.str.1:                               ; @.str.1
	.asciz	"could not restore PHY settings\n"

.subsections_via_symbols
