	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __e100_shutdown
___e100_shutdown:                       ## @__e100_shutdown
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_e100_down
LBB0_2:
	movq	%r12, %rdi
	callq	_netif_device_detach
	movq	%r15, %rdi
	callq	_pci_save_state
	movq	_wol_magic@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_e100_asf
	orl	%ebx, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movq	_phy_82552_v@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	16(%r14), %esi
	movq	_E100_82552_SMARTSPEED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_mdio_read
	movl	16(%r14), %esi
	movq	_E100_82552_REV_ANEG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	_E100_82552_ANEG_NOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_mdio_write
	jmp	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_clear_master               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wol_magic,4,2                  ## @wol_magic
	.comm	_phy_82552_v,8,3                ## @phy_82552_v
	.comm	_E100_82552_SMARTSPEED,4,2      ## @E100_82552_SMARTSPEED
	.comm	_E100_82552_REV_ANEG,4,2        ## @E100_82552_REV_ANEG
	.comm	_E100_82552_ANEG_NOW,4,2        ## @E100_82552_ANEG_NOW
	.no_dead_strip	___e100_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __e100_shutdown
___e100_shutdown:                       ; @__e100_shutdown
	.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	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x21, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_e100_down
LBB0_2:
	mov	x0, x21
	bl	_netif_device_detach
	mov	x0, x19
	bl	_pci_save_state
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _wol_magic@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wol_magic@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w8
	mov	x0, x22
	bl	_e100_asf
	orr	w8, w23, w0
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _phy_82552_v@GOTPAGE
Lloh4:
	ldr	x9, [x9, _phy_82552_v@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x22, #16]
Lloh6:
	adrp	x23, _E100_82552_SMARTSPEED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _E100_82552_SMARTSPEED@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_mdio_read
	ldr	w1, [x22, #16]
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _E100_82552_REV_ANEG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E100_82552_REV_ANEG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh11:
	adrp	x9, _E100_82552_ANEG_NOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E100_82552_ANEG_NOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x21
	bl	_mdio_write
LBB0_5:
	mov	w8, #1
LBB0_6:
	str	w8, [x20]
	mov	x0, x19
	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
	b	_pci_clear_master
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_wol_magic,4,2                  ; @wol_magic
	.comm	_phy_82552_v,8,3                ; @phy_82552_v
	.comm	_E100_82552_SMARTSPEED,4,2      ; @E100_82552_SMARTSPEED
	.comm	_E100_82552_REV_ANEG,4,2        ; @E100_82552_REV_ANEG
	.comm	_E100_82552_ANEG_NOW,4,2        ; @E100_82552_ANEG_NOW
	.no_dead_strip	___e100_shutdown
.subsections_via_symbols
