	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_reset_hw_X540
_ixgbe_reset_hw_X540:                   ## @ixgbe_reset_hw_X540
	.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, %r14
	callq	*16(%rdi)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_ixgbe_clear_tx_pending
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_CTRL@GOTPCREL(%rip), %r15
	movq	_IXGBE_CTRL_RST_MASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_IXGBE_CTRL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	orl	%eax, %r12d
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_IXGBE_WRITE_REG
	movq	%r14, %rdi
	callq	_IXGBE_WRITE_FLUSH
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	andl	(%r13), %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	leal	1(%rbx), %ecx
	cmpl	$9, %ebx
	movl	%ecx, %ebx
	jb	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IXGBE_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_msleep
	movl	(%r14), %eax
	movq	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_2
LBB0_9:
	xorl	%edi, %edi
	callq	_IXGBE_RXPBSIZE
	movq	_IXGBE_RXPBSIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$384, %edx                      ## imm = 0x180
	shll	%cl, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_WRITE_REG
	movl	84(%r14), %esi
	movq	%r14, %rdi
	callq	*56(%r14)
	movq	_IXGBE_X540_MAX_TX_QUEUES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14)
	movq	%r14, %rdi
	callq	*48(%r14)
	movl	80(%r14), %esi
	movq	%r14, %rdi
	callq	*40(%r14)
	movl	80(%r14), %edi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	64(%r14), %rsi
	decq	%rsi
	movl	80(%r14), %edx
	movq	_IXGBE_RAH_AV@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	*32(%r14)
	movq	64(%r14), %rax
	decq	%rax
	movq	%rax, 72(%r14)
	movq	%rax, 64(%r14)
LBB0_11:
	leaq	8(%r14), %rsi
	leaq	4(%r14), %rdx
	movq	%r14, %rdi
	callq	*24(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_CTRL_RST,4,2             ## @IXGBE_CTRL_RST
	.comm	_IXGBE_CTRL,4,2                 ## @IXGBE_CTRL
	.comm	_IXGBE_CTRL_RST_MASK,4,2        ## @IXGBE_CTRL_RST_MASK
	.comm	_IXGBE_ERR_RESET_FAILED,8,3     ## @IXGBE_ERR_RESET_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset polling failed to complete.\n"

	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ## @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_RXPBSIZE_SHIFT,4,2       ## @IXGBE_RXPBSIZE_SHIFT
	.comm	_IXGBE_X540_MAX_TX_QUEUES,8,3   ## @IXGBE_X540_MAX_TX_QUEUES
	.comm	_IXGBE_RAH_AV,4,2               ## @IXGBE_RAH_AV
	.no_dead_strip	_ixgbe_reset_hw_X540
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_reset_hw_X540
_ixgbe_reset_hw_X540:                   ; @ixgbe_reset_hw_X540
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #16]
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_ixgbe_clear_tx_pending
Lloh0:
	adrp	x22, _IXGBE_CTRL_RST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IXGBE_CTRL_RST@GOTPAGEOFF]
Lloh2:
	adrp	x23, _IXGBE_CTRL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IXGBE_CTRL@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IXGBE_CTRL_RST_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IXGBE_CTRL_RST_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x25, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x26, _IXGBE_ERR_RESET_FAILED@GOTPAGE
Lloh11:
	ldr	x26, [x26, _IXGBE_ERR_RESET_FAILED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w27, [x22]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	orr	w2, w0, w27
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	w27, #0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w27, #9, #2, ne
	add	w27, w27, #1
	b.lo	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x26]
	mov	x0, x19
	mov	x1, x21
	bl	_hw_dbg
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	bl	_IXGBE_RXPBSIZE
	mov	x1, x0
Lloh12:
	adrp	x8, _IXGBE_RXPBSIZE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_RXPBSIZE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #384
	lsl	w2, w9, w8
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	x8, [x19, #56]
	ldr	w1, [x19, #84]
	mov	x0, x19
	blr	x8
Lloh15:
	adrp	x8, _IXGBE_X540_MAX_TX_QUEUES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGBE_X540_MAX_TX_QUEUES@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #64]
	ldr	x8, [x19, #48]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
	ldr	w1, [x19, #80]
	mov	x0, x19
	blr	x8
	ldr	w0, [x19, #80]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #64]
	sub	x1, x9, #1
	ldr	w2, [x19, #80]
Lloh18:
	adrp	x9, _IXGBE_RAH_AV@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IXGBE_RAH_AV@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x9]
	mov	x0, x19
	mov	w3, #0
	blr	x8
	ldr	x8, [x19, #64]
	sub	x8, x8, #1
	stp	x8, x8, [x19, #64]
LBB0_10:
	ldr	x8, [x19, #24]
	add	x1, x19, #8
	add	x2, x19, #4
	mov	x0, x19
	blr	x8
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_CTRL_RST,4,2             ; @IXGBE_CTRL_RST
	.comm	_IXGBE_CTRL,4,2                 ; @IXGBE_CTRL
	.comm	_IXGBE_CTRL_RST_MASK,4,2        ; @IXGBE_CTRL_RST_MASK
	.comm	_IXGBE_ERR_RESET_FAILED,8,3     ; @IXGBE_ERR_RESET_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset polling failed to complete.\n"

	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ; @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_RXPBSIZE_SHIFT,4,2       ; @IXGBE_RXPBSIZE_SHIFT
	.comm	_IXGBE_X540_MAX_TX_QUEUES,8,3   ; @IXGBE_X540_MAX_TX_QUEUES
	.comm	_IXGBE_RAH_AV,4,2               ; @IXGBE_RAH_AV
	.no_dead_strip	_ixgbe_reset_hw_X540
.subsections_via_symbols
