	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_test_nvram
_bnx2x_test_nvram:                      ## @bnx2x_test_nvram
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	l___const.bnx2x_test_nvram.nvram_tbl+48(%rip), %rax
	movq	%rax, -64(%rbp)
	movaps	l___const.bnx2x_test_nvram.nvram_tbl+32(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.bnx2x_test_nvram.nvram_tbl+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.bnx2x_test_nvram.nvram_tbl(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	l___const.bnx2x_test_nvram.nvram_tbl2+16(%rip), %rax
	movq	%rax, -128(%rbp)
	movaps	l___const.bnx2x_test_nvram.nvram_tbl2(%rip), %xmm0
	movaps	%xmm0, -144(%rbp)
	callq	_BP_NOMCP
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	_CRC_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-148(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_bnx2x_nvram_read32
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movq	_BNX2X_MSG_NVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_13
LBB0_4:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movq	_BNX2X_MSG_NVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movl	-148(%rbp), %edx
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %r12
	movq	_BNX2X_MSG_NVM@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	orl	(%r12), %edi
	cmpl	$1721324970, %edx               ## imm = 0x669955AA
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_bnx2x_test_nvram_tbl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	%r15, %rdi
	callq	_CHIP_IS_E1x
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_CHIP_IS_57811xx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_dev_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SHMEM_RD
	movq	_SHARED_HW_CFG_HIDE_PORT1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_test_nvram_dirs
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r13), %edi
	orl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_bnx2x_test_nvram_tbl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_10
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.bnx2x_test_nvram.nvram_tbl
l___const.bnx2x_test_nvram.nvram_tbl:
	.long	0                               ## 0x0
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	236                             ## 0xec
	.long	256                             ## 0x100
	.long	848                             ## 0x350
	.long	1104                            ## 0x450
	.long	240                             ## 0xf0
	.long	1600                            ## 0x640
	.long	100                             ## 0x64
	.long	1800                            ## 0x708
	.long	112                             ## 0x70
	.space	8

	.p2align	4                               ## @__const.bnx2x_test_nvram.nvram_tbl2
l___const.bnx2x_test_nvram.nvram_tbl2:
	.long	2024                            ## 0x7e8
	.long	848                             ## 0x350
	.long	2872                            ## 0xb38
	.long	240                             ## 0xf0
	.space	8

	.comm	_CRC_BUFF_SIZE,4,2              ## @CRC_BUFF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ## @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kmalloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"magic value read (rc %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"wrong magic value (0x%08x)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"Port 0 CRC test-set\n"

	.comm	_dev_info,4,2                   ## @dev_info
	.comm	_SHARED_HW_CFG_HIDE_PORT1,4,2   ## @SHARED_HW_CFG_HIDE_PORT1
L_.str.4:                               ## @.str.4
	.asciz	"Port 1 CRC test-set\n"

	.no_dead_strip	_bnx2x_test_nvram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_test_nvram
_bnx2x_test_nvram:                      ; @bnx2x_test_nvram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, l___const.bnx2x_test_nvram.nvram_tbl@PAGE
Lloh4:
	add	x8, x8, l___const.bnx2x_test_nvram.nvram_tbl@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #48]
	ldr	q0, [x8, #32]
	str	q0, [sp, #80]
	ldr	x8, [x8, #48]
	str	x8, [sp, #96]
Lloh5:
	adrp	x8, l___const.bnx2x_test_nvram.nvram_tbl2@PAGE
Lloh6:
	add	x8, x8, l___const.bnx2x_test_nvram.nvram_tbl2@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
	bl	_BP_NOMCP
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_15
LBB0_2:
Lloh7:
	adrp	x8, _CRC_BUFF_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRC_BUFF_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	w3, #4
	bl	_bnx2x_nvram_read32
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh13:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	b	LBB0_14
LBB0_5:
Lloh21:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldr	w8, [sp, #12]
Lloh31:
	adrp	x22, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh32:
	ldr	x22, [x22, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh33:
	adrp	x23, _BNX2X_MSG_NVM@GOTPAGE
Lloh34:
	ldr	x23, [x23, _BNX2X_MSG_NVM@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w0, w10, w9
	mov	w9, #21930
	movk	w9, #26265, lsl #16
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	add	x1, sp, #48
	mov	x0, x20
	mov	x2, x19
	bl	_bnx2x_test_nvram_tbl
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.8:
	mov	x0, x20
	bl	_CHIP_IS_E1x
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_CHIP_IS_57811xx
	cbnz	w0, LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _dev_info@GOTPAGE
Lloh38:
	ldr	x8, [x8, _dev_info@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SHMEM_RD
Lloh40:
	adrp	x8, _SHARED_HW_CFG_HIDE_PORT1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SHARED_HW_CFG_HIDE_PORT1@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_17
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_test_nvram_dirs
	mov	x21, x0
	b	LBB0_14
LBB0_12:
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh45:
	adrp	x8, _ENODEV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_kfree
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w0, w9, w8
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, x19
	bl	_bnx2x_test_nvram_tbl
	mov	x21, x0
	cbnz	w0, LBB0_14
	b	LBB0_11
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.bnx2x_test_nvram.nvram_tbl
l___const.bnx2x_test_nvram.nvram_tbl:
	.long	0                               ; 0x0
	.long	20                              ; 0x14
	.long	20                              ; 0x14
	.long	236                             ; 0xec
	.long	256                             ; 0x100
	.long	848                             ; 0x350
	.long	1104                            ; 0x450
	.long	240                             ; 0xf0
	.long	1600                            ; 0x640
	.long	100                             ; 0x64
	.long	1800                            ; 0x708
	.long	112                             ; 0x70
	.space	8

	.p2align	2                               ; @__const.bnx2x_test_nvram.nvram_tbl2
l___const.bnx2x_test_nvram.nvram_tbl2:
	.long	2024                            ; 0x7e8
	.long	848                             ; 0x350
	.long	2872                            ; 0xb38
	.long	240                             ; 0xf0
	.space	8

	.comm	_CRC_BUFF_SIZE,4,2              ; @CRC_BUFF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ; @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kmalloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"magic value read (rc %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"wrong magic value (0x%08x)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"Port 0 CRC test-set\n"

	.comm	_dev_info,4,2                   ; @dev_info
	.comm	_SHARED_HW_CFG_HIDE_PORT1,4,2   ; @SHARED_HW_CFG_HIDE_PORT1
l_.str.4:                               ; @.str.4
	.asciz	"Port 1 CRC test-set\n"

	.no_dead_strip	_bnx2x_test_nvram
.subsections_via_symbols
