	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_flash_nvram
_bnxt_flash_nvram:                      ## @bnxt_flash_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_HWRM_NVM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	%r12d, %edi
	movq	16(%rbp), %r12
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, -104(%rbp)
	movq	%r12, %rdi
	callq	_cpu_to_le32
	movl	%eax, -108(%rbp)
	movq	(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r12, %rsi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_cpu_to_le64
	movl	%eax, -112(%rbp)
	movq	_FLASH_NVRAM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	movl	$48, %edx
	callq	_hwrm_send_message
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	-44(%rbp), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_dma_free_coherent
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_bnxt_print_admin_err
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_NVM_WRITE,4,2             ## @HWRM_NVM_WRITE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_alloc_coherent failure, length = %u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FLASH_NVRAM_TIMEOUT,4,2        ## @FLASH_NVRAM_TIMEOUT
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_bnxt_flash_nvram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_flash_nvram
_bnxt_flash_nvram:                      ; @bnxt_flash_nvram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x6
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh0:
	adrp	x8, _HWRM_NVM_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_NVM_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	mov	x0, x26
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x1, x19
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_cpu_to_le64
	str	w0, [sp, #16]
Lloh6:
	adrp	x8, _FLASH_NVRAM_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLASH_NVRAM_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #48
	bl	_hwrm_send_message
	mov	x21, x0
	ldr	x0, [x20]
	ldr	w3, [sp, #12]
	mov	x1, x19
	mov	x2, x23
	bl	_dma_free_coherent
Lloh9:
	adrp	x8, _EACCES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_bnxt_print_admin_err
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_netdev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_NVM_WRITE,4,2             ; @HWRM_NVM_WRITE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_alloc_coherent failure, length = %u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FLASH_NVRAM_TIMEOUT,4,2        ; @FLASH_NVRAM_TIMEOUT
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_bnxt_flash_nvram
.subsections_via_symbols
