	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_nvram_read_dword
_bnx2x_nvram_read_dword:                ## @bnx2x_nvram_read_dword
	.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
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_MCPR_NVM_COMMAND_DOIT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MCP_REG_MCPR_NVM_COMMAND@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MCPR_NVM_COMMAND_DONE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_REG_WR
	movq	_MCP_REG_MCPR_NVM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCPR_NVM_ADDR_NVM_ADDR_VALUE@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_REG_WR
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WR
	movq	_BNX2X_NVRAM_TIMEOUT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_CHIP_REV_IS_SLOW
	imull	$100, %r15d, %r12d
	testq	%rax, %rax
	cmovel	%r15d, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	testl	%r12d, %r12d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r12d
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movq	_MCP_REG_MCPR_NVM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	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(%rip), %rsi
	callq	_DP
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCPR_NVM_COMMAND_DOIT,4,2      ## @MCPR_NVM_COMMAND_DOIT
	.comm	_MCP_REG_MCPR_NVM_COMMAND,4,2   ## @MCP_REG_MCPR_NVM_COMMAND
	.comm	_MCPR_NVM_COMMAND_DONE,4,2      ## @MCPR_NVM_COMMAND_DONE
	.comm	_MCP_REG_MCPR_NVM_ADDR,4,2      ## @MCP_REG_MCPR_NVM_ADDR
	.comm	_MCPR_NVM_ADDR_NVM_ADDR_VALUE,4,2 ## @MCPR_NVM_ADDR_NVM_ADDR_VALUE
	.comm	_BNX2X_NVRAM_TIMEOUT_COUNT,4,2  ## @BNX2X_NVRAM_TIMEOUT_COUNT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MCP_REG_MCPR_NVM_READ,4,2      ## @MCP_REG_MCPR_NVM_READ
	.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	"nvram read timeout expired\n"

	.no_dead_strip	_bnx2x_nvram_read_dword
.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_dword
_bnx2x_nvram_read_dword:                ; @bnx2x_nvram_read_dword
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MCPR_NVM_COMMAND_DOIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCPR_NVM_COMMAND_DOIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w22, w8, w3
Lloh3:
	adrp	x23, _MCP_REG_MCPR_NVM_COMMAND@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MCP_REG_MCPR_NVM_COMMAND@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x24, _MCPR_NVM_COMMAND_DONE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MCPR_NVM_COMMAND_DONE@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_REG_WR
Lloh7:
	adrp	x8, _MCP_REG_MCPR_NVM_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCP_REG_MCPR_NVM_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _MCPR_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCPR_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w2, w8, w21
	mov	x0, x20
	bl	_REG_WR
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_REG_WR
Lloh13:
	adrp	x8, _BNX2X_NVRAM_TIMEOUT_COUNT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_NVRAM_TIMEOUT_COUNT@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_CHIP_REV_IS_SLOW
	mov	w8, #100
	mul	w8, w21, w8
	cmp	x0, #0
	csel	w25, w21, w8, eq
	str	wzr, [x19]
Lloh16:
	adrp	x22, _EBUSY@GOTPAGE
Lloh17:
	ldr	x22, [x22, _EBUSY@GOTPAGEOFF]
	ldr	w8, [x22]
	neg	w21, w8
	cmp	w25, #1
	b.lt	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x20
	bl	_REG_RD
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w25, w25, #1
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh18:
	adrp	x8, _MCP_REG_MCPR_NVM_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCP_REG_MCPR_NVM_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_REG_RD
	bl	_cpu_to_be32
	mov	w21, #0
	str	w0, [x19]
LBB0_4:
	ldr	w8, [x22]
	cmn	w21, w8
	b.ne	LBB0_6
; %bb.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
LBB0_6:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MCPR_NVM_COMMAND_DOIT,4,2      ; @MCPR_NVM_COMMAND_DOIT
	.comm	_MCP_REG_MCPR_NVM_COMMAND,4,2   ; @MCP_REG_MCPR_NVM_COMMAND
	.comm	_MCPR_NVM_COMMAND_DONE,4,2      ; @MCPR_NVM_COMMAND_DONE
	.comm	_MCP_REG_MCPR_NVM_ADDR,4,2      ; @MCP_REG_MCPR_NVM_ADDR
	.comm	_MCPR_NVM_ADDR_NVM_ADDR_VALUE,4,2 ; @MCPR_NVM_ADDR_NVM_ADDR_VALUE
	.comm	_BNX2X_NVRAM_TIMEOUT_COUNT,4,2  ; @BNX2X_NVRAM_TIMEOUT_COUNT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MCP_REG_MCPR_NVM_READ,4,2      ; @MCP_REG_MCPR_NVM_READ
	.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	"nvram read timeout expired\n"

	.no_dead_strip	_bnx2x_nvram_read_dword
.subsections_via_symbols
