	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_open                     ## -- Begin function e1000_open
	.p2align	4, 0x90
_e1000_open:                            ## @e1000_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	___E1000_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%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_11
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_e1000_setup_all_tx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r12, %rdi
	callq	_e1000_setup_all_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	callq	_e1000_power_up_phy
	movq	_E1000_MNG_VLAN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_e1000_update_mng_vlan
LBB0_6:
	movq	%r12, %rdi
	callq	_e1000_configure
	movq	%r12, %rdi
	callq	_e1000_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_e1000_power_down_phy
	movq	%r12, %rdi
	callq	_e1000_free_all_rx_resources
LBB0_9:
	movq	%r12, %rdi
	callq	_e1000_free_all_tx_resources
LBB0_10:
	movq	%r12, %rdi
	callq	_e1000_reset
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	___E1000_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	callq	_e1000_irq_enable
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	_ICS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_ICS_LSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ew32
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	___E1000_TESTING,4,2            ## @__E1000_TESTING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_E1000_MNG_VLAN_NONE,4,2        ## @E1000_MNG_VLAN_NONE
	.comm	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT,4,2 ## @E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT
	.comm	___E1000_DOWN,4,2               ## @__E1000_DOWN
	.comm	_ICS,4,2                        ## @ICS
	.comm	_E1000_ICS_LSC,4,2              ## @E1000_ICS_LSC
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_open                     ; -- Begin function e1000_open
	.p2align	2
_e1000_open:                            ; @e1000_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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, ___E1000_TESTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___E1000_TESTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #4
	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_10
LBB0_2:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_e1000_setup_all_tx_resources
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_e1000_setup_all_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_e1000_power_up_phy
Lloh6:
	adrp	x8, _E1000_MNG_VLAN_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_MNG_VLAN_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19, #12]
Lloh9:
	adrp	x9, _E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_e1000_update_mng_vlan
LBB0_6:
	mov	x0, x19
	bl	_e1000_configure
	mov	x0, x19
	bl	_e1000_request_irq
	cbz	w0, LBB0_11
; %bb.7:
	mov	x22, x0
	mov	x0, x19
	bl	_e1000_power_down_phy
	mov	x0, x19
	bl	_e1000_free_all_rx_resources
LBB0_8:
	mov	x0, x19
	bl	_e1000_free_all_tx_resources
LBB0_9:
	mov	x0, x19
	bl	_e1000_reset
LBB0_10:
	mov	x0, x22
	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_11:
Lloh12:
	adrp	x8, ___E1000_DOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___E1000_DOWN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x19
	bl	_napi_enable
	mov	x0, x19
	bl	_e1000_irq_enable
	mov	x0, x20
	bl	_netif_start_queue
Lloh15:
	adrp	x8, _ICS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _E1000_ICS_LSC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_ICS_LSC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ew32
Lloh21:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___E1000_TESTING,4,2            ; @__E1000_TESTING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_E1000_MNG_VLAN_NONE,4,2        ; @E1000_MNG_VLAN_NONE
	.comm	_E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT,4,2 ; @E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT
	.comm	___E1000_DOWN,4,2               ; @__E1000_DOWN
	.comm	_ICS,4,2                        ; @ICS
	.comm	_E1000_ICS_LSC,4,2              ; @E1000_ICS_LSC
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
.subsections_via_symbols
