	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_nvram_write_dword
_bnx2x_nvram_write_dword:               ## @bnx2x_nvram_write_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, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MCPR_NVM_COMMAND_DOIT@GOTPCREL(%rip), %rax
	movq	_MCPR_NVM_COMMAND_WR@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	movq	_MCP_REG_MCPR_NVM_COMMAND@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MCPR_NVM_COMMAND_DONE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_REG_WR
	movq	_MCP_REG_MCPR_NVM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	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), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WR
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_REG_WR
	movq	_BNX2X_NVRAM_TIMEOUT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_CHIP_REV_IS_SLOW
	imull	$100, %r14d, %r15d
	testq	%rax, %rax
	cmovel	%r14d, %r15d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r15d, %r15d
	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, (%r12)
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r15d
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_6
LBB0_5:
	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_6:
	movl	%r14d, %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	_MCPR_NVM_COMMAND_WR,4,2        ## @MCPR_NVM_COMMAND_WR
	.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_WRITE,4,2     ## @MCP_REG_MCPR_NVM_WRITE
	.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	_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 write timeout expired\n"

	.no_dead_strip	_bnx2x_nvram_write_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_write_dword
_bnx2x_nvram_write_dword:               ; @bnx2x_nvram_write_dword
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MCPR_NVM_COMMAND_DOIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCPR_NVM_COMMAND_DOIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MCPR_NVM_COMMAND_WR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCPR_NVM_COMMAND_WR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w3
	orr	w22, w8, w9
Lloh6:
	adrp	x23, _MCP_REG_MCPR_NVM_COMMAND@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MCP_REG_MCPR_NVM_COMMAND@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x24, _MCPR_NVM_COMMAND_DONE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MCPR_NVM_COMMAND_DONE@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_REG_WR
Lloh10:
	adrp	x8, _MCP_REG_MCPR_NVM_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCP_REG_MCPR_NVM_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WR
Lloh13:
	adrp	x8, _MCP_REG_MCPR_NVM_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MCP_REG_MCPR_NVM_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MCPR_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MCPR_NVM_ADDR_NVM_ADDR_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w2, w8, w21
	mov	x0, x19
	bl	_REG_WR
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
Lloh19:
	adrp	x8, _BNX2X_NVRAM_TIMEOUT_COUNT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNX2X_NVRAM_TIMEOUT_COUNT@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_CHIP_REV_IS_SLOW
	mov	w8, #100
	mul	w8, w20, w8
	cmp	x0, #0
	csel	w22, w20, w8, eq
Lloh22:
	adrp	x21, _EBUSY@GOTPAGE
Lloh23:
	ldr	x21, [x21, _EBUSY@GOTPAGEOFF]
	ldr	w8, [x21]
	neg	w20, w8
	cmp	w22, #1
	b.lt	LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_REG_RD
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w8, [x21]
	cmn	w20, w8
	b.ne	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MCPR_NVM_COMMAND_DOIT,4,2      ; @MCPR_NVM_COMMAND_DOIT
	.comm	_MCPR_NVM_COMMAND_WR,4,2        ; @MCPR_NVM_COMMAND_WR
	.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_WRITE,4,2     ; @MCP_REG_MCPR_NVM_WRITE
	.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	_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 write timeout expired\n"

	.no_dead_strip	_bnx2x_nvram_write_dword
.subsections_via_symbols
