	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_nvram_write
_bnx2_nvram_write:                      ## @bnx2_nvram_write
	.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	$152, %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, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %r12d
	andl	$3, %r12d
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	andl	$-4, %r13d
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	addl	%r12d, %ebx
	cmpl	$5, %ebx
	movl	$4, %eax
	cmovll	%eax, %ebx
	leaq	-64(%rbp), %r15
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_bnx2_nvram_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_58
## %bb.2:
	movl	%ebx, %eax
	andl	$3, %eax
	je	LBB0_12
## %bb.3:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %eax
	andl	$3, %eax
	je	LBB0_11
## %bb.5:
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
LBB0_6:
	subl	%eax, %ebx
	leal	(%rbx,%r13), %esi
	addl	$4, %esi
	addl	$-4, %esi
	leaq	-80(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_bnx2_nvram_read
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_58
## %bb.7:
	addl	$4, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%rcx, %r14
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_54
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$4, %edx
	callq	_memcpy
	movq	-144(%rbp), %rax                ## 8-byte Reload
LBB0_10:
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-16, %rdi
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, %rdi
	testq	%rax, %rax
	movq	-112(%rbp), %r14                ## 8-byte Reload
	je	LBB0_54
LBB0_13:
	movq	%r15, %rsi
	movq	%rax, %r15
	movl	$4, %edx
	callq	_memcpy
	movl	%r12d, %eax
	leaq	(%r15,%rax,4), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movq	%r15, %rax
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdx
LBB0_14:
	movq	(%r14), %rax
	movq	_BNX2_NV_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_16:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$264, %edi                      ## imm = 0x108
	movq	%rdx, %r15
	callq	_kmalloc
	movq	%r15, %rdx
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_55
LBB0_17:
	testl	%ebx, %ebx
	jle	LBB0_57
## %bb.18:
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leal	(%rbx,%r13), %ecx
	leal	-4(%r13), %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -192(%rbp)                ## 8-byte Spill
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_38 Depth 2
                                        ##     Child Loop BB0_48 Depth 2
	leal	(%rax,%r13), %ebx
	movq	%rax, %rsi
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%ebx, %eax
	cltd
	idivl	%edi
	movl	%edx, -128(%rbp)                ## 4-byte Spill
	subl	%edx, %ebx
	movq	%rsi, -168(%rbp)                ## 8-byte Spill
	testl	%esi, %esi
	movl	%ebx, %eax
	cmovel	%r13d, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leal	(%rbx,%rdi), %eax
	cmpl	%ecx, %eax
	movl	%ecx, %ebx
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	cmovll	%eax, %ebx
	movq	%r15, %rdi
	callq	_bnx2_acquire_nvram_lock
	testl	%eax, %eax
	jne	LBB0_56
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	callq	_bnx2_enable_nvram_access
	movq	_BNX2_NVM_COMMAND_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r15), %rax
	movq	_BNX2_NV_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	%r15, %r14
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	je	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	callq	_bnx2_enable_nvram_write
	testl	%eax, %eax
	jne	LBB0_53
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdx
	movq	(%r14), %rax
	movq	_BNX2_NV_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	je	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r13d, %r8d
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_36
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	4(%rax), %eax
	testl	%eax, %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	jle	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ecx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	$-4, %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	_BNX2_NVM_COMMAND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=2
	orl	%r13d, %ecx
	leal	(%r15,%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_bnx2_nvram_read_dword
	testl	%eax, %eax
	jne	LBB0_53
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	%r14, %rcx
	addq	$4, %rbx
	movq	(%r14), %rax
	movl	4(%rax), %eax
	addq	$16, %r12
	xorl	%r13d, %r13d
	cmpl	%ebx, %eax
	jg	LBB0_26
	jmp	LBB0_21
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, %esi
	callq	_bnx2_nvram_erase_page
	testl	%eax, %eax
	jne	LBB0_53
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_bnx2_enable_nvram_write
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r12d
	jge	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r12d, %r12d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movq	-120(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r8d, %ecx
	callq	_bnx2_nvram_write_dword
	testl	%eax, %eax
	jne	LBB0_53
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	addq	$16, %rbx
	movl	%r12d, %r15d
	addl	$4, %r15d
	leal	(%r12,%r13), %eax
	addl	$4, %eax
	xorl	%r8d, %r8d
	movl	%r15d, %r12d
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %eax
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_33
	jmp	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%r13d, %r8d
LBB0_36:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	cmpl	%eax, %edx
	jge	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	$-4, %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	leal	(%rax,%rcx), %r12d
	addl	-184(%rbp), %r12d               ## 4-byte Folded Reload
	subl	%edx, %r12d
	subl	-128(%rbp), %r12d               ## 4-byte Folded Reload
	movl	%edx, %ebx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r12d, %r12d
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=2
	movq	(%r14), %rax
	movq	_BNX2_NV_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=2
	cmpl	%ebx, -120(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_38 Depth=2
	movq	_BNX2_NVM_COMMAND_LAST@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
LBB0_42:                                ##   in Loop: Header=BB0_38 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r8d, %ecx
	callq	_bnx2_nvram_write_dword
	testl	%eax, %eax
	jne	LBB0_53
## %bb.43:                              ##   in Loop: Header=BB0_38 Depth=2
	addq	$16, %r13
	addl	$4, %ebx
	addl	$4, %r15d
	addl	$-4, %r12d
	xorl	%r8d, %r8d
	cmpl	-160(%rbp), %ebx                ## 4-byte Folded Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_38
	jmp	LBB0_45
LBB0_44:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-104(%rbp), %r13                ## 8-byte Reload
LBB0_45:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %rax
	movq	_BNX2_NV_BUFFERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_52
## %bb.46:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	-132(%rbp), %eax                ## 4-byte Reload
	cmpl	-124(%rbp), %eax                ## 4-byte Folded Reload
	jle	LBB0_52
## %bb.47:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r15d, %eax
	leaq	(%r12,%rax,4), %r15
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	addl	%ecx, %eax
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	addl	%eax, %ecx
	subl	-128(%rbp), %ecx                ## 4-byte Folded Reload
	movq	-160(%rbp), %rax                ## 8-byte Reload
	subl	%eax, %ecx
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r13
	testl	%ecx, %ecx
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	_BNX2_NVM_COMMAND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_50:                                ##   in Loop: Header=BB0_48 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%r8d, %ecx
	callq	_bnx2_nvram_write_dword
	testl	%eax, %eax
	jne	LBB0_56
## %bb.51:                              ##   in Loop: Header=BB0_48 Depth=2
	addl	$4, %ebx
	addq	$16, %r15
	movq	%r13, %rcx
	addl	$-4, %ecx
	xorl	%r8d, %r8d
	cmpl	-132(%rbp), %ebx                ## 4-byte Folded Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_48
LBB0_52:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	callq	_bnx2_disable_nvram_write
	movq	%r14, %rdi
	callq	_bnx2_disable_nvram_access
	movq	%r14, %rdi
	callq	_bnx2_release_nvram_lock
	movq	-168(%rbp), %rax                ## 8-byte Reload
	subl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-160(%rbp), %eax                ## 4-byte Folded Reload
	movq	%r14, %r15
	xorl	%r14d, %r14d
	cmpl	-152(%rbp), %eax                ## 4-byte Folded Reload
	movq	-192(%rbp), %r13                ## 8-byte Reload
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	jl	LBB0_19
	jmp	LBB0_57
LBB0_53:
	movl	%eax, %r14d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_54:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_58
LBB0_56:
	movl	%eax, %r14d
	jmp	LBB0_57
LBB0_55:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_57:
	movq	%r12, %rdi
	callq	_kfree
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_kfree
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_61
## %bb.59:
	movl	%r14d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_61:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNX2_NV_BUFFERED,4,2           ## @BNX2_NV_BUFFERED
	.comm	_BNX2_NVM_COMMAND_FIRST,4,2     ## @BNX2_NVM_COMMAND_FIRST
	.comm	_BNX2_NVM_COMMAND_LAST,4,2      ## @BNX2_NVM_COMMAND_LAST
	.no_dead_strip	_bnx2_nvram_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_nvram_write
_bnx2_nvram_write:                      ; @bnx2_nvram_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ands	w21, w1, #0x3
	b.eq	LBB0_5
; %bb.1:
	and	w19, w19, #0xfffffffc
	add	w8, w21, w23
	mov	w9, #4
	cmp	w8, #4
	csel	w24, w8, w9, gt
	add	x2, sp, #72
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_bnx2_nvram_read
	mov	x27, x0
	cbnz	w0, LBB0_55
; %bb.2:
	ands	w8, w24, #0x3
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kmalloc
	cbz	x0, LBB0_52
; %bb.4:
	add	x1, sp, #72
	mov	x25, x0
	b	LBB0_12
LBB0_5:
	ands	w8, w23, #0x3
	b.eq	LBB0_13
; %bb.6:
	mov	x24, x23
LBB0_7:
	sub	w8, w24, w8
	add	w24, w8, #4
	add	w8, w19, w24
	sub	w1, w8, #4
	add	x2, sp, #56
	mov	x0, x20
	mov	w3, #4
	bl	_bnx2_nvram_read
	mov	x27, x0
	cbnz	w0, LBB0_55
; %bb.8:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kmalloc
	cbz	x0, LBB0_52
; %bb.9:
	mov	x25, x0
	cbz	w21, LBB0_11
; %bb.10:
	add	x1, sp, #72
	mov	x0, x25
	mov	w2, #4
	bl	_memcpy
LBB0_11:
	add	x8, x25, w24, sxtw #2
	sub	x0, x8, #16
	add	x1, sp, #56
LBB0_12:
	mov	w2, #4
	bl	_memcpy
	add	x0, x25, w21, uxtw #2
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	mov	x23, x24
	mov	x22, x25
	b	LBB0_14
LBB0_13:
	mov	x25, #0
LBB0_14:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BNX2_NV_BUFFERED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2_NV_BUFFERED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, #0
	b	LBB0_17
LBB0_16:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #264
	bl	_kmalloc
	cbz	x0, LBB0_53
LBB0_17:
	cmp	w23, #1
	b.lt	LBB0_51
; %bb.18:
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	mov	w21, #0
	add	w28, w23, w19
	sub	w8, w19, #4
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x26, _BNX2_NVM_COMMAND_FIRST@GOTPAGE
Lloh16:
	ldr	x26, [x26, _BNX2_NVM_COMMAND_FIRST@GOTPAGEOFF]
	stp	w23, w28, [sp]                  ; 8-byte Folded Spill
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_45 Depth 2
	add	w10, w21, w19
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	stp	w9, w10, [sp, #24]              ; 8-byte Folded Spill
	sdiv	w8, w10, w9
	mul	w25, w8, w9
	cmp	w21, #0
	csel	w10, w19, w25, eq
	add	w8, w25, w9
	cmp	w8, w28
	stp	w10, w8, [sp, #48]              ; 8-byte Folded Spill
	csel	w24, w8, w28, lt
	mov	x0, x20
	bl	_bnx2_acquire_nvram_lock
	cbnz	w0, LBB0_49
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_bnx2_enable_nvram_access
	ldr	w8, [x26]
	ldr	x9, [x20]
	ldr	w10, [x9]
Lloh17:
	adrp	x11, _BNX2_NV_BUFFERED@GOTPAGE
Lloh18:
	ldr	x11, [x11, _BNX2_NV_BUFFERED@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w11, w10
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	b.eq	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x26, x8
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_bnx2_enable_nvram_write
	cbnz	w0, LBB0_49
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BNX2_NV_BUFFERED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BNX2_NV_BUFFERED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w23, #0
	ldr	w21, [sp, #48]                  ; 4-byte Folded Reload
	b	LBB0_35
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [x9, #4]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x21, #0
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w9, #4
Lloh23:
	adrp	x10, _BNX2_NVM_COMMAND_LAST@GOTPAGE
Lloh24:
	ldr	x10, [x10, _BNX2_NVM_COMMAND_LAST@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	x21, x9
	csel	w9, w10, wzr, eq
	orr	w3, w9, w8
	add	w1, w25, w21
	mov	x0, x20
	mov	x2, x28
	bl	_bnx2_nvram_read_dword
	cbnz	w0, LBB0_49
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	w8, #0
	mov	w26, #0
	add	x21, x21, #4
	ldr	x9, [x20]
	ldr	w9, [x9, #4]
	add	x28, x28, #16
	cmp	w9, w21
	b.gt	LBB0_27
	b	LBB0_22
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_bnx2_nvram_erase_page
	ldr	w21, [sp, #48]                  ; 4-byte Folded Reload
	cbnz	w0, LBB0_49
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_bnx2_enable_nvram_write
	cmp	w25, w21
	b.ge	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w23, #0
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	mov	x3, x26
LBB0_32:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w1, w25, w23
	mov	x0, x20
	mov	x2, x28
	bl	_bnx2_nvram_write_dword
	cbnz	w0, LBB0_49
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	mov	w3, #0
	mov	w26, #0
	add	x28, x28, #16
	add	w23, w23, #4
	add	w8, w25, w23
	cmp	w8, w21
	b.lt	LBB0_32
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w23, #0
LBB0_35:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	sub	w9, w8, w25
	cmp	w21, w24
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	b.ge	LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_19 Depth=1
	sub	w28, w24, #4
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	mov	x10, x9
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	sub	w8, w8, w21
	mov	x25, x21
	sub	w21, w8, w10
LBB0_37:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w21, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _BNX2_NV_BUFFERED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BNX2_NV_BUFFERED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w28, w25, #0, ne
	b.ne	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_37 Depth=2
Lloh29:
	adrp	x8, _BNX2_NVM_COMMAND_LAST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BNX2_NVM_COMMAND_LAST@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w26, w8, w26
LBB0_40:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	x0, x20
	mov	x1, x25
	mov	x2, x22
	mov	x3, x26
	bl	_bnx2_nvram_write_dword
	cbnz	w0, LBB0_49
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	w26, #0
	mov	w8, #0
	add	x22, x22, #16
	add	w25, w25, #4
	add	w23, w23, #4
	sub	w21, w21, #4
	cmp	w25, w24
	b.lt	LBB0_37
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x8, x26
LBB0_43:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x9, [x20]
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _BNX2_NV_BUFFERED@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BNX2_NV_BUFFERED@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #0
	ldr	w28, [sp, #4]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	ccmp	w9, w28, #4, eq
	b.le	LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x25, x9, w23, uxtw #2
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	add	w9, w10, w9
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	add	w9, w9, w10
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	sub	w9, w9, w10
	sub	w21, w9, w24
	mov	x26, x24
LBB0_45:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh35:
	adrp	x9, _BNX2_NVM_COMMAND_LAST@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BNX2_NVM_COMMAND_LAST@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w3, w9, w8, eq
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_bnx2_nvram_write_dword
	cbnz	w0, LBB0_49
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=2
	mov	w8, #0
	add	w26, w26, #4
	add	x25, x25, #16
	sub	w21, w21, #4
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w26, w9
	b.lt	LBB0_45
LBB0_47:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_bnx2_disable_nvram_write
	mov	x0, x20
	bl	_bnx2_disable_nvram_access
	mov	x0, x20
	bl	_bnx2_release_nvram_lock
	ldp	w8, w9, [sp, #44]               ; 8-byte Folded Reload
	sub	w8, w8, w9
	add	w21, w8, w24
	ldr	w23, [sp]                       ; 4-byte Folded Reload
	cmp	w21, w23
Lloh38:
	adrp	x26, _BNX2_NVM_COMMAND_FIRST@GOTPAGE
Lloh39:
	ldr	x26, [x26, _BNX2_NVM_COMMAND_FIRST@GOTPAGEOFF]
	b.lt	LBB0_19
; %bb.48:
	mov	w27, #0
	b	LBB0_50
LBB0_49:
	mov	x27, x0
LBB0_50:
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	b	LBB0_54
LBB0_51:
	mov	w27, #0
	b	LBB0_54
LBB0_52:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_55
LBB0_53:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_54:
	bl	_kfree
	mov	x0, x25
	bl	_kfree
LBB0_55:
	ldr	x8, [sp, #88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.56:
	mov	x0, x27
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_57:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNX2_NV_BUFFERED,4,2           ; @BNX2_NV_BUFFERED
	.comm	_BNX2_NVM_COMMAND_FIRST,4,2     ; @BNX2_NVM_COMMAND_FIRST
	.comm	_BNX2_NVM_COMMAND_LAST,4,2      ; @BNX2_NVM_COMMAND_LAST
	.no_dead_strip	_bnx2_nvram_write
.subsections_via_symbols
