	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_net_open                   ## -- Begin function efx_net_open
	.p2align	4, 0x90
_efx_net_open:                          ## @efx_net_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%r14), %r15d
	xorl	%eax, %eax
	callq	_raw_smp_processor_id
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %r8d
	callq	_netif_dbg
	movq	%r14, %rdi
	callq	_efx_check_disabled
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	%r14, %rdi
	callq	_efx_mcdi_poll_reboot
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_RESET_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_efx_reset
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_efx_link_status_changed
	movq	%r14, %rdi
	callq	_efx_start_all
	movq	8(%r14), %rax
	movq	_STATE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	cmpq	$0, 24(%r14)
	je	LBB0_10
LBB0_9:
	movl	16(%r14), %edi
	callq	_netif_device_detach
LBB0_10:
	movq	%r14, %rdi
	callq	_efx_selftest_async_start
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening device on CPU %d\n"

	.comm	_PHY_MODE_SPECIAL,4,2           ## @PHY_MODE_SPECIAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RESET_TYPE_ALL,4,2             ## @RESET_TYPE_ALL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_STATE_DISABLED,8,3             ## @STATE_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_net_open                   ; -- Begin function efx_net_open
	.p2align	2
_efx_net_open:                          ; @efx_net_open
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w21, [x0, #16]
	bl	_raw_smp_processor_id
	mov	x4, x0
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_netif_dbg
	mov	x0, x19
	bl	_efx_check_disabled
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _PHY_MODE_SPECIAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHY_MODE_SPECIAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_efx_mcdi_poll_reboot
	cbz	x0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _RESET_TYPE_ALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RESET_TYPE_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_reset
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	mov	x0, x19
	bl	_efx_link_status_changed
	mov	x0, x19
	bl	_efx_start_all
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _STATE_DISABLED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STATE_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_netif_device_detach
LBB0_10:
	mov	x0, x19
	bl	_efx_selftest_async_start
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening device on CPU %d\n"

	.comm	_PHY_MODE_SPECIAL,4,2           ; @PHY_MODE_SPECIAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RESET_TYPE_ALL,4,2             ; @RESET_TYPE_ALL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_STATE_DISABLED,8,3             ; @STATE_DISABLED
.subsections_via_symbols
