	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_nvram_read
_bnx2x_nvram_read:                      ## @bnx2x_nvram_read
	.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	%ecx, %r13d
	movl	%esi, %r12d
	testb	$3, %r12b
	je	LBB0_1
LBB0_3:
	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	%r14d, %r14d
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_DP
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movl	%r13d, %eax
	andl	$3, %eax
	jne	LBB0_3
## %bb.5:
	movq	%rdi, %rbx
	leal	(%r12,%r13), %eax
	movl	(%rdi), %r8d
	cmpl	%r8d, %eax
	jle	LBB0_7
## %bb.6:
	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
	xorl	%r14d, %r14d
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_4
LBB0_7:
	movq	%rdx, %r15
	movq	%rbx, %rdi
	callq	_bnx2x_acquire_nvram_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	callq	_bnx2x_enable_nvram_access
	movq	_MCPR_NVM_COMMAND_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$5, %r13d
	jb	LBB0_16
## %bb.9:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_bnx2x_nvram_read_dword
	movl	%eax, %r14d
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	addl	$4, %r12d
	addq	$16, %r15
	leal	-4(%r13), %ecx
	testl	%r14d, %r14d
	sete	%al
	cmpl	$5, %ecx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jb	LBB0_15
## %bb.10:
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.11:
	addl	$-8, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_bnx2x_nvram_read_dword
	movl	%eax, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	addl	$4, %r12d
	addq	$16, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	sete	%al
	cmpl	$5, %r13d
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$-4, %r13d
	testl	%r14d, %r14d
	movq	%r15, %rbx
	je	LBB0_12
	jmp	LBB0_15
LBB0_13:
	movq	%r15, %rbx
LBB0_15:
	xorl	%ecx, %ecx
	testb	%al, %al
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_17
LBB0_16:
	movq	_MCPR_NVM_COMMAND_LAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-44(%rbp), %r13
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_bnx2x_nvram_read_dword
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_17:
	movq	%rbx, %rdi
	callq	_bnx2x_disable_nvram_access
	movq	%rbx, %rdi
	callq	_bnx2x_release_nvram_lock
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.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	"Invalid parameter: offset 0x%x  buf_size 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n"

	.comm	_MCPR_NVM_COMMAND_FIRST,4,2     ## @MCPR_NVM_COMMAND_FIRST
	.comm	_MCPR_NVM_COMMAND_LAST,4,2      ## @MCPR_NVM_COMMAND_LAST
	.no_dead_strip	_bnx2x_nvram_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_nvram_read
_bnx2x_nvram_read:                      ; @bnx2x_nvram_read
	.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	x23, x3
	mov	x19, x1
	tst	w1, #0x3
	b.eq	LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x2, x19
	mov	x3, x23
	bl	_DP
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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_4:
	cbz	w23, LBB0_1
; %bb.5:
	and	w8, w23, #0x3
	cbnz	w8, LBB0_1
; %bb.6:
	mov	x20, x0
	ldr	w8, [x0]
	add	w9, w23, w19
	cmp	w9, w8
	b.le	LBB0_8
; %bb.7:
Lloh11:
	adrp	x9, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _BNX2X_MSG_NVM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w0, w10, w9
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	mov	x21, x2
	mov	x0, x20
	bl	_bnx2x_acquire_nvram_lock
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.9:
	mov	x0, x20
	bl	_bnx2x_enable_nvram_access
Lloh19:
	adrp	x8, _MCPR_NVM_COMMAND_FIRST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MCPR_NVM_COMMAND_FIRST@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	cmp	w23, #5
	b.lo	LBB0_17
; %bb.10:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_nvram_read_dword
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	w19, w19, #4
	add	x21, x21, #16
	sub	w9, w23, #4
	cmp	w22, #0
	cset	w8, eq
	cmp	w9, #5
	b.lo	LBB0_15
; %bb.11:
	cbnz	w22, LBB0_15
; %bb.12:
	sub	w23, w23, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_bnx2x_nvram_read_dword
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	w19, w19, #4
	add	x21, x21, #16
	cmp	w22, #0
	cset	w8, eq
	cmp	w23, #5
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w23, w23, #4
	cbz	w22, LBB0_13
LBB0_15:
	cbz	w8, LBB0_18
; %bb.16:
	mov	w3, #0
LBB0_17:
Lloh22:
	adrp	x8, _MCPR_NVM_COMMAND_LAST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MCPR_NVM_COMMAND_LAST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w3, w8, w3
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_nvram_read_dword
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
LBB0_18:
	mov	x0, x20
	bl	_bnx2x_disable_nvram_access
	mov	x0, x20
	bl	_bnx2x_release_nvram_lock
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.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	"Invalid parameter: offset 0x%x  buf_size 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n"

	.comm	_MCPR_NVM_COMMAND_FIRST,4,2     ; @MCPR_NVM_COMMAND_FIRST
	.comm	_MCPR_NVM_COMMAND_LAST,4,2      ; @MCPR_NVM_COMMAND_LAST
	.no_dead_strip	_bnx2x_nvram_read
.subsections_via_symbols
