	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_reset_up                   ## -- Begin function ef4_reset_up
	.p2align	4, 0x90
_ef4_reset_up:                          ## @ef4_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	_EF4_ASSERT_RESET_SERIALISED
	movq	24(%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	12(%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_14:
	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_12
## %bb.6:
	movq	_RESET_TYPE_INVISIBLE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_12
## %bb.7:
	movq	_RESET_TYPE_DATAPATH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_12
## %bb.8:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
LBB0_12:
	movq	%rbx, %rdi
	callq	_ef4_enable_interrupts
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_down_read
	movq	%rbx, %rdi
	callq	_ef4_restore_filters
	movq	%r14, %rdi
	callq	_up_read
	leaq	4(%rbx), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_ef4_start_all
	xorl	%r14d, %r14d
	jmp	LBB0_14
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
	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_reset_up                   ; -- Begin function ef4_reset_up
	.p2align	2
_ef4_reset_up:                          ; @ef4_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	_EF4_ASSERT_RESET_SERIALISED
	ldr	x8, [x19, #24]
	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, #12]
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_13
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.6:
Lloh5:
	adrp	x8, _RESET_TYPE_INVISIBLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESET_TYPE_INVISIBLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RESET_TYPE_DATAPATH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RESET_TYPE_DATAPATH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_11
; %bb.9:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _drv@GOTPAGE
Lloh15:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_11:
	mov	x0, x19
	bl	_ef4_enable_interrupts
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.12:
	add	x20, x19, #8
	mov	x0, x20
	bl	_down_read
	mov	x0, x19
	bl	_ef4_restore_filters
	mov	x0, x20
	bl	_up_read
	add	x0, x19, #4
	bl	_mutex_unlock
	mov	x0, x19
	bl	_ef4_start_all
	mov	w20, #0
	b	LBB0_3
LBB0_13:
	mov	w20, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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
	.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"

.subsections_via_symbols
