	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_reset                    ## -- Begin function ixgbe_reset
	.p2align	4, 0x90
_ixgbe_reset:                           ## @ixgbe_reset
	.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, %r15
	movq	8(%rdi), %r12
	movl	56(%rdi), %edi
	callq	_ixgbe_removed
	testq	%rax, %rax
	je	LBB0_1
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	24(%r15), %r14
	leaq	16(%r15), %rbx
	movq	___IXGBE_IN_SFP_INIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_3
LBB0_4:
	movq	_IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPCREL(%rip), %rax
	movq	_IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r15)
	movq	_IXGBE_FLAG_NEED_LINK_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r15)
	movq	%r14, %rdi
	callq	*32(%r15)
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$129, %eax
	jg	LBB0_8
## %bb.5:
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.6:
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_7
LBB0_8:
	cmpl	$131, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.10:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dev_err
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dev_warn
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_e_dev_err
LBB0_12:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_ixgbe_flush_sw_mac_table
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	___dev_uc_unsync
	movq	%r15, %rdi
	callq	_ixgbe_mac_set_default_filter
	cmpq	$0, 48(%r15)
	je	LBB0_14
## %bb.13:
	movq	40(%r15), %r12
	xorl	%edi, %edi
	callq	_VMDQ_P
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%r12
LBB0_14:
	movq	___IXGBE_PTP_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_ixgbe_ptp_reset
LBB0_16:
	cmpq	$0, (%r14)
	je	LBB0_22
## %bb.17:
	movq	8(%r15), %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	cmpl	$0, 4(%r15)
	je	LBB0_19
LBB0_20:
	movl	$1, %esi
LBB0_21:
	movq	(%r14), %rax
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_19:
	xorl	%esi, %esi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	___IXGBE_IN_SFP_INIT,4,2        ## @__IXGBE_IN_SFP_INIT
	.comm	_IXGBE_FLAG2_SEARCH_FOR_SFP,4,2 ## @IXGBE_FLAG2_SEARCH_FOR_SFP
	.comm	_IXGBE_FLAG2_SFP_NEEDS_RESET,4,2 ## @IXGBE_FLAG2_SFP_NEEDS_RESET
	.comm	_IXGBE_FLAG_NEED_LINK_CONFIG,4,2 ## @IXGBE_FLAG_NEED_LINK_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"master disable timed out\n"

L_.str.1:                               ## @.str.1
	.asciz	"This device is a pre-production adapter/LOM. Please be aware there may be issues associated with your hardware.  If you are experiencing problems please contact your Intel or hardware representative who provided you with this hardware.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Hardware Error: %d\n"

	.comm	___IXGBE_PTP_RUNNING,4,2        ## @__IXGBE_PTP_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_reset                    ; -- Begin function ixgbe_reset
	.p2align	2
_ixgbe_reset:                           ; @ixgbe_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0, #56]
	bl	_ixgbe_removed
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	add	x19, x20, #24
	add	x21, x20, #16
Lloh0:
	adrp	x23, ___IXGBE_IN_SFP_INIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___IXGBE_IN_SFP_INIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_FLAG2_SEARCH_FOR_SFP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IXGBE_FLAG2_SFP_NEEDS_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
Lloh8:
	adrp	x9, _IXGBE_FLAG_NEED_LINK_CONFIG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXGBE_FLAG_NEED_LINK_CONFIG@GOTPAGEOFF]
	str	w8, [x20]
Lloh10:
	ldr	w8, [x9]
	ldr	w9, [x20, #20]
	bic	w8, w9, w8
	str	w8, [x20, #20]
	ldr	x8, [x20, #32]
	mov	x0, x19
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #129
	b.gt	LBB0_7
; %bb.6:
	sub	w8, w0, #128
	cmp	w8, #2
	ccmp	w0, #0, #4, hs
	b.eq	LBB0_13
	b	LBB0_11
LBB0_7:
	cmp	w0, #131
	b.eq	LBB0_10
; %bb.8:
	cmp	w0, #130
	b.ne	LBB0_11
; %bb.9:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dev_warn
	b	LBB0_13
LBB0_11:
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_e_dev_err
LBB0_13:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_ixgbe_flush_sw_mac_table
	mov	x0, x22
	mov	x1, #0
	bl	___dev_uc_unsync
	mov	x0, x20
	bl	_ixgbe_mac_set_default_filter
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x22, [x20, #40]
	mov	w0, #0
	bl	_VMDQ_P
	mov	x1, x0
	mov	x0, x19
	blr	x22
LBB0_15:
Lloh17:
	adrp	x8, ___IXGBE_PTP_RUNNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, ___IXGBE_PTP_RUNNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_ixgbe_ptp_reset
LBB0_17:
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.18:
	ldr	x0, [x20, #8]
	bl	_netif_running
	cbnz	w0, LBB0_20
; %bb.19:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
LBB0_20:
	mov	w1, #1
LBB0_21:
	ldr	x2, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x2
LBB0_22:
	mov	w1, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	___IXGBE_IN_SFP_INIT,4,2        ; @__IXGBE_IN_SFP_INIT
	.comm	_IXGBE_FLAG2_SEARCH_FOR_SFP,4,2 ; @IXGBE_FLAG2_SEARCH_FOR_SFP
	.comm	_IXGBE_FLAG2_SFP_NEEDS_RESET,4,2 ; @IXGBE_FLAG2_SFP_NEEDS_RESET
	.comm	_IXGBE_FLAG_NEED_LINK_CONFIG,4,2 ; @IXGBE_FLAG_NEED_LINK_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"master disable timed out\n"

l_.str.1:                               ; @.str.1
	.asciz	"This device is a pre-production adapter/LOM. Please be aware there may be issues associated with your hardware.  If you are experiencing problems please contact your Intel or hardware representative who provided you with this hardware.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Hardware Error: %d\n"

	.comm	___IXGBE_PTP_RUNNING,4,2        ; @__IXGBE_PTP_RUNNING
.subsections_via_symbols
