	.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	_RESET_TYPE_MCDI_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*48(%rax)
LBB0_2:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
LBB0_4:
	movl	$0, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_mutex_unlock
	leaq	8(%rbx), %rdi
	callq	_up_write
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.8:
	movq	_RESET_TYPE_INVISIBLE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_14
## %bb.9:
	movq	_RESET_TYPE_DATAPATH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_14
## %bb.10:
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.11:
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
LBB0_14:
	movq	%rbx, %rdi
	callq	_efx_enable_interrupts
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.15:
	movq	16(%rbx), %rax
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_17:
	leaq	12(%rbx), %rdi
	callq	_mutex_unlock
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*32(%rax)
	leaq	8(%rbx), %rdi
	callq	_up_write
	movq	16(%rbx), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_19:
	leaq	4(%rbx), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_efx_start_all
	movq	16(%rbx), %rax
	movq	16(%rax), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	*%rcx
	jmp	LBB0_21
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ## @RESET_TYPE_MCDI_TIMEOUT
	.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
	.comm	_RESET_TYPE_DATAPATH,4,2        ## @RESET_TYPE_DATAPATH
	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"could not restore PHY settings\n"

	.comm	_probe,4,2                      ## @probe
.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
Lloh0:
	adrp	x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TYPE_MCDI_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #48]
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _drv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_4:
	mov	x21, x19
	str	wzr, [x21], #4
	add	x0, x19, #12
	bl	_mutex_unlock
	add	x0, x19, #8
	bl	_up_write
	mov	x0, x21
	bl	_mutex_unlock
LBB0_5:
	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_6:
	cbz	w22, LBB0_21
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_13
; %bb.8:
Lloh8:
	adrp	x8, _RESET_TYPE_INVISIBLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RESET_TYPE_INVISIBLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RESET_TYPE_DATAPATH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RESET_TYPE_DATAPATH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.10:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_13
; %bb.11:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _drv@GOTPAGE
Lloh18:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_13:
	mov	x0, x19
	bl	_efx_enable_interrupts
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.14:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	blr	x8
LBB0_16:
	add	x0, x19, #12
	bl	_mutex_unlock
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #32]
	mov	x0, x19
	blr	x8
	add	x0, x19, #8
	bl	_up_write
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	blr	x8
LBB0_18:
	add	x0, x19, #4
	bl	_mutex_unlock
	mov	x0, x19
	bl	_efx_start_all
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	blr	x8
LBB0_20:
	mov	w20, #0
	b	LBB0_5
LBB0_21:
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_MCDI_TIMEOUT,4,2    ; @RESET_TYPE_MCDI_TIMEOUT
	.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
	.comm	_RESET_TYPE_DATAPATH,4,2        ; @RESET_TYPE_DATAPATH
	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"could not restore PHY settings\n"

	.comm	_probe,4,2                      ; @probe
.subsections_via_symbols
