	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_nvram_read_dword
_bnx2_nvram_read_dword:                 ## @bnx2_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
	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, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_BNX2_NVM_COMMAND_DOIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%rdi), %rsi
	movq	_BNX2_NV_TRANSLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movb	8(%rsi), %cl
	movl	%r12d, %eax
	cltd
	idivl	4(%rsi)
	movl	%eax, %r12d
	shll	%cl, %r12d
	addl	%edx, %r12d
LBB0_2:
	movq	_BNX2_NVM_COMMAND@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_BNX2_NVM_COMMAND_DONE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_BNX2_WR
	movq	_BNX2_NVM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BNX2_NVM_ADDR_NVM_ADDR_VALUE@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_BNX2_WR
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_BNX2_WR
	movq	_NVRAM_TIMEOUT_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	$0, %ebx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_BNX2_NVM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	movl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movl	(%r12), %ecx
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	%ecx, %ebx
	movl	$0, %ecx
	cmovll	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_NVM_COMMAND_DOIT,4,2      ## @BNX2_NVM_COMMAND_DOIT
	.comm	_BNX2_NV_TRANSLATE,4,2          ## @BNX2_NV_TRANSLATE
	.comm	_BNX2_NVM_COMMAND,4,2           ## @BNX2_NVM_COMMAND
	.comm	_BNX2_NVM_COMMAND_DONE,4,2      ## @BNX2_NVM_COMMAND_DONE
	.comm	_BNX2_NVM_ADDR,4,2              ## @BNX2_NVM_ADDR
	.comm	_BNX2_NVM_ADDR_NVM_ADDR_VALUE,4,2 ## @BNX2_NVM_ADDR_NVM_ADDR_VALUE
	.comm	_NVRAM_TIMEOUT_COUNT,4,2        ## @NVRAM_TIMEOUT_COUNT
	.comm	_BNX2_NVM_READ,4,2              ## @BNX2_NVM_READ
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnx2_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 bnx2_nvram_read_dword
_bnx2_nvram_read_dword:                 ; @bnx2_nvram_read_dword
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BNX2_NVM_COMMAND_DOIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_NVM_COMMAND_DOIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w21, w8, w3
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _BNX2_NV_TRANSLATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNX2_NV_TRANSLATE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldp	w9, w8, [x8, #4]
	sdiv	w10, w22, w9
	lsl	w8, w10, w8
	msub	w9, w10, w9, w22
	add	w22, w8, w9
LBB0_2:
Lloh6:
	adrp	x23, _BNX2_NVM_COMMAND@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BNX2_NVM_COMMAND@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x24, _BNX2_NVM_COMMAND_DONE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BNX2_NVM_COMMAND_DONE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_BNX2_WR
Lloh10:
	adrp	x8, _BNX2_NVM_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2_NVM_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _BNX2_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w2, w8, w22
	mov	x0, x20
	bl	_BNX2_WR
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_BNX2_WR
Lloh16:
	adrp	x22, _NVRAM_TIMEOUT_COUNT@GOTPAGE
Lloh17:
	ldr	x22, [x22, _NVRAM_TIMEOUT_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x20
	bl	_BNX2_RD
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _BNX2_NVM_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2_NVM_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_BNX2_RD
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x22]
LBB0_8:
Lloh21:
	adrp	x9, _EBUSY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w21, w8
	csneg	w0, wzr, w9, lt
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_NVM_COMMAND_DOIT,4,2      ; @BNX2_NVM_COMMAND_DOIT
	.comm	_BNX2_NV_TRANSLATE,4,2          ; @BNX2_NV_TRANSLATE
	.comm	_BNX2_NVM_COMMAND,4,2           ; @BNX2_NVM_COMMAND
	.comm	_BNX2_NVM_COMMAND_DONE,4,2      ; @BNX2_NVM_COMMAND_DONE
	.comm	_BNX2_NVM_ADDR,4,2              ; @BNX2_NVM_ADDR
	.comm	_BNX2_NVM_ADDR_NVM_ADDR_VALUE,4,2 ; @BNX2_NVM_ADDR_NVM_ADDR_VALUE
	.comm	_NVRAM_TIMEOUT_COUNT,4,2        ; @NVRAM_TIMEOUT_COUNT
	.comm	_BNX2_NVM_READ,4,2              ; @BNX2_NVM_READ
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnx2_nvram_read_dword
.subsections_via_symbols
