	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_calc_checksum_X550
_ixgbe_calc_checksum_X550:              ## @ixgbe_calc_checksum_X550
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IXGBE_EEPROM_LAST_WORD@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rdi
	callq	*8(%r13)
	movl	(%r14), %edx
	testq	%r12, %r12
	je	LBB0_1
## %bb.6:
	movq	%r12, %rbx
	cmpl	%r15d, %edx
	jle	LBB0_3
## %bb.7:
	movq	_IXGBE_ERR_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_44
LBB0_1:
	incl	%edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_ixgbe_read_ee_hostif_buffer_X550
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
	jmp	LBB0_44
LBB0_2:
	movl	(%r14), %edx
	movq	%rdi, %r13
LBB0_3:
	testl	%edx, %edx
	js	LBB0_4
## %bb.8:
	movq	_IXGBE_EEPROM_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %edi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpl	$3, %edx
	jae	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	testq	%r8, %r8
	jne	LBB0_22
	jmp	LBB0_26
LBB0_4:
	xorl	%ecx, %ecx
	jmp	LBB0_26
LBB0_10:
	andl	$-4, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	cmpq	%rdi, %rdx
	je	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	cmpq	%rdx, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	(%rbx,%rsi,4), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%rsi), %rdx
	cmpq	%rax, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	4(%rbx,%rsi,4), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	8(%rbx,%rsi,4), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	12(%rbx,%rsi,4), %ecx
	jmp	LBB0_19
LBB0_20:
	addq	$4, %rsi
	testq	%r8, %r8
	je	LBB0_26
LBB0_22:
	leaq	(%rbx,%rsi,4), %rdx
	subq	%rsi, %rax
	xorl	%esi, %esi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rsi
	cmpq	%rsi, %r8
	je	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addl	(%rdx,%rsi,4), %ecx
	jmp	LBB0_25
LBB0_26:
	movl	%ecx, -52(%rbp)
	movq	_IXGBE_PCIE_ANALOG_PTR_X550@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	_IXGBE_FW_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_43
## %bb.27:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	_IXGBE_PHY_PTR@GOTPCREL(%rip), %r15
	movq	_IXGBE_OPTION_ROM_PTR@GOTPCREL(%rip), %rdx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_42
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %r14d
	je	LBB0_41
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	(%rdx), %r14d
	je	LBB0_41
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%rbx,%r14,4), %esi
	testl	%esi, %esi
	je	LBB0_41
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_41
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	(%r13), %esi
	jge	LBB0_41
## %bb.33:                              ##   in Loop: Header=BB0_28 Depth=1
	leal	-129(%r14), %eax
	cmpl	$2, %eax
	jae	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_IXGBE_PCIE_CONFIG_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	xorl	%edx, %edx
	cmpl	$128, %r14d
	jne	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_IXGBE_IXGBE_PCIE_GENERAL_SIZE@GOTPCREL(%rip), %rax
LBB0_37:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	(%rax), %edx
LBB0_38:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	%r13, %r12
	movq	%r13, %rdi
	leaq	-52(%rbp), %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_ixgbe_checksum_ptr_x550
	testq	%rax, %rax
	jne	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_IXGBE_FW_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %r13
	movq	_IXGBE_OPTION_ROM_PTR@GOTPCREL(%rip), %rdx
	jmp	LBB0_41
LBB0_42:
	movl	-52(%rbp), %ecx
LBB0_43:
	movq	_IXGBE_EEPROM_SUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ecx, %eax
	movslq	%eax, %r13
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_46
## %bb.45:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	%rax, %r13
	jmp	LBB0_44
LBB0_46:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_EEPROM_LAST_WORD,4,2     ## @IXGBE_EEPROM_LAST_WORD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read EEPROM image\n"

	.comm	_IXGBE_ERR_PARAM,8,3            ## @IXGBE_ERR_PARAM
	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ## @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_PCIE_ANALOG_PTR_X550,4,2 ## @IXGBE_PCIE_ANALOG_PTR_X550
	.comm	_IXGBE_FW_PTR,4,2               ## @IXGBE_FW_PTR
	.comm	_IXGBE_PHY_PTR,4,2              ## @IXGBE_PHY_PTR
	.comm	_IXGBE_OPTION_ROM_PTR,4,2       ## @IXGBE_OPTION_ROM_PTR
	.comm	_IXGBE_IXGBE_PCIE_GENERAL_SIZE,4,2 ## @IXGBE_IXGBE_PCIE_GENERAL_SIZE
	.comm	_IXGBE_PCIE_CONFIG_SIZE,4,2     ## @IXGBE_PCIE_CONFIG_SIZE
	.comm	_IXGBE_EEPROM_SUM,8,3           ## @IXGBE_EEPROM_SUM
	.no_dead_strip	_ixgbe_calc_checksum_X550
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_calc_checksum_X550
_ixgbe_calc_checksum_X550:              ; @ixgbe_calc_checksum_X550
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _IXGBE_EEPROM_LAST_WORD@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IXGBE_EEPROM_LAST_WORD@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x0, #8]
	blr	x8
	ldr	w10, [x24]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x22, x21
	cmp	w10, w20
	b.le	LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _IXGBE_ERR_PARAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_ERR_PARAM@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	b	LBB0_27
