	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_open                    ## -- Begin function e1000e_open
	.p2align	4, 0x90
_e1000e_open:                           ## @e1000e_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	%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
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	56(%rax), %r14
	movq	___E1000_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r12), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	20(%r12), %edi
	callq	_e1000e_setup_tx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movl	24(%r12), %edi
	callq	_e1000e_setup_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	_FLAG_HAS_AMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_e1000e_get_hw_control
	movq	%r12, %rdi
	callq	_e1000e_reset
LBB0_6:
	movq	%r12, %rdi
	callq	_e1000e_power_up_phy
	movq	_E1000_MNG_VLAN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 44(%r12)
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_e1000_update_mng_vlan
LBB0_8:
	leaq	28(%r12), %r13
	movq	_PM_QOS_CPU_DMA_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PM_QOS_DEFAULT_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_pm_qos_add_request
	movq	%r12, %rdi
	callq	_e1000_configure
	movq	%r12, %rdi
	callq	_e1000_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	movq	%r13, %rdi
	callq	_pm_qos_remove_request
	movq	%r12, %rdi
	callq	_e1000e_release_hw_control
	movq	%r12, %rdi
	callq	_e1000_power_down_phy
	movl	24(%r12), %edi
	callq	_e1000e_free_rx_resources
LBB0_13:
	movl	20(%r12), %edi
	callq	_e1000e_free_tx_resources
LBB0_14:
	movq	%r12, %rdi
	callq	_e1000e_reset
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r12), %rax
	movq	_E1000E_INT_MODE_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.10:
	movq	%r12, %rdi
	callq	_e1000_test_msi
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_e_err
	jmp	LBB0_12
LBB0_16:
	movq	___E1000_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	callq	_e1000_irq_enable
	movl	$0, 16(%r12)
	movl	$1, 40(%r12)
	movq	%r14, %rdi
	callq	_pm_runtime_put
	movq	%r12, %rdi
	callq	_e1000e_trigger_lsc
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	___E1000_TESTING,4,2            ## @__E1000_TESTING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_FLAG_HAS_AMT,4,2               ## @FLAG_HAS_AMT
	.comm	_E1000_MNG_VLAN_NONE,4,2        ## @E1000_MNG_VLAN_NONE
	.comm	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN,4,2 ## @E1000_MNG_DHCP_COOKIE_STATUS_VLAN
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ## @PM_QOS_CPU_DMA_LATENCY
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ## @PM_QOS_DEFAULT_VALUE
	.comm	_E1000E_INT_MODE_LEGACY,8,3     ## @E1000E_INT_MODE_LEGACY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt allocation failed\n"

	.comm	___E1000_DOWN,4,2               ## @__E1000_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_open                    ; -- Begin function e1000e_open
	.p2align	2
_e1000e_open:                           ; @e1000e_open
	.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	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0, #56]
Lloh0:
	adrp	x8, ___E1000_TESTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___E1000_TESTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #36
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_2:
	mov	x0, x20
	bl	_pm_runtime_get_sync
	mov	x0, x22
	bl	_netif_carrier_off
	mov	x0, x22
	bl	_netif_stop_queue
	ldr	w0, [x19, #20]
	bl	_e1000e_setup_tx_resources
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	w0, [x19, #24]
	bl	_e1000e_setup_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _FLAG_HAS_AMT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLAG_HAS_AMT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_e1000e_get_hw_control
	mov	x0, x19
	bl	_e1000e_reset
LBB0_6:
	mov	x0, x19
	bl	_e1000e_power_up_phy
Lloh9:
	adrp	x8, _E1000_MNG_VLAN_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_MNG_VLAN_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	w8, [x19, #44]
Lloh12:
	adrp	x9, _E1000_MNG_DHCP_COOKIE_STATUS_VLAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_MNG_DHCP_COOKIE_STATUS_VLAN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_e1000_update_mng_vlan
LBB0_8:
	add	x23, x19, #28
Lloh15:
	adrp	x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _PM_QOS_DEFAULT_VALUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PM_QOS_DEFAULT_VALUE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_pm_qos_add_request
	mov	x0, x19
	bl	_e1000_configure
	mov	x0, x19
	bl	_e1000_request_irq
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_9:
	mov	x0, x23
	bl	_pm_qos_remove_request
	mov	x0, x19
	bl	_e1000e_release_hw_control
	mov	x0, x19
	bl	_e1000_power_down_phy
	ldr	w0, [x19, #24]
	bl	_e1000e_free_rx_resources
LBB0_10:
	ldr	w0, [x19, #20]
	bl	_e1000e_free_tx_resources
LBB0_11:
	mov	x0, x19
	bl	_e1000e_reset
	mov	x0, x20
	bl	_pm_runtime_put_sync
LBB0_12:
	mov	x0, x22
	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_13:
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _E1000E_INT_MODE_LEGACY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _E1000E_INT_MODE_LEGACY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_e1000_test_msi
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
	b	LBB0_9
LBB0_16:
Lloh26:
	adrp	x8, ___E1000_DOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, ___E1000_DOWN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	add	x0, x19, #32
	bl	_napi_enable
	mov	x0, x19
	bl	_e1000_irq_enable
	str	wzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #40]
	mov	x0, x20
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_e1000e_trigger_lsc
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	___E1000_TESTING,4,2            ; @__E1000_TESTING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_FLAG_HAS_AMT,4,2               ; @FLAG_HAS_AMT
	.comm	_E1000_MNG_VLAN_NONE,4,2        ; @E1000_MNG_VLAN_NONE
	.comm	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN,4,2 ; @E1000_MNG_DHCP_COOKIE_STATUS_VLAN
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ; @PM_QOS_CPU_DMA_LATENCY
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ; @PM_QOS_DEFAULT_VALUE
	.comm	_E1000E_INT_MODE_LEGACY,8,3     ; @E1000E_INT_MODE_LEGACY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt allocation failed\n"

	.comm	___E1000_DOWN,4,2               ; @__E1000_DOWN
.subsections_via_symbols