LBB0_3:
	add	w2, w10, #1
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	bl	_ixgbe_read_ee_hostif_buffer_X550
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_27
LBB0_5:
	ldr	w10, [x24]
LBB0_6:
	mov	w8, #0
	tbnz	w10, #31, LBB0_11
; %bb.7:
Lloh12:
	adrp	x9, _IXGBE_EEPROM_CHECKSUM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IXGBE_EEPROM_CHECKSUM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w10, w10, #1
	mov	x11, x22
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	x9, x9, #1
	add	x11, x11, #4
	subs	x10, x10, #1
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x11]
	add	w8, w8, w12
	b	LBB0_8
LBB0_11:
Lloh15:
	adrp	x9, _IXGBE_PCIE_ANALOG_PTR_X550@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IXGBE_PCIE_ANALOG_PTR_X550@GOTPAGEOFF]
	stur	w8, [x29, #-92]
Lloh17:
	ldrsw	x24, [x9]
Lloh18:
	adrp	x25, _IXGBE_FW_PTR@GOTPAGE
Lloh19:
	ldr	x25, [x25, _IXGBE_FW_PTR@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w24, w9
	b.ge	LBB0_26
; %bb.12:
Lloh20:
	adrp	x26, _IXGBE_PHY_PTR@GOTPAGE
Lloh21:
	ldr	x26, [x26, _IXGBE_PHY_PTR@GOTPAGEOFF]
Lloh22:
	adrp	x27, _IXGBE_OPTION_ROM_PTR@GOTPAGE
Lloh23:
	ldr	x27, [x27, _IXGBE_OPTION_ROM_PTR@GOTPAGEOFF]
	mov	w28, #65535
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	cmp	x24, w9, sxtw
	b.ge	LBB0_25
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	w10, [x27]
	cmp	w24, w8
	ccmp	w24, w10, #4, ne
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x22, x24, lsl #2]
	cmp	w1, #0
	ccmp	w1, w28, #4, ne
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19]
	cmp	w1, w8
	b.ge	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w8, w24, #129
	cmp	w8, #2
	b.hs	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh24:
	adrp	x8, _IXGBE_PCIE_CONFIG_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IXGBE_PCIE_CONFIG_SIZE@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w24, #128
	b.ne	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh26:
	adrp	x8, _IXGBE_IXGBE_PCIE_GENERAL_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IXGBE_IXGBE_PCIE_GENERAL_SIZE@GOTPAGEOFF]
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [x8]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w2, #0
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x3, x29, #92
	mov	x0, x19
	mov	x4, x21
	mov	x5, x20
	bl	_ixgbe_checksum_ptr_x550
	cbnz	x0, LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x25]
	b	LBB0_13
LBB0_25:
	ldur	w8, [x29, #-92]
LBB0_26:
Lloh28:
	adrp	x9, _IXGBE_EEPROM_SUM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IXGBE_EEPROM_SUM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	sub	w8, w9, w8
	sxtw	x23, w8
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.28:
	mov	x0, x23
	sub	sp, x29, #80
	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
LBB0_29:
	mov	x23, x0
	b	LBB0_27
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_EEPROM_LAST_WORD,4,2     ; @IXGBE_EEPROM_LAST_WORD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read EEPROM image\n"

	.comm	_IXGBE_ERR_PARAM,8,3            ; @IXGBE_ERR_PARAM
	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ; @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_PCIE_ANALOG_PTR_X550,4,2 ; @IXGBE_PCIE_ANALOG_PTR_X550
	.comm	_IXGBE_FW_PTR,4,2               ; @IXGBE_FW_PTR
	.comm	_IXGBE_PHY_PTR,4,2              ; @IXGBE_PHY_PTR
	.comm	_IXGBE_OPTION_ROM_PTR,4,2       ; @IXGBE_OPTION_ROM_PTR
	.comm	_IXGBE_IXGBE_PCIE_GENERAL_SIZE,4,2 ; @IXGBE_IXGBE_PCIE_GENERAL_SIZE
	.comm	_IXGBE_PCIE_CONFIG_SIZE,4,2     ; @IXGBE_PCIE_CONFIG_SIZE
	.comm	_IXGBE_EEPROM_SUM,8,3           ; @IXGBE_EEPROM_SUM
	.no_dead_strip	_ixgbe_calc_checksum_X550
.subsections_via_symbols
